[03:27:13]OFD Sender: No OFD packet to send [03:27:18]OFD Sender: No OFD packet to send [03:27:23]OFD Sender: No OFD packet to send [03:27:28]OFD Sender: No OFD packet to send [03:27:33]OFD Sender: No OFD packet to send [03:27:38]OFD Sender: No OFD packet to send [03:27:43]OFD Sender: No OFD packet to send [03:27:48]OFD Sender: No OFD packet to send [03:27:53]OFD Sender: No OFD packet to send [03:27:58]OFD Sender: No OFD packet to send [03:28:03]OFD Sender: No OFD packet to send [03:28:08]OFD Sender: No OFD packet to send [03:28:13]OFD Sender: No OFD packet to send [03:28:18]OFD Sender: No OFD packet to send [03:28:23]OFD Sender: No OFD packet to send [03:28:28]OFD Sender: No OFD packet to send [03:28:33]OFD Sender: No OFD packet to send [03:28:38]OFD Sender: No OFD packet to send [03:28:43]OFD Sender: No OFD packet to send [03:28:48]OFD Sender: No OFD packet to send [03:28:53]OFD Sender: No OFD packet to send [03:28:58]OFD Sender: No OFD packet to send [03:29:03]OFD Sender: No OFD packet to send [03:29:05]accept exits with 9 [03:29:05]New connection [03:29:05]New thread 3067424100 created [03:29:05]Thread 3067567460 joined [03:29:05]Waiting for new connection... [03:29:05] Sock 9.Parse request [03:29:05]Sock 9.Check first char [03:29:05]Sock 9.First char is OK [03:29:05]request: POST /json_proto HTTP/1.0 [03:29:05]Method: POST [03:29:05]URL: /json_proto [03:29:05]Method is POST - this is cgi request [03:29:05]url: /json_proto [03:29:05]query_string will be loaded in cgi processing [03:29:05]execute_cgi json_proto POST (null) [03:29:05]execute_cgi path=json_proto method=POST [03:29:05]POST find Content-Length [03:29:05]Host: 172.17.44.67:8080 [03:29:05]Content-Length: 682 [03:29:05]Content-Type: application/json [03:29:05] [03:29:05]POST finish read [03:29:05]Found Content-Length = 682 [03:29:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:29:05]execute_script... [03:29:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:29:05]POST & json_proto [03:29:05]process_json_proto [03:29:05]json parsed OK: [03:29:05]protocol is kg_v1.0 [03:29:05]action value=close_receipt [03:29:05]process_action close_receipt [03:29:05]cmd_close_receipt [03:29:05]MH_GetDate [03:29:05]Write to MH i2c: F0 00 00 5E 06 53 [03:29:05]Write i2c OK [03:29:05]MH_I2C_Read... [03:29:05]Read from MH i2c: F0 [03:29:05]MH_I2C_Read... [03:29:05]Read from MH i2c: F0 09 00 [03:29:05]MH_I2C_Read... [03:29:05]Read from MH i2c: F0 09 00 5E 06 00 83 84 10 67 F1 C7 6B 64 61 [03:29:05]GetLastDocTimeStamp 1729132786 [03:29:05]current date 1729135747 [03:29:05]FM_GetShiftState [03:29:05]SAM_PROTO_GetShiftState [03:29:05]wFMCommunicate request_size=4 [03:29:05]MH_SAM_APDU [03:29:05]CAPDU: 80 13 01 00 [03:29:05]Write to MH i2c: E2 08 00 5F 06 80 13 01 00 00 00 00 00 E2 [03:29:05]Write i2c OK [03:29:05]MH_I2C_Read... [03:29:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:29:05]Read from MH i2c: E2 [03:29:05]MH_I2C_Read... [03:29:05]Read from MH i2c: E2 0E 00 [03:29:05]MH_I2C_Read... [03:29:05]Read from MH i2c: E2 0E 00 5F 06 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 EA [03:29:05]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [03:29:05]wFMCommunicate OK [03:29:05]SAM_PROTO_GetShiftState done [03:29:05]FM_GetShiftState done [03:29:05]opened in 1729125927 [03:29:05]opened+sec_in_day 1729212327 [03:29:05]quantity*price = 120055 [03:29:05]sum+1 = 120057 [03:29:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 5 17.10.2024 03:29 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82079 ФПД: 27609768690839 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T032907&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82079&fm=27609768690839&tin=02508201610067®Number=0000000000091680&sum=120000 [03:29:06]StoreToDocumentArchive [03:29:06]shift 525 fd 82079 [03:29:06]save to /storage/0525/doc_00082079 [03:29:06]save last doc name /storage/0525/doc_00082079 to /storage/kkm_last_doc_name [03:29:06]save OK [03:29:06]Clear old archive folders... [03:29:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:29:07]tlvbuf is 00D0EA10 [03:29:07]SAM_PROTO_ClearQueue [03:29:07]wFMCommunicate request_size=4 [03:29:07]MH_SAM_APDU [03:29:07]CAPDU: 80 09 00 00 [03:29:07]Write to MH i2c: E2 08 00 6C 06 80 09 00 00 00 00 00 00 E4 [03:29:07]Write i2c OK [03:29:07]MH_I2C_Read... [03:29:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:29:07]Read from MH i2c: E2 [03:29:07]MH_I2C_Read... [03:29:07]Read from MH i2c: E2 03 00 [03:29:07]MH_I2C_Read... [03:29:07]Read from MH i2c: E2 03 00 6C 06 00 90 00 E6 [03:29:07]RAPDU: 90 00 [03:29:07]wFMCommunicate OK [03:29:07]SAM_PROTO_ClearQueue done [03:29:07]KKMCreateOFDPacket [03:29:07]OFDProtocolAddRootSTLVToBuf [03:29:07]FM_MakeSignedData [03:29:07]FM_MakeSignedData [03:29:07]SAM_PROTO_SignData [03:29:07]wFMCommunicate request_size=4 [03:29:07]MH_SAM_APDU [03:29:07]CAPDU: 80 0D 01 02 [03:29:07]Write to MH i2c: E2 08 00 6D 06 80 0D 01 02 00 00 00 00 EC [03:29:07]Write i2c OK [03:29:07]MH_I2C_Read... [03:29:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:29:07]Read from MH i2c: E2 [03:29:07]MH_I2C_Read... [03:29:07]Read from MH i2c: E2 03 00 [03:29:07]MH_I2C_Read... [03:29:07]Read from MH i2c: E2 03 00 6D 06 00 90 00 E7 [03:29:07]RAPDU: 90 00 [03:29:07]wFMCommunicate OK [03:29:07]wFMCommunicate request_size=255 [03:29:07]MH_SAM_APDU [03:29:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 83 84 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 9F 40 01 00 35 04 06 00 19 [03:29:07]Write to MH i2c: E2 02 01 6E 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 83 84 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 9F 40 01 00 35 04 06 00 19 00 00 2D [03:29:07]Write i2c OK [03:29:07]MH_I2C_Read... [03:29:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:29:07]Read from MH i2c: E2 [03:29:07]MH_I2C_Read... [03:29:07]Read from MH i2c: E2 03 00 [03:29:07]MH_I2C_Read... [03:29:07]Read from MH i2c: E2 03 00 6E 06 00 90 00 E8 [03:29:07]RAPDU: 90 00 [03:29:07]wFMCommunicate OK [03:29:07]wFMCommunicate request_size=10 [03:29:07]MH_SAM_APDU [03:29:07]CAPDU: 80 0D 02 02 05 1C 66 74 84 97 [03:29:07]Write to MH i2c: E2 0D 00 6F 06 80 0D 02 02 05 00 1C 66 74 84 97 00 00 0A [03:29:07]Write i2c OK [03:29:07]MH_I2C_Read... [03:29:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:29:07]Read from MH i2c: E2 [03:29:07]MH_I2C_Read... [03:29:07]Read from MH i2c: E2 03 00 [03:29:07]MH_I2C_Read... [03:29:07]Read from MH i2c: E2 03 00 6F 06 00 90 00 E9 [03:29:07]RAPDU: 90 00 [03:29:07]wFMCommunicate OK [03:29:07]wFMCommunicate request_size=4 [03:29:07]MH_SAM_APDU [03:29:07]CAPDU: 80 0D 03 02 [03:29:07]Write to MH i2c: E2 08 00 70 06 80 0D 03 02 00 00 00 00 F1 [03:29:07]Write i2c OK [03:29:07]MH_I2C_Read... [03:29:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:29:07]Read from MH i2c: E2 [03:29:07]MH_I2C_Read... [03:29:07]Read from MH i2c: E2 0B 00 [03:29:07]MH_I2C_Read... [03:29:07]Read from MH i2c: E2 0B 00 70 06 00 69 4E F3 75 A8 07 79 69 90 00 A2 [03:29:07]RAPDU: 69 4E F3 75 A8 07 79 69 90 00 [03:29:07]wFMCommunicate OK [03:29:07]SAM_PROTO_SignData done [03:29:07]FM_MakeSignedData done [03:29:07]CreateOFDProtocolMessage [03:29:07]wFMCommunicate request_size=4 [03:29:07]MH_SAM_APDU [03:29:07]CAPDU: 80 11 00 00 [03:29:07]Write to MH i2c: E2 08 00 71 06 80 11 00 00 00 00 00 00 F1 [03:29:07]Write i2c OK [03:29:07]MH_I2C_Read... [03:29:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:29:07]Read from MH i2c: E2 [03:29:07]MH_I2C_Read... [03:29:07]Read from MH i2c: E2 17 00 [03:29:07]MH_I2C_Read... [03:29:07]Read from MH i2c: E2 17 00 71 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 43 [03:29:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [03:29:07]wFMCommunicate OK [03:29:07]CreateOFDProtocolMessage done [03:29:07]OFDSenderStorePacket 82079 [03:29:07]StoreOFDPacket docnum=82079 [03:29:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 99 6D 07 01 A1 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 83 84 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 9F 40 01 00 35 04 06 00 19 1C 66 74 84 97 69 4E F3 75 A8 07 79 69 [03:29:07]CheckFolder [03:29:07]dirname=/storage/ofd_packets [03:29:07]CheckFolder done [03:29:07]ProducePacketName [03:29:07]name=ofd_packets/00082079 [03:29:07]NVStorageSaveData ofd_packets/00082079 [03:29:07]File name is /storage/ofd_packets/00082079 [03:29:07]Write 301 bytes [03:29:07]NVStorageSaveData done [03:29:07]OFDSenderStorePacket done [03:29:07]KKMCreateOFDPacket done [03:29:07]NVStorageSaveData kkm_last_timestamp [03:29:07]File name is /storage/kkm_last_timestamp [03:29:07]Write 4 bytes [03:29:07]NVStorageSaveData done [03:29:07]ExternCall_PrintAddStr [03:29:07]wPrintStart [03:29:07]Write to MH i2c: 01 00 00 72 06 78 [03:29:07]Write i2c OK [03:29:07]MH_I2C_Read... [03:29:07]Read from MH i2c: 01 [03:29:07]MH_I2C_Read... [03:29:07]Read from MH i2c: 01 07 00 [03:29:07]MH_I2C_Read... [03:29:07]Read from MH i2c: 01 07 00 72 06 00 00 00 00 00 FF 0F 8D [03:29:07]RasterBufferAndPrint [03:29:07]line Счет N : (1)918585 [03:29:07]line ИНН: 02508201610067 [03:29:07]line Контрольно-Кассовый Чек [03:29:07]line ПРОДАЖА [03:29:07]line ТРК (МРК, ГНК) : 12 [03:29:07]line Товар: 2710124500 [03:29:07]line Аи-95-К-5 [03:29:07]line 16.180 * 74.20 [03:29:07]line = 1200.56 [03:29:07]line НДС 12% НСП 1% [03:29:07]line > о реализуемом товаре [03:29:07]line ОКРУГЛЕНИЕ: -0.56 [03:29:07]line ИТОГО: 1200.00 [03:29:07]line Внесено: 1200.00 [03:29:07]line СДАЧА: 0.00 [03:29:07]line НСП 1% : 10.62 [03:29:07]line НДС 12% : 127.49 [03:29:07]line Наличными: 1200.00 [03:29:07]line Безнал.: 0.00 [03:29:07]line Место: АЗС № 114 "Партнер Нефть" [03:29:07]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [03:29:07]line СНО: Общий режим [03:29:07]line Чек 5 17.10.2024 03:29 [03:29:07]line Смена: 525 ФФД: 1.0 [03:29:07]line ЗНМ: 0300000086 [03:29:07]line РНМ: 0000000000091680 [03:29:07]line Версия ККМ: 001 [03:29:07]line ФМ: 0000000000871843 [03:29:07]line ФД: 82079 [03:29:07]line ФПД: 27609768690839 [03:29:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T032907&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82079&fm=27609768690839&tin=02508201610067®Number=0000000000091680&sum=120000 [03:29:07]written 0, free lines is 4095 [03:29:07]OFD Sender: Processing packet 82079 [packets to send 254, broken 253] [03:29:07]ProducePacketName [03:29:07]name=ofd_packets/00082079 [03:29:07]OFD Sender: To server: pG, [03:29:07]CommunicateWithHost lk.salyk.kg:30040 [03:29:07]ConnectInit lk.salyk.kg [03:29:08]Write to MH i2c: 01 00 00 9D 06 A3 [03:29:08]Write i2c OK [03:29:08]MH_I2C_Read... [03:29:08]Read from MH i2c: 01 [03:29:08]MH_I2C_Read... [03:29:08]Read from MH i2c: 01 07 00 [03:29:08]MH_I2C_Read... [03:29:08]Read from MH i2c: 01 07 00 9D 06 00 00 00 00 00 DA 0C 90 [03:29:08]RasterBufferAndPrint [03:29:08]line [03:29:08]line [03:29:08]line [03:29:08]line [03:29:08]line [03:29:08]written 0, free lines is 3297 [03:29:08]MH_Cut [03:29:08]Write to MH i2c: D1 01 00 A4 06 01 7C [03:29:08]Write i2c OK [03:29:08]MH_I2C_Read... [03:29:08]Read from MH i2c: D1 [03:29:08]MH_I2C_Read... [03:29:08]Read from MH i2c: D1 01 00 [03:29:08]MH_I2C_Read... [03:29:08]Read from MH i2c: D1 01 00 A4 06 00 7B [03:29:08]Write to MH i2c: 01 00 00 A5 06 AB [03:29:08]Write i2c OK [03:29:08]MH_I2C_Read... [03:29:08]Connected sock=10 [03:29:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 99 6D 07 01 A1 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 83 84 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 9F 40 01 00 35 04 06 00 19 1C 66 74 84 97 69 4E F3 75 A8 07 79 69 [03:29:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 F1 D1 47 00 10 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 9F 40 01 00 F4 03 04 00 C2 29 10 67 B6 04 01 00 00 61 58 7F 23 59 03 60 28 [03:29:08]CommunicateWithHost err = 0 [03:29:08]CheckOFDResponse [03:29:08]1017 (14) - 77093643461234 [03:29:08]1041 (16) - 0000000000871843 [03:29:08]1040 (4) - 82079 [03:29:08]1012 (4) - 16.10.2024 21:01 [03:29:08]1206 (1) - 0 [03:29:08]OFD Sender: Remove packet 82079 [03:29:08]ProducePacketName [03:29:08]name=ofd_packets/00082079 [03:29:08]NVStorageDeleteData [03:29:08]*** Cut start [03:29:08]*** Partial cut [03:29:08]*** CUTSNS_PIN = 1 [03:29:08]*** CUTSNS_PIN = 0 [03:29:08]OFD Sender: No OFD packet to send [03:29:09]*** Brake cut motor [03:29:09]Read from MH i2c: 01 [03:29:09]MH_I2C_Read... [03:29:09]*** Stop cut motor [03:29:09]*** Cut end [03:29:09]Read from MH i2c: 01 07 00 [03:29:09]MH_I2C_Read... [03:29:09]Read from MH i2c: 01 07 00 A5 06 00 00 00 00 00 FF 0F C0 [03:29:09]process_action close_receipt done [03:29:09]requested_data is exist [03:29:09]produce_requested_data [03:29:09]requested_item fm.sn is exist - process it [03:29:09]wFMCommunicate request_size=4 [03:29:09]MH_SAM_APDU [03:29:09]CAPDU: 80 11 00 00 [03:29:09]Write to MH i2c: E2 08 00 A6 06 80 11 00 00 00 00 00 00 26 [03:29:09]Write i2c OK [03:29:09]MH_I2C_Read... [03:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:29:09]Read from MH i2c: E2 [03:29:09]MH_I2C_Read... [03:29:09]Read from MH i2c: E2 17 00 [03:29:09]MH_I2C_Read... [03:29:09]Read from MH i2c: E2 17 00 A6 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 78 [03:29:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [03:29:09]wFMCommunicate OK [03:29:09]requested_item fd.num is exist - process it [03:29:09]SAM_PROTO_GetFieldsCounters [03:29:09]wFMCommunicate request_size=4 [03:29:09]MH_SAM_APDU [03:29:09]CAPDU: 80 13 00 00 [03:29:09]Write to MH i2c: E2 08 00 A7 06 80 13 00 00 00 00 00 00 29 [03:29:09]Write i2c OK [03:29:09]MH_I2C_Read... [03:29:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:29:09]Read from MH i2c: E2 [03:29:09]MH_I2C_Read... [03:29:09]Read from MH i2c: E2 62 00 [03:29:09]MH_I2C_Read... [03:29:09]Read from MH i2c: E2 62 00 A7 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 9F 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [03:29:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 9F 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:29:09]wFMCommunicate OK [03:29:09]SAM_PROTO_GetFieldsCounters done [03:29:09]requested_item shift.num is exist - process it [03:29:09]requested_item shift.opened is exist - process it [03:29:09]req_shift_opened [03:29:09]FM_GetShiftState [03:29:09]SAM_PROTO_GetShiftState [03:29:09]wFMCommunicate request_size=4 [03:29:09]MH_SAM_APDU [03:29:09]CAPDU: 80 13 01 00 [03:29:09]Write to MH i2c: E2 08 00 A8 06 80 13 01 00 00 00 00 00 2B [03:29:09]Write i2c OK [03:29:09]MH_I2C_Read... [03:29:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:29:09]Read from MH i2c: E2 [03:29:09]MH_I2C_Read... [03:29:09]Read from MH i2c: E2 0E 00 [03:29:09]MH_I2C_Read... [03:29:09]Read from MH i2c: E2 0E 00 A8 06 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 33 [03:29:09]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [03:29:09]wFMCommunicate OK [03:29:09]SAM_PROTO_GetShiftState done [03:29:09]FM_GetShiftState done [03:29:09]req_shift_opened done [03:29:09]requested_item shift.open_date is exist - process it [03:29:09]req_shift_open_date [03:29:09]req_shift_open_date done [03:29:09]produce_requested_data done [03:29:09]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82079,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [03:29:09]process_action_free close_receipt [03:29:09]json_value_free [03:29:09]json_value_free done [03:29:09]process_json_proto returns [03:29:09]Send response to host [03:29:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82079,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [03:29:09]free response buf [03:29:09]execute_script done [03:29:09]execute_script returns [03:29:09]free content buf [03:29:09]Sock 9.Close socket [03:29:09]Sock 9.Thread stoped [03:29:14]OFD Sender: No OFD packet to send [03:29:19]OFD Sender: No OFD packet to send [03:29:24]OFD Sender: No OFD packet to send [03:29:29]OFD Sender: No OFD packet to send [03:29:34]OFD Sender: No OFD packet to send [03:29:39]OFD Sender: No OFD packet to send [03:29:44]OFD Sender: No OFD packet to send [03:29:49]OFD Sender: No OFD packet to send [03:29:54]OFD Sender: No OFD packet to send [03:29:59]OFD Sender: No OFD packet to send [03:30:04]OFD Sender: No OFD packet to send [03:30:09]OFD Sender: No OFD packet to send [03:30:14]OFD Sender: No OFD packet to send [03:30:19]OFD Sender: No OFD packet to send [03:30:24]OFD Sender: No OFD packet to send [03:30:29]OFD Sender: No OFD packet to send [03:30:34]OFD Sender: No OFD packet to send [03:30:39]OFD Sender: No OFD packet to send [03:30:44]OFD Sender: No OFD packet to send [03:30:49]OFD Sender: No OFD packet to send [03:30:54]OFD Sender: No OFD packet to send [03:30:59]OFD Sender: No OFD packet to send [03:31:04]OFD Sender: No OFD packet to send [03:31:09]OFD Sender: No OFD packet to send [03:31:14]OFD Sender: No OFD packet to send [03:31:19]OFD Sender: No OFD packet to send [03:31:24]OFD Sender: No OFD packet to send [03:31:29]OFD Sender: No OFD packet to send [03:31:34]OFD Sender: No OFD packet to send [03:31:39]OFD Sender: No OFD packet to send [03:31:44]OFD Sender: No OFD packet to send [03:31:49]OFD Sender: No OFD packet to send [03:31:54]OFD Sender: No OFD packet to send [03:31:59]OFD Sender: No OFD packet to send [03:32:04]OFD Sender: No OFD packet to send [03:32:09]OFD Sender: No OFD packet to send [03:32:14]OFD Sender: No OFD packet to send [03:32:19]OFD Sender: No OFD packet to send [03:32:24]OFD Sender: No OFD packet to send [03:32:29]OFD Sender: No OFD packet to send [03:32:34]OFD Sender: No OFD packet to send [03:32:39]OFD Sender: No OFD packet to send [03:32:44]OFD Sender: No OFD packet to send [03:32:49]OFD Sender: No OFD packet to send [03:32:54]OFD Sender: No OFD packet to send [03:32:59]OFD Sender: No OFD packet to send [03:33:04]OFD Sender: No OFD packet to send [03:33:09]OFD Sender: No OFD packet to send [03:33:14]OFD Sender: No OFD packet to send [03:33:19]OFD Sender: No OFD packet to send [03:33:24]OFD Sender: No OFD packet to send [03:33:29]OFD Sender: No OFD packet to send [03:33:34]OFD Sender: No OFD packet to send [03:33:39]OFD Sender: No OFD packet to send [03:33:44]OFD Sender: No OFD packet to send [03:33:49]OFD Sender: No OFD packet to send [03:33:54]OFD Sender: No OFD packet to send [03:33:59]OFD Sender: No OFD packet to send [03:34:04]OFD Sender: No OFD packet to send [03:34:09]OFD Sender: No OFD packet to send [03:34:14]OFD Sender: No OFD packet to send [03:34:19]OFD Sender: No OFD packet to send [03:34:24]OFD Sender: No OFD packet to send [03:34:29]OFD Sender: No OFD packet to send [03:34:34]OFD Sender: No OFD packet to send [03:34:39]OFD Sender: No OFD packet to send [03:34:44]OFD Sender: No OFD packet to send [03:34:49]OFD Sender: No OFD packet to send [03:34:54]OFD Sender: No OFD packet to send [03:34:59]OFD Sender: No OFD packet to send [03:35:04]OFD Sender: No OFD packet to send [03:35:09]OFD Sender: No OFD packet to send [03:35:14]OFD Sender: No OFD packet to send [03:35:19]OFD Sender: No OFD packet to send [03:35:24]OFD Sender: No OFD packet to send [03:35:29]OFD Sender: No OFD packet to send [03:35:34]OFD Sender: No OFD packet to send [03:35:39]OFD Sender: No OFD packet to send [03:35:44]OFD Sender: No OFD packet to send [03:35:49]OFD Sender: No OFD packet to send [03:35:54]OFD Sender: No OFD packet to send [03:35:59]OFD Sender: No OFD packet to send [03:36:04]OFD Sender: No OFD packet to send [03:36:09]OFD Sender: No OFD packet to send [03:36:14]OFD Sender: No OFD packet to send [03:36:19]OFD Sender: No OFD packet to send [03:36:24]OFD Sender: No OFD packet to send [03:36:29]OFD Sender: No OFD packet to send [03:36:34]OFD Sender: No OFD packet to send [03:36:39]OFD Sender: No OFD packet to send [03:36:44]OFD Sender: No OFD packet to send [03:36:49]OFD Sender: No OFD packet to send [03:36:59]OFD Sender: No OFD packet to send [03:37:04]OFD Sender: No OFD packet to send [03:37:09]OFD Sender: No OFD packet to send [03:37:14]OFD Sender: No OFD packet to send [03:37:19]OFD Sender: No OFD packet to send [03:37:24]OFD Sender: No OFD packet to send [03:37:29]OFD Sender: No OFD packet to send [03:37:34]OFD Sender: No OFD packet to send [03:37:39]OFD Sender: No OFD packet to send [03:37:44]OFD Sender: No OFD packet to send [03:37:49]OFD Sender: No OFD packet to send [03:37:51]recv_with_timeout no data received [03:37:54]OFD Sender: No OFD packet to send [03:37:59]OFD Sender: No OFD packet to send [03:38:04]OFD Sender: No OFD packet to send [03:38:09]OFD Sender: No OFD packet to send [03:38:14]OFD Sender: No OFD packet to send [03:38:19]OFD Sender: No OFD packet to send [03:38:24]OFD Sender: No OFD packet to send [03:38:29]OFD Sender: No OFD packet to send [03:38:34]OFD Sender: No OFD packet to send [03:38:39]OFD Sender: No OFD packet to send [03:38:44]OFD Sender: No OFD packet to send [03:38:49]OFD Sender: No OFD packet to send [03:38:54]OFD Sender: No OFD packet to send [03:38:59]OFD Sender: No OFD packet to send [03:39:04]OFD Sender: No OFD packet to send [03:39:09]OFD Sender: No OFD packet to send [03:39:14]OFD Sender: No OFD packet to send [03:39:19]OFD Sender: No OFD packet to send [03:39:24]OFD Sender: No OFD packet to send [03:39:29]OFD Sender: No OFD packet to send [03:39:35]OFD Sender: No OFD packet to send [03:39:40]OFD Sender: No OFD packet to send [03:39:45]OFD Sender: No OFD packet to send [03:39:50]OFD Sender: No OFD packet to send [03:39:55]OFD Sender: No OFD packet to send [03:40:00]OFD Sender: No OFD packet to send [03:40:05]OFD Sender: No OFD packet to send [03:40:10]OFD Sender: No OFD packet to send [03:40:15]OFD Sender: No OFD packet to send [03:40:20]OFD Sender: No OFD packet to send [03:40:25]OFD Sender: No OFD packet to send [03:40:30]OFD Sender: No OFD packet to send [03:40:35]OFD Sender: No OFD packet to send [03:40:40]OFD Sender: No OFD packet to send [03:40:45]OFD Sender: No OFD packet to send [03:40:50]OFD Sender: No OFD packet to send [03:40:55]OFD Sender: No OFD packet to send [03:41:00]OFD Sender: No OFD packet to send [03:41:05]OFD Sender: No OFD packet to send [03:41:10]OFD Sender: No OFD packet to send [03:41:15]OFD Sender: No OFD packet to send [03:41:20]OFD Sender: No OFD packet to send [03:41:30]OFD Sender: No OFD packet to send [03:41:35]OFD Sender: No OFD packet to send [03:41:40]OFD Sender: No OFD packet to send [03:41:45]OFD Sender: No OFD packet to send [03:41:50]OFD Sender: No OFD packet to send [03:41:55]OFD Sender: No OFD packet to send [03:42:00]OFD Sender: No OFD packet to send [03:42:05]OFD Sender: No OFD packet to send [03:42:09]recv_with_timeout no data received [03:42:10]OFD Sender: No OFD packet to send [03:42:15]OFD Sender: No OFD packet to send [03:42:20]OFD Sender: No OFD packet to send [03:42:25]OFD Sender: No OFD packet to send [03:42:30]OFD Sender: No OFD packet to send [03:42:35]OFD Sender: No OFD packet to send [03:42:40]OFD Sender: No OFD packet to send [03:42:45]OFD Sender: No OFD packet to send [03:42:50]OFD Sender: No OFD packet to send [03:42:55]OFD Sender: No OFD packet to send [03:43:00]OFD Sender: No OFD packet to send [03:43:05]OFD Sender: No OFD packet to send [03:43:10]OFD Sender: No OFD packet to send [03:43:15]OFD Sender: No OFD packet to send [03:43:20]OFD Sender: No OFD packet to send [03:43:25]OFD Sender: No OFD packet to send [03:43:30]OFD Sender: No OFD packet to send [03:43:32]recv_with_timeout no data received [03:43:35]OFD Sender: No OFD packet to send [03:43:40]OFD Sender: No OFD packet to send [03:43:45]OFD Sender: No OFD packet to send [03:43:50]OFD Sender: No OFD packet to send [03:43:55]OFD Sender: No OFD packet to send [03:44:00]OFD Sender: No OFD packet to send [03:44:05]OFD Sender: No OFD packet to send [03:44:10]OFD Sender: No OFD packet to send [03:44:11]recv_with_timeout no data received [03:44:15]OFD Sender: No OFD packet to send [03:44:20]OFD Sender: No OFD packet to send [03:44:25]OFD Sender: No OFD packet to send [03:44:30]OFD Sender: No OFD packet to send [03:44:35]OFD Sender: No OFD packet to send [03:44:40]OFD Sender: No OFD packet to send [03:44:45]OFD Sender: No OFD packet to send [03:44:50]OFD Sender: No OFD packet to send [03:44:55]OFD Sender: No OFD packet to send [03:45:00]OFD Sender: No OFD packet to send [03:45:05]OFD Sender: No OFD packet to send [03:45:10]OFD Sender: No OFD packet to send [03:45:15]OFD Sender: No OFD packet to send [03:45:20]OFD Sender: No OFD packet to send [03:45:25]OFD Sender: No OFD packet to send [03:45:30]OFD Sender: No OFD packet to send [03:45:35]OFD Sender: No OFD packet to send [03:45:40]OFD Sender: No OFD packet to send [03:45:45]OFD Sender: No OFD packet to send [03:45:50]OFD Sender: No OFD packet to send [03:45:55]OFD Sender: No OFD packet to send [03:46:00]OFD Sender: No OFD packet to send [03:46:05]OFD Sender: No OFD packet to send [03:46:10]OFD Sender: No OFD packet to send [03:46:15]OFD Sender: No OFD packet to send [03:46:20]OFD Sender: No OFD packet to send [03:46:25]OFD Sender: No OFD packet to send [03:46:30]OFD Sender: No OFD packet to send [03:46:35]OFD Sender: No OFD packet to send [03:46:40]OFD Sender: No OFD packet to send [03:46:45]OFD Sender: No OFD packet to send [03:46:50]OFD Sender: No OFD packet to send [03:46:55]OFD Sender: No OFD packet to send [03:47:00]OFD Sender: No OFD packet to send [03:47:05]OFD Sender: No OFD packet to send [03:47:10]OFD Sender: No OFD packet to send [03:47:15]OFD Sender: No OFD packet to send [03:47:20]OFD Sender: No OFD packet to send [03:47:25]OFD Sender: No OFD packet to send [03:47:30]OFD Sender: No OFD packet to send [03:47:35]OFD Sender: No OFD packet to send [03:47:40]OFD Sender: No OFD packet to send [03:47:45]OFD Sender: No OFD packet to send [03:47:50]OFD Sender: No OFD packet to send [03:47:55]OFD Sender: No OFD packet to send [03:48:00]OFD Sender: No OFD packet to send [03:48:05]OFD Sender: No OFD packet to send [03:48:10]OFD Sender: No OFD packet to send [03:48:15]OFD Sender: No OFD packet to send [03:48:20]OFD Sender: No OFD packet to send [03:48:25]OFD Sender: No OFD packet to send [03:48:30]OFD Sender: No OFD packet to send [03:48:35]OFD Sender: No OFD packet to send [03:48:40]OFD Sender: No OFD packet to send [03:48:45]OFD Sender: No OFD packet to send [03:48:50]OFD Sender: No OFD packet to send [03:48:55]OFD Sender: No OFD packet to send [03:49:00]OFD Sender: No OFD packet to send [03:49:05]OFD Sender: No OFD packet to send [03:49:10]OFD Sender: No OFD packet to send [03:49:15]OFD Sender: No OFD packet to send [03:49:20]OFD Sender: No OFD packet to send [03:49:25]OFD Sender: No OFD packet to send [03:49:30]OFD Sender: No OFD packet to send [03:49:35]OFD Sender: No OFD packet to send [03:49:40]OFD Sender: No OFD packet to send [03:49:45]OFD Sender: No OFD packet to send [03:49:51]OFD Sender: No OFD packet to send [03:49:56]OFD Sender: No OFD packet to send [03:50:01]OFD Sender: No OFD packet to send [03:50:06]OFD Sender: No OFD packet to send [03:50:11]OFD Sender: No OFD packet to send [03:50:16]OFD Sender: No OFD packet to send [03:50:21]OFD Sender: No OFD packet to send [03:50:26]OFD Sender: No OFD packet to send [03:50:31]OFD Sender: No OFD packet to send [03:50:36]OFD Sender: No OFD packet to send [03:50:41]OFD Sender: No OFD packet to send [03:50:56]OFD Sender: No OFD packet to send [03:51:01]OFD Sender: No OFD packet to send [03:51:06]OFD Sender: No OFD packet to send [03:51:11]OFD Sender: No OFD packet to send [03:51:16]OFD Sender: No OFD packet to send [03:51:21]OFD Sender: No OFD packet to send [03:51:26]OFD Sender: No OFD packet to send [03:51:28]recv_with_timeout no data received [03:51:31]OFD Sender: No OFD packet to send [03:51:36]OFD Sender: No OFD packet to send [03:51:41]OFD Sender: No OFD packet to send [03:51:46]OFD Sender: No OFD packet to send [03:51:51]OFD Sender: No OFD packet to send [03:51:56]OFD Sender: No OFD packet to send [03:52:01]OFD Sender: No OFD packet to send [03:52:06]OFD Sender: No OFD packet to send [03:52:11]OFD Sender: No OFD packet to send [03:52:16]OFD Sender: No OFD packet to send [03:52:21]OFD Sender: No OFD packet to send [03:52:25]recv_with_timeout no data received [03:52:26]OFD Sender: No OFD packet to send [03:52:31]OFD Sender: No OFD packet to send [03:52:36]OFD Sender: No OFD packet to send [03:52:41]OFD Sender: No OFD packet to send [03:52:46]OFD Sender: No OFD packet to send [03:52:51]OFD Sender: No OFD packet to send [03:52:56]OFD Sender: No OFD packet to send [03:53:01]OFD Sender: No OFD packet to send [03:53:06]OFD Sender: No OFD packet to send [03:53:08]recv_with_timeout no data received [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:33]recv_with_timeout no data received [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:32]recv_with_timeout no data received [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]recv_with_timeout no data received [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: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:13]recv_with_timeout no data received [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:16]recv_with_timeout no data received [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:43]recv_with_timeout no data received [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:07]OFD Sender: No OFD packet to send [04:00:12]OFD Sender: No OFD packet to send [04:00:17]OFD Sender: No OFD packet to send [04:00:22]OFD Sender: No OFD packet to send [04:00:27]OFD Sender: No OFD packet to send [04:00:32]OFD Sender: No OFD packet to send [04:00:37]OFD Sender: No OFD packet to send [04:00:37]recv_with_timeout no data received [04:00:42]OFD Sender: No OFD packet to send [04:00:47]OFD Sender: No OFD packet to send [04:00:52]OFD Sender: No OFD packet to send [04:00:57]OFD Sender: No OFD packet to send [04:01:02]OFD Sender: No OFD packet to send [04:01:07]OFD Sender: No OFD packet to send [04:01:12]OFD Sender: No OFD packet to send [04:01:17]OFD Sender: No OFD packet to send [04:01:22]OFD Sender: No OFD packet to send [04:01:27]OFD Sender: No OFD packet to send [04:01:32]OFD Sender: No OFD packet to send [04:01:37]OFD Sender: No OFD packet to send [04:01:42]OFD Sender: No OFD packet to send [04:01:47]OFD Sender: No OFD packet to send [04:01:47]recv_with_timeout no data received [04:01:52]OFD Sender: No OFD packet to send [04:01:57]OFD Sender: No OFD packet to send [04:02:02]OFD Sender: No OFD packet to send [04:02:07]OFD Sender: No OFD packet to send [04:02:12]OFD Sender: No OFD packet to send [04:02:17]OFD Sender: No OFD packet to send [04:02:22]OFD Sender: No OFD packet to send [04:02:27]OFD Sender: No OFD packet to send [04:02:37]OFD Sender: No OFD packet to send [04:02:42]OFD Sender: No OFD packet to send [04:02:47]OFD Sender: No OFD packet to send [04:02:52]OFD Sender: No OFD packet to send [04:02:57]OFD Sender: No OFD packet to send [04:03:02]OFD Sender: No OFD packet to send [04:03:07]OFD Sender: No OFD packet to send [04:03:12]OFD Sender: No OFD packet to send [04:03:17]OFD Sender: No OFD packet to send [04:03:22]OFD Sender: No OFD packet to send [04:03:27]OFD Sender: No OFD packet to send [04:03:30]recv_with_timeout no data received [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:49]recv_with_timeout no data received [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:04]recv_with_timeout no data received [04:07:07]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:29]recv_with_timeout no data received [04:07:32]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:26]recv_with_timeout no data received [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:09]recv_with_timeout no data received [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]recv_with_timeout no data received [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:49]recv_with_timeout no data received [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:23]OFD Sender: No OFD packet to send [04:10:28]OFD Sender: No OFD packet to send [04:10:33]OFD Sender: No OFD packet to send [04:10:38]OFD Sender: No OFD packet to send [04:10:43]OFD Sender: No OFD packet to send [04:10:48]OFD Sender: No OFD packet to send [04:10:52]recv_with_timeout no data received [04:10:53]OFD Sender: No OFD packet to send [04:10:58]OFD Sender: No OFD packet to send [04:11:03]OFD Sender: No OFD packet to send [04:11:08]OFD Sender: No OFD packet to send [04:11:13]recv_with_timeout no data received [04:11:13]OFD Sender: No OFD packet to send [04:11:18]OFD Sender: No OFD packet to send [04:11:23]OFD Sender: No OFD packet to send [04:11:28]OFD Sender: No OFD packet to send [04:11:33]OFD Sender: No OFD packet to send [04:11:38]OFD Sender: No OFD packet to send [04:11:43]OFD Sender: No OFD packet to send [04:11:48]OFD Sender: No OFD packet to send [04:11:48]recv_with_timeout no data received [04:11:53]OFD Sender: No OFD packet to send [04:11:58]OFD Sender: No OFD packet to send [04:12:03]OFD Sender: No OFD packet to send [04:12:08]OFD Sender: No OFD packet to send [04:12:13]OFD Sender: No OFD packet to send [04:12:18]OFD Sender: No OFD packet to send [04:12:23]OFD Sender: No OFD packet to send [04:12:28]OFD Sender: No OFD packet to send [04:12:28]recv_with_timeout no data received [04:12:33]OFD Sender: No OFD packet to send [04:12:38]OFD Sender: No OFD packet to send [04:12:43]OFD Sender: No OFD packet to send [04:12:48]OFD Sender: No OFD packet to send [04:12:53]OFD Sender: No OFD packet to send [04:12:58]OFD Sender: No OFD packet to send [04:13:03]OFD Sender: No OFD packet to send [04:13:08]OFD Sender: No OFD packet to send [04:13:13]OFD Sender: No OFD packet to send [04:13:25]wFMCommunicate OK [04:13:25]wFMCommunicate request_size=13 [04:13:25]MH_SAM_APDU [04:13:25]CAPDU: 80 15 02 00 08 F4 03 04 00 E6 8E 10 67 [04:13:25]Write to MH i2c: E2 10 00 B3 06 80 15 02 00 08 00 F4 03 04 00 E6 8E 10 67 00 00 2F [04:13:25]Write i2c OK [04:13:25]MH_I2C_Read... [04:13:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [04:13:25]Read from MH i2c: E2 [04:13:25]MH_I2C_Read... [04:13:25]Read from MH i2c: E2 03 00 [04:13:25]MH_I2C_Read... [04:13:25]Read from MH i2c: E2 03 00 B3 06 00 90 00 2D [04:13:25]RAPDU: 90 00 [04:13:25]wFMCommunicate OK [04:13:25]wFMCommunicate request_size=25 [04:13:25]MH_SAM_APDU [04:13:25]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 [04:13:25]Write to MH i2c: E2 1C 00 B4 06 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 00 00 9B [04:13:25]Write i2c OK [04:13:25]MH_I2C_Read... [04:13:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [04:13:25]Read from MH i2c: E2 [04:13:25]MH_I2C_Read... [04:13:25]Read from MH i2c: E2 03 00 [04:13:25]MH_I2C_Read... [04:13:25]Read from MH i2c: E2 03 00 B4 06 00 90 00 2E [04:13:25]RAPDU: 90 00 [04:13:25]wFMCommunicate OK [04:13:25]wFMCommunicate request_size=4 [04:13:25]MH_SAM_APDU [04:13:25]CAPDU: 80 15 03 00 [04:13:25]Write to MH i2c: E2 08 00 B5 06 80 15 03 00 00 00 00 00 3C [04:13:25]Write i2c OK [04:13:25]MH_I2C_Read... [04:13:26]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [04:13:26]Read from MH i2c: E2 [04:13:26]MH_I2C_Read... [04:13:26]Read from MH i2c: E2 40 00 [04:13:26]MH_I2C_Read... [04:13:26]Read from MH i2c: E2 40 00 B5 06 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A0 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 06 00 00 00 35 04 06 00 4D 4D 71 FC 8F 1A 90 00 D7 [04:13:26]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A0 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 06 00 00 00 35 04 06 00 4D 4D 71 FC 8F 1A 90 00 [04:13:26]wFMCommunicate OK [04:13:26]SAM_PROTO_ProcessDocument answer len = 59 [04:13:26]SAM_PROTO_ProcessDocument done [04:13:26]SetTLVBufToDocument [04:13:26]Processing tag 1209 (04B9) [04:13:26]Malloc new data [04:13:26]Processing tag 1041 (0411) [04:13:26]Processing tag 1040 (0410) [04:13:26]Malloc new data [04:13:26]Processing tag 1038 (040E) [04:13:26]Malloc new data [04:13:26]Processing tag 1042 (0412) [04:13:26]Malloc new data [04:13:26]Processing tag 1077 (0435) [04:13:26]Malloc new data [04:13:26]SetTLVBufToDocument err=0 [04:13:26]KKMLoadAndSignReceiptData store KKM data [04:13:26]KKMLoadAndSignReceiptData err=0 [04:13:26]wFMCommunicate request_size=4 [04:13:26]MH_SAM_APDU [04:13:26]CAPDU: 80 11 00 00 [04:13:26]Write to MH i2c: E2 08 00 B6 06 80 11 00 00 00 00 00 00 36 [04:13:26]Write i2c OK [04:13:26]MH_I2C_Read... [04:13:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:13:26]Read from MH i2c: E2 [04:13:26]MH_I2C_Read... [04:13:26]Read from MH i2c: E2 17 00 [04:13:26]MH_I2C_Read... [04:13:26]Read from MH i2c: E2 17 00 B6 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 88 [04:13:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [04:13:26]wFMCommunicate OK [04:13:26]Счет N : (1)918586 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 11 Товар: 2710124130 Аи-92-К-4 1.800 * 66.90 = 120.42 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 120.00 Внесено: 120.00 СДАЧА: 0.00 НСП 1% : 1.07 НДС 12% : 12.79 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 6 17.10.2024 04:13 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82080 ФПД: 84995020197658 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T041326&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82080&fm=84995020197658&tin=02508201610067®Number=0000000000091680&sum=12000 [04:13:26]StoreToDocumentArchive [04:13:26]shift 525 fd 82080 [04:13:26]save to /storage/0525/doc_00082080 [04:13:26]save last doc name /storage/0525/doc_00082080 to /storage/kkm_last_doc_name [04:13:26]save OK [04:13:26]Clear old archive folders... [04:13:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:13:26]tlvbuf is 00D103A0 [04:13:26]SAM_PROTO_ClearQueue [04:13:26]wFMCommunicate request_size=4 [04:13:26]MH_SAM_APDU [04:13:26]CAPDU: 80 09 00 00 [04:13:26]Write to MH i2c: E2 08 00 B7 06 80 09 00 00 00 00 00 00 2F [04:13:26]Write i2c OK [04:13:26]MH_I2C_Read... [04:13:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:13:26]Read from MH i2c: E2 [04:13:26]MH_I2C_Read... [04:13:26]Read from MH i2c: E2 03 00 [04:13:26]MH_I2C_Read... [04:13:26]Read from MH i2c: E2 03 00 B7 06 00 90 00 31 [04:13:26]RAPDU: 90 00 [04:13:26]wFMCommunicate OK [04:13:26]SAM_PROTO_ClearQueue done [04:13:26]KKMCreateOFDPacket [04:13:26]OFDProtocolAddRootSTLVToBuf [04:13:26]FM_MakeSignedData [04:13:26]FM_MakeSignedData [04:13:26]SAM_PROTO_SignData [04:13:26]wFMCommunicate request_size=4 [04:13:26]MH_SAM_APDU [04:13:26]CAPDU: 80 0D 01 02 [04:13:26]Write to MH i2c: E2 08 00 B8 06 80 0D 01 02 00 00 00 00 37 [04:13:26]Write i2c OK [04:13:26]MH_I2C_Read... [04:13:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:13:26]Read from MH i2c: E2 [04:13:26]MH_I2C_Read... [04:13:26]Read from MH i2c: E2 03 00 [04:13:26]MH_I2C_Read... [04:13:26]Read from MH i2c: E2 03 00 B8 06 00 90 00 32 [04:13:26]RAPDU: 90 00 [04:13:26]wFMCommunicate OK [04:13:26]wFMCommunicate request_size=255 [04:13:26]MH_SAM_APDU [04:13:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 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 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 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 06 00 00 00 F4 03 04 00 E6 8E 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A0 40 01 00 35 04 06 00 4D [04:13:26]Write to MH i2c: E2 02 01 B9 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 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 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 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 06 00 00 00 F4 03 04 00 E6 8E 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A0 40 01 00 35 04 06 00 4D 00 00 7A [04:13:26]Write i2c OK [04:13:26]MH_I2C_Read... [04:13:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:13:26]Read from MH i2c: E2 [04:13:26]MH_I2C_Read... [04:13:26]Read from MH i2c: E2 03 00 [04:13:26]MH_I2C_Read... [04:13:26]Read from MH i2c: E2 03 00 B9 06 00 90 00 33 [04:13:26]RAPDU: 90 00 [04:13:26]wFMCommunicate OK [04:13:26]wFMCommunicate request_size=10 [04:13:26]MH_SAM_APDU [04:13:26]CAPDU: 80 0D 02 02 05 4D 71 FC 8F 1A [04:13:26]Write to MH i2c: E2 0D 00 BA 06 80 0D 02 02 05 00 4D 71 FC 8F 1A 00 00 A7 [04:13:26]Write i2c OK [04:13:26]MH_I2C_Read... [04:13:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:13:26]Read from MH i2c: E2 [04:13:26]MH_I2C_Read... [04:13:26]Read from MH i2c: E2 03 00 [04:13:26]MH_I2C_Read... [04:13:26]Read from MH i2c: E2 03 00 BA 06 00 90 00 34 [04:13:26]RAPDU: 90 00 [04:13:26]wFMCommunicate OK [04:13:26]wFMCommunicate request_size=4 [04:13:26]MH_SAM_APDU [04:13:26]CAPDU: 80 0D 03 02 [04:13:26]Write to MH i2c: E2 08 00 BB 06 80 0D 03 02 00 00 00 00 3C [04:13:26]Write i2c OK [04:13:26]MH_I2C_Read... [04:13:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:13:26]Read from MH i2c: E2 [04:13:26]MH_I2C_Read... [04:13:26]Read from MH i2c: E2 0B 00 [04:13:26]MH_I2C_Read... [04:13:26]Read from MH i2c: E2 0B 00 BB 06 00 31 4C BF D4 AF 5D 4F FF 90 00 A7 [04:13:26]RAPDU: 31 4C BF D4 AF 5D 4F FF 90 00 [04:13:26]wFMCommunicate OK [04:13:26]SAM_PROTO_SignData done [04:13:26]FM_MakeSignedData done [04:13:26]CreateOFDProtocolMessage [04:13:26]wFMCommunicate request_size=4 [04:13:26]MH_SAM_APDU [04:13:26]CAPDU: 80 11 00 00 [04:13:26]Write to MH i2c: E2 08 00 BC 06 80 11 00 00 00 00 00 00 3C [04:13:26]Write i2c OK [04:13:26]MH_I2C_Read... [04:13:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:13:26]Read from MH i2c: E2 [04:13:26]MH_I2C_Read... [04:13:26]Read from MH i2c: E2 17 00 [04:13:26]MH_I2C_Read... [04:13:26]Read from MH i2c: E2 17 00 BC 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 8E [04:13:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [04:13:26]wFMCommunicate OK [04:13:26]CreateOFDProtocolMessage done [04:13:26]OFDSenderStorePacket 82080 [04:13:26]StoreOFDPacket docnum=82080 [04:13:18]OFD Sender: No OFD packet to send [04:13:22]recv_with_timeout no data received [04:13:23]OFD Sender: No OFD packet to send [04:13:24]accept exits with 7 [04:13:24]New connection [04:13:24]New thread 3067567460 created [04:13:24]Thread 3067424100 joined [04:13:24]Waiting for new connection... [04:13:24] Sock 7.Parse request [04:13:24]Sock 7.Check first char [04:13:24]Sock 7.First char is OK [04:13:24]request: POST /json_proto HTTP/1.0 [04:13:24]Method: POST [04:13:24]URL: /json_proto [04:13:24]Method is POST - this is cgi request [04:13:24]url: /json_proto [04:13:24]query_string will be loaded in cgi processing [04:13:24]execute_cgi json_proto POST (null) [04:13:24]execute_cgi path=json_proto method=POST [04:13:24]POST find Content-Length [04:13:24]Host: 172.17.44.67:8080 [04:13:24]Content-Length: 677 [04:13:24]Content-Type: application/json [04:13:24] [04:13:24]POST finish read [04:13:24]Found Content-Length = 677 [04:13:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 1.800, "sum" : 120.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 120.00, "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:13:24]execute_script... [04:13:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 1.800, "sum" : 120.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 120.00, "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:13:24]POST & json_proto [04:13:24]process_json_proto [04:13:24]json parsed OK: [04:13:24]protocol is kg_v1.0 [04:13:24]action value=close_receipt [04:13:24]process_action close_receipt [04:13:24]cmd_close_receipt [04:13:24]MH_GetDate [04:13:24]Write to MH i2c: F0 00 00 A9 06 9E [04:13:24]Write i2c OK [04:13:24]MH_I2C_Read... [04:13:24]Read from MH i2c: F0 [04:13:24]MH_I2C_Read... [04:13:24]Read from MH i2c: F0 09 00 [04:13:24]MH_I2C_Read... [04:13:24]Read from MH i2c: F0 09 00 A9 06 00 E6 8E 10 67 F1 C7 6B 64 19 [04:13:24]GetLastDocTimeStamp 1729135747 [04:13:24]current date 1729138406 [04:13:24]FM_GetShiftState [04:13:24]SAM_PROTO_GetShiftState [04:13:24]wFMCommunicate request_size=4 [04:13:24]MH_SAM_APDU [04:13:24]CAPDU: 80 13 01 00 [04:13:24]Write to MH i2c: E2 08 00 AA 06 80 13 01 00 00 00 00 00 2D [04:13:24]Write i2c OK [04:13:24]MH_I2C_Read... [04:13:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:13:25]Read from MH i2c: E2 [04:13:25]MH_I2C_Read... [04:13:25]Read from MH i2c: E2 0E 00 [04:13:25]MH_I2C_Read... [04:13:25]Read from MH i2c: E2 0E 00 AA 06 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 35 [04:13:25]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [04:13:25]wFMCommunicate OK [04:13:25]SAM_PROTO_GetShiftState done [04:13:25]FM_GetShiftState done [04:13:25]opened in 1729125927 [04:13:25]opened+sec_in_day 1729212327 [04:13:25]quantity*price = 12042 [04:13:25]sum+1 = 12043 [04:13:25]Check (price>sum+1) || (price+1 о реализуемом товаре [04:13:26]line ОКРУГЛЕНИЕ: -0.42 [04:13:26]line ИТОГО: 120.00 [04:13:26]line Внесено: 120.00 [04:13:26]line СДАЧА: 0.00 [04:13:26]line НСП 1% : 1.07 [04:13:26]line НДС 12% : 12.79 [04:13:26]line Наличными: 120.00 [04:13:26]line Безнал.: 0.00 [04:13:26]line Место: АЗС № 114 "Партнер Нефть" [04:13:26]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [04:13:26]line СНО: Общий режим [04:13:26]line Чек 6 17.10.2024 04:13 [04:13:26]line Смена: 525 ФФД: 1.0 [04:13:26]line ЗНМ: 0300000086 [04:13:26]line РНМ: 0000000000091680 [04:13:26]line Версия ККМ: 001 [04:13:26]line ФМ: 0000000000871843 [04:13:26]line ФД: 82080 [04:13:26]line ФПД: 84995020197658 [04:13:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T041326&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82080&fm=84995020197658&tin=02508201610067®Number=0000000000091680&sum=12000 [04:13:26]written 0, free lines is 4095 [04:13:26]OFD Sender: Processing packet 82080 [packets to send 254, broken 253] [04:13:26]ProducePacketName [04:13:26]name=ofd_packets/00082080 [04:13:26]OFD Sender: To server: pG, [04:13:26]CommunicateWithHost lk.salyk.kg:30040 [04:13:26]ConnectInit lk.salyk.kg [04:13:27]Write to MH i2c: 01 00 00 E8 06 EE [04:13:27]Write i2c OK [04:13:27]MH_I2C_Read... [04:13:27]Read from MH i2c: 01 [04:13:27]MH_I2C_Read... [04:13:27]Read from MH i2c: 01 07 00 [04:13:27]MH_I2C_Read... [04:13:27]Read from MH i2c: 01 07 00 E8 06 00 00 00 00 00 DA 0C DB [04:13:27]RasterBufferAndPrint [04:13:27]line [04:13:27]line [04:13:27]line [04:13:27]line [04:13:27]line [04:13:27]written 0, free lines is 3297 [04:13:27]MH_Cut [04:13:27]Write to MH i2c: D1 01 00 EF 06 01 C7 [04:13:27]Write i2c OK [04:13:27]MH_I2C_Read... [04:13:27]Read from MH i2c: D1 [04:13:27]MH_I2C_Read... [04:13:27]Read from MH i2c: D1 01 00 [04:13:27]MH_I2C_Read... [04:13:27]Read from MH i2c: D1 01 00 EF 06 00 C6 [04:13:27]Write to MH i2c: 01 00 00 F0 06 F6 [04:13:27]Write i2c OK [04:13:27]MH_I2C_Read... [04:13:27]*** Cut start [04:13:27]*** Partial cut [04:13:27]*** CUTSNS_PIN = 1 [04:13:28]*** CUTSNS_PIN = 0 [04:13:28]*** Brake cut motor [04:13:28]Read from MH i2c: 01 [04:13:28]MH_I2C_Read... [04:13:28]*** Stop cut motor [04:13:28]*** Cut end [04:13:28]Read from MH i2c: 01 07 00 [04:13:28]MH_I2C_Read... [04:13:28]Read from MH i2c: 01 07 00 F0 06 00 00 00 00 00 FF 0F 0B [04:13:28]process_action close_receipt done [04:13:28]requested_data is exist [04:13:28]produce_requested_data [04:13:28]requested_item fm.sn is exist - process it [04:13:28]wFMCommunicate request_size=4 [04:13:28]MH_SAM_APDU [04:13:28]CAPDU: 80 11 00 00 [04:13:28]Write to MH i2c: E2 08 00 F1 06 80 11 00 00 00 00 00 00 71 [04:13:28]Write i2c OK [04:13:28]MH_I2C_Read... [04:13:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:13:28]Read from MH i2c: E2 [04:13:28]MH_I2C_Read... [04:13:28]Read from MH i2c: E2 17 00 [04:13:28]MH_I2C_Read... [04:13:28]Read from MH i2c: E2 17 00 F1 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C3 [04:13:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [04:13:28]wFMCommunicate OK [04:13:28]requested_item fd.num is exist - process it [04:13:28]SAM_PROTO_GetFieldsCounters [04:13:28]wFMCommunicate request_size=4 [04:13:28]MH_SAM_APDU [04:13:28]CAPDU: 80 13 00 00 [04:13:28]Write to MH i2c: E2 08 00 F2 06 80 13 00 00 00 00 00 00 74 [04:13:28]Write i2c OK [04:13:28]MH_I2C_Read... [04:13:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:13:28]Read from MH i2c: E2 [04:13:28]MH_I2C_Read... [04:13:28]Read from MH i2c: E2 62 00 [04:13:28]MH_I2C_Read... [04:13:28]Read from MH i2c: E2 62 00 F2 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A0 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [04:13:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A0 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:13:28]wFMCommunicate OK [04:13:28]SAM_PROTO_GetFieldsCounters done [04:13:28]requested_item shift.num is exist - process it [04:13:28]requested_item shift.opened is exist - process it [04:13:28]req_shift_opened [04:13:28]FM_GetShiftState [04:13:28]SAM_PROTO_GetShiftState [04:13:28]wFMCommunicate request_size=4 [04:13:28]MH_SAM_APDU [04:13:28]CAPDU: 80 13 01 00 [04:13:28]Write to MH i2c: E2 08 00 F3 06 80 13 01 00 00 00 00 00 76 [04:13:28]Write i2c OK [04:13:28]MH_I2C_Read... [04:13:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:13:28]Read from MH i2c: E2 [04:13:28]MH_I2C_Read... [04:13:28]Read from MH i2c: E2 0E 00 [04:13:28]MH_I2C_Read... [04:13:28]Read from MH i2c: E2 0E 00 F3 06 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 7E [04:13:28]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [04:13:28]wFMCommunicate OK [04:13:28]SAM_PROTO_GetShiftState done [04:13:28]FM_GetShiftState done [04:13:28]req_shift_opened done [04:13:28]requested_item shift.open_date is exist - process it [04:13:28]req_shift_open_date [04:13:28]req_shift_open_date done [04:13:28]produce_requested_data done [04:13:28]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82080,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [04:13:28]process_action_free close_receipt [04:13:28]json_value_free [04:13:28]json_value_free done [04:13:28]process_json_proto returns [04:13:28]Send response to host [04:13:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82080,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [04:13:28]free response buf [04:13:28]execute_script done [04:13:28]execute_script returns [04:13:28]free content buf [04:13:28]Sock 7.Close socket [04:13:28]Sock 7.Thread stoped [04:13:31]ConnectInit Can't take IP for lk.salyk.kg [04:13:31]CommunicateWithHost connect error [04:13:31]CommunicateWithHost err = -1 [04:13:31]OFD Sender: Server communicate error [04:13:36]OFD Sender: Processing packet 82080 [packets to send 254, broken 253] [04:13:36]ProducePacketName [04:13:36]name=ofd_packets/00082080 [04:13:36]OFD Sender: To server: pG, [04:13:36]CommunicateWithHost lk.salyk.kg:30040 [04:13:36]ConnectInit lk.salyk.kg [04:13:39]recv_with_timeout no data received [04:13:40]Connected sock=7 [04:13:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 65 6B 07 01 F7 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 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 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 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 06 00 00 00 F4 03 04 00 E6 8E 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A0 40 01 00 35 04 06 00 4D 4D 71 FC 8F 1A 31 4C BF D4 AF 5D 4F FF [04:13:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 A8 33 47 00 97 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A0 40 01 00 F4 03 04 00 33 34 10 67 B6 04 01 00 00 02 DF F1 CA CA 75 02 93 [04:13:41]CommunicateWithHost err = 0 [04:13:41]CheckOFDResponse [04:13:41]1017 (14) - 77093643461234 [04:13:41]1041 (16) - 0000000000871843 [04:13:41]1040 (4) - 82080 [04:13:41]1012 (4) - 16.10.2024 21:46 [04:13:41]1206 (1) - 0 [04:13:41]OFD Sender: Remove packet 82080 [04:13:41]ProducePacketName [04:13:41]name=ofd_packets/00082080 [04:13:41]NVStorageDeleteData [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:54]recv_with_timeout no data received [04:13:57]OFD Sender: No OFD packet to send [04:14:02]OFD Sender: No OFD packet to send [04:14:06]recv_with_timeout no data received [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:13]OFD Sender: No OFD packet to send [04:19:18]OFD Sender: No OFD packet to send [04:19:23]OFD Sender: No OFD packet to send [04:19:28]OFD Sender: No OFD packet to send [04:19:33]OFD Sender: No OFD packet to send [04:19:38]OFD Sender: No OFD packet to send [04:19:43]OFD Sender: No OFD packet to send [04:19:48]OFD Sender: No OFD packet to send [04:19:53]OFD Sender: No OFD packet to send [04:19:58]OFD Sender: No OFD packet to send [04:20:03]OFD Sender: No OFD packet to send [04:20:08]OFD Sender: No OFD packet to send [04:20:13]OFD Sender: No OFD packet to send [04:20:18]OFD Sender: No OFD packet to send [04:20:23]OFD Sender: No OFD packet to send [04:20:28]OFD Sender: No OFD packet to send [04:20:33]OFD Sender: No OFD packet to send [04:20:38]OFD Sender: No OFD packet to send [04:20:43]OFD Sender: No OFD packet to send [04:20:48]OFD Sender: No OFD packet to send [04:20:53]OFD Sender: No OFD packet to send [04:20:58]OFD Sender: No OFD packet to send [04:21:03]OFD Sender: No OFD packet to send [04:21:08]OFD Sender: No OFD packet to send [04:21:13]OFD Sender: No OFD packet to send [04:21:18]OFD Sender: No OFD packet to send [04:21:23]OFD Sender: No OFD packet to send [04:21:28]OFD Sender: No OFD packet to send [04:21:33]OFD Sender: No OFD packet to send [04:21:38]OFD Sender: No OFD packet to send [04:21:43]OFD Sender: No OFD packet to send [04:21:48]OFD Sender: No OFD packet to send [04:21:53]OFD Sender: No OFD packet to send [04:21:58]OFD Sender: No OFD packet to send [04:22:03]OFD Sender: No OFD packet to send [04:22:08]OFD Sender: No OFD packet to send [04:22:13]OFD Sender: No OFD packet to send [04:22:18]OFD Sender: No OFD packet to send [04:22:23]OFD Sender: No OFD packet to send [04:22:28]OFD Sender: No OFD packet to send [04:22:33]OFD Sender: No OFD packet to send [04:22:38]OFD Sender: No OFD packet to send [04:22:43]OFD Sender: No OFD packet to send [04:22:48]OFD Sender: No OFD packet to send [04:22:53]OFD Sender: No OFD packet to send [04:22:58]OFD Sender: No OFD packet to send [04:23:03]OFD Sender: No OFD packet to send [04:23:08]OFD Sender: No OFD packet to send [04:23:11]recv_with_timeout no data received [04:23:13]OFD Sender: No OFD packet to send [04:23:18]OFD Sender: No OFD packet to send [04:23:23]OFD Sender: No OFD packet to send [04:23:28]OFD Sender: No OFD packet to send [04:23:33]OFD Sender: No OFD packet to send [04:23:38]OFD Sender: No OFD packet to send [04:23:43]OFD Sender: No OFD packet to send [04:23:48]OFD Sender: No OFD packet to send [04:23:53]OFD Sender: No OFD packet to send [04:23:58]OFD Sender: No OFD packet to send [04:24:03]OFD Sender: No OFD packet to send [04:24:08]OFD Sender: No OFD packet to send [04:24:13]OFD Sender: No OFD packet to send [04:24:18]OFD Sender: No OFD packet to send [04:24:19]recv_with_timeout no data received [04:24:23]OFD Sender: No OFD packet to send [04:24:28]OFD Sender: No OFD packet to send [04:24:33]OFD Sender: No OFD packet to send [04:24:38]OFD Sender: No OFD packet to send [04:24:43]OFD Sender: No OFD packet to send [04:24:48]OFD Sender: No OFD packet to send [04:24:53]OFD Sender: No OFD packet to send [04:24:58]OFD Sender: No OFD packet to send [04:25:03]OFD Sender: No OFD packet to send [04:25:08]OFD Sender: No OFD packet to send [04:25:13]OFD Sender: No OFD packet to send [04:25:18]OFD Sender: No OFD packet to send [04:25:23]OFD Sender: No OFD packet to send [04:25:28]OFD Sender: No OFD packet to send [04:25:33]OFD Sender: No OFD packet to send [04:25:38]OFD Sender: No OFD packet to send [04:25:43]OFD Sender: No OFD packet to send [04:25:48]OFD Sender: No OFD packet to send [04:25:53]OFD Sender: No OFD packet to send [04:25:58]OFD Sender: No OFD packet to send [04:26:03]OFD Sender: No OFD packet to send [04:26:08]OFD Sender: No OFD packet to send [04:26:13]OFD Sender: No OFD packet to send [04:26:18]OFD Sender: No OFD packet to send [04:26:23]OFD Sender: No OFD packet to send [04:26:28]OFD Sender: No OFD packet to send [04:26:33]OFD Sender: No OFD packet to send [04:26:37]recv_with_timeout no data received [04:26:38]OFD Sender: No OFD packet to send [04:26:43]OFD Sender: No OFD packet to send [04:26:48]OFD Sender: No OFD packet to send [04:26:53]OFD Sender: No OFD packet to send [04:26:58]OFD Sender: No OFD packet to send [04:26:58]recv_with_timeout no data received [04:27:03]OFD Sender: No OFD packet to send [04:27:08]OFD Sender: No OFD packet to send [04:27:13]OFD Sender: No OFD packet to send [04:27:18]OFD Sender: No OFD packet to send [04:27:23]OFD Sender: No OFD packet to send [04:27:28]OFD Sender: No OFD packet to send [04:27:33]OFD Sender: No OFD packet to send [04:27:38]OFD Sender: No OFD packet to send [04:27:43]OFD Sender: No OFD packet to send [04:27:48]OFD Sender: No OFD packet to send [04:27:53]OFD Sender: No OFD packet to send [04:27:58]OFD Sender: No OFD packet to send [04:28:03]OFD Sender: No OFD packet to send [04:28:08]OFD Sender: No OFD packet to send [04:28:13]OFD Sender: No OFD packet to send [04:28:18]OFD Sender: No OFD packet to send [04:28:23]OFD Sender: No OFD packet to send [04:28:28]OFD Sender: No OFD packet to send [04:28:33]OFD Sender: No OFD packet to send [04:28:38]OFD Sender: No OFD packet to send [04:28:43]OFD Sender: No OFD packet to send [04:28:48]OFD Sender: No OFD packet to send [04:28:53]OFD Sender: No OFD packet to send [04:28:58]OFD Sender: No OFD packet to send [04:29:03]OFD Sender: No OFD packet to send [04:29:08]OFD Sender: No OFD packet to send [04:29:13]OFD Sender: No OFD packet to send [04:29:18]OFD Sender: No OFD packet to send [04:29:23]OFD Sender: No OFD packet to send [04:29:28]OFD Sender: No OFD packet to send [04:29:34]OFD Sender: No OFD packet to send [04:29:39]OFD Sender: No OFD packet to send [04:29:44]OFD Sender: No OFD packet to send [04:29:49]OFD Sender: No OFD packet to send [04:29:54]OFD Sender: No OFD packet to send [04:29:59]OFD Sender: No OFD packet to send [04:30:04]OFD Sender: No OFD packet to send [04:30:09]OFD Sender: No OFD packet to send [04:30:14]OFD Sender: No OFD packet to send [04:30:19]OFD Sender: No OFD packet to send [04:30:24]OFD Sender: No OFD packet to send [04:30:29]OFD Sender: No OFD packet to send [04:30:34]OFD Sender: No OFD packet to send [04:30:39]OFD Sender: No OFD packet to send [04:30:44]OFD Sender: No OFD packet to send [04:30:49]OFD Sender: No OFD packet to send [04:30:54]OFD Sender: No OFD packet to send [04:30:59]OFD Sender: No OFD packet to send [04:31:04]OFD Sender: No OFD packet to send [04:31:09]OFD Sender: No OFD packet to send [04:31:14]OFD Sender: No OFD packet to send [04:31:19]OFD Sender: No OFD packet to send [04:31:24]OFD Sender: No OFD packet to send [04:31:29]OFD Sender: No OFD packet to send [04:31:34]OFD Sender: No OFD packet to send [04:31:39]OFD Sender: No OFD packet to send [04:31:44]OFD Sender: No OFD packet to send [04:31:49]OFD Sender: No OFD packet to send [04:31:54]OFD Sender: No OFD packet to send [04:31:59]OFD Sender: No OFD packet to send [04:32:04]OFD Sender: No OFD packet to send [04:32:09]OFD Sender: No OFD packet to send [04:32:14]OFD Sender: No OFD packet to send [04:32:19]OFD Sender: No OFD packet to send [04:32:24]OFD Sender: No OFD packet to send [04:32:29]OFD Sender: No OFD packet to send [04:32:34]OFD Sender: No OFD packet to send [04:32:39]OFD Sender: No OFD packet to send [04:32:44]OFD Sender: No OFD packet to send [04:32:49]OFD Sender: No OFD packet to send [04:32:54]OFD Sender: No OFD packet to send [04:32:59]OFD Sender: No OFD packet to send [04:33:04]OFD Sender: No OFD packet to send [04:33:09]OFD Sender: No OFD packet to send [04:33:14]OFD Sender: No OFD packet to send [04:33:19]OFD Sender: No OFD packet to send [04:33: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:54]OFD Sender: No OFD packet to send [04:38:59]OFD Sender: No OFD packet to send [04:39:04]OFD Sender: No OFD packet to send [04:39:09]OFD Sender: No OFD packet to send [04:39:14]OFD Sender: No OFD packet to send [04:39:19]OFD Sender: No OFD packet to send [04:39:24]OFD Sender: No OFD packet to send [04:39:29]OFD Sender: No OFD packet to send [04:39:34]OFD Sender: No OFD packet to send [04:39:39]OFD Sender: No OFD packet to send [04:39:44]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]recv_with_timeout no data received [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:06]OFD Sender: No OFD packet to send [04:50:11]OFD Sender: No OFD packet to send [04:50:16]OFD Sender: No OFD packet to send [04:50:21]OFD Sender: No OFD packet to send [04:50:26]OFD Sender: No OFD packet to send [04:50:31]OFD Sender: No OFD packet to send [04:50:36]OFD Sender: No OFD packet to send [04:50:41]OFD Sender: No OFD packet to send [04:50:46]OFD Sender: No OFD packet to send [04:50:51]OFD Sender: No OFD packet to send [04:50:56]OFD Sender: No OFD packet to send [04:51:01]OFD Sender: No OFD packet to send [04:51:06]OFD Sender: No OFD packet to send [04:51:11]OFD Sender: No OFD packet to send [04:51:16]OFD Sender: No OFD packet to send [04:51:21]OFD Sender: No OFD packet to send [04:51:26]OFD Sender: No OFD packet to send [04:51:31]OFD Sender: No OFD packet to send [04:51:36]OFD Sender: No OFD packet to send [04:51:41]OFD Sender: No OFD packet to send [04:51:46]OFD Sender: No OFD packet to send [04:51:51]OFD Sender: No OFD packet to send [04:51:56]OFD Sender: No OFD packet to send [04:52:01]OFD Sender: No OFD packet to send [04:52:06]OFD Sender: No OFD packet to send [04:52:11]OFD Sender: No OFD packet to send [04:52:16]OFD Sender: No OFD packet to send [04:52:21]OFD Sender: No OFD packet to send [04:52:26]OFD Sender: No OFD packet to send [04:52:31]OFD Sender: No OFD packet to send [04:52:36]OFD Sender: No OFD packet to send [04:52:41]OFD Sender: No OFD packet to send [04:52:46]OFD Sender: No OFD packet to send [04:52:51]OFD Sender: No OFD packet to send [04:52:56]OFD Sender: No OFD packet to send [04:53:01]OFD Sender: No OFD packet to send [04:53:06]OFD Sender: No OFD packet to send [04:53:11]OFD Sender: No OFD packet to send [04:53:16]OFD Sender: No OFD packet to send [04:53:21]OFD Sender: No OFD packet to send [04:53:26]OFD Sender: No OFD packet to send [04:53:31]OFD Sender: No OFD packet to send [04:53:36]OFD Sender: No OFD packet to send [04:53:41]OFD Sender: No OFD packet to send [04:53:46]OFD Sender: No OFD packet to send [04:53:51]OFD Sender: No OFD packet to send [04:53:56]OFD Sender: No OFD packet to send [04:54:01]OFD Sender: No OFD packet to send [04:54:06]OFD Sender: No OFD packet to send [04:54:11]OFD Sender: No OFD packet to send [04:54:16]OFD Sender: No OFD packet to send [04:54:21]OFD Sender: No OFD packet to send [04:54:26]OFD Sender: No OFD packet to send [04:54:31]OFD Sender: No OFD packet to send [04:54:36]OFD Sender: No OFD packet to send [04:54:41]OFD Sender: No OFD packet to send [04:54:46]OFD Sender: No OFD packet to send [04:54:51]OFD Sender: No OFD packet to send [04:54:56]OFD Sender: No OFD packet to send [04:55:01]OFD Sender: No OFD packet to send [04:55:06]OFD Sender: No OFD packet to send [04:55:11]OFD Sender: No OFD packet to send [04:55:16]OFD Sender: No OFD packet to send [04:55:21]OFD Sender: No OFD packet to send [04:55:26]OFD Sender: No OFD packet to send [04:55:31]OFD Sender: No OFD packet to send [04:55:36]OFD Sender: No OFD packet to send [04:55:41]OFD Sender: No OFD packet to send [04:55:46]OFD Sender: No OFD packet to send [04:55:51]OFD Sender: No OFD packet to send [04:55:56]OFD Sender: No OFD packet to send [04:56:01]OFD Sender: No OFD packet to send [04:56:06]OFD Sender: No OFD packet to send [04:56:11]OFD Sender: No OFD packet to send [04:56:16]OFD Sender: No OFD packet to send [04:56:21]OFD Sender: No OFD packet to send [04:56:26]OFD Sender: No OFD packet to send [04:56:31]OFD Sender: No OFD packet to send [04:56:36]OFD Sender: No OFD packet to send [04:56:41]OFD Sender: No OFD packet to send [04:56:46]OFD Sender: No OFD packet to send [04:56:51]OFD Sender: No OFD packet to send [04:56:56]OFD Sender: No OFD packet to send [04:57:01]OFD Sender: No OFD packet to send [04:57:06]OFD Sender: No OFD packet to send [04:57:11]OFD Sender: No OFD packet to send [04:57:16]OFD Sender: No OFD packet to send [04:57:21]OFD Sender: No OFD packet to send [04:57:26]OFD Sender: No OFD packet to send [04:57:31]OFD Sender: No OFD packet to send [04:57:36]OFD Sender: No OFD packet to send [04:57:41]OFD Sender: No OFD packet to send [04:57:46]OFD Sender: No OFD packet to send [04:57:51]OFD Sender: No OFD packet to send [04:57:56]OFD Sender: No OFD packet to send [04:58:01]OFD Sender: No OFD packet to send [04:58:06]OFD Sender: No OFD packet to send [04:58:11]OFD Sender: No OFD packet to send [04:58:16]OFD Sender: No OFD packet to send [04:58:21]OFD Sender: No OFD packet to send [04:58:26]OFD Sender: No OFD packet to send [04:58:31]OFD Sender: No OFD packet to send [04:58:36]OFD Sender: No OFD packet to send [04:58:41]OFD Sender: No OFD packet to send [04:58:46]OFD Sender: No OFD packet to send [04:58:51]OFD Sender: No OFD packet to send [04:58:56]OFD Sender: No OFD packet to send [04:59:01]OFD Sender: No OFD packet to send [04:59:06]OFD Sender: No OFD packet to send [04:59:11]OFD Sender: No OFD packet to send [04:59:16]OFD Sender: No OFD packet to send [04:59:21]OFD Sender: No OFD packet to send [04:59:26]OFD Sender: No OFD packet to send [04:59:31]OFD Sender: No OFD packet to send [04:59:36]OFD Sender: No OFD packet to send [04:59:41]OFD Sender: No OFD packet to send [04:59:46]OFD Sender: No OFD packet to send [04:59:51]OFD Sender: No OFD packet to send [04:59:56]OFD Sender: No OFD packet to send [05:00:01]OFD Sender: No OFD packet to send [05:00:06]OFD Sender: No OFD packet to send [05:00:11]OFD Sender: No OFD packet to send [05:00:17]OFD Sender: No OFD packet to send [05:00:22]OFD Sender: No OFD packet to send [05:00:27]OFD Sender: No OFD packet to send [05:00:32]OFD Sender: No OFD packet to send [05:00:37]OFD Sender: No OFD packet to send [05:00:42]OFD Sender: No OFD packet to send [05:00:47]OFD Sender: No OFD packet to send [05:00:52]OFD Sender: No OFD packet to send [05:00:57]OFD Sender: No OFD packet to send [05:01:02]OFD Sender: No OFD packet to send [05:01:07]OFD Sender: No OFD packet to send [05:01:12]OFD Sender: No OFD packet to send [05:01:17]OFD Sender: No OFD packet to send [05:01:22]OFD Sender: No OFD packet to send [05:01:27]OFD Sender: No OFD packet to send [05:01:32]OFD Sender: No OFD packet to send [05:01:37]OFD Sender: No OFD packet to send [05:01:42]OFD Sender: No OFD packet to send [05:01:47]OFD Sender: No OFD packet to send [05:01:52]OFD Sender: No OFD packet to send [05:01:57]OFD Sender: No OFD packet to send [05:02:02]OFD Sender: No OFD packet to send [05:02:07]OFD Sender: No OFD packet to send [05:02:12]OFD Sender: No OFD packet to send [05:02:17]OFD Sender: No OFD packet to send [05:02:22]OFD Sender: No OFD packet to send [05:02:27]OFD Sender: No OFD packet to send [05:02:32]OFD Sender: No OFD packet to send [05:02:37]OFD Sender: No OFD packet to send [05:02:42]OFD Sender: No OFD packet to send [05:02:47]OFD Sender: No OFD packet to send [05:02:52]OFD Sender: No OFD packet to send [05:02:57]OFD Sender: No OFD packet to send [05:03:02]OFD Sender: No OFD packet to send [05:03:07]OFD Sender: No OFD packet to send [05:03:12]OFD Sender: No OFD packet to send [05:03:17]OFD Sender: No OFD packet to send [05:03:22]OFD Sender: No OFD packet to send [05:03:27]OFD Sender: No OFD packet to send [05:03:32]OFD Sender: No OFD packet to send [05:03:37]OFD Sender: No OFD packet to send [05:03:42]OFD Sender: No OFD packet to send [05:03:47]OFD Sender: No OFD packet to send [05:03:52]OFD Sender: No OFD packet to send [05:03:57]OFD Sender: No OFD packet to send [05:04:02]OFD Sender: No OFD packet to send [05:04:07]OFD Sender: No OFD packet to send [05:04:12]OFD Sender: No OFD packet to send [05:04:17]OFD Sender: No OFD packet to send [05:04:22]OFD Sender: No OFD packet to send [05:04:27]OFD Sender: No OFD packet to send [05:04:32]OFD Sender: No OFD packet to send [05:04:37]OFD Sender: No OFD packet to send [05:04:42]OFD Sender: No OFD packet to send [05:04:47]OFD Sender: No OFD packet to send [05:04:52]OFD Sender: No OFD packet to send [05:04:57]OFD Sender: No OFD packet to send [05:05:02]OFD Sender: No OFD packet to send [05:05:07]OFD Sender: No OFD packet to send [05:05:12]OFD Sender: No OFD packet to send [05:05:17]OFD Sender: No OFD packet to send [05:05:22]OFD Sender: No OFD packet to send [05:05:27]OFD Sender: No OFD packet to send [05:05:32]OFD Sender: No OFD packet to send [05:05:37]OFD Sender: No OFD packet to send [05:05:42]OFD Sender: No OFD packet to send [05:05:47]OFD Sender: No OFD packet to send [05:05:52]OFD Sender: No OFD packet to send [05:05:57]OFD Sender: No OFD packet to send [05:06:02]OFD Sender: No OFD packet to send [05:06:07]OFD Sender: No OFD packet to send [05:06:12]OFD Sender: No OFD packet to send [05:06:17]OFD Sender: No OFD packet to send [05:06:22]OFD Sender: No OFD packet to send [05:06:27]OFD Sender: No OFD packet to send [05:06:32]OFD Sender: No OFD packet to send [05:06:37]OFD Sender: No OFD packet to send [05:06:42]OFD Sender: No OFD packet to send [05:06:47]OFD Sender: No OFD packet to send [05:06:52]OFD Sender: No OFD packet to send [05:06:57]OFD Sender: No OFD packet to send [05:07:02]OFD Sender: No OFD packet to send [05:07:07]OFD Sender: No OFD packet to send [05:07:12]OFD Sender: No OFD packet to send [05:07:17]OFD Sender: No OFD packet to send [05:07:22]OFD Sender: No OFD packet to send [05:07:27]OFD Sender: No OFD packet to send [05:07:32]OFD Sender: No OFD packet to send [05:07:37]OFD Sender: No OFD packet to send [05:07:42]OFD Sender: No OFD packet to send [05:07:47]OFD Sender: No OFD packet to send [05:07:52]OFD Sender: No OFD packet to send [05:07:57]OFD Sender: No OFD packet to send [05:08:02]OFD Sender: No OFD packet to send [05:08:07]OFD Sender: No OFD packet to send [05:08:12]OFD Sender: No OFD packet to send [05:08:17]OFD Sender: No OFD packet to send [05:08:22]OFD Sender: No OFD packet to send [05:08:27]OFD Sender: No OFD packet to send [05:08:32]OFD Sender: No OFD packet to send [05:08:37]OFD Sender: No OFD packet to send [05:08:42]OFD Sender: No OFD packet to send [05:08:47]OFD Sender: No OFD packet to send [05:08:52]OFD Sender: No OFD packet to send [05:08:57]OFD Sender: No OFD packet to send [05:09:02]OFD Sender: No OFD packet to send [05:09:07]OFD Sender: No OFD packet to send [05:09:12]OFD Sender: No OFD packet to send [05:09:17]OFD Sender: No OFD packet to send [05:09:22]OFD Sender: No OFD packet to send [05:09:27]OFD Sender: No OFD packet to send [05:09:32]OFD Sender: No OFD packet to send [05:09:37]OFD Sender: No OFD packet to send [05:09:42]OFD Sender: No OFD packet to send [05:09:47]OFD Sender: No OFD packet to send [05:09:52]OFD Sender: No OFD packet to send [05:09:57]OFD Sender: No OFD packet to send [05:10:02]OFD Sender: No OFD packet to send [05:10:07]OFD Sender: No OFD packet to send [05:10:12]OFD Sender: No OFD packet to send [05:10:17]OFD Sender: No OFD packet to send [05:10:22]OFD Sender: No OFD packet to send [05:10:27]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:33]OFD Sender: No OFD packet to send [05:15:38]OFD Sender: No OFD packet to send [05:15:43]OFD Sender: No OFD packet to send [05:15:48]OFD Sender: No OFD packet to send [05:15:53]OFD Sender: No OFD packet to send [05:15:58]OFD Sender: No OFD packet to send [05:16:03]OFD Sender: No OFD packet to send [05:16:08]OFD Sender: No OFD packet to send [05:16:13]OFD Sender: No OFD packet to send [05:16:18]OFD Sender: No OFD packet to send [05:16:23]OFD Sender: No OFD packet to send [05:16: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:28]OFD Sender: No OFD packet to send [05:19:33]OFD Sender: No OFD packet to send [05:19:38]OFD Sender: No OFD packet to send [05:19:43]OFD Sender: No OFD packet to send [05:19:48]OFD Sender: No OFD packet to send [05:19:53]OFD Sender: No OFD packet to send [05:19:58]OFD Sender: No OFD packet to send [05:20:03]OFD Sender: No OFD packet to send [05:20:08]OFD Sender: No OFD packet to send [05:20:13]OFD Sender: No OFD packet to send [05:20:18]OFD Sender: No OFD packet to send [05:20:23]OFD Sender: No OFD packet to send [05:20:28]OFD Sender: No OFD packet to send [05:20:33]OFD Sender: No OFD packet to send [05:20:38]OFD Sender: No OFD packet to send [05:20:43]OFD Sender: No OFD packet to send [05:20: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:23:19]OFD Sender: No OFD packet to send [05:23:24]OFD Sender: No OFD packet to send [05:23:29]OFD Sender: No OFD packet to send [05:23:34]OFD Sender: No OFD packet to send [05:23:39]OFD Sender: No OFD packet to send [05:23:44]OFD Sender: No OFD packet to send [05:23:49]OFD Sender: No OFD packet to send [05:23:54]OFD Sender: No OFD packet to send [05:23:59]OFD Sender: No OFD packet to send [05:24:04]OFD Sender: No OFD packet to send [05:24:09]OFD Sender: No OFD packet to send [05:24:14]OFD Sender: No OFD packet to send [05:24:19]OFD Sender: No OFD packet to send [05:24:24]OFD Sender: No OFD packet to send [05:24:29]OFD Sender: No OFD packet to send [05:24:34]OFD Sender: No OFD packet to send [05:24:39]OFD Sender: No OFD packet to send [05:24:44]OFD Sender: No OFD packet to send [05:24:49]OFD Sender: No OFD packet to send [05:24:54]OFD Sender: No OFD packet to send [05:24:59]OFD Sender: No OFD packet to send [05:25:04]OFD Sender: No OFD packet to send [05:25:09]OFD Sender: No OFD packet to send [05:25:14]OFD Sender: No OFD packet to send [05:25:19]OFD Sender: No OFD packet to send [05:25:24]OFD Sender: No OFD packet to send [05:25:29]OFD Sender: No OFD packet to send [05:25:34]OFD Sender: No OFD packet to send [05:25:39]OFD Sender: No OFD packet to send [05:25:44]OFD Sender: No OFD packet to send [05:25:49]OFD Sender: No OFD packet to send [05:25:54]OFD Sender: No OFD packet to send [05:25:59]OFD Sender: No OFD packet to send [05:26:04]OFD Sender: No OFD packet to send [05:26:09]OFD Sender: No OFD packet to send [05:26:14]OFD Sender: No OFD packet to send [05:26:19]OFD Sender: No OFD packet to send [05:26:24]OFD Sender: No OFD packet to send [05:26:29]OFD Sender: No OFD packet to send [05:26:34]OFD Sender: No OFD packet to send [05:26:39]OFD Sender: No OFD packet to send [05:26:44]OFD Sender: No OFD packet to send [05:26:49]OFD Sender: No OFD packet to send [05:26:54]OFD Sender: No OFD packet to send [05:26:59]OFD Sender: No OFD packet to send [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:10]OFD Sender: No OFD packet to send [05:31:15]OFD Sender: No OFD packet to send [05:31:20]OFD Sender: No OFD packet to send [05:31:25]OFD Sender: No OFD packet to send [05:31:30]OFD Sender: No OFD packet to send [05:31:35]OFD Sender: No OFD packet to send [05:31:40]OFD Sender: No OFD packet to send [05:31:45]OFD Sender: No OFD packet to send [05:31:50]OFD Sender: No OFD packet to send [05:31:55]OFD Sender: No OFD packet to send [05:32:00]OFD Sender: No OFD packet to send [05:32:05]OFD Sender: No OFD packet to send [05:32:10]OFD Sender: No OFD packet to send [05:32:15]OFD Sender: No OFD packet to send [05:32:20]OFD Sender: No OFD packet to send [05:32:25]OFD Sender: No OFD packet to send [05:32:30]OFD Sender: No OFD packet to send [05:32:35]OFD Sender: No OFD packet to send [05:32:40]OFD Sender: No OFD packet to send [05:32:45]OFD Sender: No OFD packet to send [05:32:50]OFD Sender: No OFD packet to send [05:32:55]OFD Sender: No OFD packet to send [05:33:00]OFD Sender: No OFD packet to send [05:33:05]OFD Sender: No OFD packet to send [05:33:10]OFD Sender: No OFD packet to send [05:33:15]OFD Sender: No OFD packet to send [05:33:20]OFD Sender: No OFD packet to send [05:33:25]OFD Sender: No OFD packet to send [05:33:30]OFD Sender: No OFD packet to send [05:33:35]OFD Sender: No OFD packet to send [05:33:40]OFD Sender: No OFD packet to send [05:33:45]OFD Sender: No OFD packet to send [05:33:50]OFD Sender: No OFD packet to send [05:33:55]OFD Sender: No OFD packet to send [05:34:00]OFD Sender: No OFD packet to send [05:34:05]OFD Sender: No OFD packet to send [05:34:10]OFD Sender: No OFD packet to send [05:34:15]OFD Sender: No OFD packet to send [05:34:20]OFD Sender: No OFD packet to send [05:34:25]OFD Sender: No OFD packet to send [05:34:30]OFD Sender: No OFD packet to send [05:34:35]OFD Sender: No OFD packet to send [05:34:40]OFD Sender: No OFD packet to send [05:34:45]OFD Sender: No OFD packet to send [05:34:50]OFD Sender: No OFD packet to send [05:34:55]OFD Sender: No OFD packet to send [05:35:00]OFD Sender: No OFD packet to send [05:35:05]OFD Sender: No OFD packet to send [05:35:10]OFD Sender: No OFD packet to send [05:35:15]OFD Sender: No OFD packet to send [05:35:20]OFD Sender: No OFD packet to send [05:35:25]OFD Sender: No OFD packet to send [05:35:30]OFD Sender: No OFD packet to send [05:35:35]OFD Sender: No OFD packet to send [05:35:40]OFD Sender: No OFD packet to send [05:35:45]OFD Sender: No OFD packet to send [05:35:50]OFD Sender: No OFD packet to send [05:35:55]OFD Sender: No OFD packet to send [05:36:00]OFD Sender: No OFD packet to send [05:36:05]OFD Sender: No OFD packet to send [05:36:10]OFD Sender: No OFD packet to send [05:36:15]OFD Sender: No OFD packet to send [05:36:20]OFD Sender: No OFD packet to send [05:36:25]OFD Sender: No OFD packet to send [05:36:30]OFD Sender: No OFD packet to send [05:36:35]OFD Sender: No OFD packet to send [05:36:40]OFD Sender: No OFD packet to send [05:36:45]OFD Sender: No OFD packet to send [05:36:50]OFD Sender: No OFD packet to send [05:36:55]OFD Sender: No OFD packet to send [05:37:00]OFD Sender: No OFD packet to send [05:37:05]OFD Sender: No OFD packet to send [05:37:10]OFD Sender: No OFD packet to send [05:37:15]OFD Sender: No OFD packet to send [05:37:20]OFD Sender: No OFD packet to send [05:37:25]OFD Sender: No OFD packet to send [05:37:30]OFD Sender: No OFD packet to send [05:37:35]OFD Sender: No OFD packet to send [05:37:40]OFD Sender: No OFD packet to send [05:37:45]OFD Sender: No OFD packet to send [05:37:50]OFD Sender: No OFD packet to send [05:37:55]OFD Sender: No OFD packet to send [05:38:00]OFD Sender: No OFD packet to send [05:38:05]OFD Sender: No OFD packet to send [05:38:10]OFD Sender: No OFD packet to send [05:38:15]OFD Sender: No OFD packet to send [05:38:20]OFD Sender: No OFD packet to send [05:38:25]OFD Sender: No OFD packet to send [05:38:30]OFD Sender: No OFD packet to send [05:38:35]OFD Sender: No OFD packet to send [05:38:40]OFD Sender: No OFD packet to send [05:38:45]OFD Sender: No OFD packet to send [05:38:50]OFD Sender: No OFD packet to send [05:38:55]OFD Sender: No OFD packet to send [05:39:00]OFD Sender: No OFD packet to send [05:39:05]OFD Sender: No OFD packet to send [05:39:10]OFD Sender: No OFD packet to send [05:39:15]OFD Sender: No OFD packet to send [05:39:20]OFD Sender: No OFD packet to send [05:39:25]OFD Sender: No OFD packet to send [05:39:30]OFD Sender: No OFD packet to send [05:39:35]OFD Sender: No OFD packet to send [05:39:40]OFD Sender: No OFD packet to send [05:39:45]OFD Sender: No OFD packet to send [05:39:50]OFD Sender: No OFD packet to send [05:39:55]OFD Sender: No OFD packet to send [05:40:00]OFD Sender: No OFD packet to send [05:40:05]OFD Sender: No OFD packet to send [05:40:10]OFD Sender: No OFD packet to send [05:40:15]OFD Sender: No OFD packet to send [05:40:20]OFD Sender: No OFD packet to send [05:40:25]OFD Sender: No OFD packet to send [05:40:30]OFD Sender: No OFD packet to send [05:40:35]OFD Sender: No OFD packet to send [05:40:40]OFD Sender: No OFD packet to send [05:40:45]OFD Sender: No OFD packet to send [05:40:50]OFD Sender: No OFD packet to send [05:40:55]OFD Sender: No OFD packet to send [05:41:00]OFD Sender: No OFD packet to send [05:41:05]OFD Sender: No OFD packet to send [05:41:10]OFD Sender: No OFD packet to send [05:41:15]OFD Sender: No OFD packet to send [05:41:20]OFD Sender: No OFD packet to send [05:41:25]OFD Sender: No OFD packet to send [05:41:31]OFD Sender: No OFD packet to send [05:41:36]OFD Sender: No OFD packet to send [05:41:41]OFD Sender: No OFD packet to send [05:41:46]OFD Sender: No OFD packet to send [05:41:51]OFD Sender: No OFD packet to send [05:41:56]OFD Sender: No OFD packet to send [05:42:01]OFD Sender: No OFD packet to send [05:42:06]OFD Sender: No OFD packet to send [05:42:11]OFD Sender: No OFD packet to send [05:42:16]OFD Sender: No OFD packet to send [05:42:21]OFD Sender: No OFD packet to send [05:42:26]OFD Sender: No OFD packet to send [05:42:31]OFD Sender: No OFD packet to send [05:42:36]OFD Sender: No OFD packet to send [05:42:41]OFD Sender: No OFD packet to send [05:42:46]OFD Sender: No OFD packet to send [05:42:51]OFD Sender: No OFD packet to send [05:42:56]OFD Sender: No OFD packet to send [05:43:01]OFD Sender: No OFD packet to send [05:43:06]OFD Sender: No OFD packet to send [05:43:11]OFD Sender: No OFD packet to send [05:43:16]OFD Sender: No OFD packet to send [05:43:21]OFD Sender: No OFD packet to send [05:43:26]OFD Sender: No OFD packet to send [05:43:31]OFD Sender: No OFD packet to send [05:43:36]OFD Sender: No OFD packet to send [05:43:41]OFD Sender: No OFD packet to send [05:43:46]OFD Sender: No OFD packet to send [05:43:51]OFD Sender: No OFD packet to send [05:43:56]OFD Sender: No OFD packet to send [05:44:01]OFD Sender: No OFD packet to send [05:44:06]OFD Sender: No OFD packet to send [05:44:11]OFD Sender: No OFD packet to send [05:44:16]OFD Sender: No OFD packet to send [05:44:21]OFD Sender: No OFD packet to send [05:44:26]OFD Sender: No OFD packet to send [05:44:31]OFD Sender: No OFD packet to send [05:44:36]OFD Sender: No OFD packet to send [05:44:41]OFD Sender: No OFD packet to send [05:44:46]OFD Sender: No OFD packet to send [05:44:51]OFD Sender: No OFD packet to send [05:44:56]OFD Sender: No OFD packet to send [05:45:01]OFD Sender: No OFD packet to send [05:45:06]OFD Sender: No OFD packet to send [05:45:11]OFD Sender: No OFD packet to send [05:45:16]OFD Sender: No OFD packet to send [05:45:21]OFD Sender: No OFD packet to send [05:45:26]OFD Sender: No OFD packet to send [05:45:31]OFD Sender: No OFD packet to send [05:45:36]OFD Sender: No OFD packet to send [05:45:41]OFD Sender: No OFD packet to send [05:45:46]OFD Sender: No OFD packet to send [05:45:51]OFD Sender: No OFD packet to send [05:45:56]OFD Sender: No OFD packet to send [05:46:01]OFD Sender: No OFD packet to send [05:46:06]OFD Sender: No OFD packet to send [05:46:11]OFD Sender: No OFD packet to send [05:46:16]OFD Sender: No OFD packet to send [05:46:21]OFD Sender: No OFD packet to send [05:46:26]OFD Sender: No OFD packet to send [05:46:31]OFD Sender: No OFD packet to send [05:46:36]OFD Sender: No OFD packet to send [05:46:41]OFD Sender: No OFD packet to send [05:46:46]OFD Sender: No OFD packet to send [05:46:51]OFD Sender: No OFD packet to send [05:46:56]OFD Sender: No OFD packet to send [05:47:01]OFD Sender: No OFD packet to send [05:47:06]OFD Sender: No OFD packet to send [05:47:11]OFD Sender: No OFD packet to send [05:47:16]OFD Sender: No OFD packet to send [05:47:21]OFD Sender: No OFD packet to send [05:47:26]OFD Sender: No OFD packet to send [05:47:31]OFD Sender: No OFD packet to send [05:47:36]OFD Sender: No OFD packet to send [05:47:41]OFD Sender: No OFD packet to send [05:47:46]OFD Sender: No OFD packet to send [05:47:51]OFD Sender: No OFD packet to send [05:47:56]OFD Sender: No OFD packet to send [05:48:01]OFD Sender: No OFD packet to send [05:48:06]OFD Sender: No OFD packet to send [05:48:11]OFD Sender: No OFD packet to send [05:48:16]OFD Sender: No OFD packet to send [05:48:21]OFD Sender: No OFD packet to send [05:48:26]OFD Sender: No OFD packet to send [05:48:31]OFD Sender: No OFD packet to send [05:48:36]OFD Sender: No OFD packet to send [05:48:41]OFD Sender: No OFD packet to send [05:48:46]OFD Sender: No OFD packet to send [05:48:51]OFD Sender: No OFD packet to send [05:48:56]OFD Sender: No OFD packet to send [05:49:01]OFD Sender: No OFD packet to send [05:49:06]OFD Sender: No OFD packet to send [05:49:11]OFD Sender: No OFD packet to send [05:49:16]OFD Sender: No OFD packet to send [05:49:21]OFD Sender: No OFD packet to send [05:49:26]OFD Sender: No OFD packet to send [05:49:31]OFD Sender: No OFD packet to send [05:49:36]OFD Sender: No OFD packet to send [05:49:41]OFD Sender: No OFD packet to send [05:49:46]OFD Sender: No OFD packet to send [05:49:51]OFD Sender: No OFD packet to send [05:49:56]OFD Sender: No OFD packet to send [05:50:01]OFD Sender: No OFD packet to send [05:50:06]OFD Sender: No OFD packet to send [05:50:11]OFD Sender: No OFD packet to send [05:50:16]OFD Sender: No OFD packet to send [05:50:21]OFD Sender: No OFD packet to send [05:50:26]OFD Sender: No OFD packet to send [05:50:31]OFD Sender: No OFD packet to send [05:50:36]OFD Sender: No OFD packet to send [05:50:41]OFD Sender: No OFD packet to send [05:50:46]OFD Sender: No OFD packet to send [05:50:51]OFD Sender: No OFD packet to send [05:50:56]OFD Sender: No OFD packet to send [05:51:01]OFD Sender: No OFD packet to send [05:51:06]OFD Sender: No OFD packet to send [05:51:11]OFD Sender: No OFD packet to send [05:51:16]OFD Sender: No OFD packet to send [05:51:21]OFD Sender: No OFD packet to send [05:51:26]OFD Sender: No OFD packet to send [05:51:31]OFD Sender: No OFD packet to send [05:51:36]OFD Sender: No OFD packet to send [05:51:41]OFD Sender: No OFD packet to send [05:51:46]OFD Sender: No OFD packet to send [05:51:52]OFD Sender: No OFD packet to send [05:51:57]OFD Sender: No OFD packet to send [05:52:02]OFD Sender: No OFD packet to send [05:52:07]OFD Sender: No OFD packet to send [05:52:12]OFD Sender: No OFD packet to send [05:52:17]OFD Sender: No OFD packet to send [05:52:22]OFD Sender: No OFD packet to send [05:52:27]OFD Sender: No OFD packet to send [05:52:32]OFD Sender: No OFD packet to send [05:52:37]OFD Sender: No OFD packet to send [05:52:42]OFD Sender: No OFD packet to send [05:52:47]OFD Sender: No OFD packet to send [05:52:52]OFD Sender: No OFD packet to send [05:52:57]OFD Sender: No OFD packet to send [05:53:02]OFD Sender: No OFD packet to send [05:53:07]OFD Sender: No OFD packet to send [05:53:12]OFD Sender: No OFD packet to send [05:53:17]OFD Sender: No OFD packet to send [05:53:22]OFD Sender: No OFD packet to send [05:53:27]OFD Sender: No OFD packet to send [05:53:32]OFD Sender: No OFD packet to send [05:53:37]OFD Sender: No OFD packet to send [05:53:42]OFD Sender: No OFD packet to send [05:53:47]OFD Sender: No OFD packet to send [05:53:52]OFD Sender: No OFD packet to send [05:53:57]OFD Sender: No OFD packet to send [05:54:02]OFD Sender: No OFD packet to send [05:54:07]OFD Sender: No OFD packet to send [05:54:12]OFD Sender: No OFD packet to send [05:54:17]OFD Sender: No OFD packet to send [05:54:22]OFD Sender: No OFD packet to send [05:54:27]OFD Sender: No OFD packet to send [05:54:32]OFD Sender: No OFD packet to send [05:54:37]OFD Sender: No OFD packet to send [05:54:42]OFD Sender: No OFD packet to send [05:54:47]OFD Sender: No OFD packet to send [05:54:52]OFD Sender: No OFD packet to send [05:54:57]OFD Sender: No OFD packet to send [05:55:02]OFD Sender: No OFD packet to send [05:55:07]OFD Sender: No OFD packet to send [05:55:12]OFD Sender: No OFD packet to send [05:55:17]OFD Sender: No OFD packet to send [05:55:22]OFD Sender: No OFD packet to send [05:55:27]OFD Sender: No OFD packet to send [05:55:32]OFD Sender: No OFD packet to send [05:55:37]OFD Sender: No OFD packet to send [05:55:42]OFD Sender: No OFD packet to send [05:55:47]OFD Sender: No OFD packet to send [05:55:52]OFD Sender: No OFD packet to send [05:55:57]OFD Sender: No OFD packet to send [05:56:02]OFD Sender: No OFD packet to send [05:56:07]OFD Sender: No OFD packet to send [05:56:12]OFD Sender: No OFD packet to send [05:56:17]OFD Sender: No OFD packet to send [05:56:22]OFD Sender: No OFD packet to send [05:56:27]OFD Sender: No OFD packet to send [05:56:32]OFD Sender: No OFD packet to send [05:56:37]OFD Sender: No OFD packet to send [05:56:42]OFD Sender: No OFD packet to send [05:56:47]OFD Sender: No OFD packet to send [05:56:52]OFD Sender: No OFD packet to send [05:56:57]OFD Sender: No OFD packet to send [05:57:02]OFD Sender: No OFD packet to send [05:57:07]OFD Sender: No OFD packet to send [05:57:12]OFD Sender: No OFD packet to send [05:57:17]OFD Sender: No OFD packet to send [05:57:22]OFD Sender: No OFD packet to send [05:57:27]OFD Sender: No OFD packet to send [05:57:32]OFD Sender: No OFD packet to send [05:57:37]OFD Sender: No OFD packet to send [05:57:42]OFD Sender: No OFD packet to send [05:57:47]OFD Sender: No OFD packet to send [05:57:52]OFD Sender: No OFD packet to send [05:57:57]OFD Sender: No OFD packet to send [05:58:02]OFD Sender: No OFD packet to send [05:58:07]OFD Sender: No OFD packet to send [05:58:12]OFD Sender: No OFD packet to send [05:58:17]OFD Sender: No OFD packet to send [05:58:22]OFD Sender: No OFD packet to send [05:58:27]OFD Sender: No OFD packet to send [05:58:32]OFD Sender: No OFD packet to send [05:58:37]OFD Sender: No OFD packet to send [05:58:42]OFD Sender: No OFD packet to send [05:58:47]OFD Sender: No OFD packet to send [05:58:52]OFD Sender: No OFD packet to send [05:58:57]OFD Sender: No OFD packet to send [05:59:02]OFD Sender: No OFD packet to send [05:59:07]OFD Sender: No OFD packet to send [05:59:12]OFD Sender: No OFD packet to send [05:59:17]OFD Sender: No OFD packet to send [05:59:22]OFD Sender: No OFD packet to send [05:59:27]OFD Sender: No OFD packet to send [05:59:32]OFD Sender: No OFD packet to send [05:59:37]OFD Sender: No OFD packet to send [05:59:42]OFD Sender: No OFD packet to send [05:59:47]OFD Sender: No OFD packet to send [05:59:52]OFD Sender: No OFD packet to send [05:59:57]OFD Sender: No OFD packet to send [06:00:02]OFD Sender: No OFD packet to send [06:00:07]OFD Sender: No OFD packet to send [06:00:12]OFD Sender: No OFD packet to send [06:00:17]OFD Sender: No OFD packet to send [06:00:22]OFD Sender: No OFD packet to send [06:00:27]OFD Sender: No OFD packet to send [06:00:32]OFD Sender: No OFD packet to send [06:00:37]OFD Sender: No OFD packet to send [06:00:42]OFD Sender: No OFD packet to send [06:00:47]OFD Sender: No OFD packet to send [06:00:52]OFD Sender: No OFD packet to send [06:00:57]OFD Sender: No OFD packet to send [06:01:02]OFD Sender: No OFD packet to send [06:01:07]OFD Sender: No OFD packet to send [06:01:12]OFD Sender: No OFD packet to send [06:01:17]OFD Sender: No OFD packet to send [06:01:22]OFD Sender: No OFD packet to send [06:01:27]OFD Sender: No OFD packet to send [06:01:32]OFD Sender: No OFD packet to send [06:01:37]OFD Sender: No OFD packet to send [06:01:42]OFD Sender: No OFD packet to send [06:01:47]OFD Sender: No OFD packet to send [06:01:52]OFD Sender: No OFD packet to send [06:01:57]OFD Sender: No OFD packet to send [06:02:02]OFD Sender: No OFD packet to send [06:02:07]OFD Sender: No OFD packet to send [06:02:13]OFD Sender: No OFD packet to send [06:02:18]OFD Sender: No OFD packet to send [06:02:23]OFD Sender: No OFD packet to send [06:02:28]OFD Sender: No OFD packet to send [06:02:33]OFD Sender: No OFD packet to send [06:02:38]OFD Sender: No OFD packet to send [06:02:43]OFD Sender: No OFD packet to send [06:02:48]OFD Sender: No OFD packet to send [06:02:53]OFD Sender: No OFD packet to send [06:02:58]OFD Sender: No OFD packet to send [06:03:03]OFD Sender: No OFD packet to send [06:03:08]OFD Sender: No OFD packet to send [06:03:13]OFD Sender: No OFD packet to send [06:03:18]OFD Sender: No OFD packet to send [06:03:23]OFD Sender: No OFD packet to send [06:03:28]OFD Sender: No OFD packet to send [06:03:33]OFD Sender: No OFD packet to send [06:03:38]OFD Sender: No OFD packet to send [06:03:43]OFD Sender: No OFD packet to send [06:03:48]OFD Sender: No OFD packet to send [06:03:53]OFD Sender: No OFD packet to send [06:03:58]OFD Sender: No OFD packet to send [06:04:03]OFD Sender: No OFD packet to send [06:04:08]OFD Sender: No OFD packet to send [06:04:13]OFD Sender: No OFD packet to send [06:04:18]OFD Sender: No OFD packet to send [06:04:23]OFD Sender: No OFD packet to send [06:04:28]OFD Sender: No OFD packet to send [06:04:33]OFD Sender: No OFD packet to send [06:04:38]OFD Sender: No OFD packet to send [06:04:43]OFD Sender: No OFD packet to send [06:04:48]OFD Sender: No OFD packet to send [06:04:53]OFD Sender: No OFD packet to send [06:04:58]OFD Sender: No OFD packet to send [06:05:03]OFD Sender: No OFD packet to send [06:05:08]OFD Sender: No OFD packet to send [06:05:13]OFD Sender: No OFD packet to send [06:05:18]OFD Sender: No OFD packet to send [06:05:23]OFD Sender: No OFD packet to send [06:05:28]OFD Sender: No OFD packet to send [06:05:33]OFD Sender: No OFD packet to send [06:05:38]OFD Sender: No OFD packet to send [06:05:43]OFD Sender: No OFD packet to send [06:05:48]OFD Sender: No OFD packet to send [06:05:53]OFD Sender: No OFD packet to send [06:05:58]OFD Sender: No OFD packet to send [06:06:03]OFD Sender: No OFD packet to send [06:06:08]OFD Sender: No OFD packet to send [06:06:13]OFD Sender: No OFD packet to send [06:06:18]OFD Sender: No OFD packet to send [06:06:23]OFD Sender: No OFD packet to send [06:06:28]OFD Sender: No OFD packet to send [06:06:33]OFD Sender: No OFD packet to send [06:06:38]OFD Sender: No OFD packet to send [06:06:43]OFD Sender: No OFD packet to send [06:06:48]OFD Sender: No OFD packet to send [06:06:53]OFD Sender: No OFD packet to send [06:06:58]OFD Sender: No OFD packet to send [06:07:03]OFD Sender: No OFD packet to send [06:07:08]OFD Sender: No OFD packet to send [06:07:13]OFD Sender: No OFD packet to send [06:07:18]OFD Sender: No OFD packet to send [06:07:23]OFD Sender: No OFD packet to send [06:07:28]OFD Sender: No OFD packet to send [06:07:33]OFD Sender: No OFD packet to send [06:07:38]OFD Sender: No OFD packet to send [06:07:43]OFD Sender: No OFD packet to send [06:07:48]OFD Sender: No OFD packet to send [06:07:53]OFD Sender: No OFD packet to send [06:07:58]OFD Sender: No OFD packet to send [06:08:03]OFD Sender: No OFD packet to send [06:08:08]OFD Sender: No OFD packet to send [06:08:13]OFD Sender: No OFD packet to send [06:08:18]OFD Sender: No OFD packet to send [06:08:23]OFD Sender: No OFD packet to send [06:08:28]OFD Sender: No OFD packet to send [06:08:33]OFD Sender: No OFD packet to send [06:08:38]OFD Sender: No OFD packet to send [06:08:43]OFD Sender: No OFD packet to send [06:08:48]OFD Sender: No OFD packet to send [06:08:53]OFD Sender: No OFD packet to send [06:08:58]OFD Sender: No OFD packet to send [06:09:03]OFD Sender: No OFD packet to send [06:09:08]OFD Sender: No OFD packet to send [06:09:13]OFD Sender: No OFD packet to send [06:09:18]OFD Sender: No OFD packet to send [06:09:23]OFD Sender: No OFD packet to send [06:09:28]OFD Sender: No OFD packet to send [06:09:33]OFD Sender: No OFD packet to send [06:09:38]OFD Sender: No OFD packet to send [06:09:43]OFD Sender: No OFD packet to send [06:09:48]OFD Sender: No OFD packet to send [06:09:53]OFD Sender: No OFD packet to send [06:09:58]OFD Sender: No OFD packet to send [06:10:03]OFD Sender: No OFD packet to send [06:10:08]OFD Sender: No OFD packet to send [06:10:13]OFD Sender: No OFD packet to send [06:10:18]OFD Sender: No OFD packet to send [06:10:23]OFD Sender: No OFD packet to send [06:10:28]OFD Sender: No OFD packet to send [06:10:33]OFD Sender: No OFD packet to send [06:10:38]OFD Sender: No OFD packet to send [06:10:43]OFD Sender: No OFD packet to send [06:10:48]OFD Sender: No OFD packet to send [06:10:53]OFD Sender: No OFD packet to send [06:10:58]OFD Sender: No OFD packet to send [06:11:03]OFD Sender: No OFD packet to send [06:11:08]OFD Sender: No OFD packet to send [06:11:13]OFD Sender: No OFD packet to send [06:11:18]OFD Sender: No OFD packet to send [06:11:23]OFD Sender: No OFD packet to send [06:11:28]OFD Sender: No OFD packet to send [06:11:33]OFD Sender: No OFD packet to send [06:11:38]OFD Sender: No OFD packet to send [06:11:43]OFD Sender: No OFD packet to send [06:11:48]OFD Sender: No OFD packet to send [06:11:53]OFD Sender: No OFD packet to send [06:11:58]OFD Sender: No OFD packet to send [06:12:03]OFD Sender: No OFD packet to send [06:12:08]OFD Sender: No OFD packet to send [06:12:13]OFD Sender: No OFD packet to send [06:12:18]OFD Sender: No OFD packet to send [06:12:23]OFD Sender: No OFD packet to send [06:12:29]OFD Sender: No OFD packet to send [06:12:34]OFD Sender: No OFD packet to send [06:12:39]OFD Sender: No OFD packet to send [06:12:44]OFD Sender: No OFD packet to send [06:12:49]OFD Sender: No OFD packet to send [06:12:54]OFD Sender: No OFD packet to send [06:12:59]OFD Sender: No OFD packet to send [06:13:04]OFD Sender: No OFD packet to send [06:13:09]OFD Sender: No OFD packet to send [06:13:14]OFD Sender: No OFD packet to send [06:13:19]OFD Sender: No OFD packet to send [06:13:24]OFD Sender: No OFD packet to send [06:13:29]OFD Sender: No OFD packet to send [06:13:34]OFD Sender: No OFD packet to send [06:13:39]OFD Sender: No OFD packet to send [06:13:44]OFD Sender: No OFD packet to send [06:13:47]accept exits with 9 [06:13:47]New connection [06:13:47]New thread 3067424100 created [06:13:47]Thread 3067567460 joined [06:13:47]Waiting for new connection... [06:13:47] Sock 9.Parse request [06:13:47]Sock 9.Check first char [06:13:47]Sock 9.First char is OK [06:13:47]request: POST /json_proto HTTP/1.0 [06:13:47]Method: POST [06:13:47]URL: /json_proto [06:13:47]Method is POST - this is cgi request [06:13:47]url: /json_proto [06:13:47]query_string will be loaded in cgi processing [06:13:47]execute_cgi json_proto POST (null) [06:13:47]execute_cgi path=json_proto method=POST [06:13:47]POST find Content-Length [06:13:47]Host: 172.17.44.67:8080 [06:13:47]Content-Length: 682 [06:13:47]Content-Type: application/json [06:13:47] [06:13:47]POST finish read [06:13:47]Found Content-Length = 682 [06:13:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:13:47]execute_script... [06:13: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)918587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:13:47]POST & json_proto [06:13:47]process_json_proto [06:13:47]json parsed OK: [06:13:47]protocol is kg_v1.0 [06:13:47]action value=close_receipt [06:13:47]process_action close_receipt [06:13:47]cmd_close_receipt [06:13:47]MH_GetDate [06:13:47]Write to MH i2c: F0 00 00 F4 06 E9 [06:13:47]Write i2c OK [06:13:47]MH_I2C_Read... [06:13:47]Read from MH i2c: F0 [06:13:47]MH_I2C_Read... [06:13:47]Read from MH i2c: F0 09 00 [06:13:47]MH_I2C_Read... [06:13:47]Read from MH i2c: F0 09 00 F4 06 00 1D AB 10 67 F1 C7 6B 64 B8 [06:13:47]GetLastDocTimeStamp 1729138406 [06:13:47]current date 1729145629 [06:13:47]FM_GetShiftState [06:13:47]SAM_PROTO_GetShiftState [06:13:47]wFMCommunicate request_size=4 [06:13:47]MH_SAM_APDU [06:13:47]CAPDU: 80 13 01 00 [06:13:47]Write to MH i2c: E2 08 00 F5 06 80 13 01 00 00 00 00 00 78 [06:13:47]Write i2c OK [06:13:47]MH_I2C_Read... [06:13:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:13:47]Read from MH i2c: E2 [06:13:47]MH_I2C_Read... [06:13:47]Read from MH i2c: E2 0E 00 [06:13:47]MH_I2C_Read... [06:13:47]Read from MH i2c: E2 0E 00 F5 06 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 80 [06:13:47]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [06:13:47]wFMCommunicate OK [06:13:47]SAM_PROTO_GetShiftState done [06:13:47]FM_GetShiftState done [06:13:47]opened in 1729125927 [06:13:47]opened+sec_in_day 1729212327 [06:13:47]quantity*price = 100021 [06:13:47]sum+1 = 100023 [06:13:47]Check (price>sum+1) || (price+1 о реализуемом товаре [06:37:58]line ОКРУГЛЕНИЕ: -0.22 [06:37:58]line ИТОГО: 1000.00 [06:37:58]line Внесено: 1000.00 [06:37:58]line СДАЧА: 0.00 [06:37:58]line НСП 1% : 8.85 [06:37:58]line НДС 12% : 106.22 [06:37:58]line Наличными: 1000.00 [06:37:58]line Безнал.: 0.00 [06:37:58]line Место: АЗС № 114 "Партнер Нефть" [06:37:58]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [06:37:58]line СНО: Общий режим [06:37:58]line Чек 7 17.10.2024 06:13 [06:37:58]line Смена: 525 ФФД: 1.0 [06:37:58]line ЗНМ: 0300000086 [06:37:58]line РНМ: 0000000000091680 [06:37:58]line Версия ККМ: 001 [06:37:58]line ФМ: 0000000000871843 [06:37:58]line ФД: 82081 [06:37:58]line ФПД: 221569669064808 [06:37:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T061349&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82081&fm=221569669064808&tin=02508201610067®Number=0000000000091680&sum=100000 [06:37:58]written 0, free lines is 4095 [06:37:59]Write to MH i2c: 01 00 00 48 00 48 [06:37:59]Write i2c OK [06:37:59]MH_I2C_Read... [06:37:59]Read from MH i2c: 01 [06:37:59]MH_I2C_Read... [06:37:59]Read from MH i2c: 01 07 00 [06:37:59]MH_I2C_Read... [06:37:59]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 F2 0C 4D [06:37:59]RasterBufferAndPrint [06:37:59]line [06:37:59]line [06:37:59]line [06:37:59]line [06:37:59]line [06:37:59]written 0, free lines is 3332 [06:37:59]MH_Cut [06:37:59]Write to MH i2c: D1 01 00 4F 00 01 21 [06:37:59]Write i2c OK [06:37:59]MH_I2C_Read... [06:37:59]Read from MH i2c: D1 [06:37:59]MH_I2C_Read... [06:37:59]Read from MH i2c: D1 01 00 [06:37:59]MH_I2C_Read... [06:37:59]Read from MH i2c: D1 01 00 4F 00 00 20 [06:37:59]Write to MH i2c: 01 00 00 50 00 50 [06:37:59]Write i2c OK [06:37:59]MH_I2C_Read... [06:38:00]*** Cut start [06:38:00]*** Partial cut [06:38:00]*** CUTSNS_PIN = 1 [06:38:00]*** CUTSNS_PIN = 0 [06:38:00]*** Brake cut motor [06:38:00]Read from MH i2c: 01 [06:38:00]MH_I2C_Read... [06:38:00]*** Stop cut motor [06:38:00]*** Cut end [06:38:00]Read from MH i2c: 01 07 00 [06:38:00]MH_I2C_Read... [06:38:00]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [06:38:00]process_action print_doc done [06:38:00]requested_data is exist [06:38:00]produce_requested_data [06:38:00]produce_requested_data return (null) [06:38:00]process_action_free print_doc [06:38:00]json_value_free [06:38:00]json_value_free done [06:38:00]process_json_proto returns [06:38:00]Send response to host [06:38:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [06:38:00]free response buf [06:38:00]execute_script done [06:38:00]execute_script returns [06:38:00]free content buf [06:38:00]Sock 8.Close socket [06:38:00]Sock 8.Thread stoped [06:38:02]OFD Sender: No OFD packet to send [06:38:07]OFD Sender: No OFD packet to send [06:38:12]OFD Sender: No OFD packet to send [06:38:17]OFD Sender: No OFD packet to send [06:38:22]OFD Sender: No OFD packet to send [06:38:27]OFD Sender: No OFD packet to send [06:38:27]recv_with_timeout no data received [06:38:32]OFD Sender: No OFD packet to send [06:38:37]OFD Sender: No OFD packet to send [06:38:42]OFD Sender: No OFD packet to send [06:38:47]OFD Sender: No OFD packet to send [06:38:52]OFD Sender: No OFD packet to send [06:38:57]OFD Sender: No OFD packet to send [06:39:02]OFD Sender: No OFD packet to send [06:39:07]OFD Sender: No OFD packet to send [06:39:12]OFD Sender: No OFD packet to send [06:39:17]OFD Sender: No OFD packet to send [06:39:22]OFD Sender: No OFD packet to send [06:39:27]OFD Sender: No OFD packet to send [06:39:31]accept exits with 6 [06:39:31]New connection [06:39:31]New thread 3067379044 created [06:39:31]Thread 3067522404 joined [06:39:31]Waiting for new connection... [06:39:31] Sock 6.Parse request [06:39:31]Sock 6.Check first char [06:39:31]Sock 6.First char is OK [06:39:31]request: POST /json_proto HTTP/1.0 [06:39:31]Method: POST [06:39:31]URL: /json_proto [06:39:31]Method is POST - this is cgi request [06:39:31]url: /json_proto [06:39:31]query_string will be loaded in cgi processing [06:39:31]execute_cgi json_proto POST (null) [06:39:31]execute_cgi path=json_proto method=POST [06:39:31]POST find Content-Length [06:39:31]Host: 172.17.44.67:8080 [06:39:31]Content-Length: 687 [06:39:31]Content-Type: application/json [06:39:31] [06:39:31]POST finish read [06:39:31]Found Content-Length = 687 [06:39:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:39:31]execute_script... [06:39:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:39:31]POST & json_proto [06:39:31]process_json_proto [06:39:31]json parsed OK: [06:39:31]protocol is kg_v1.0 [06:39:31]action value=close_receipt [06:39:31]process_action close_receipt [06:39:31]cmd_close_receipt [06:39:31]MH_GetDate [06:39:31]Write to MH i2c: F0 00 00 51 00 40 [06:39:31]Write i2c OK [06:39:31]MH_I2C_Read... [06:39:31]Read from MH i2c: F0 [06:39:31]MH_I2C_Read... [06:39:31]Read from MH i2c: F0 09 00 [06:39:31]MH_I2C_Read... [06:39:31]Read from MH i2c: F0 09 00 51 00 00 24 B1 10 67 F1 C7 6B 64 1C [06:39:31]GetLastDocTimeStamp 1729145629 [06:39:31]current date 1729147172 [06:39:31]FM_GetShiftState [06:39:31]SAM_PROTO_GetShiftState [06:39:31]wFMCommunicate request_size=4 [06:39:31]MH_SAM_APDU [06:39:31]CAPDU: 80 13 01 00 [06:39:31]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [06:39:31]Write i2c OK [06:39:31]MH_I2C_Read... [06:39:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:39:31]Read from MH i2c: E2 [06:39:32]MH_I2C_Read... [06:39:32]Read from MH i2c: E2 0E 00 [06:39:32]MH_I2C_Read... [06:39:32]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 D7 [06:39:32]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [06:39:32]wFMCommunicate OK [06:39:32]SAM_PROTO_GetShiftState done [06:39:32]FM_GetShiftState done [06:39:32]opened in 1729125927 [06:39:32]opened+sec_in_day 1729212327 [06:39:32]quantity*price = 120015 [06:39:32]sum+1 = 120016 [06:39:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 8 17.10.2024 06:39 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82082 ФПД: 81874807427017 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T063932&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82082&fm=81874807427017&tin=02508201610067®Number=0000000000091680&sum=120000 [06:39:33]StoreToDocumentArchive [06:39:33]shift 525 fd 82082 [06:39:33]save to /storage/0525/doc_00082082 [06:39:33]save last doc name /storage/0525/doc_00082082 to /storage/kkm_last_doc_name [06:39:33]save OK [06:39:33]Clear old archive folders... [06:39:33]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:39:33]tlvbuf is 01B3AC40 [06:39:33]SAM_PROTO_ClearQueue [06:39:33]wFMCommunicate request_size=4 [06:39:33]MH_SAM_APDU [06:39:33]CAPDU: 80 09 00 00 [06:39:33]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [06:39:33]Write i2c OK [06:39:33]MH_I2C_Read... [06:39:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:39:33]Read from MH i2c: E2 [06:39:33]MH_I2C_Read... [06:39:33]Read from MH i2c: E2 03 00 [06:39:33]MH_I2C_Read... [06:39:33]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [06:39:33]RAPDU: 90 00 [06:39:33]wFMCommunicate OK [06:39:33]SAM_PROTO_ClearQueue done [06:39:33]KKMCreateOFDPacket [06:39:33]OFDProtocolAddRootSTLVToBuf [06:39:33]FM_MakeSignedData [06:39:33]FM_MakeSignedData [06:39:33]SAM_PROTO_SignData [06:39:33]wFMCommunicate request_size=4 [06:39:33]MH_SAM_APDU [06:39:33]CAPDU: 80 0D 01 02 [06:39:33]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [06:39:33]Write i2c OK [06:39:33]MH_I2C_Read... [06:39:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:39:33]Read from MH i2c: E2 [06:39:33]MH_I2C_Read... [06:39:33]Read from MH i2c: E2 03 00 [06:39:33]MH_I2C_Read... [06:39:33]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [06:39:33]RAPDU: 90 00 [06:39:33]wFMCommunicate OK [06:39:33]wFMCommunicate request_size=255 [06:39:33]MH_SAM_APDU [06:39:33]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 24 B1 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A2 40 01 00 35 04 06 00 [06:39:33]Write to MH i2c: E2 02 01 61 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 24 B1 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A2 40 01 00 35 04 06 00 00 00 F8 [06:39:33]Write i2c OK [06:39:33]MH_I2C_Read... [06:39:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:39:33]Read from MH i2c: E2 [06:39:33]MH_I2C_Read... [06:39:33]Read from MH i2c: E2 03 00 [06:39:33]MH_I2C_Read... [06:39:33]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [06:39:33]RAPDU: 90 00 [06:39:33]wFMCommunicate OK [06:39:33]wFMCommunicate request_size=11 [06:39:33]MH_SAM_APDU [06:39:33]CAPDU: 80 0D 02 02 06 4A 76 F6 D0 0F C9 [06:39:33]Write to MH i2c: E2 0E 00 62 00 80 0D 02 02 06 00 4A 76 F6 D0 0F C9 00 00 46 [06:39:33]Write i2c OK [06:39:33]MH_I2C_Read... [06:39:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:39:33]Read from MH i2c: E2 [06:39:33]MH_I2C_Read... [06:39:33]Read from MH i2c: E2 03 00 [06:39:33]MH_I2C_Read... [06:39:33]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [06:39:33]RAPDU: 90 00 [06:39:33]wFMCommunicate OK [06:39:33]wFMCommunicate request_size=4 [06:39:33]MH_SAM_APDU [06:39:33]CAPDU: 80 0D 03 02 [06:39:33]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [06:39:33]Write i2c OK [06:39:33]MH_I2C_Read... [06:39:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:39:33]Read from MH i2c: E2 [06:39:33]MH_I2C_Read... [06:39:33]Read from MH i2c: E2 0B 00 [06:39:33]MH_I2C_Read... [06:39:33]Read from MH i2c: E2 0B 00 63 00 00 06 0B 71 2F 0A CE A2 74 90 00 7E [06:39:33]RAPDU: 06 0B 71 2F 0A CE A2 74 90 00 [06:39:33]wFMCommunicate OK [06:39:33]SAM_PROTO_SignData done [06:39:33]FM_MakeSignedData done [06:39:33]CreateOFDProtocolMessage [06:39:33]wFMCommunicate request_size=4 [06:39:33]MH_SAM_APDU [06:39:33]CAPDU: 80 11 00 00 [06:39:33]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [06:39:33]Write i2c OK [06:39:33]MH_I2C_Read... [06:39:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:39:33]Read from MH i2c: E2 [06:39:33]MH_I2C_Read... [06:39:33]Read from MH i2c: E2 17 00 [06:39:33]MH_I2C_Read... [06:39:33]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 30 [06:39:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [06:39:33]wFMCommunicate OK [06:39:33]CreateOFDProtocolMessage done [06:39:33]OFDSenderStorePacket 82082 [06:39:33]StoreOFDPacket docnum=82082 [06:39:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 03 50 08 01 E2 96 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 24 B1 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A2 40 01 00 35 04 06 00 4A 76 F6 D0 0F C9 06 0B 71 2F 0A CE A2 74 [06:39:33]CheckFolder [06:39:33]dirname=/storage/ofd_packets [06:39:33]CheckFolder done [06:39:33]ProducePacketName [06:39:33]name=ofd_packets/00082082 [06:39:33]NVStorageSaveData ofd_packets/00082082 [06:39:33]File name is /storage/ofd_packets/00082082 [06:39:33]Write 302 bytes [06:39:33]NVStorageSaveData done [06:39:33]OFDSenderStorePacket done [06:39:33]KKMCreateOFDPacket done [06:39:33]NVStorageSaveData kkm_last_timestamp [06:39:33]File name is /storage/kkm_last_timestamp [06:39:33]Write 4 bytes [06:39:33]NVStorageSaveData done [06:39:33]ExternCall_PrintAddStr [06:39:33]wPrintStart [06:39:33]Write to MH i2c: 01 00 00 65 00 65 [06:39:33]Write i2c OK [06:39:33]MH_I2C_Read... [06:39:33]Read from MH i2c: 01 [06:39:33]MH_I2C_Read... [06:39:33]Read from MH i2c: 01 07 00 [06:39:33]MH_I2C_Read... [06:39:33]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [06:39:33]RasterBufferAndPrint [06:39:33]line Счет N : (1)918589 [06:39:33]line ИНН: 02508201610067 [06:39:33]line Контрольно-Кассовый Чек [06:39:33]line ПРОДАЖА [06:39:33]line ТРК (МРК, ГНК) : 31 [06:39:33]line Товар: 2710194210 [06:39:33]line ДТ(л)-К-5 [06:39:33]line 15.750 * 76.20 [06:39:33]line = 1200.15 [06:39:33]line НДС 12% НСП 1% [06:39:33]line > о реализуемом товаре [06:39:33]line ОКРУГЛЕНИЕ: -0.15 [06:39:33]line ИТОГО: 1200.00 [06:39:33]line Внесено: 1200.00 [06:39:33]line СДАЧА: 0.00 [06:39:33]line НСП 1% : 10.62 [06:39:33]line НДС 12% : 127.45 [06:39:33]line Наличными: 1200.00 [06:39:33]line Безнал.: 0.00 [06:39:33]line Место: АЗС № 114 "Партнер Нефть" [06:39:33]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [06:39:33]line СНО: Общий режим [06:39:33]line Чек 8 17.10.2024 06:39 [06:39:33]line Смена: 525 ФФД: 1.0 [06:39:33]line ЗНМ: 0300000086 [06:39:33]line РНМ: 0000000000091680 [06:39:33]line Версия ККМ: 001 [06:39:33]line ФМ: 0000000000871843 [06:39:33]line ФД: 82082 [06:39:33]line ФПД: 81874807427017 [06:39:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T063932&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82082&fm=81874807427017&tin=02508201610067®Number=0000000000091680&sum=120000 [06:39:33]written 0, free lines is 4095 [06:39:33]OFD Sender: Processing packet 82082 [packets to send 254, broken 253] [06:39:33]ProducePacketName [06:39:33]name=ofd_packets/00082082 [06:39:33]OFD Sender: To server: pG, [06:39:33]CommunicateWithHost lk.salyk.kg:30040 [06:39:33]ConnectInit lk.salyk.kg [06:39:34]Write to MH i2c: 01 00 00 90 00 90 [06:39:34]Write i2c OK [06:39:34]MH_I2C_Read... [06:39:34]Read from MH i2c: 01 [06:39:34]MH_I2C_Read... [06:39:34]Read from MH i2c: 01 07 00 [06:39:34]MH_I2C_Read... [06:39:34]Read from MH i2c: 01 07 00 90 00 00 00 00 00 00 DF 0C 82 [06:39:34]RasterBufferAndPrint [06:39:34]line [06:39:34]line [06:39:34]line [06:39:34]line [06:39:34]line [06:39:34]written 0, free lines is 3300 [06:39:34]MH_Cut [06:39:34]Write to MH i2c: D1 01 00 97 00 01 69 [06:39:34]Write i2c OK [06:39:34]MH_I2C_Read... [06:39:34]Read from MH i2c: D1 [06:39:34]MH_I2C_Read... [06:39:34]Read from MH i2c: D1 01 00 [06:39:34]MH_I2C_Read... [06:39:34]Read from MH i2c: D1 01 00 97 00 00 68 [06:39:34]Write to MH i2c: 01 00 00 98 00 98 [06:39:34]Write i2c OK [06:39:34]MH_I2C_Read... [06:39:34]*** Cut start [06:39:34]*** Partial cut [06:39:34]*** CUTSNS_PIN = 1 [06:39:34]*** CUTSNS_PIN = 0 [06:39:35]*** Brake cut motor [06:39:35]Read from MH i2c: 01 [06:39:35]MH_I2C_Read... [06:39:35]*** Stop cut motor [06:39:35]*** Cut end [06:39:35]Read from MH i2c: 01 07 00 [06:39:35]MH_I2C_Read... [06:39:35]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 FF 0F AD [06:39:35]process_action close_receipt done [06:39:35]requested_data is exist [06:39:35]produce_requested_data [06:39:35]requested_item fm.sn is exist - process it [06:39:35]wFMCommunicate request_size=4 [06:39:35]MH_SAM_APDU [06:39:35]CAPDU: 80 11 00 00 [06:39:35]Write to MH i2c: E2 08 00 99 00 80 11 00 00 00 00 00 00 13 [06:39:35]Write i2c OK [06:39:35]MH_I2C_Read... [06:39:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:39:35]Read from MH i2c: E2 [06:39:35]MH_I2C_Read... [06:39:35]Read from MH i2c: E2 17 00 [06:39:35]MH_I2C_Read... [06:39:35]Read from MH i2c: E2 17 00 99 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 65 [06:39:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [06:39:35]wFMCommunicate OK [06:39:35]requested_item fd.num is exist - process it [06:39:35]SAM_PROTO_GetFieldsCounters [06:39:35]wFMCommunicate request_size=4 [06:39:35]MH_SAM_APDU [06:39:35]CAPDU: 80 13 00 00 [06:39:35]Write to MH i2c: E2 08 00 9A 00 80 13 00 00 00 00 00 00 16 [06:39:35]Write i2c OK [06:39:35]MH_I2C_Read... [06:39:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:39:35]Read from MH i2c: E2 [06:39:35]MH_I2C_Read... [06:39:35]Read from MH i2c: E2 62 00 [06:39:35]MH_I2C_Read... [06:39:35]Read from MH i2c: E2 62 00 9A 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A2 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [06:39:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A2 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:39:35]wFMCommunicate OK [06:39:35]SAM_PROTO_GetFieldsCounters done [06:39:35]requested_item shift.num is exist - process it [06:39:35]requested_item shift.opened is exist - process it [06:39:35]req_shift_opened [06:39:35]FM_GetShiftState [06:39:35]SAM_PROTO_GetShiftState [06:39:35]wFMCommunicate request_size=4 [06:39:35]MH_SAM_APDU [06:39:35]CAPDU: 80 13 01 00 [06:39:35]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [06:39:35]Write i2c OK [06:39:35]MH_I2C_Read... [06:39:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:39:35]Read from MH i2c: E2 [06:39:35]MH_I2C_Read... [06:39:35]Read from MH i2c: E2 0E 00 [06:39:35]MH_I2C_Read... [06:39:35]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 20 [06:39:35]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [06:39:35]wFMCommunicate OK [06:39:35]SAM_PROTO_GetShiftState done [06:39:35]FM_GetShiftState done [06:39:35]req_shift_opened done [06:39:35]requested_item shift.open_date is exist - process it [06:39:35]req_shift_open_date [06:39:35]req_shift_open_date done [06:39:35]produce_requested_data done [06:39:35]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82082,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [06:39:35]process_action_free close_receipt [06:39:35]json_value_free [06:39:35]json_value_free done [06:39:35]process_json_proto returns [06:39:35]Send response to host [06:39:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82082,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [06:39:35]free response buf [06:39:35]execute_script done [06:39:35]execute_script returns [06:39:35]free content buf [06:39:35]Sock 6.Close socket [06:39:35]Sock 6.Thread stoped [06:39:38]ConnectInit Can't take IP for lk.salyk.kg [06:39:38]CommunicateWithHost connect error [06:39:38]CommunicateWithHost err = -1 [06:39:38]OFD Sender: Server communicate error [06:39:43]OFD Sender: Processing packet 82082 [packets to send 254, broken 253] [06:39:43]ProducePacketName [06:39:43]name=ofd_packets/00082082 [06:39:43]OFD Sender: To server: pG, [06:39:43]CommunicateWithHost lk.salyk.kg:30040 [06:39:43]ConnectInit lk.salyk.kg [06:39:45]recv_with_timeout no data received [06:39:48]ConnectInit Can't take IP for lk.salyk.kg [06:39:48]CommunicateWithHost connect error [06:39:48]CommunicateWithHost err = -1 [06:39:48]OFD Sender: Server communicate error [06:39:53]OFD Sender: Processing packet 82082 [packets to send 254, broken 253] [06:39:53]ProducePacketName [06:39:53]name=ofd_packets/00082082 [06:39:53]OFD Sender: To server: pG, [06:39:53]CommunicateWithHost lk.salyk.kg:30040 [06:39:53]ConnectInit lk.salyk.kg [06:39:58]ConnectInit Can't take IP for lk.salyk.kg [06:39:58]CommunicateWithHost connect error [06:39:58]CommunicateWithHost err = -1 [06:39:58]OFD Sender: Server communicate error [06:40:03]OFD Sender: Processing packet 82082 [packets to send 254, broken 253] [06:40:03]ProducePacketName [06:40:03]name=ofd_packets/00082082 [06:40:03]OFD Sender: To server: pG, [06:40:03]CommunicateWithHost lk.salyk.kg:30040 [06:40:03]ConnectInit lk.salyk.kg [06:40:08]Connected sock=9 [06:40:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 03 50 08 01 E2 96 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 24 B1 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A2 40 01 00 35 04 06 00 4A 76 F6 D0 0F C9 06 0B 71 2F 0A CE A2 74 [06:40:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 46 82 47 00 0C BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A2 40 01 00 F4 03 04 00 85 56 10 67 B6 04 01 00 00 71 83 E3 B4 E1 39 4D 5E [06:40:09]CommunicateWithHost err = 0 [06:40:09]CheckOFDResponse [06:40:09]1017 (14) - 77093643461234 [06:40:09]1041 (16) - 0000000000871843 [06:40:09]1040 (4) - 82082 [06:40:09]1012 (4) - 17.10.2024 00:12 [06:40:09]1206 (1) - 0 [06:40:09]OFD Sender: Remove packet 82082 [06:40:09]ProducePacketName [06:40:09]name=ofd_packets/00082082 [06:40:09]NVStorageDeleteData [06:40:09]OFD Sender: No OFD packet to send [06:40:11]recv_with_timeout no data received [06:40:14]OFD Sender: No OFD packet to send [06:40:19]OFD Sender: No OFD packet to send [06:40:21]recv_with_timeout no data received [06:40:24]OFD Sender: No OFD packet to send [06:40:29]OFD Sender: No OFD packet to send [06:40:32]recv_with_timeout no data received [06:40:34]OFD Sender: No OFD packet to send [06:40:39]OFD Sender: No OFD packet to send [06:40:44]OFD Sender: No OFD packet to send [06:40:49]OFD Sender: No OFD packet to send [06:40:54]OFD Sender: No OFD packet to send [06:40:59]OFD Sender: No OFD packet to send [06:41:04]OFD Sender: No OFD packet to send [06:41:09]OFD Sender: No OFD packet to send [06:41:14]OFD Sender: No OFD packet to send [06:41:19]OFD Sender: No OFD packet to send [06:41:24]OFD Sender: No OFD packet to send [06:41:29]OFD Sender: No OFD packet to send [06:41: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:30]OFD Sender: No OFD packet to send [06:48:35]OFD Sender: No OFD packet to send [06:48:40]OFD Sender: No OFD packet to send [06:48:45]OFD Sender: No OFD packet to send [06:48:50]OFD Sender: No OFD packet to send [06:48:55]OFD Sender: No OFD packet to send [06:49:00]OFD Sender: No OFD packet to send [06:49:05]OFD Sender: No OFD packet to send [06:49:10]OFD Sender: No OFD packet to send [06:49:15]OFD Sender: No OFD packet to send [06:49:20]OFD Sender: No OFD packet to send [06:49:25]OFD Sender: No OFD packet to send [06:49:30]OFD Sender: No OFD packet to send [06:49:35]OFD Sender: No OFD packet to send [06:49:40]OFD Sender: No OFD packet to send [06:49:45]OFD Sender: No OFD packet to send [06:49:50]OFD Sender: No OFD packet to send [06:49:55]OFD Sender: No OFD packet to send [06:50:00]OFD Sender: No OFD packet to send [06:50:05]OFD Sender: No OFD packet to send [06:50:10]OFD Sender: No OFD packet to send [06:50:15]OFD Sender: No OFD packet to send [06:50:20]OFD Sender: No OFD packet to send [06:50:25]OFD Sender: No OFD packet to send [06:50:30]OFD Sender: No OFD packet to send [06:50:35]OFD Sender: No OFD packet to send [06:50:40]OFD Sender: No OFD packet to send [06:50:45]OFD Sender: No OFD packet to send [06:50:50]OFD Sender: No OFD packet to send [06:50:55]OFD Sender: No OFD packet to send [06:51:00]OFD Sender: No OFD packet to send [06:51:05]OFD Sender: No OFD packet to send [06:51:10]OFD Sender: No OFD packet to send [06:51:15]OFD Sender: No OFD packet to send [06:51:20]OFD Sender: No OFD packet to send [06:51:25]OFD Sender: No OFD packet to send [06:51:30]OFD Sender: No OFD packet to send [06:51:35]OFD Sender: No OFD packet to send [06:51:40]OFD Sender: No OFD packet to send [06:51:45]OFD Sender: No OFD packet to send [06:51:51]OFD Sender: No OFD packet to send [06:51:56]OFD Sender: No OFD packet to send [06:52:01]OFD Sender: No OFD packet to send [06:52:06]OFD Sender: No OFD packet to send [06:52:11]OFD Sender: No OFD packet to send [06:52:16]OFD Sender: No OFD packet to send [06:52:21]OFD Sender: No OFD packet to send [06:52:26]OFD Sender: No OFD packet to send [06:52:31]OFD Sender: No OFD packet to send [06:52:36]OFD Sender: No OFD packet to send [06:52:41]OFD Sender: No OFD packet to send [06:52:46]OFD Sender: No OFD packet to send [06:52:51]OFD Sender: No OFD packet to send [06:52:56]OFD Sender: No OFD packet to send [06:53:01]OFD Sender: No OFD packet to send [06:53:06]OFD Sender: No OFD packet to send [06:53:11]OFD Sender: No OFD packet to send [06:53:16]OFD Sender: No OFD packet to send [06:53:21]OFD Sender: No OFD packet to send [06:53:26]OFD Sender: No OFD packet to send [06:53:31]OFD Sender: No OFD packet to send [06:53:36]OFD Sender: No OFD packet to send [06:53:41]OFD Sender: No OFD packet to send [06:53:46]OFD Sender: No OFD packet to send [06:53:51]OFD Sender: No OFD packet to send [06:53:56]OFD Sender: No OFD packet to send [06:54:01]OFD Sender: No OFD packet to send [06:54:06]OFD Sender: No OFD packet to send [06:54:11]OFD Sender: No OFD packet to send [06:54:16]OFD Sender: No OFD packet to send [06:54:21]OFD Sender: No OFD packet to send [06:54:26]OFD Sender: No OFD packet to send [06:54:31]OFD Sender: No OFD packet to send [06:54:36]OFD Sender: No OFD packet to send [06:54:41]OFD Sender: No OFD packet to send [06:54:46]OFD Sender: No OFD packet to send [06:54:51]OFD Sender: No OFD packet to send [06:54:56]OFD Sender: No OFD packet to send [06:55:01]OFD Sender: No OFD packet to send [06:55:06]OFD Sender: No OFD packet to send [06:55:11]OFD Sender: No OFD packet to send [06:55:16]OFD Sender: No OFD packet to send [06:55:21]OFD Sender: No OFD packet to send [06:55:26]OFD Sender: No OFD packet to send [06:55:31]OFD Sender: No OFD packet to send [06:55:36]OFD Sender: No OFD packet to send [06:55:41]OFD Sender: No OFD packet to send [06:55:46]OFD Sender: No OFD packet to send [06:55:51]OFD Sender: No OFD packet to send [06:55:56]OFD Sender: No OFD packet to send [06:56:01]OFD Sender: No OFD packet to send [06:56:06]OFD Sender: No OFD packet to send [06:56:11]OFD Sender: No OFD packet to send [06:56:16]OFD Sender: No OFD packet to send [06:56:21]OFD Sender: No OFD packet to send [06:56:26]OFD Sender: No OFD packet to send [06:56:31]OFD Sender: No OFD packet to send [06:56:36]OFD Sender: No OFD packet to send [06:56:41]OFD Sender: No OFD packet to send [06:56:46]OFD Sender: No OFD packet to send [06:56:51]OFD Sender: No OFD packet to send [06:56:56]OFD Sender: No OFD packet to send [06:57:01]OFD Sender: No OFD packet to send [06:57:06]OFD Sender: No OFD packet to send [06:57:11]OFD Sender: No OFD packet to send [06:57:16]OFD Sender: No OFD packet to send [06:57:21]OFD Sender: No OFD packet to send [06:57:26]OFD Sender: No OFD packet to send [06:57:31]OFD Sender: No OFD packet to send [06:57:36]OFD Sender: No OFD packet to send [06:57:41]OFD Sender: No OFD packet to send [06:57:46]OFD Sender: No OFD packet to send [06:57:51]OFD Sender: No OFD packet to send [06:57:56]OFD Sender: No OFD packet to send [06:58:01]OFD Sender: No OFD packet to send [06:58:06]OFD Sender: No OFD packet to send [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:21]OFD Sender: No OFD packet to send [06:58:26]OFD Sender: No OFD packet to send [06:58:31]OFD Sender: No OFD packet to send [06:58:36]OFD Sender: No OFD packet to send [06:58:41]OFD Sender: No OFD packet to send [06:58:46]OFD Sender: No OFD packet to send [06:58:51]OFD Sender: No OFD packet to send [06:58:56]OFD Sender: No OFD packet to send [06:59:01]OFD Sender: No OFD packet to send [06:59:06]OFD Sender: No OFD packet to send [06:59:11]OFD Sender: No OFD packet to send [06:59:16]OFD Sender: No OFD packet to send [06:59:21]OFD Sender: No OFD packet to send [06:59:26]OFD Sender: No OFD packet to send [06:59:31]OFD Sender: No OFD packet to send [06:59:36]OFD Sender: No OFD packet to send [06:59:41]OFD Sender: No OFD packet to send [06:59:46]OFD Sender: No OFD packet to send [06:59:51]OFD Sender: No OFD packet to send [06:59:56]OFD Sender: No OFD packet to send [07:00:01]OFD Sender: No OFD packet to send [07:00:06]OFD Sender: No OFD packet to send [07:00:11]OFD Sender: No OFD packet to send [07:00:16]OFD Sender: No OFD packet to send [07:00:21]OFD Sender: No OFD packet to send [07:00:26]OFD Sender: No OFD packet to send [07:00:31]OFD Sender: No OFD packet to send [07:00:36]OFD Sender: No OFD packet to send [07:00:41]OFD Sender: No OFD packet to send [07:00:46]OFD Sender: No OFD packet to send [07:00:51]OFD Sender: No OFD packet to send [07:00:56]OFD Sender: No OFD packet to send [07:01:01]OFD Sender: No OFD packet to send [07:01:06]OFD Sender: No OFD packet to send [07:01:11]OFD Sender: No OFD packet to send [07:01:16]OFD Sender: No OFD packet to send [07:01:21]OFD Sender: No OFD packet to send [07:01:26]OFD Sender: No OFD packet to send [07:01:31]OFD Sender: No OFD packet to send [07:01:36]OFD Sender: No OFD packet to send [07:01:41]OFD Sender: No OFD packet to send [07:01:46]OFD Sender: No OFD packet to send [07:01:51]OFD Sender: No OFD packet to send [07:01:57]OFD Sender: No OFD packet to send [07:02:02]OFD Sender: No OFD packet to send [07:02:07]OFD Sender: No OFD packet to send [07:02:12]OFD Sender: No OFD packet to send [07:02:17]OFD Sender: No OFD packet to send [07:02:22]OFD Sender: No OFD packet to send [07:02:27]OFD Sender: No OFD packet to send [07:02:32]OFD Sender: No OFD packet to send [07:02:37]OFD Sender: No OFD packet to send [07:02:42]OFD Sender: No OFD packet to send [07:02:47]OFD Sender: No OFD packet to send [07:02:52]OFD Sender: No OFD packet to send [07:02:57]OFD Sender: No OFD packet to send [07:03:02]OFD Sender: No OFD packet to send [07:03:07]OFD Sender: No OFD packet to send [07:03:12]OFD Sender: No OFD packet to send [07:03:17]OFD Sender: No OFD packet to send [07:03:22]OFD Sender: No OFD packet to send [07:03:27]OFD Sender: No OFD packet to send [07:03:32]OFD Sender: No OFD packet to send [07:03:37]OFD Sender: No OFD packet to send [07:03:42]OFD Sender: No OFD packet to send [07:03:47]OFD Sender: No OFD packet to send [07:03:52]OFD Sender: No OFD packet to send [07:03:57]OFD Sender: No OFD packet to send [07:04:02]OFD Sender: No OFD packet to send [07:04:07]OFD Sender: No OFD packet to send [07:04:12]OFD Sender: No OFD packet to send [07:04:17]OFD Sender: No OFD packet to send [07:04:22]OFD Sender: No OFD packet to send [07:04:27]OFD Sender: No OFD packet to send [07:04:32]OFD Sender: No OFD packet to send [07:04:37]OFD Sender: No OFD packet to send [07:04:42]OFD Sender: No OFD packet to send [07:04:47]OFD Sender: No OFD packet to send [07:04:52]OFD Sender: No OFD packet to send [07:04:57]OFD Sender: No OFD packet to send [07:05:02]OFD Sender: No OFD packet to send [07:05:07]OFD Sender: No OFD packet to send [07:05:12]OFD Sender: No OFD packet to send [07:05:17]OFD Sender: No OFD packet to send [07:05:22]OFD Sender: No OFD packet to send [07:05:27]OFD Sender: No OFD packet to send [07:05:32]OFD Sender: No OFD packet to send [07:05:37]OFD Sender: No OFD packet to send [07:05:42]OFD Sender: No OFD packet to send [07:05:47]OFD Sender: No OFD packet to send [07:05:52]OFD Sender: No OFD packet to send [07:05:57]OFD Sender: No OFD packet to send [07:06:02]OFD Sender: No OFD packet to send [07:06:07]OFD Sender: No OFD packet to send [07:06:12]OFD Sender: No OFD packet to send [07:06:17]OFD Sender: No OFD packet to send [07:06:22]OFD Sender: No OFD packet to send [07:06:27]OFD Sender: No OFD packet to send [07:06:32]OFD Sender: No OFD packet to send [07:06:37]OFD Sender: No OFD packet to send [07:06:42]OFD Sender: No OFD packet to send [07:06:47]OFD Sender: No OFD packet to send [07:06:52]OFD Sender: No OFD packet to send [07:06:57]OFD Sender: No OFD packet to send [07:07:02]OFD Sender: No OFD packet to send [07:07:07]OFD Sender: No OFD packet to send [07:07:12]OFD Sender: No OFD packet to send [07:07:17]OFD Sender: No OFD packet to send [07:07:22]OFD Sender: No OFD packet to send [07:07:27]OFD Sender: No OFD packet to send [07:07:32]OFD Sender: No OFD packet to send [07:07:37]OFD Sender: No OFD packet to send [07:07:42]OFD Sender: No OFD packet to send [07:07:47]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:02]OFD Sender: No OFD packet to send [07:08:07]OFD Sender: No OFD packet to send [07:08:12]OFD Sender: No OFD packet to send [07:08:17]OFD Sender: No OFD packet to send [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08:42]OFD Sender: No OFD packet to send [07:08:47]OFD Sender: No OFD packet to send [07:08:52]OFD Sender: No OFD packet to send [07:08:57]OFD Sender: No OFD packet to send [07:09:02]OFD Sender: No OFD packet to send [07:09:07]OFD Sender: No OFD packet to send [07:09:12]OFD Sender: No OFD packet to send [07:09:17]OFD Sender: No OFD packet to send [07:09:22]OFD Sender: No OFD packet to send [07:09:27]OFD Sender: No OFD packet to send [07:09:32]OFD Sender: No OFD packet to send [07:09:37]OFD Sender: No OFD packet to send [07:09:42]OFD Sender: No OFD packet to send [07:09:47]OFD Sender: No OFD packet to send [07:09:52]OFD Sender: No OFD packet to send [07:09:57]OFD Sender: No OFD packet to send [07:10:02]OFD Sender: No OFD packet to send [07:10:07]OFD Sender: No OFD packet to send [07:10:12]OFD Sender: No OFD packet to send [07:10:17]OFD Sender: No OFD packet to send [07:10:22]OFD Sender: No OFD packet to send [07:10:27]OFD Sender: No OFD packet to send [07:10:32]OFD Sender: No OFD packet to send [07:10:37]OFD Sender: No OFD packet to send [07:10:42]OFD Sender: No OFD packet to send [07:10:47]OFD Sender: No OFD packet to send [07:10:52]OFD Sender: No OFD packet to send [07:10:57]OFD Sender: No OFD packet to send [07:11:02]OFD Sender: No OFD packet to send [07:11:07]OFD Sender: No OFD packet to send [07:11:12]OFD Sender: No OFD packet to send [07:11:17]OFD Sender: No OFD packet to send [07:11:22]OFD Sender: No OFD packet to send [07:11:27]OFD Sender: No OFD packet to send [07:11:32]OFD Sender: No OFD packet to send [07:11:37]OFD Sender: No OFD packet to send [07:11:42]OFD Sender: No OFD packet to send [07:11:47]OFD Sender: No OFD packet to send [07:11:52]OFD Sender: No OFD packet to send [07:11:58]OFD Sender: No OFD packet to send [07:12:03]OFD Sender: No OFD packet to send [07:12:08]OFD Sender: No OFD packet to send [07:12:13]OFD Sender: No OFD packet to send [07:12:18]OFD Sender: No OFD packet to send [07:12:23]OFD Sender: No OFD packet to send [07:12:28]OFD Sender: No OFD packet to send [07:12:33]OFD Sender: No OFD packet to send [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:18]OFD Sender: No OFD packet to send [07:18:23]OFD Sender: No OFD packet to send [07:18:28]OFD Sender: No OFD packet to send [07:18:33]OFD Sender: No OFD packet to send [07:18:38]OFD Sender: No OFD packet to send [07:18:43]OFD Sender: No OFD packet to send [07:18:48]OFD Sender: No OFD packet to send [07:18:53]OFD Sender: No OFD packet to send [07:18:58]OFD Sender: No OFD packet to send [07:19:03]OFD Sender: No OFD packet to send [07:19:08]OFD Sender: No OFD packet to send [07:19:13]OFD Sender: No OFD packet to send [07:19:18]OFD Sender: No OFD packet to send [07:19:23]OFD Sender: No OFD packet to send [07:19:28]OFD Sender: No OFD packet to send [07:19:33]OFD Sender: No OFD packet to send [07:19:38]OFD Sender: No OFD packet to send [07:19:43]OFD Sender: No OFD packet to send [07:19:48]OFD Sender: No OFD packet to send [07:19:53]OFD Sender: No OFD packet to send [07:19:58]OFD Sender: No OFD packet to send [07:20:03]OFD Sender: No OFD packet to send [07:20:08]OFD Sender: No OFD packet to send [07:20:13]OFD Sender: No OFD packet to send [07:20:18]OFD Sender: No OFD packet to send [07:20:23]OFD Sender: No OFD packet to send [07:20:28]OFD Sender: No OFD packet to send [07:20:33]OFD Sender: No OFD packet to send [07:20:38]OFD Sender: No OFD packet to send [07:20:43]OFD Sender: No OFD packet to send [07:20:48]OFD Sender: No OFD packet to send [07:20:53]OFD Sender: No OFD packet to send [07:20:58]OFD Sender: No OFD packet to send [07:21:03]OFD Sender: No OFD packet to send [07:21:08]OFD Sender: No OFD packet to send [07:21:13]OFD Sender: No OFD packet to send [07:21:18]OFD Sender: No OFD packet to send [07:21:23]OFD Sender: No OFD packet to send [07:21:28]OFD Sender: No OFD packet to send [07:21:33]OFD Sender: No OFD packet to send [07:21:38]OFD Sender: No OFD packet to send [07:21:43]OFD Sender: No OFD packet to send [07:21:48]OFD Sender: No OFD packet to send [07:21:53]OFD Sender: No OFD packet to send [07:21:58]OFD Sender: No OFD packet to send [07:22:04]OFD Sender: No OFD packet to send [07:22:09]OFD Sender: No OFD packet to send [07:22:14]OFD Sender: No OFD packet to send [07:22:19]OFD Sender: No OFD packet to send [07:22:24]OFD Sender: No OFD packet to send [07:22:29]OFD Sender: No OFD packet to send [07:22:34]OFD Sender: No OFD packet to send [07:22:39]OFD Sender: No OFD packet to send [07:22:44]OFD Sender: No OFD packet to send [07:22:49]OFD Sender: No OFD packet to send [07:22:54]OFD Sender: No OFD packet to send [07:22:59]OFD Sender: No OFD packet to send [07:23:04]OFD Sender: No OFD packet to send [07:23:09]OFD Sender: No OFD packet to send [07:23:14]OFD Sender: No OFD packet to send [07:23:19]OFD Sender: No OFD packet to send [07:23:24]OFD Sender: No OFD packet to send [07:23:29]OFD Sender: No OFD packet to send [07:23:34]OFD Sender: No OFD packet to send [07:23:39]OFD Sender: No OFD packet to send [07:23:44]OFD Sender: No OFD packet to send [07:23:49]OFD Sender: No OFD packet to send [07:23:54]OFD Sender: No OFD packet to send [07:23:59]OFD Sender: No OFD packet to send [07:24:04]OFD Sender: No OFD packet to send [07:24:09]OFD Sender: No OFD packet to send [07:24:14]OFD Sender: No OFD packet to send [07:24:19]OFD Sender: No OFD packet to send [07:24:24]OFD Sender: No OFD packet to send [07:24:29]OFD Sender: No OFD packet to send [07:24:34]OFD Sender: No OFD packet to send [07:24:39]OFD Sender: No OFD packet to send [07:24:44]OFD Sender: No OFD packet to send [07:24:49]OFD Sender: No OFD packet to send [07:24:54]OFD Sender: No OFD packet to send [07:24:59]OFD Sender: No OFD packet to send [07:25:04]OFD Sender: No OFD packet to send [07:25:09]OFD Sender: No OFD packet to send [07:25:14]OFD Sender: No OFD packet to send [07:25:19]OFD Sender: No OFD packet to send [07:25:24]OFD Sender: No OFD packet to send [07:25:29]OFD Sender: No OFD packet to send [07:25:34]OFD Sender: No OFD packet to send [07:25:39]OFD Sender: No OFD packet to send [07:25:44]OFD Sender: No OFD packet to send [07:25:49]OFD Sender: No OFD packet to send [07:25:54]OFD Sender: No OFD packet to send [07:25:59]OFD Sender: No OFD packet to send [07:26:04]OFD Sender: No OFD packet to send [07:26:09]OFD Sender: No OFD packet to send [07:26:14]OFD Sender: No OFD packet to send [07:26:19]OFD Sender: No OFD packet to send [07:26:24]OFD Sender: No OFD packet to send [07:26:29]OFD Sender: No OFD packet to send [07:26:34]OFD Sender: No OFD packet to send [07:26:39]OFD Sender: No OFD packet to send [07:26:44]OFD Sender: No OFD packet to send [07:26:49]OFD Sender: No OFD packet to send [07:26:54]OFD Sender: No OFD packet to send [07:26:59]OFD Sender: No OFD packet to send [07:27:04]OFD Sender: No OFD packet to send [07:27:09]OFD Sender: No OFD packet to send [07:27:14]OFD Sender: No OFD packet to send [07:27:19]OFD Sender: No OFD packet to send [07:27:24]OFD Sender: No OFD packet to send [07:27:29]OFD Sender: No OFD packet to send [07:27:34]OFD Sender: No OFD packet to send [07:27:39]OFD Sender: No OFD packet to send [07:27:44]OFD Sender: No OFD packet to send [07:27:49]OFD Sender: No OFD packet to send [07:27:54]OFD Sender: No OFD packet to send [07:27:59]OFD Sender: No OFD packet to send [07:28:04]OFD Sender: No OFD packet to send [07:28:09]OFD Sender: No OFD packet to send [07:28:14]OFD Sender: No OFD packet to send [07:28:19]OFD Sender: No OFD packet to send [07:28:24]OFD Sender: No OFD packet to send [07:28:29]OFD Sender: No OFD packet to send [07:28:34]OFD Sender: No OFD packet to send [07:28:39]OFD Sender: No OFD packet to send [07:28:44]OFD Sender: No OFD packet to send [07:28:49]OFD Sender: No OFD packet to send [07:28:54]OFD Sender: No OFD packet to send [07:28:59]OFD Sender: No OFD packet to send [07:29:04]OFD Sender: No OFD packet to send [07:29:09]OFD Sender: No OFD packet to send [07:29:14]OFD Sender: No OFD packet to send [07:29:19]OFD Sender: No OFD packet to send [07:29:24]OFD Sender: No OFD packet to send [07:29:29]OFD Sender: No OFD packet to send [07:29:34]OFD Sender: No OFD packet to send [07:29:39]OFD Sender: No OFD packet to send [07:29:44]OFD Sender: No OFD packet to send [07:29:49]OFD Sender: No OFD packet to send [07:29:54]OFD Sender: No OFD packet to send [07:29:59]OFD Sender: No OFD packet to send [07:30:04]OFD Sender: No OFD packet to send [07:30:09]OFD Sender: No OFD packet to send [07:30:14]OFD Sender: No OFD packet to send [07:30:19]OFD Sender: No OFD packet to send [07:30:24]OFD Sender: No OFD packet to send [07:30:29]OFD Sender: No OFD packet to send [07:30:34]OFD Sender: No OFD packet to send [07:30:39]OFD Sender: No OFD packet to send [07:30:44]OFD Sender: No OFD packet to send [07:30:49]OFD Sender: No OFD packet to send [07:30:54]OFD Sender: No OFD packet to send [07:30:59]OFD Sender: No OFD packet to send [07:31:04]OFD Sender: No OFD packet to send [07:31:09]OFD Sender: No OFD packet to send [07:31:14]OFD Sender: No OFD packet to send [07:31:19]OFD Sender: No OFD packet to send [07:31:24]OFD Sender: No OFD packet to send [07:31:29]OFD Sender: No OFD packet to send [07:31:34]OFD Sender: No OFD packet to send [07:31:39]OFD Sender: No OFD packet to send [07:31:44]OFD Sender: No OFD packet to send [07:31:49]OFD Sender: No OFD packet to send [07:31:54]OFD Sender: No OFD packet to send [07:31:59]OFD Sender: No OFD packet to send [07:32:05]OFD Sender: No OFD packet to send [07:32:10]OFD Sender: No OFD packet to send [07:32:15]OFD Sender: No OFD packet to send [07:32:20]OFD Sender: No OFD packet to send [07:32:25]OFD Sender: No OFD packet to send [07:32:30]OFD Sender: No OFD packet to send [07:32:35]OFD Sender: No OFD packet to send [07:32:40]OFD Sender: No OFD packet to send [07:32:45]OFD Sender: No OFD packet to send [07:32:50]OFD Sender: No OFD packet to send [07:32:55]OFD Sender: No OFD packet to send [07:33:00]OFD Sender: No OFD packet to send [07:33:05]OFD Sender: No OFD packet to send [07:33:10]OFD Sender: No OFD packet to send [07:33:15]OFD Sender: No OFD packet to send [07:33:20]OFD Sender: No OFD packet to send [07:33:25]OFD Sender: No OFD packet to send [07:33:30]OFD Sender: No OFD packet to send [07:33:35]OFD Sender: No OFD packet to send [07:33:40]OFD Sender: No OFD packet to send [07:33:45]OFD Sender: No OFD packet to send [07:33:50]OFD Sender: No OFD packet to send [07:33:55]OFD Sender: No OFD packet to send [07:34:00]OFD Sender: No OFD packet to send [07:34:05]OFD Sender: No OFD packet to send [07:34:10]OFD Sender: No OFD packet to send [07:34:15]OFD Sender: No OFD packet to send [07:34:20]OFD Sender: No OFD packet to send [07:34:25]OFD Sender: No OFD packet to send [07:34:30]OFD Sender: No OFD packet to send [07:34:35]OFD Sender: No OFD packet to send [07:34:40]OFD Sender: No OFD packet to send [07:34:45]OFD Sender: No OFD packet to send [07:34:50]OFD Sender: No OFD packet to send [07:34:55]OFD Sender: No OFD packet to send [07:35:00]OFD Sender: No OFD packet to send [07:35:05]OFD Sender: No OFD packet to send [07:35:10]OFD Sender: No OFD packet to send [07:35:15]OFD Sender: No OFD packet to send [07:35:20]OFD Sender: No OFD packet to send [07:35:25]OFD Sender: No OFD packet to send [07:35:30]OFD Sender: No OFD packet to send [07:35:35]OFD Sender: No OFD packet to send [07:35:40]OFD Sender: No OFD packet to send [07:35:45]OFD Sender: No OFD packet to send [07:35:50]OFD Sender: No OFD packet to send [07:35:55]OFD Sender: No OFD packet to send [07:36:00]OFD Sender: No OFD packet to send [07:36:05]OFD Sender: No OFD packet to send [07:36:10]OFD Sender: No OFD packet to send [07:36:15]OFD Sender: No OFD packet to send [07:36:20]OFD Sender: No OFD packet to send [07:36:25]OFD Sender: No OFD packet to send [07:36:30]OFD Sender: No OFD packet to send [07:36:35]OFD Sender: No OFD packet to send [07:36:40]OFD Sender: No OFD packet to send [07:36:45]OFD Sender: No OFD packet to send [07:36:50]OFD Sender: No OFD packet to send [07:36:55]OFD Sender: No OFD packet to send [07:37:00]OFD Sender: No OFD packet to send [07:37:05]OFD Sender: No OFD packet to send [07:37:10]OFD Sender: No OFD packet to send [07:37:15]OFD Sender: No OFD packet to send [07:37:20]OFD Sender: No OFD packet to send [07:37:25]OFD Sender: No OFD packet to send [07:37:30]OFD Sender: No OFD packet to send [07:37:35]OFD Sender: No OFD packet to send [07:37:40]OFD Sender: No OFD packet to send [07:37:45]OFD Sender: No OFD packet to send [07:37:50]OFD Sender: No OFD packet to send [07:37:55]OFD Sender: No OFD packet to send [07:38:00]OFD Sender: No OFD packet to send [07:38:05]OFD Sender: No OFD packet to send [07:38:10]OFD Sender: No OFD packet to send [07:38:15]OFD Sender: No OFD packet to send [07:38:20]OFD Sender: No OFD packet to send [07:38:25]OFD Sender: No OFD packet to send [07:38:30]OFD Sender: No OFD packet to send [07:38:35]OFD Sender: No OFD packet to send [07:38:40]OFD Sender: No OFD packet to send [07:38:45]OFD Sender: No OFD packet to send [07:38:50]OFD Sender: No OFD packet to send [07:38:55]OFD Sender: No OFD packet to send [07:39:00]OFD Sender: No OFD packet to send [07:39:05]OFD Sender: No OFD packet to send [07:39:10]OFD Sender: No OFD packet to send [07:39:15]OFD Sender: No OFD packet to send [07:39:20]OFD Sender: No OFD packet to send [07:39:25]OFD Sender: No OFD packet to send [07:39:30]OFD Sender: No OFD packet to send [07:39:35]OFD Sender: No OFD packet to send [07:39:40]OFD Sender: No OFD packet to send [07:39:45]OFD Sender: No OFD packet to send [07:39:50]OFD Sender: No OFD packet to send [07:39:55]OFD Sender: No OFD packet to send [07:40:00]OFD Sender: No OFD packet to send [07:40:05]OFD Sender: No OFD packet to send [07:40:10]OFD Sender: No OFD packet to send [07:40:15]OFD Sender: No OFD packet to send [07:40:20]OFD Sender: No OFD packet to send [07:40:25]OFD Sender: No OFD packet to send [07:40:30]OFD Sender: No OFD packet to send [07:40:35]OFD Sender: No OFD packet to send [07:40:40]OFD Sender: No OFD packet to send [07:40:45]OFD Sender: No OFD packet to send [07:40:50]OFD Sender: No OFD packet to send [07:40:55]OFD Sender: No OFD packet to send [07:41:00]OFD Sender: No OFD packet to send [07:41:05]OFD Sender: No OFD packet to send [07:41:10]OFD Sender: No OFD packet to send [07:41:15]OFD Sender: No OFD packet to send [07:41:20]OFD Sender: No OFD packet to send [07:41:25]OFD Sender: No OFD packet to send [07:41:30]OFD Sender: No OFD packet to send [07:41:35]OFD Sender: No OFD packet to send [07:41:40]OFD Sender: No OFD packet to send [07:41:45]OFD Sender: No OFD packet to send [07:41:50]OFD Sender: No OFD packet to send [07:41:55]OFD Sender: No OFD packet to send [07:42:00]OFD Sender: No OFD packet to send [07:42:05]OFD Sender: No OFD packet to send [07:42:10]OFD Sender: No OFD packet to send [07:42:16]OFD Sender: No OFD packet to send [07:42:21]OFD Sender: No OFD packet to send [07:42:26]OFD Sender: No OFD packet to send [07:42:31]OFD Sender: No OFD packet to send [07:42:36]OFD Sender: No OFD packet to send [07:42:41]OFD Sender: No OFD packet to send [07:42:46]OFD Sender: No OFD packet to send [07:42:51]OFD Sender: No OFD packet to send [07:42:56]OFD Sender: No OFD packet to send [07:43:01]OFD Sender: No OFD packet to send [07:43:06]OFD Sender: No OFD packet to send [07:43:11]OFD Sender: No OFD packet to send [07:43:16]OFD Sender: No OFD packet to send [07:43:21]OFD Sender: No OFD packet to send [07:43:26]OFD Sender: No OFD packet to send [07:43:31]OFD Sender: No OFD packet to send [07:43:36]OFD Sender: No OFD packet to send [07:43:41]OFD Sender: No OFD packet to send [07:43:46]OFD Sender: No OFD packet to send [07:43:51]OFD Sender: No OFD packet to send [07:43:56]OFD Sender: No OFD packet to send [07:44:01]OFD Sender: No OFD packet to send [07:44:06]OFD Sender: No OFD packet to send [07:44:11]OFD Sender: No OFD packet to send [07:44:16]OFD Sender: No OFD packet to send [07:44:21]OFD Sender: No OFD packet to send [07:44:26]OFD Sender: No OFD packet to send [07:44:31]OFD Sender: No OFD packet to send [07:44:36]OFD Sender: No OFD packet to send [07:44:41]OFD Sender: No OFD packet to send [07:44:46]OFD Sender: No OFD packet to send [07:44:51]OFD Sender: No OFD packet to send [07:44:56]OFD Sender: No OFD packet to send [07:45:01]OFD Sender: No OFD packet to send [07:45:06]OFD Sender: No OFD packet to send [07:45:11]OFD Sender: No OFD packet to send [07:45:16]OFD Sender: No OFD packet to send [07:45:21]OFD Sender: No OFD packet to send [07:45:26]OFD Sender: No OFD packet to send [07:45:31]OFD Sender: No OFD packet to send [07:45:36]OFD Sender: No OFD packet to send [07:45:41]OFD Sender: No OFD packet to send [07:45:46]OFD Sender: No OFD packet to send [07:45:51]OFD Sender: No OFD packet to send [07:45:56]OFD Sender: No OFD packet to send [07:46:01]OFD Sender: No OFD packet to send [07:46:06]OFD Sender: No OFD packet to send [07:46:11]OFD Sender: No OFD packet to send [07:46:16]OFD Sender: No OFD packet to send [07:46:21]OFD Sender: No OFD packet to send [07:46:26]OFD Sender: No OFD packet to send [07:46:31]OFD Sender: No OFD packet to send [07:46:36]OFD Sender: No OFD packet to send [07:46:41]OFD Sender: No OFD packet to send [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:27]OFD Sender: No OFD packet to send [07:52:32]OFD Sender: No OFD packet to send [07:52:37]OFD Sender: No OFD packet to send [07:52:42]OFD Sender: No OFD packet to send [07:52:47]OFD Sender: No OFD packet to send [07:52:52]OFD Sender: No OFD packet to send [07:52:57]OFD Sender: No OFD packet to send [07:53:02]OFD Sender: No OFD packet to send [07:53:07]OFD Sender: No OFD packet to send [07:53:12]OFD Sender: No OFD packet to send [07:53:17]OFD Sender: No OFD packet to send [07:53:22]OFD Sender: No OFD packet to send [07:53:27]OFD Sender: No OFD packet to send [07:53:32]OFD Sender: No OFD packet to send [07:53:37]OFD Sender: No OFD packet to send [07:53:42]OFD Sender: No OFD packet to send [07:53:47]OFD Sender: No OFD packet to send [07:53:52]OFD Sender: No OFD packet to send [07:53:57]OFD Sender: No OFD packet to send [07:54:02]OFD Sender: No OFD packet to send [07:54:07]OFD Sender: No OFD packet to send [07:54:12]OFD Sender: No OFD packet to send [07:54:17]OFD Sender: No OFD packet to send [07:54:22]OFD Sender: No OFD packet to send [07:54:27]OFD Sender: No OFD packet to send [07:54:32]OFD Sender: No OFD packet to send [07:54:37]OFD Sender: No OFD packet to send [07:54:42]OFD Sender: No OFD packet to send [07:54:47]OFD Sender: No OFD packet to send [07:54:52]OFD Sender: No OFD packet to send [07:54:57]OFD Sender: No OFD packet to send [07:55:02]OFD Sender: No OFD packet to send [07:55:07]OFD Sender: No OFD packet to send [07:55:12]OFD Sender: No OFD packet to send [07:55:17]OFD Sender: No OFD packet to send [07:55:22]OFD Sender: No OFD packet to send [07:55:27]OFD Sender: No OFD packet to send [07:55:32]OFD Sender: No OFD packet to send [07:55:37]OFD Sender: No OFD packet to send [07:55:42]OFD Sender: No OFD packet to send [07:55:47]OFD Sender: No OFD packet to send [07:55:52]OFD Sender: No OFD packet to send [07:55:57]OFD Sender: No OFD packet to send [07:56:02]OFD Sender: No OFD packet to send [07:56:07]OFD Sender: No OFD packet to send [07:56:12]OFD Sender: No OFD packet to send [07:56:17]OFD Sender: No OFD packet to send [07:56:22]OFD Sender: No OFD packet to send [07:56:27]OFD Sender: No OFD packet to send [07:56:32]OFD Sender: No OFD packet to send [07:56:37]OFD Sender: No OFD packet to send [07:56:42]OFD Sender: No OFD packet to send [07:56:47]OFD Sender: No OFD packet to send [07:56:52]OFD Sender: No OFD packet to send [07:56:57]OFD Sender: No OFD packet to send [07:57:02]OFD Sender: No OFD packet to send [07:57:07]OFD Sender: No OFD packet to send [07:57:12]OFD Sender: No OFD packet to send [07:57:17]OFD Sender: No OFD packet to send [07:57:22]OFD Sender: No OFD packet to send [07:57:27]OFD Sender: No OFD packet to send [07:57:32]OFD Sender: No OFD packet to send [07:57:37]OFD Sender: No OFD packet to send [07:57:42]OFD Sender: No OFD packet to send [07:57:47]OFD Sender: No OFD packet to send [07:57:52]OFD Sender: No OFD packet to send [07:57:57]OFD Sender: No OFD packet to send [07:58:02]OFD Sender: No OFD packet to send [07:58:07]OFD Sender: No OFD packet to send [07:58:12]OFD Sender: No OFD packet to send [07:58:17]OFD Sender: No OFD packet to send [07:58:22]OFD Sender: No OFD packet to send [07:58:27]OFD Sender: No OFD packet to send [07:58:32]OFD Sender: No OFD packet to send [07:58:37]OFD Sender: No OFD packet to send [07:58:42]OFD Sender: No OFD packet to send [07:58:47]OFD Sender: No OFD packet to send [07:58:52]OFD Sender: No OFD packet to send [07:58:57]OFD Sender: No OFD packet to send [07:59:02]OFD Sender: No OFD packet to send [07:59:07]OFD Sender: No OFD packet to send [07:59:12]OFD Sender: No OFD packet to send [07:59:17]OFD Sender: No OFD packet to send [07:59:22]OFD Sender: No OFD packet to send [07:59:27]OFD Sender: No OFD packet to send [07:59:32]OFD Sender: No OFD packet to send [07:59:37]OFD Sender: No OFD packet to send [07:59:42]OFD Sender: No OFD packet to send [07:59:47]OFD Sender: No OFD packet to send [07:59:52]OFD Sender: No OFD packet to send [07:59:57]OFD Sender: No OFD packet to send [08:00:02]OFD Sender: No OFD packet to send [08:00:07]OFD Sender: No OFD packet to send [08:00:12]OFD Sender: No OFD packet to send [08:00:17]OFD Sender: No OFD packet to send [08:00:22]OFD Sender: No OFD packet to send [08:00:27]OFD Sender: No OFD packet to send [08:00:32]OFD Sender: No OFD packet to send [08:00:37]OFD Sender: No OFD packet to send [08:00:42]OFD Sender: No OFD packet to send [08:00:47]OFD Sender: No OFD packet to send [08:00:50]accept exits with 10 [08:00:50]New connection [08:00:50]New thread 3067522404 created [08:00:50]Thread 3067379044 joined [08:00:50]Waiting for new connection... [08:00:50] Sock 10.Parse request [08:00:50]Sock 10.Check first char [08:00:50]Sock 10.First char is OK [08:00:50]request: POST /json_proto HTTP/1.0 [08:00:50]Method: POST [08:00:50]URL: /json_proto [08:00:50]Method is POST - this is cgi request [08:00:50]url: /json_proto [08:00:50]query_string will be loaded in cgi processing [08:00:50]execute_cgi json_proto POST (null) [08:00:50]execute_cgi path=json_proto method=POST [08:00:50]POST find Content-Length [08:00:50]Host: 172.17.44.67:8080 [08:00:50]Content-Length: 687 [08:00:50]Content-Type: application/json [08:00:50] [08:00:50]POST finish read [08:00:50]Found Content-Length = 687 [08:00:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:50]execute_script... [08:00:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:50]POST & json_proto [08:00:50]process_json_proto [08:00:50]json parsed OK: [08:00:50]protocol is kg_v1.0 [08:00:50]action value=close_receipt [08:00:50]process_action close_receipt [08:00:50]cmd_close_receipt [08:00:50]MH_GetDate [08:00:50]Write to MH i2c: F0 00 00 9C 00 8B [08:00:50]Write i2c OK [08:00:50]MH_I2C_Read... [08:00:50]Read from MH i2c: F0 [08:00:50]MH_I2C_Read... [08:00:50]Read from MH i2c: F0 09 00 [08:00:50]MH_I2C_Read... [08:00:50]Read from MH i2c: F0 09 00 9C 00 00 33 C4 10 67 F1 C7 6B 64 89 [08:00:50]GetLastDocTimeStamp 1729147172 [08:00:50]current date 1729152051 [08:00:50]FM_GetShiftState [08:00:50]SAM_PROTO_GetShiftState [08:00:50]wFMCommunicate request_size=4 [08:00:50]MH_SAM_APDU [08:00:50]CAPDU: 80 13 01 00 [08:00:50]Write to MH i2c: E2 08 00 9D 00 80 13 01 00 00 00 00 00 1A [08:00:50]Write i2c OK [08:00:50]MH_I2C_Read... [08:00:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:51]Read from MH i2c: E2 [08:00:51]MH_I2C_Read... [08:00:51]Read from MH i2c: E2 0E 00 [08:00:51]MH_I2C_Read... [08:00:51]Read from MH i2c: E2 0E 00 9D 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 22 [08:00:51]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [08:00:51]wFMCommunicate OK [08:00:51]SAM_PROTO_GetShiftState done [08:00:51]FM_GetShiftState done [08:00:51]opened in 1729125927 [08:00:51]opened+sec_in_day 1729212327 [08:00:51]quantity*price = 250012 [08:00:51]sum+1 = 250013 [08:00:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 9 17.10.2024 08:00 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82083 ФПД: 236588196717944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T080051&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82083&fm=236588196717944&tin=02508201610067®Number=0000000000091680&sum=250000 [08:00:52]StoreToDocumentArchive [08:00:52]shift 525 fd 82083 [08:00:52]save to /storage/0525/doc_00082083 [08:00:52]save last doc name /storage/0525/doc_00082083 to /storage/kkm_last_doc_name [08:00:52]save OK [08:00:52]Clear old archive folders... [08:00:52]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:00:52]tlvbuf is 01B53330 [08:00:52]SAM_PROTO_ClearQueue [08:00:52]wFMCommunicate request_size=4 [08:00:52]MH_SAM_APDU [08:00:52]CAPDU: 80 09 00 00 [08:00:52]Write to MH i2c: E2 08 00 AA 00 80 09 00 00 00 00 00 00 1C [08:00:52]Write i2c OK [08:00:52]MH_I2C_Read... [08:00:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:00:52]Read from MH i2c: E2 [08:00:52]MH_I2C_Read... [08:00:52]Read from MH i2c: E2 03 00 [08:00:52]MH_I2C_Read... [08:00:52]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [08:00:52]RAPDU: 90 00 [08:00:52]wFMCommunicate OK [08:00:52]SAM_PROTO_ClearQueue done [08:00:52]KKMCreateOFDPacket [08:00:52]OFDProtocolAddRootSTLVToBuf [08:00:52]FM_MakeSignedData [08:00:52]FM_MakeSignedData [08:00:52]SAM_PROTO_SignData [08:00:52]wFMCommunicate request_size=4 [08:00:52]MH_SAM_APDU [08:00:52]CAPDU: 80 0D 01 02 [08:00:52]Write to MH i2c: E2 08 00 AB 00 80 0D 01 02 00 00 00 00 24 [08:00:52]Write i2c OK [08:00:52]MH_I2C_Read... [08:00:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:00:52]Read from MH i2c: E2 [08:00:52]MH_I2C_Read... [08:00:52]Read from MH i2c: E2 03 00 [08:00:52]MH_I2C_Read... [08:00:52]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [08:00:52]RAPDU: 90 00 [08:00:52]wFMCommunicate OK [08:00:52]wFMCommunicate request_size=255 [08:00:52]MH_SAM_APDU [08:00:52]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 33 C4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A3 40 01 00 35 04 06 00 [08:00:52]Write to MH i2c: E2 02 01 AC 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 33 C4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A3 40 01 00 35 04 06 00 00 00 5A [08:00:52]Write i2c OK [08:00:52]MH_I2C_Read... [08:00:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:52]Read from MH i2c: E2 [08:00:52]MH_I2C_Read... [08:00:52]Read from MH i2c: E2 03 00 [08:00:52]MH_I2C_Read... [08:00:52]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [08:00:52]RAPDU: 90 00 [08:00:52]wFMCommunicate OK [08:00:52]wFMCommunicate request_size=11 [08:00:52]MH_SAM_APDU [08:00:52]CAPDU: 80 0D 02 02 06 D7 2C FB 6C 65 78 [08:00:52]Write to MH i2c: E2 0E 00 AD 00 80 0D 02 02 06 00 D7 2C FB 6C 65 78 00 00 7A [08:00:52]Write i2c OK [08:00:52]MH_I2C_Read... [08:00:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:52]Read from MH i2c: E2 [08:00:52]MH_I2C_Read... [08:00:52]Read from MH i2c: E2 03 00 [08:00:52]MH_I2C_Read... [08:00:52]Read from MH i2c: E2 03 00 AD 00 00 90 00 21 [08:00:52]RAPDU: 90 00 [08:00:52]wFMCommunicate OK [08:00:52]wFMCommunicate request_size=4 [08:00:52]MH_SAM_APDU [08:00:52]CAPDU: 80 0D 03 02 [08:00:52]Write to MH i2c: E2 08 00 AE 00 80 0D 03 02 00 00 00 00 29 [08:00:52]Write i2c OK [08:00:52]MH_I2C_Read... [08:00:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:00:52]Read from MH i2c: E2 [08:00:52]MH_I2C_Read... [08:00:52]Read from MH i2c: E2 0B 00 [08:00:52]MH_I2C_Read... [08:00:52]Read from MH i2c: E2 0B 00 AE 00 00 9F 8B 4A 92 40 4F 54 4F 90 00 62 [08:00:52]RAPDU: 9F 8B 4A 92 40 4F 54 4F 90 00 [08:00:52]wFMCommunicate OK [08:00:52]SAM_PROTO_SignData done [08:00:52]FM_MakeSignedData done [08:00:52]CreateOFDProtocolMessage [08:00:52]wFMCommunicate request_size=4 [08:00:52]MH_SAM_APDU [08:00:52]CAPDU: 80 11 00 00 [08:00:52]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [08:00:52]Write i2c OK [08:00:52]MH_I2C_Read... [08:00:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:52]Read from MH i2c: E2 [08:00:52]MH_I2C_Read... [08:00:52]Read from MH i2c: E2 17 00 [08:00:52]MH_I2C_Read... [08:00:52]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 7B [08:00:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [08:00:52]wFMCommunicate OK [08:00:52]CreateOFDProtocolMessage done [08:00:52]OFDSenderStorePacket 82083 [08:00:52]StoreOFDPacket docnum=82083 [08:00:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 C3 74 08 01 0E 2E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 33 C4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A3 40 01 00 35 04 06 00 D7 2C FB 6C 65 78 9F 8B 4A 92 40 4F 54 4F [08:00:52]CheckFolder [08:00:52]dirname=/storage/ofd_packets [08:00:52]CheckFolder done [08:00:52]ProducePacketName [08:00:52]name=ofd_packets/00082083 [08:00:52]NVStorageSaveData ofd_packets/00082083 [08:00:52]File name is /storage/ofd_packets/00082083 [08:00:52]Write 302 bytes [08:00:52]NVStorageSaveData done [08:00:52]OFDSenderStorePacket done [08:00:52]KKMCreateOFDPacket done [08:00:52]NVStorageSaveData kkm_last_timestamp [08:00:52]File name is /storage/kkm_last_timestamp [08:00:52]Write 4 bytes [08:00:52]NVStorageSaveData done [08:00:52]ExternCall_PrintAddStr [08:00:52]wPrintStart [08:00:52]Write to MH i2c: 01 00 00 B0 00 B0 [08:00:52]Write i2c OK [08:00:52]MH_I2C_Read... [08:00:52]Read from MH i2c: 01 [08:00:52]MH_I2C_Read... [08:00:52]Read from MH i2c: 01 07 00 [08:00:52]MH_I2C_Read... [08:00:52]Read from MH i2c: 01 07 00 B0 00 00 00 00 00 00 FF 0F C5 [08:00:52]RasterBufferAndPrint [08:00:52]line Счет N : (1)918590 [08:00:52]line ИНН: 02508201610067 [08:00:52]line Контрольно-Кассовый Чек [08:00:52]line ПРОДАЖА [08:00:52]line ТРК (МРК, ГНК) : 31 [08:00:52]line Товар: 2710194210 [08:00:52]line ДТ(л)-К-5 [08:00:52]line 32.810 * 76.20 [08:00:52]line = 2500.12 [08:00:52]line НДС 12% НСП 1% [08:00:52]line > о реализуемом товаре [08:00:52]line ОКРУГЛЕНИЕ: -0.12 [08:00:52]line ИТОГО: 2500.00 [08:00:52]line Внесено: 2500.00 [08:00:52]line СДАЧА: 0.00 [08:00:52]line НСП 1% : 22.12 [08:00:52]line НДС 12% : 265.50 [08:00:52]line Наличными: 2500.00 [08:00:52]line Безнал.: 0.00 [08:00:52]line Место: АЗС № 114 "Партнер Нефть" [08:00:52]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [08:00:52]line СНО: Общий режим [08:00:52]line Чек 9 17.10.2024 08:00 [08:00:52]line Смена: 525 ФФД: 1.0 [08:00:52]line ЗНМ: 0300000086 [08:00:52]line РНМ: 0000000000091680 [08:00:52]line Версия ККМ: 001 [08:00:52]line ФМ: 0000000000871843 [08:00:52]line ФД: 82083 [08:00:52]line ФПД: 236588196717944 [08:00:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T080051&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82083&fm=236588196717944&tin=02508201610067®Number=0000000000091680&sum=250000 [08:00:53]OFD Sender: Processing packet 82083 [packets to send 254, broken 253] [08:00:53]ProducePacketName [08:00:53]name=ofd_packets/00082083 [08:00:53]OFD Sender: To server: pG, [08:00:53]CommunicateWithHost lk.salyk.kg:30040 [08:00:53]ConnectInit lk.salyk.kg [08:00:53]written 0, free lines is 4095 [08:00:53]Write to MH i2c: 01 00 00 DB 00 DB [08:00:53]Write i2c OK [08:00:53]MH_I2C_Read... [08:00:53]Read from MH i2c: 01 [08:00:53]MH_I2C_Read... [08:00:53]Read from MH i2c: 01 07 00 [08:00:53]MH_I2C_Read... [08:00:53]Read from MH i2c: 01 07 00 DB 00 00 00 00 00 00 DF 0C CD [08:00:53]RasterBufferAndPrint [08:00:53]line [08:00:53]line [08:00:53]line [08:00:53]line [08:00:53]line [08:00:53]written 0, free lines is 3301 [08:00:53]MH_Cut [08:00:53]Write to MH i2c: D1 01 00 E2 00 01 B4 [08:00:53]Write i2c OK [08:00:53]MH_I2C_Read... [08:00:53]Read from MH i2c: D1 [08:00:53]MH_I2C_Read... [08:00:53]Read from MH i2c: D1 01 00 [08:00:53]MH_I2C_Read... [08:00:53]Read from MH i2c: D1 01 00 E2 00 00 B3 [08:00:53]Write to MH i2c: 01 00 00 E3 00 E3 [08:00:53]Write i2c OK [08:00:53]MH_I2C_Read... [08:00:53]Connected sock=9 [08:00:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 C3 74 08 01 0E 2E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 33 C4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A3 40 01 00 35 04 06 00 D7 2C FB 6C 65 78 9F 8B 4A 92 40 4F 54 4F [08:00:54]*** Cut start [08:00:54]*** Partial cut [08:00:54]*** CUTSNS_PIN = 1 [08:00:54]*** CUTSNS_PIN = 0 [08:00:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 AB 9A 47 00 39 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A3 40 01 00 F4 03 04 00 72 69 10 67 B6 04 01 00 00 E2 13 DD 8A D0 10 A6 35 [08:00:54]CommunicateWithHost err = 0 [08:00:54]CheckOFDResponse [08:00:54]1017 (14) - 77093643461234 [08:00:54]1041 (16) - 0000000000871843 [08:00:54]1040 (4) - 82083 [08:00:54]1012 (4) - 17.10.2024 01:33 [08:00:54]1206 (1) - 0 [08:00:54]OFD Sender: Remove packet 82083 [08:00:54]ProducePacketName [08:00:54]name=ofd_packets/00082083 [08:00:54]NVStorageDeleteData [08:00:54]*** Brake cut motor [08:00:54]Read from MH i2c: 01 [08:00:54]MH_I2C_Read... [08:00:54]*** Stop cut motor [08:00:54]*** Cut end [08:00:54]Read from MH i2c: 01 07 00 [08:00:54]MH_I2C_Read... [08:00:54]Read from MH i2c: 01 07 00 E3 00 00 00 00 00 00 FF 0F F8 [08:00:54]process_action close_receipt done [08:00:54]requested_data is exist [08:00:54]produce_requested_data [08:00:54]requested_item fm.sn is exist - process it [08:00:54]wFMCommunicate request_size=4 [08:00:54]MH_SAM_APDU [08:00:54]CAPDU: 80 11 00 00 [08:00:54]Write to MH i2c: E2 08 00 E4 00 80 11 00 00 00 00 00 00 5E [08:00:54]Write i2c OK [08:00:54]MH_I2C_Read... [08:00:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:54]Read from MH i2c: E2 [08:00:54]MH_I2C_Read... [08:00:54]Read from MH i2c: E2 17 00 [08:00:54]MH_I2C_Read... [08:00:54]Read from MH i2c: E2 17 00 E4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 B0 [08:00:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [08:00:54]wFMCommunicate OK [08:00:54]requested_item fd.num is exist - process it [08:00:54]SAM_PROTO_GetFieldsCounters [08:00:54]wFMCommunicate request_size=4 [08:00:54]MH_SAM_APDU [08:00:54]CAPDU: 80 13 00 00 [08:00:54]Write to MH i2c: E2 08 00 E5 00 80 13 00 00 00 00 00 00 61 [08:00:54]Write i2c OK [08:00:54]MH_I2C_Read... [08:00:55]OFD Sender: No OFD packet to send [08:00:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:00:55]Read from MH i2c: E2 [08:00:55]MH_I2C_Read... [08:00:55]Read from MH i2c: E2 62 00 [08:00:55]MH_I2C_Read... [08:00:55]Read from MH i2c: E2 62 00 E5 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A3 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [08:00:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A3 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:00:55]wFMCommunicate OK [08:00:55]SAM_PROTO_GetFieldsCounters done [08:00:55]requested_item shift.num is exist - process it [08:00:55]requested_item shift.opened is exist - process it [08:00:55]req_shift_opened [08:00:55]FM_GetShiftState [08:00:55]SAM_PROTO_GetShiftState [08:00:55]wFMCommunicate request_size=4 [08:00:55]MH_SAM_APDU [08:00:55]CAPDU: 80 13 01 00 [08:00:55]Write to MH i2c: E2 08 00 E6 00 80 13 01 00 00 00 00 00 63 [08:00:55]Write i2c OK [08:00:55]MH_I2C_Read... [08:00:55]Read from MH i2c: E2 [08:00:55]MH_I2C_Read... [08:00:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:55]Read from MH i2c: E2 0E 00 [08:00:55]MH_I2C_Read... [08:00:55]Read from MH i2c: E2 0E 00 E6 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 6B [08:00:55]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [08:00:55]wFMCommunicate OK [08:00:55]SAM_PROTO_GetShiftState done [08:00:55]FM_GetShiftState done [08:00:55]req_shift_opened done [08:00:55]requested_item shift.open_date is exist - process it [08:00:55]req_shift_open_date [08:00:55]req_shift_open_date done [08:00:55]produce_requested_data done [08:00:55]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82083,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [08:00:55]process_action_free close_receipt [08:00:55]json_value_free [08:00:55]json_value_free done [08:00:55]process_json_proto returns [08:00:55]Send response to host [08:00:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82083,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [08:00:55]free response buf [08:00:55]execute_script done [08:00:55]execute_script returns [08:00:55]free content buf [08:00:55]Sock 10.Close socket [08:00:55]Sock 10.Thread stoped [08:01:00]OFD Sender: No OFD packet to send [08:01:05]OFD Sender: No OFD packet to send [08:01:10]OFD Sender: No OFD packet to send [08:01:15]OFD Sender: No OFD packet to send [08:01:18]recv_with_timeout no data received [08:01:20]OFD Sender: No OFD packet to send [08:01:25]OFD Sender: No OFD packet to send [08:01:30]OFD Sender: No OFD packet to send [08:01:35]OFD Sender: No OFD packet to send [08:01:40]OFD Sender: No OFD packet to send [08:01:45]OFD Sender: No OFD packet to send [08:01:50]OFD Sender: No OFD packet to send [08:01:55]OFD Sender: No OFD packet to send [08:02:00]OFD Sender: No OFD packet to send [08:02:05]OFD Sender: No OFD packet to send [08:02:10]OFD Sender: No OFD packet to send [08:02:15]OFD Sender: No OFD packet to send [08:02:20]OFD Sender: No OFD packet to send [08:02:25]OFD Sender: No OFD packet to send [08:02:30]OFD Sender: No OFD packet to send [08:02:35]OFD Sender: No OFD packet to send [08:02:40]OFD Sender: No OFD packet to send [08:02:45]OFD Sender: No OFD packet to send [08:02:50]OFD Sender: No OFD packet to send [08:02:55]OFD Sender: No OFD packet to send [08:03:00]OFD Sender: No OFD packet to send [08:03:05]OFD Sender: No OFD packet to send [08:03:10]OFD Sender: No OFD packet to send [08:03:15]OFD Sender: No OFD packet to send [08:03:20]OFD Sender: No OFD packet to send [08:03:25]OFD Sender: No OFD packet to send [08:03:30]OFD Sender: No OFD packet to send [08:03:35]OFD Sender: No OFD packet to send [08:03:40]OFD Sender: No OFD packet to send [08:03:45]OFD Sender: No OFD packet to send [08:03:50]OFD Sender: No OFD packet to send [08:03:55]OFD Sender: No OFD packet to send [08:04:00]OFD Sender: No OFD packet to send [08:04:05]OFD Sender: No OFD packet to send [08:04:10]OFD Sender: No OFD packet to send [08:04:15]OFD Sender: No OFD packet to send [08:04:20]OFD Sender: No OFD packet to send [08:04:25]OFD Sender: No OFD packet to send [08:04:30]OFD Sender: No OFD packet to send [08:04:35]OFD Sender: No OFD packet to send [08:04:40]OFD Sender: No OFD packet to send [08:04:45]OFD Sender: No OFD packet to send [08:04:50]OFD Sender: No OFD packet to send [08:04:55]OFD Sender: No OFD packet to send [08:05:00]OFD Sender: No OFD packet to send [08:05:05]OFD Sender: No OFD packet to send [08:05:10]OFD Sender: No OFD packet to send [08:05:15]OFD Sender: No OFD packet to send [08:05:20]OFD Sender: No OFD packet to send [08:05:25]OFD Sender: No OFD packet to send [08:05:30]OFD Sender: No OFD packet to send [08:05:35]OFD Sender: No OFD packet to send [08:05:40]OFD Sender: No OFD packet to send [08:05:45]OFD Sender: No OFD packet to send [08:05:50]OFD Sender: No OFD packet to send [08:05:55]OFD Sender: No OFD packet to send [08:05:58]recv_with_timeout no data received [08:06:00]OFD Sender: No OFD packet to send [08:06:05]OFD Sender: No OFD packet to send [08:06:10]OFD Sender: No OFD packet to send [08:06:15]OFD Sender: No OFD packet to send [08:06:20]OFD Sender: No OFD packet to send [08:06:25]OFD Sender: No OFD packet to send [08:06:30]OFD Sender: No OFD packet to send [08:06:35]OFD Sender: No OFD packet to send [08:06:40]OFD Sender: No OFD packet to send [08:06:45]OFD Sender: No OFD packet to send [08:06:50]OFD Sender: No OFD packet to send [08:06:55]OFD Sender: No OFD packet to send [08:07:00]OFD Sender: No OFD packet to send [08:07:05]OFD Sender: No OFD packet to send [08:07:10]OFD Sender: No OFD packet to send [08:07:15]OFD Sender: No OFD packet to send [08:07:20]OFD Sender: No OFD packet to send [08:07:25]OFD Sender: No OFD packet to send [08:07:30]OFD Sender: No OFD packet to send [08:07:35]OFD Sender: No OFD packet to send [08:07:40]OFD Sender: No OFD packet to send [08:07:45]OFD Sender: No OFD packet to send [08:07:50]OFD Sender: No OFD packet to send [08:07:55]OFD Sender: No OFD packet to send [08:08:00]OFD Sender: No OFD packet to send [08:08:05]OFD Sender: No OFD packet to send [08:08:10]OFD Sender: No OFD packet to send [08:08:15]OFD Sender: No OFD packet to send [08:08:20]OFD Sender: No OFD packet to send [08:08:25]OFD Sender: No OFD packet to send [08:08:30]recv_with_timeout no data received [08:08:30]OFD Sender: No OFD packet to send [08:08:35]OFD Sender: No OFD packet to send [08:08:40]OFD Sender: No OFD packet to send [08:08:45]OFD Sender: No OFD packet to send [08:08:50]OFD Sender: No OFD packet to send [08:08:55]recv_with_timeout no data received [08:08:55]OFD Sender: No OFD packet to send [08:09:00]OFD Sender: No OFD packet to send [08:09:05]OFD Sender: No OFD packet to send [08:09:10]OFD Sender: No OFD packet to send [08:09:12]recv_with_timeout no data received [08:09:15]OFD Sender: No OFD packet to send [08:09:20]OFD Sender: No OFD packet to send [08:09:25]OFD Sender: No OFD packet to send [08:09:30]OFD Sender: No OFD packet to send [08:09:35]OFD Sender: No OFD packet to send [08:09:40]OFD Sender: No OFD packet to send [08:09:45]OFD Sender: No OFD packet to send [08:09:50]OFD Sender: No OFD packet to send [08:09:55]OFD Sender: No OFD packet to send [08:10:00]OFD Sender: No OFD packet to send [08:10:05]recv_with_timeout no data received [08:10:05]OFD Sender: No OFD packet to send [08:10:10]OFD Sender: No OFD packet to send [08:10:15]OFD Sender: No OFD packet to send [08:10:20]OFD Sender: No OFD packet to send [08:10:25]OFD Sender: No OFD packet to send [08:10:30]OFD Sender: No OFD packet to send [08:10:35]OFD Sender: No OFD packet to send [08:10:40]OFD Sender: No OFD packet to send [08:10:45]OFD Sender: No OFD packet to send [08:10:50]OFD Sender: No OFD packet to send [08:10:55]OFD Sender: No OFD packet to send [08:10:59]recv_with_timeout no data received [08:11:00]OFD Sender: No OFD packet to send [08:11:05]OFD Sender: No OFD packet to send [08:11:10]recv_with_timeout no data received [08:11:11]OFD Sender: No OFD packet to send [08:11:16]OFD Sender: No OFD packet to send [08:11:21]OFD Sender: No OFD packet to send [08:11:26]OFD Sender: No OFD packet to send [08:11:31]OFD Sender: No OFD packet to send [08:11:36]OFD Sender: No OFD packet to send [08:11:41]OFD Sender: No OFD packet to send [08:11:46]OFD Sender: No OFD packet to send [08:11:51]OFD Sender: No OFD packet to send [08:11:52]recv_with_timeout no data received [08:11:56]OFD Sender: No OFD packet to send [08:12:01]OFD Sender: No OFD packet to send [08:12:06]OFD Sender: No OFD packet to send [08:12:11]OFD Sender: No OFD packet to send [08:12:16]OFD Sender: No OFD packet to send [08:12:21]OFD Sender: No OFD packet to send [08:12:26]OFD Sender: No OFD packet to send [08:12:31]OFD Sender: No OFD packet to send [08:12:36]OFD Sender: No OFD packet to send [08:12:41]OFD Sender: No OFD packet to send [08:12:46]OFD Sender: No OFD packet to send [08:12:51]OFD Sender: No OFD packet to send [08:12:56]OFD Sender: No OFD packet to send [08:13:01]OFD Sender: No OFD packet to send [08:13:06]OFD Sender: No OFD packet to send [08:13:11]OFD Sender: No OFD packet to send [08:13:16]OFD Sender: No OFD packet to send [08:13:21]OFD Sender: No OFD packet to send [08:13:26]OFD Sender: No OFD packet to send [08:13:31]OFD Sender: No OFD packet to send [08:13:36]OFD Sender: No OFD packet to send [08:13:41]OFD Sender: No OFD packet to send [08:13:46]OFD Sender: No OFD packet to send [08:13:51]OFD Sender: No OFD packet to send [08:13:56]OFD Sender: No OFD packet to send [08:14:01]OFD Sender: No OFD packet to send [08:14:06]OFD Sender: No OFD packet to send [08:14:11]OFD Sender: No OFD packet to send [08:14:16]OFD Sender: No OFD packet to send [08:14:21]OFD Sender: No OFD packet to send [08:14:26]OFD Sender: No OFD packet to send [08:14:31]OFD Sender: No OFD packet to send [08:14:36]OFD Sender: No OFD packet to send [08:14:41]OFD Sender: No OFD packet to send [08:14:46]OFD Sender: No OFD packet to send [08:14:51]OFD Sender: No OFD packet to send [08:14:56]OFD Sender: No OFD packet to send [08:15:01]OFD Sender: No OFD packet to send [08:15:06]OFD Sender: No OFD packet to send [08:15:11]OFD Sender: No OFD packet to send [08:15:16]OFD Sender: No OFD packet to send [08:15:21]OFD Sender: No OFD packet to send [08:15:26]OFD Sender: No OFD packet to send [08:15:31]OFD Sender: No OFD packet to send [08:15:36]OFD Sender: No OFD packet to send [08:15:41]OFD Sender: No OFD packet to send [08:15:46]OFD Sender: No OFD packet to send [08:15:51]OFD Sender: No OFD packet to send [08:15:56]OFD Sender: No OFD packet to send [08:16:01]OFD Sender: No OFD packet to send [08:16:06]OFD Sender: No OFD packet to send [08:16:11]OFD Sender: No OFD packet to send [08:16:16]OFD Sender: No OFD packet to send [08:16:21]OFD Sender: No OFD packet to send [08:16:26]OFD Sender: No OFD packet to send [08:16:31]OFD Sender: No OFD packet to send [08:16:36]OFD Sender: No OFD packet to send [08:16:41]OFD Sender: No OFD packet to send [08:16:46]OFD Sender: No OFD packet to send [08:16:51]OFD Sender: No OFD packet to send [08:16:56]OFD Sender: No OFD packet to send [08:17:01]OFD Sender: No OFD packet to send [08:17:06]OFD Sender: No OFD packet to send [08:17:11]OFD Sender: No OFD packet to send [08:17:16]OFD Sender: No OFD packet to send [08:17:21]OFD Sender: No OFD packet to send [08:17:26]OFD Sender: No OFD packet to send [08:17:31]OFD Sender: No OFD packet to send [08:17:36]OFD Sender: No OFD packet to send [08:17:41]OFD Sender: No OFD packet to send [08:17:46]OFD Sender: No OFD packet to send [08:17:51]OFD Sender: No OFD packet to send [08:17:56]OFD Sender: No OFD packet to send [08:18:01]OFD Sender: No OFD packet to send [08:18:06]OFD Sender: No OFD packet to send [08:18:11]OFD Sender: No OFD packet to send [08:18:16]OFD Sender: No OFD packet to send [08:18:21]OFD Sender: No OFD packet to send [08:18:26]OFD Sender: No OFD packet to send [08:18:31]OFD Sender: No OFD packet to send [08:18:36]OFD Sender: No OFD packet to send [08:18:38]accept exits with 8 [08:18:38]New connection [08:18:38]New thread 3067379044 created [08:18:38]Thread 3067522404 joined [08:18:38]Waiting for new connection... [08:18:38] Sock 8.Parse request [08:18:38]Sock 8.Check first char [08:18:38]Sock 8.First char is OK [08:18:38]request: POST /json_proto HTTP/1.0 [08:18:38]Method: POST [08:18:38]URL: /json_proto [08:18:38]Method is POST - this is cgi request [08:18:38]url: /json_proto [08:18:38]query_string will be loaded in cgi processing [08:18:38]execute_cgi json_proto POST (null) [08:18:38]execute_cgi path=json_proto method=POST [08:18:38]POST find Content-Length [08:18:38]Host: 172.17.44.67:8080 [08:18:38]Content-Length: 677 [08:18:38]Content-Type: application/json [08:18:38] [08:18:38]POST finish read [08:18:38]Found Content-Length = 677 [08:18:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:38]execute_script... [08:18:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:38]POST & json_proto [08:18:38]process_json_proto [08:18:38]json parsed OK: [08:18:38]protocol is kg_v1.0 [08:18:38]action value=close_receipt [08:18:38]process_action close_receipt [08:18:38]cmd_close_receipt [08:18:38]MH_GetDate [08:18:38]Write to MH i2c: F0 00 00 E7 00 D6 [08:18:38]Write i2c OK [08:18:38]MH_I2C_Read... [08:18:38]Read from MH i2c: F0 [08:18:38]MH_I2C_Read... [08:18:38]Read from MH i2c: F0 09 00 [08:18:38]MH_I2C_Read... [08:18:38]Read from MH i2c: F0 09 00 E7 00 00 5F C8 10 67 F1 C7 6B 64 04 [08:18:38]GetLastDocTimeStamp 1729152051 [08:18:38]current date 1729153119 [08:18:38]FM_GetShiftState [08:18:38]SAM_PROTO_GetShiftState [08:18:38]wFMCommunicate request_size=4 [08:18:38]MH_SAM_APDU [08:18:38]CAPDU: 80 13 01 00 [08:18:38]Write to MH i2c: E2 08 00 E8 00 80 13 01 00 00 00 00 00 65 [08:18:38]Write i2c OK [08:18:38]MH_I2C_Read... [08:18:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:38]Read from MH i2c: E2 [08:18:38]MH_I2C_Read... [08:18:38]Read from MH i2c: E2 0E 00 [08:18:38]MH_I2C_Read... [08:18:38]Read from MH i2c: E2 0E 00 E8 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 6D [08:18:38]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [08:18:38]wFMCommunicate OK [08:18:38]SAM_PROTO_GetShiftState done [08:18:38]FM_GetShiftState done [08:18:38]opened in 1729125927 [08:18:38]opened+sec_in_day 1729212327 [08:18:38]quantity*price = 40006 [08:18:38]sum+1 = 40007 [08:18:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 10 17.10.2024 08:18 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82084 ФПД: 278059865013888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T081839&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82084&fm=278059865013888&tin=02508201610067®Number=0000000000091680&sum=40000 [08:18:39]StoreToDocumentArchive [08:18:39]shift 525 fd 82084 [08:18:39]save to /storage/0525/doc_00082084 [08:18:39]save last doc name /storage/0525/doc_00082084 to /storage/kkm_last_doc_name [08:18:39]save OK [08:18:39]Clear old archive folders... [08:18:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:18:39]tlvbuf is 01B56C00 [08:18:39]SAM_PROTO_ClearQueue [08:18:39]wFMCommunicate request_size=4 [08:18:39]MH_SAM_APDU [08:18:39]CAPDU: 80 09 00 00 [08:18:39]Write to MH i2c: E2 08 00 F5 00 80 09 00 00 00 00 00 00 67 [08:18:39]Write i2c OK [08:18:39]MH_I2C_Read... [08:18:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:18:39]Read from MH i2c: E2 [08:18:39]MH_I2C_Read... [08:18:39]Read from MH i2c: E2 03 00 [08:18:39]MH_I2C_Read... [08:18:39]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [08:18:39]RAPDU: 90 00 [08:18:39]wFMCommunicate OK [08:18:39]SAM_PROTO_ClearQueue done [08:18:39]KKMCreateOFDPacket [08:18:39]OFDProtocolAddRootSTLVToBuf [08:18:39]FM_MakeSignedData [08:18:39]FM_MakeSignedData [08:18:39]SAM_PROTO_SignData [08:18:39]wFMCommunicate request_size=4 [08:18:39]MH_SAM_APDU [08:18:39]CAPDU: 80 0D 01 02 [08:18:39]Write to MH i2c: E2 08 00 F6 00 80 0D 01 02 00 00 00 00 6F [08:18:39]Write i2c OK [08:18:39]MH_I2C_Read... [08:18:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:18:39]Read from MH i2c: E2 [08:18:39]MH_I2C_Read... [08:18:39]Read from MH i2c: E2 03 00 [08:18:39]MH_I2C_Read... [08:18:39]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [08:18:39]RAPDU: 90 00 [08:18:39]wFMCommunicate OK [08:18:39]wFMCommunicate request_size=255 [08:18:39]MH_SAM_APDU [08:18:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 5F C8 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A4 40 01 00 35 04 06 00 FC [08:18:39]Write to MH i2c: E2 02 01 F7 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 5F C8 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A4 40 01 00 35 04 06 00 FC 00 00 62 [08:18:39]Write i2c OK [08:18:39]MH_I2C_Read... [08:18:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:40]Read from MH i2c: E2 [08:18:40]MH_I2C_Read... [08:18:40]Read from MH i2c: E2 03 00 [08:18:40]MH_I2C_Read... [08:18:40]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [08:18:40]RAPDU: 90 00 [08:18:40]wFMCommunicate OK [08:18:40]wFMCommunicate request_size=10 [08:18:40]MH_SAM_APDU [08:18:40]CAPDU: 80 0D 02 02 05 E4 DB 7A FE 80 [08:18:40]Write to MH i2c: E2 0D 00 F8 00 80 0D 02 02 05 00 E4 DB 7A FE 80 00 00 33 [08:18:40]Write i2c OK [08:18:40]MH_I2C_Read... [08:18:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:40]Read from MH i2c: E2 [08:18:40]MH_I2C_Read... [08:18:40]Read from MH i2c: E2 03 00 [08:18:40]MH_I2C_Read... [08:18:40]Read from MH i2c: E2 03 00 F8 00 00 90 00 6C [08:18:40]RAPDU: 90 00 [08:18:40]wFMCommunicate OK [08:18:40]wFMCommunicate request_size=4 [08:18:40]MH_SAM_APDU [08:18:40]CAPDU: 80 0D 03 02 [08:18:40]Write to MH i2c: E2 08 00 F9 00 80 0D 03 02 00 00 00 00 74 [08:18:40]Write i2c OK [08:18:40]MH_I2C_Read... [08:18:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:18:40]Read from MH i2c: E2 [08:18:40]MH_I2C_Read... [08:18:40]Read from MH i2c: E2 0B 00 [08:18:40]MH_I2C_Read... [08:18:40]Read from MH i2c: E2 0B 00 F9 00 00 75 75 EB FE E9 B8 BF C1 90 00 69 [08:18:40]RAPDU: 75 75 EB FE E9 B8 BF C1 90 00 [08:18:40]wFMCommunicate OK [08:18:40]SAM_PROTO_SignData done [08:18:40]FM_MakeSignedData done [08:18:40]CreateOFDProtocolMessage [08:18:40]wFMCommunicate request_size=4 [08:18:40]MH_SAM_APDU [08:18:40]CAPDU: 80 11 00 00 [08:18:40]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [08:18:40]Write i2c OK [08:18:40]MH_I2C_Read... [08:18:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:40]Read from MH i2c: E2 [08:18:40]MH_I2C_Read... [08:18:40]Read from MH i2c: E2 17 00 [08:18:40]MH_I2C_Read... [08:18:40]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C6 [08:18:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [08:18:40]wFMCommunicate OK [08:18:40]CreateOFDProtocolMessage done [08:18:40]OFDSenderStorePacket 82084 [08:18:40]StoreOFDPacket docnum=82084 [08:18:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82084,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [08:18:42]free response buf [08:18:42]execute_script done [08:18:42]execute_script returns [08:18:42]free content buf [08:18:42]Sock 8.Close socket [08:18:42]Sock 8.Thread stoped [08:18:47]OFD Sender: No OFD packet to send [08:18:48]recv_with_timeout no data received [08:18:52]OFD Sender: No OFD packet to send [08:18:57]OFD Sender: No OFD packet to send [08:19:02]OFD Sender: No OFD packet to send [08:19:07]OFD Sender: No OFD packet to send [08:19:12]recv_with_timeout no data received [08:19:12]OFD Sender: No OFD packet to send [08:19:17]OFD Sender: No OFD packet to send [08:19:22]OFD Sender: No OFD packet to send [08:19:27]OFD Sender: No OFD packet to send [08:19:32]OFD Sender: No OFD packet to send [08:19:37]recv_with_timeout no data received [08:19:37]OFD Sender: No OFD packet to send [08:18:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 DC EB 07 01 15 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 5F C8 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A4 40 01 00 35 04 06 00 FC E4 DB 7A FE 80 75 75 EB FE E9 B8 BF C1 [08:18:40]CheckFolder [08:18:40]dirname=/storage/ofd_packets [08:18:40]CheckFolder done [08:18:40]ProducePacketName [08:18:40]name=ofd_packets/00082084 [08:18:40]NVStorageSaveData ofd_packets/00082084 [08:18:40]File name is /storage/ofd_packets/00082084 [08:18:40]Write 301 bytes [08:18:40]NVStorageSaveData done [08:18:40]OFDSenderStorePacket done [08:18:40]KKMCreateOFDPacket done [08:18:40]NVStorageSaveData kkm_last_timestamp [08:18:40]File name is /storage/kkm_last_timestamp [08:18:40]Write 4 bytes [08:18:40]NVStorageSaveData done [08:18:40]ExternCall_PrintAddStr [08:18:40]wPrintStart [08:18:40]Write to MH i2c: 01 00 00 FB 00 FB [08:18:40]Write i2c OK [08:18:40]MH_I2C_Read... [08:18:40]Read from MH i2c: 01 [08:18:40]MH_I2C_Read... [08:18:40]Read from MH i2c: 01 07 00 [08:18:40]MH_I2C_Read... [08:18:40]Read from MH i2c: 01 07 00 FB 00 00 00 00 00 00 FF 0F 10 [08:18:40]RasterBufferAndPrint [08:18:40]line Счет N : (1)918591 [08:18:40]line ИНН: 02508201610067 [08:18:40]line Контрольно-Кассовый Чек [08:18:40]line ПРОДАЖА [08:18:40]line ТРК (МРК, ГНК) : 22 [08:18:40]line Товар: 2710124130 [08:18:40]line Аи-92-К-4 [08:18:40]line 5.980 * 66.90 [08:18:40]line = 400.06 [08:18:40]line НДС 12% НСП 1% [08:18:40]line > о реализуемом товаре [08:18:40]line ОКРУГЛЕНИЕ: -0.06 [08:18:40]line ИТОГО: 400.00 [08:18:40]line Внесено: 400.00 [08:18:40]line СДАЧА: 0.00 [08:18:40]line НСП 1% : 3.54 [08:18:40]line НДС 12% : 42.48 [08:18:40]line Наличными: 400.00 [08:18:40]line Безнал.: 0.00 [08:18:40]line Место: АЗС № 114 "Партнер Нефть" [08:18:40]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [08:18:40]line СНО: Общий режим [08:18:40]line Чек 10 17.10.2024 08:18 [08:18:40]line Смена: 525 ФФД: 1.0 [08:18:40]line ЗНМ: 0300000086 [08:18:40]line РНМ: 0000000000091680 [08:18:40]line Версия ККМ: 001 [08:18:40]line ФМ: 0000000000871843 [08:18:40]line ФД: 82084 [08:18:40]line ФПД: 278059865013888 [08:18:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T081839&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82084&fm=278059865013888&tin=02508201610067®Number=0000000000091680&sum=40000 [08:18:40]OFD Sender: Processing packet 82084 [packets to send 254, broken 253] [08:18:40]ProducePacketName [08:18:40]name=ofd_packets/00082084 [08:18:40]OFD Sender: To server: pG, [08:18:40]CommunicateWithHost lk.salyk.kg:30040 [08:18:40]ConnectInit lk.salyk.kg [08:18:40]written 0, free lines is 4095 [08:18:41]Write to MH i2c: 01 00 00 26 01 27 [08:18:41]Write i2c OK [08:18:41]MH_I2C_Read... [08:18:41]Read from MH i2c: 01 [08:18:41]MH_I2C_Read... [08:18:41]Read from MH i2c: 01 07 00 [08:18:41]MH_I2C_Read... [08:18:41]Read from MH i2c: 01 07 00 26 01 00 00 00 00 00 D5 0C 0F [08:18:41]RasterBufferAndPrint [08:18:41]line [08:18:41]line [08:18:41]line [08:18:41]line [08:18:41]line [08:18:41]written 0, free lines is 3293 [08:18:41]MH_Cut [08:18:41]Write to MH i2c: D1 01 00 2D 01 01 00 [08:18:41]Write i2c OK [08:18:41]MH_I2C_Read... [08:18:41]Read from MH i2c: D1 [08:18:41]MH_I2C_Read... [08:18:41]Read from MH i2c: D1 01 00 [08:18:41]MH_I2C_Read... [08:18:41]Read from MH i2c: D1 01 00 2D 01 00 FF [08:18:41]Write to MH i2c: 01 00 00 2E 01 2F [08:18:41]Write i2c OK [08:18:41]MH_I2C_Read... [08:18:41]Connected sock=10 [08:18:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 DC EB 07 01 15 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 5F C8 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A4 40 01 00 35 04 06 00 FC E4 DB 7A FE 80 75 75 EB FE E9 B8 BF C1 [08:18:41]*** Cut start [08:18:41]*** Partial cut [08:18:41]*** CUTSNS_PIN = 1 [08:18:41]*** CUTSNS_PIN = 0 [08:18:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 E0 C5 47 00 8A 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A4 40 01 00 F4 03 04 00 9E 6D 10 67 B6 04 01 00 00 48 BC CF B7 5A D7 59 8C [08:18:41]CommunicateWithHost err = 0 [08:18:41]CheckOFDResponse [08:18:41]1017 (14) - 77093643461234 [08:18:41]1041 (16) - 0000000000871843 [08:18:41]1040 (4) - 82084 [08:18:41]1012 (4) - 17.10.2024 01:51 [08:18:41]1206 (1) - 0 [08:18:41]OFD Sender: Remove packet 82084 [08:18:41]ProducePacketName [08:18:41]name=ofd_packets/00082084 [08:18:41]NVStorageDeleteData [08:18:42]*** Brake cut motor [08:18:42]OFD Sender: No OFD packet to send [08:18:42]Read from MH i2c: 01 [08:18:42]MH_I2C_Read... [08:18:42]*** Stop cut motor [08:18:42]*** Cut end [08:18:42]Read from MH i2c: 01 07 00 [08:18:42]MH_I2C_Read... [08:18:42]Read from MH i2c: 01 07 00 2E 01 00 00 00 00 00 FF 0F 44 [08:18:42]process_action close_receipt done [08:18:42]requested_data is exist [08:18:42]produce_requested_data [08:18:42]requested_item fm.sn is exist - process it [08:18:42]wFMCommunicate request_size=4 [08:18:42]MH_SAM_APDU [08:18:42]CAPDU: 80 11 00 00 [08:18:42]Write to MH i2c: E2 08 00 2F 01 80 11 00 00 00 00 00 00 AA [08:18:42]Write i2c OK [08:18:42]MH_I2C_Read... [08:18:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:42]Read from MH i2c: E2 [08:18:42]MH_I2C_Read... [08:18:42]Read from MH i2c: E2 17 00 [08:18:42]MH_I2C_Read... [08:18:42]Read from MH i2c: E2 17 00 2F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 FC [08:18:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [08:18:42]wFMCommunicate OK [08:18:42]requested_item fd.num is exist - process it [08:18:42]SAM_PROTO_GetFieldsCounters [08:18:42]wFMCommunicate request_size=4 [08:18:42]MH_SAM_APDU [08:18:42]CAPDU: 80 13 00 00 [08:18:42]Write to MH i2c: E2 08 00 30 01 80 13 00 00 00 00 00 00 AD [08:18:42]Write i2c OK [08:18:42]MH_I2C_Read... [08:18:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:18:42]Read from MH i2c: E2 [08:18:42]MH_I2C_Read... [08:18:42]Read from MH i2c: E2 62 00 [08:18:42]MH_I2C_Read... [08:18:42]Read from MH i2c: E2 62 00 30 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A4 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [08:18:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A4 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:18:42]wFMCommunicate OK [08:18:42]SAM_PROTO_GetFieldsCounters done [08:18:42]requested_item shift.num is exist - process it [08:18:42]requested_item shift.opened is exist - process it [08:18:42]req_shift_opened [08:18:42]FM_GetShiftState [08:18:42]SAM_PROTO_GetShiftState [08:18:42]wFMCommunicate request_size=4 [08:18:42]MH_SAM_APDU [08:18:42]CAPDU: 80 13 01 00 [08:18:42]Write to MH i2c: E2 08 00 31 01 80 13 01 00 00 00 00 00 AF [08:18:42]Write i2c OK [08:18:42]MH_I2C_Read... [08:18:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:42]Read from MH i2c: E2 [08:18:42]MH_I2C_Read... [08:18:42]Read from MH i2c: E2 0E 00 [08:18:42]MH_I2C_Read... [08:18:42]Read from MH i2c: E2 0E 00 31 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 B7 [08:18:42]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [08:18:42]wFMCommunicate OK [08:18:42]SAM_PROTO_GetShiftState done [08:18:42]FM_GetShiftState done [08:18:42]req_shift_opened done [08:18:42]requested_item shift.open_date is exist - process it [08:18:42]req_shift_open_date [08:18:42]req_shift_open_date done [08:18:42]produce_requested_data done [08:18:42]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82084,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [08:18:42]process_action_free close_receipt [08:18:42]json_value_free [08:18:42]json_value_free done [08:18:42]process_json_proto returns [08:18:42]Send response to host [08:19:42]OFD Sender: No OFD packet to send [08:19:47]OFD Sender: No OFD packet to send [08:19:52]recv_with_timeout no data received [08:19:52]OFD Sender: No OFD packet to send [08:19:57]OFD Sender: No OFD packet to send [08:20:02]OFD Sender: No OFD packet to send [08:20:07]OFD Sender: No OFD packet to send [08:20:12]OFD Sender: No OFD packet to send [08:20:17]OFD Sender: No OFD packet to send [08:20:22]OFD Sender: No OFD packet to send [08:20:27]OFD Sender: No OFD packet to send [08:20:32]OFD Sender: No OFD packet to send [08:20:37]OFD Sender: No OFD packet to send [08:20:42]OFD Sender: No OFD packet to send [08:20:44]recv_with_timeout no data received [08:20:47]OFD Sender: No OFD packet to send [08:20:52]OFD Sender: No OFD packet to send [08:20:57]OFD Sender: No OFD packet to send [08:21:02]OFD Sender: No OFD packet to send [08:21:07]OFD Sender: No OFD packet to send [08:21:12]OFD Sender: No OFD packet to send [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]recv_with_timeout no data received [08:21:42]OFD Sender: No OFD packet to send [08:21:47]OFD Sender: No OFD packet to send [08:21:52]OFD Sender: No OFD packet to send [08:21:57]OFD Sender: No OFD packet to send [08:22:02]OFD Sender: No OFD packet to send [08:22:07]OFD Sender: No OFD packet to send [08:22:12]OFD Sender: No OFD packet to send [08:22:17]OFD Sender: No OFD packet to send [08:22:22]OFD Sender: No OFD packet to send [08:22:27]OFD Sender: No OFD packet to send [08:22:32]OFD Sender: No OFD packet to send [08:22:37]recv_with_timeout no data received [08:22:37]OFD Sender: No OFD packet to send [08:22:42]OFD Sender: No OFD packet to send [08:22:47]OFD Sender: No OFD packet to send [08:22:52]OFD Sender: No OFD packet to send [08:22:57]OFD Sender: No OFD packet to send [08:23:02]OFD Sender: No OFD packet to send [08:23:07]OFD Sender: No OFD packet to send [08:23:12]OFD Sender: No OFD packet to send [08:23:17]OFD Sender: No OFD packet to send [08:23:22]OFD Sender: No OFD packet to send [08:23:27]OFD Sender: No OFD packet to send [08:23:32]OFD Sender: No OFD packet to send [08:23:37]OFD Sender: No OFD packet to send [08:23:42]OFD Sender: No OFD packet to send [08:23:47]OFD Sender: No OFD packet to send [08:23:52]OFD Sender: No OFD packet to send [08:23:57]OFD Sender: No OFD packet to send [08:24:02]OFD Sender: No OFD packet to send [08:24:07]OFD Sender: No OFD packet to send [08:24:12]OFD Sender: No OFD packet to send [08:24:17]OFD Sender: No OFD packet to send [08:24:22]OFD Sender: No OFD packet to send [08:24:27]OFD Sender: No OFD packet to send [08:24:32]OFD Sender: No OFD packet to send [08:24:37]OFD Sender: No OFD packet to send [08:24:42]OFD Sender: No OFD packet to send [08:24:47]OFD Sender: No OFD packet to send [08:24:52]OFD Sender: No OFD packet to send [08:24:57]OFD Sender: No OFD packet to send [08:25:02]OFD Sender: No OFD packet to send [08:25:07]OFD Sender: No OFD packet to send [08:25:12]OFD Sender: No OFD packet to send [08:25:18]OFD Sender: No OFD packet to send [08:25:23]OFD Sender: No OFD packet to send [08:25:28]OFD Sender: No OFD packet to send [08:25:33]OFD Sender: No OFD packet to send [08:25:38]OFD Sender: No OFD packet to send [08:25:43]OFD Sender: No OFD packet to send [08:25:48]OFD Sender: No OFD packet to send [08:25:53]OFD Sender: No OFD packet to send [08:25:58]OFD Sender: No OFD packet to send [08:26:03]OFD Sender: No OFD packet to send [08:26:08]OFD Sender: No OFD packet to send [08:26:13]OFD Sender: No OFD packet to send [08:26:18]OFD Sender: No OFD packet to send [08:26:23]OFD Sender: No OFD packet to send [08:26:28]OFD Sender: No OFD packet to send [08:26:33]OFD Sender: No OFD packet to send [08:26:38]OFD Sender: No OFD packet to send [08:26:43]OFD Sender: No OFD packet to send [08:26:48]OFD Sender: No OFD packet to send [08:26:53]OFD Sender: No OFD packet to send [08:26:58]OFD Sender: No OFD packet to send [08:27:03]OFD Sender: No OFD packet to send [08:27:08]OFD Sender: No OFD packet to send [08:27:13]OFD Sender: No OFD packet to send [08:27:18]OFD Sender: No OFD packet to send [08:27:23]OFD Sender: No OFD packet to send [08:27:28]OFD Sender: No OFD packet to send [08:27:33]OFD Sender: No OFD packet to send [08:27:38]OFD Sender: No OFD packet to send [08:27:43]OFD Sender: No OFD packet to send [08:27:48]OFD Sender: No OFD packet to send [08:27:53]OFD Sender: No OFD packet to send [08:27:58]OFD Sender: No OFD packet to send [08:28:03]OFD Sender: No OFD packet to send [08:28:08]OFD Sender: No OFD packet to send [08:28:13]OFD Sender: No OFD packet to send [08:28:18]OFD Sender: No OFD packet to send [08:28:23]OFD Sender: No OFD packet to send [08:28:28]OFD Sender: No OFD packet to send [08:28:33]OFD Sender: No OFD packet to send [08:28:38]OFD Sender: No OFD packet to send [08:28:43]OFD Sender: No OFD packet to send [08:28:48]OFD Sender: No OFD packet to send [08:28:53]OFD Sender: No OFD packet to send [08:28:58]OFD Sender: No OFD packet to send [08:29:03]OFD Sender: No OFD packet to send [08:29:08]OFD Sender: No OFD packet to send [08:29:13]OFD Sender: No OFD packet to send [08:29:18]OFD Sender: No OFD packet to send [08:29:23]OFD Sender: No OFD packet to send [08:29:28]OFD Sender: No OFD packet to send [08:29:33]OFD Sender: No OFD packet to send [08:29:38]OFD Sender: No OFD packet to send [08:29:43]OFD Sender: No OFD packet to send [08:29:48]OFD Sender: No OFD packet to send [08:29:53]OFD Sender: No OFD packet to send [08:29:58]OFD Sender: No OFD packet to send [08:30:03]OFD Sender: No OFD packet to send [08:30:08]OFD Sender: No OFD packet to send [08:30:13]OFD Sender: No OFD packet to send [08:30:18]OFD Sender: No OFD packet to send [08:30:23]OFD Sender: No OFD packet to send [08:30:28]OFD Sender: No OFD packet to send [08:30:33]OFD Sender: No OFD packet to send [08:30:38]OFD Sender: No OFD packet to send [08:30:43]OFD Sender: No OFD packet to send [08:30:48]OFD Sender: No OFD packet to send [08:30:53]OFD Sender: No OFD packet to send [08:30:58]OFD Sender: No OFD packet to send [08:31:03]OFD Sender: No OFD packet to send [08:31:08]OFD Sender: No OFD packet to send [08:31:13]OFD Sender: No OFD packet to send [08:31:18]OFD Sender: No OFD packet to send [08:31:23]OFD Sender: No OFD packet to send [08:31:28]OFD Sender: No OFD packet to send [08:31:33]OFD Sender: No OFD packet to send [08:31:38]OFD Sender: No OFD packet to send [08:31:43]OFD Sender: No OFD packet to send [08:31:48]OFD Sender: No OFD packet to send [08:31:53]OFD Sender: No OFD packet to send [08:31:58]OFD Sender: No OFD packet to send [08:32:03]OFD Sender: No OFD packet to send [08:32:08]OFD Sender: No OFD packet to send [08:32:13]OFD Sender: No OFD packet to send [08:32:18]OFD Sender: No OFD packet to send [08:32:23]OFD Sender: No OFD packet to send [08:32:28]OFD Sender: No OFD packet to send [08:32:33]OFD Sender: No OFD packet to send [08:32:38]OFD Sender: No OFD packet to send [08:32:43]OFD Sender: No OFD packet to send [08:32:48]OFD Sender: No OFD packet to send [08:32:53]OFD Sender: No OFD packet to send [08:32:58]OFD Sender: No OFD packet to send [08:33:03]OFD Sender: No OFD packet to send [08:33:08]OFD Sender: No OFD packet to send [08:33:13]OFD Sender: No OFD packet to send [08:33:18]OFD Sender: No OFD packet to send [08:33:23]OFD Sender: No OFD packet to send [08:33:28]OFD Sender: No OFD packet to send [08:33:33]OFD Sender: No OFD packet to send [08:33:38]OFD Sender: No OFD packet to send [08:33:43]OFD Sender: No OFD packet to send [08:33:48]OFD Sender: No OFD packet to send [08:33:53]OFD Sender: No OFD packet to send [08:33:58]OFD Sender: No OFD packet to send [08:34:03]OFD Sender: No OFD packet to send [08:34:08]OFD Sender: No OFD packet to send [08:34:13]OFD Sender: No OFD packet to send [08:34:18]OFD Sender: No OFD packet to send [08:34:23]OFD Sender: No OFD packet to send [08:34:28]OFD Sender: No OFD packet to send [08:34:33]OFD Sender: No OFD packet to send [08:34:38]OFD Sender: No OFD packet to send [08:34:43]OFD Sender: No OFD packet to send [08:34:48]OFD Sender: No OFD packet to send [08:34:53]OFD Sender: No OFD packet to send [08:34:58]OFD Sender: No OFD packet to send [08:35:03]OFD Sender: No OFD packet to send [08:35:08]OFD Sender: No OFD packet to send [08:35:13]OFD Sender: No OFD packet to send [08:35:18]OFD Sender: No OFD packet to send [08:35:23]OFD Sender: No OFD packet to send [08:35:28]OFD Sender: No OFD packet to send [08:35:33]OFD Sender: No OFD packet to send [08:35:38]OFD Sender: No OFD packet to send [08:35:44]OFD Sender: No OFD packet to send [08:35:49]OFD Sender: No OFD packet to send [08:35:54]OFD Sender: No OFD packet to send [08:35:59]OFD Sender: No OFD packet to send [08:36:04]OFD Sender: No OFD packet to send [08:36:09]OFD Sender: No OFD packet to send [08:36:14]OFD Sender: No OFD packet to send [08:36:19]OFD Sender: No OFD packet to send [08:36:24]OFD Sender: No OFD packet to send [08:36:29]OFD Sender: No OFD packet to send [08:36:34]OFD Sender: No OFD packet to send [08:36:39]OFD Sender: No OFD packet to send [08:36:44]OFD Sender: No OFD packet to send [08:36:49]OFD Sender: No OFD packet to send [08:36:54]OFD Sender: No OFD packet to send [08:36:59]OFD Sender: No OFD packet to send [08:37:04]OFD Sender: No OFD packet to send [08:37:09]OFD Sender: No OFD packet to send [08:37:14]OFD Sender: No OFD packet to send [08:37:19]OFD Sender: No OFD packet to send [08:37:24]OFD Sender: No OFD packet to send [08:37:29]OFD Sender: No OFD packet to send [08:37:34]OFD Sender: No OFD packet to send [08:37:39]OFD Sender: No OFD packet to send [08:37:44]OFD Sender: No OFD packet to send [08:37:46]recv_with_timeout no data received [08:37:49]OFD Sender: No OFD packet to send [08:37:54]OFD Sender: No OFD packet to send [08:37:59]OFD Sender: No OFD packet to send [08:38:04]OFD Sender: No OFD packet to send [08:38:09]OFD Sender: No OFD packet to send [08:38:14]OFD Sender: No OFD packet to send [08:38:19]OFD Sender: No OFD packet to send [08:38:24]OFD Sender: No OFD packet to send [08:38:29]OFD Sender: No OFD packet to send [08:38:34]OFD Sender: No OFD packet to send [08:38:39]OFD Sender: No OFD packet to send [08:38:44]OFD Sender: No OFD packet to send [08:38:49]OFD Sender: No OFD packet to send [08:38:54]OFD Sender: No OFD packet to send [08:38:59]OFD Sender: No OFD packet to send [08:39:04]OFD Sender: No OFD packet to send [08:39:09]OFD Sender: No OFD packet to send [08:39:14]OFD Sender: No OFD packet to send [08:39:19]OFD Sender: No OFD packet to send [08:39:24]OFD Sender: No OFD packet to send [08:39:29]OFD Sender: No OFD packet to send [08:39:34]OFD Sender: No OFD packet to send [08:39:39]OFD Sender: No OFD packet to send [08:39:44]OFD Sender: No OFD packet to send [08:39:49]OFD Sender: No OFD packet to send [08:39:54]OFD Sender: No OFD packet to send [08:39:59]OFD Sender: No OFD packet to send [08:40:04]OFD Sender: No OFD packet to send [08:40:09]OFD Sender: No OFD packet to send [08:40:14]OFD Sender: No OFD packet to send [08:40:19]OFD Sender: No OFD packet to send [08:40:24]OFD Sender: No OFD packet to send [08:40:29]OFD Sender: No OFD packet to send [08:40:34]OFD Sender: No OFD packet to send [08:40:39]OFD Sender: No OFD packet to send [08:40:44]OFD Sender: No OFD packet to send [08:40:49]OFD Sender: No OFD packet to send [08:40:54]OFD Sender: No OFD packet to send [08:40:59]OFD Sender: No OFD packet to send [08:41:04]OFD Sender: No OFD packet to send [08:41:09]OFD Sender: No OFD packet to send [08:41:14]OFD Sender: No OFD packet to send [08:41:19]OFD Sender: No OFD packet to send [08:41:24]OFD Sender: No OFD packet to send [08:41:29]OFD Sender: No OFD packet to send [08:41:34]OFD Sender: No OFD packet to send [08:41:39]OFD Sender: No OFD packet to send [08:41:44]OFD Sender: No OFD packet to send [08:41:49]OFD Sender: No OFD packet to send [08:41:54]OFD Sender: No OFD packet to send [08:41:59]OFD Sender: No OFD packet to send [08:42:04]OFD Sender: No OFD packet to send [08:42:09]OFD Sender: No OFD packet to send [08:42:14]OFD Sender: No OFD packet to send [08:42:19]OFD Sender: No OFD packet to send [08:42:24]OFD Sender: No OFD packet to send [08:42:29]OFD Sender: No OFD packet to send [08:42:34]OFD Sender: No OFD packet to send [08:42:39]OFD Sender: No OFD packet to send [08:42:44]OFD Sender: No OFD packet to send [08:42:49]OFD Sender: No OFD packet to send [08:42:54]OFD Sender: No OFD packet to send [08:42:59]OFD Sender: No OFD packet to send [08:43:04]OFD Sender: No OFD packet to send [08:43:09]OFD Sender: No OFD packet to send [08:43:14]OFD Sender: No OFD packet to send [08:43:19]OFD Sender: No OFD packet to send [08:43:24]OFD Sender: No OFD packet to send [08:43:29]OFD Sender: No OFD packet to send [08:43:34]OFD Sender: No OFD packet to send [08:43:39]OFD Sender: No OFD packet to send [08:43:44]OFD Sender: No OFD packet to send [08:43:49]OFD Sender: No OFD packet to send [08:43:54]OFD Sender: No OFD packet to send [08:43:56]accept exits with 9 [08:43:56]New connection [08:43:56]New thread 3067522404 created [08:43:56]Thread 3067379044 joined [08:43:56]Waiting for new connection... [08:43:56] Sock 9.Parse request [08:43:56]Sock 9.Check first char [08:43:56]Sock 9.First char is OK [08:43:56]request: POST /json_proto HTTP/1.0 [08:43:56]Method: POST [08:43:56]URL: /json_proto [08:43:56]Method is POST - this is cgi request [08:43:56]url: /json_proto [08:43:56]query_string will be loaded in cgi processing [08:43:56]execute_cgi json_proto POST (null) [08:43:56]execute_cgi path=json_proto method=POST [08:43:56]POST find Content-Length [08:43:56]Host: 172.17.44.67:8080 [08:43:56]Content-Length: 621 [08:43:56]Content-Type: application/json [08:43:56] [08:43:56]POST finish read [08:43:56]Found Content-Length = 621 [08:43:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10586", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:56]execute_script... [08:43: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)10586", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:56]POST & json_proto [08:43:56]process_json_proto [08:43:56]json parsed OK: [08:43:56]protocol is kg_v1.0 [08:43:56]action value=close_receipt [08:43:56]process_action close_receipt [08:43:56]cmd_close_receipt [08:43:56]MH_GetDate [08:43:56]Write to MH i2c: F0 00 00 32 01 22 [08:43:56]Write i2c OK [08:43:56]MH_I2C_Read... [08:43:56]Read from MH i2c: F0 [08:43:56]MH_I2C_Read... [08:43:56]Read from MH i2c: F0 09 00 [08:43:56]MH_I2C_Read... [08:43:56]Read from MH i2c: F0 09 00 32 01 00 4C CE 10 67 F1 C7 6B 64 43 [08:43:56]GetLastDocTimeStamp 1729153119 [08:43:56]current date 1729154636 [08:43:56]FM_GetShiftState [08:43:56]SAM_PROTO_GetShiftState [08:43:56]wFMCommunicate request_size=4 [08:43:56]MH_SAM_APDU [08:43:56]CAPDU: 80 13 01 00 [08:43:56]Write to MH i2c: E2 08 00 33 01 80 13 01 00 00 00 00 00 B1 [08:43:56]Write i2c OK [08:43:56]MH_I2C_Read... [08:43:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:56]Read from MH i2c: E2 [08:43:56]MH_I2C_Read... [08:43:56]Read from MH i2c: E2 0E 00 [08:43:56]MH_I2C_Read... [08:43:56]Read from MH i2c: E2 0E 00 33 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 B9 [08:43:56]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [08:43:56]wFMCommunicate OK [08:43:56]SAM_PROTO_GetShiftState done [08:43:56]FM_GetShiftState done [08:43:56]opened in 1729125927 [08:43:56]opened+sec_in_day 1729212327 [08:43:56]quantity*price = 13800 [08:43:56]sum+1 = 13801 [08:43:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 138.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 11 17.10.2024 08:43 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82085 ФПД: 196551586010768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T084356&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82085&fm=196551586010768&tin=02508201610067®Number=0000000000091680&sum=13800 0 [08:43:57]StoreToDocumentArchive [08:43:57]shift 525 fd 82085 [08:43:57]save to /storage/0525/doc_00082085 [08:43:57]save last doc name /storage/0525/doc_00082085 to /storage/kkm_last_doc_name [08:43:57]save OK [08:43:57]Clear old archive folders... [08:43:57]ProcessDocumentItem done err = 0, tmpTLVsize=274 [08:43:57]tlvbuf is 01ADD0D0 [08:43:57]SAM_PROTO_ClearQueue [08:43:57]wFMCommunicate request_size=4 [08:43:57]MH_SAM_APDU [08:43:57]CAPDU: 80 09 00 00 [08:43:57]Write to MH i2c: E2 08 00 40 01 80 09 00 00 00 00 00 00 B3 [08:43:57]Write i2c OK [08:43:57]MH_I2C_Read... [08:43:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:43:57]Read from MH i2c: E2 [08:43:57]MH_I2C_Read... [08:43:57]Read from MH i2c: E2 03 00 [08:43:57]MH_I2C_Read... [08:43:57]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [08:43:57]RAPDU: 90 00 [08:43:57]wFMCommunicate OK [08:43:57]SAM_PROTO_ClearQueue done [08:43:57]KKMCreateOFDPacket [08:43:57]OFDProtocolAddRootSTLVToBuf [08:43:57]FM_MakeSignedData [08:43:57]FM_MakeSignedData [08:43:57]SAM_PROTO_SignData [08:43:57]wFMCommunicate request_size=4 [08:43:57]MH_SAM_APDU [08:43:57]CAPDU: 80 0D 01 02 [08:43:57]Write to MH i2c: E2 08 00 41 01 80 0D 01 02 00 00 00 00 BB [08:43:57]Write i2c OK [08:43:57]MH_I2C_Read... [08:43:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:43:57]Read from MH i2c: E2 [08:43:57]MH_I2C_Read... [08:43:57]Read from MH i2c: E2 03 00 [08:43:57]MH_I2C_Read... [08:43:57]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [08:43:57]RAPDU: 90 00 [08:43:57]wFMCommunicate OK [08:43:57]wFMCommunicate request_size=255 [08:43:57]MH_SAM_APDU [08:43:57]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 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 0B 00 00 00 F4 03 04 00 4C CE 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 [08:43:57]Write to MH i2c: E2 02 01 42 01 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 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 0B 00 00 00 F4 03 04 00 4C CE 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 00 00 A2 [08:43:57]Write i2c OK [08:43:57]MH_I2C_Read... [08:43:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:57]Read from MH i2c: E2 [08:43:57]MH_I2C_Read... [08:43:57]Read from MH i2c: E2 03 00 [08:43:57]MH_I2C_Read... [08:43:57]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [08:43:57]RAPDU: 90 00 [08:43:57]wFMCommunicate OK [08:43:57]wFMCommunicate request_size=33 [08:43:57]MH_SAM_APDU [08:43:57]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A5 40 01 00 35 04 06 00 B2 C3 3B 76 D6 90 [08:43:57]Write to MH i2c: E2 24 00 43 01 80 0D 02 02 1C 00 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A5 40 01 00 35 04 06 00 B2 C3 3B 76 D6 90 00 00 BE [08:43:57]Write i2c OK [08:43:57]MH_I2C_Read... [08:43:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:57]Read from MH i2c: E2 [08:43:57]MH_I2C_Read... [08:43:57]Read from MH i2c: E2 03 00 [08:43:57]MH_I2C_Read... [08:43:57]Read from MH i2c: E2 03 00 43 01 00 90 00 B8 [08:43:57]RAPDU: 90 00 [08:43:57]wFMCommunicate OK [08:43:57]wFMCommunicate request_size=4 [08:43:57]MH_SAM_APDU [08:43:57]CAPDU: 80 0D 03 02 [08:43:57]Write to MH i2c: E2 08 00 44 01 80 0D 03 02 00 00 00 00 C0 [08:43:57]Write i2c OK [08:43:57]MH_I2C_Read... [08:43:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:43:57]Read from MH i2c: E2 [08:43:57]MH_I2C_Read... [08:43:57]Read from MH i2c: E2 0B 00 [08:43:57]MH_I2C_Read... [08:43:57]Read from MH i2c: E2 0B 00 44 01 00 A2 49 C8 39 12 B6 76 3E 90 00 29 [08:43:57]RAPDU: A2 49 C8 39 12 B6 76 3E 90 00 [08:43:57]wFMCommunicate OK [08:43:57]SAM_PROTO_SignData done [08:43:57]FM_MakeSignedData done [08:43:57]CreateOFDProtocolMessage [08:43:57]wFMCommunicate request_size=4 [08:43:57]MH_SAM_APDU [08:43:57]CAPDU: 80 11 00 00 [08:43:57]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [08:43:57]Write i2c OK [08:43:57]MH_I2C_Read... [08:43:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:57]Read from MH i2c: E2 [08:43:57]MH_I2C_Read... [08:43:57]Read from MH i2c: E2 17 00 [08:43:57]MH_I2C_Read... [08:43:57]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 12 [08:43:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [08:43:57]wFMCommunicate OK [08:43:57]CreateOFDProtocolMessage done [08:43:57]OFDSenderStorePacket 82085 [08:43:57]StoreOFDPacket docnum=82085 [08:43:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 26 01 00 00 32 07 1E 01 18 27 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 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 0B 00 00 00 F4 03 04 00 4C CE 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A5 40 01 00 35 04 06 00 B2 C3 3B 76 D6 90 A2 49 C8 39 12 B6 76 3E [08:43:57]CheckFolder [08:43:57]dirname=/storage/ofd_packets [08:43:57]CheckFolder done [08:43:57]ProducePacketName [08:43:57]name=ofd_packets/00082085 [08:43:57]NVStorageSaveData ofd_packets/00082085 [08:43:57]File name is /storage/ofd_packets/00082085 [08:43:57]Write 324 bytes [08:43:57]NVStorageSaveData done [08:43:57]OFDSenderStorePacket done [08:43:57]KKMCreateOFDPacket done [08:43:57]NVStorageSaveData kkm_last_timestamp [08:43:57]File name is /storage/kkm_last_timestamp [08:43:57]Write 4 bytes [08:43:57]NVStorageSaveData done [08:43:57]ExternCall_PrintAddStr [08:43:57]wPrintStart [08:43:57]Write to MH i2c: 01 00 00 46 01 47 [08:43:57]Write i2c OK [08:43:57]MH_I2C_Read... [08:43:57]Read from MH i2c: 01 [08:43:57]MH_I2C_Read... [08:43:57]Read from MH i2c: 01 07 00 [08:43:57]MH_I2C_Read... [08:43:57]Read from MH i2c: 01 07 00 46 01 00 00 00 00 00 FF 0F 5C [08:43:57]RasterBufferAndPrint [08:43:57]line Счет N : (3)10586 [08:43:57]line ИНН: 02508201610067 [08:43:57]line Контрольно-Кассовый Чек [08:43:57]line ПРОДАЖА [08:43:57]line Товар: 4640030091645 [08:43:57]line Сигареты ESSE Exchange M [08:43:57]line 1.000 * 138.00 [08:43:57]line = 138.00 [08:43:57]line НДС 12% НСП 1% [08:43:57]line > о реализуемом товаре [08:43:57]line ИТОГО: 138.00 [08:43:57]line НСП 1% : 1.22 [08:43:57]line НДС 12% : 14.65 [08:43:57]line Наличными: 138.00 [08:43:57]line Безнал.: 0.00 [08:43:57]line Место: АЗС № 114 "Партнер Нефть" [08:43:57]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [08:43:57]line СНО: Общий режим [08:43:57]line Чек 11 17.10.2024 08:43 [08:43:57]line Смена: 525 ФФД: 1.0 [08:43:57]line ЗНМ: 0300000086 [08:43:57]line РНМ: 0000000000091680 [08:43:57]line Версия ККМ: 001 [08:43:57]line ФМ: 0000000000871843 [08:43:57]line ФД: 82085 [08:43:57]line ФПД: 196551586010768 [08:43:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T084356&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82085&fm=196551586010768&tin=02508201610067®Number=0000000000091680&sum=13800 [08:43:58]line 0 [08:43:58]OFD Sender: Processing packet 82085 [packets to send 254, broken 253] [08:43:58]ProducePacketName [08:43:58]name=ofd_packets/00082085 [08:43:58]OFD Sender: To server: pG, [08:43:58]CommunicateWithHost lk.salyk.kg:30040 [08:43:58]ConnectInit lk.salyk.kg [08:43:58]written 0, free lines is 4095 [08:43:58]Write to MH i2c: 01 00 00 6E 01 6F [08:43:58]Write i2c OK [08:43:58]MH_I2C_Read... [08:43:58]Read from MH i2c: 01 [08:43:58]MH_I2C_Read... [08:43:58]Read from MH i2c: 01 07 00 [08:43:58]MH_I2C_Read... [08:43:58]Read from MH i2c: 01 07 00 6E 01 00 00 00 00 00 01 0D 84 [08:43:58]RasterBufferAndPrint [08:43:58]line [08:43:58]line [08:43:58]line [08:43:58]line [08:43:58]line [08:43:58]written 0, free lines is 3336 [08:43:58]MH_Cut [08:43:58]Write to MH i2c: D1 01 00 75 01 01 48 [08:43:58]Write i2c OK [08:43:58]MH_I2C_Read... [08:43:58]Read from MH i2c: D1 [08:43:58]MH_I2C_Read... [08:43:58]Read from MH i2c: D1 01 00 [08:43:58]MH_I2C_Read... [08:43:58]Read from MH i2c: D1 01 00 75 01 00 47 [08:43:58]Write to MH i2c: 01 00 00 76 01 77 [08:43:58]Write i2c OK [08:43:58]MH_I2C_Read... [08:43:58]Connected sock=8 [08:43:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 26 01 00 00 32 07 1E 01 18 27 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 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 0B 00 00 00 F4 03 04 00 4C CE 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A5 40 01 00 35 04 06 00 B2 C3 3B 76 D6 90 A2 49 C8 39 12 B6 76 3E [08:43:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 DA 7D 47 00 70 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A5 40 01 00 F4 03 04 00 8B 73 10 67 B6 04 01 00 00 EA 24 5B 17 A7 E4 CC BF [08:43:59]CommunicateWithHost err = 0 [08:43:59]CheckOFDResponse [08:43:59]1017 (14) - 77093643461234 [08:43:59]1041 (16) - 0000000000871843 [08:43:59]1040 (4) - 82085 [08:43:59]1012 (4) - 17.10.2024 02:16 [08:43:59]1206 (1) - 0 [08:43:59]OFD Sender: Remove packet 82085 [08:43:59]ProducePacketName [08:43:59]name=ofd_packets/00082085 [08:43:59]NVStorageDeleteData [08:43:59]*** Cut start [08:43:59]*** Partial cut [08:43:59]*** CUTSNS_PIN = 1 [08:43:59]*** CUTSNS_PIN = 0 [08:43:59]OFD Sender: No OFD packet to send [08:43:59]*** Brake cut motor [08:44:00]Read from MH i2c: 01 [08:44:00]MH_I2C_Read... [08:44:00]*** Stop cut motor [08:44:00]*** Cut end [08:44:00]Read from MH i2c: 01 07 00 [08:44:00]MH_I2C_Read... [08:44:00]Read from MH i2c: 01 07 00 76 01 00 00 00 00 00 FF 0F 8C [08:44:00]process_action close_receipt done [08:44:00]requested_data is exist [08:44:00]produce_requested_data [08:44:00]requested_item fm.sn is exist - process it [08:44:00]wFMCommunicate request_size=4 [08:44:00]MH_SAM_APDU [08:44:00]CAPDU: 80 11 00 00 [08:44:00]Write to MH i2c: E2 08 00 77 01 80 11 00 00 00 00 00 00 F2 [08:44:00]Write i2c OK [08:44:00]MH_I2C_Read... [08:44:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:00]Read from MH i2c: E2 [08:44:00]MH_I2C_Read... [08:44:00]Read from MH i2c: E2 17 00 [08:44:00]MH_I2C_Read... [08:44:00]Read from MH i2c: E2 17 00 77 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 44 [08:44:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [08:44:00]wFMCommunicate OK [08:44:00]requested_item fd.num is exist - process it [08:44:00]SAM_PROTO_GetFieldsCounters [08:44:00]wFMCommunicate request_size=4 [08:44:00]MH_SAM_APDU [08:44:00]CAPDU: 80 13 00 00 [08:44:00]Write to MH i2c: E2 08 00 78 01 80 13 00 00 00 00 00 00 F5 [08:44:00]Write i2c OK [08:44:00]MH_I2C_Read... [08:44:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:00]Read from MH i2c: E2 [08:44:00]MH_I2C_Read... [08:44:00]Read from MH i2c: E2 62 00 [08:44:00]MH_I2C_Read... [08:44:00]Read from MH i2c: E2 62 00 78 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A5 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [08:44:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A5 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:44:00]wFMCommunicate OK [08:44:00]SAM_PROTO_GetFieldsCounters done [08:44:00]requested_item shift.num is exist - process it [08:44:00]requested_item shift.opened is exist - process it [08:44:00]req_shift_opened [08:44:00]FM_GetShiftState [08:44:00]SAM_PROTO_GetShiftState [08:44:00]wFMCommunicate request_size=4 [08:44:00]MH_SAM_APDU [08:44:00]CAPDU: 80 13 01 00 [08:44:00]Write to MH i2c: E2 08 00 79 01 80 13 01 00 00 00 00 00 F7 [08:44:00]Write i2c OK [08:44:00]MH_I2C_Read... [08:44:00]Read from MH i2c: E2 [08:44:00]MH_I2C_Read... [08:44:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:00]Read from MH i2c: E2 0E 00 [08:44:00]MH_I2C_Read... [08:44:00]Read from MH i2c: E2 0E 00 79 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 FF [08:44:00]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [08:44:00]wFMCommunicate OK [08:44:00]SAM_PROTO_GetShiftState done [08:44:00]FM_GetShiftState done [08:44:00]req_shift_opened done [08:44:00]requested_item shift.open_date is exist - process it [08:44:00]req_shift_open_date [08:44:00]req_shift_open_date done [08:44:00]produce_requested_data done [08:44:00]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82085,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [08:44:00]process_action_free close_receipt [08:44:00]json_value_free [08:44:00]json_value_free done [08:44:00]process_json_proto returns [08:44:00]Send response to host [08:44:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82085,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [08:44:00]free response buf [08:44:00]execute_script done [08:44:00]execute_script returns [08:44:00]free content buf [08:44:00]Sock 9.Close socket [08:44:00]Sock 9.Thread stoped [08:44:04]OFD Sender: No OFD packet to send [08:44:08]recv_with_timeout no data received [08:44:09]OFD Sender: No OFD packet to send [08:44:14]OFD Sender: No OFD packet to send [08:44:19]OFD Sender: No OFD packet to send [08:44:24]OFD Sender: No OFD packet to send [08:44:29]OFD Sender: No OFD packet to send [08:44:34]OFD Sender: No OFD packet to send [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:16]recv_with_timeout no data received [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:10]recv_with_timeout no data received [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:10]OFD Sender: No OFD packet to send [08:47:15]OFD Sender: No OFD packet to send [08:47:20]OFD Sender: No OFD packet to send [08:47:25]OFD Sender: No OFD packet to send [08:47:30]OFD Sender: No OFD packet to send [08:47:35]OFD Sender: No OFD packet to send [08:47:40]OFD Sender: No OFD packet to send [08:47:45]OFD Sender: No OFD packet to send [08:47:50]OFD Sender: No OFD packet to send [08:47:52]recv_with_timeout no data received [08:47:55]OFD Sender: No OFD packet to send [08:48:00]OFD Sender: No OFD packet to send [08:48:05]OFD Sender: No OFD packet to send [08:48:10]OFD Sender: No OFD packet to send [08:48:15]OFD Sender: No OFD packet to send [08:48:20]OFD Sender: No OFD packet to send [08:48:25]OFD Sender: No OFD packet to send [08:48:30]OFD Sender: No OFD packet to send [08:48:31]recv_with_timeout no data received [08:48:35]OFD Sender: No OFD packet to send [08:48:40]OFD Sender: No OFD packet to send [08:48:45]OFD Sender: No OFD packet to send [08:48:50]OFD Sender: No OFD packet to send [08:48:55]OFD Sender: No OFD packet to send [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [08:49:13]recv_with_timeout no data received [08:49:15]OFD Sender: No OFD packet to send [08:49:20]OFD Sender: No OFD packet to send [08:49:25]OFD Sender: No OFD packet to send [08:49:25]recv_with_timeout no data received [08:49:30]OFD Sender: No OFD packet to send [08:49:35]OFD Sender: No OFD packet to send [08:49:40]OFD Sender: No OFD packet to send [08:49:45]OFD Sender: No OFD packet to send [08:49:50]OFD Sender: No OFD packet to send [08:49:55]OFD Sender: No OFD packet to send [08:50:00]OFD Sender: No OFD packet to send [08:50:05]OFD Sender: No OFD packet to send [08:50:10]OFD Sender: No OFD packet to send [08:50:15]OFD Sender: No OFD packet to send [08:50:20]OFD Sender: No OFD packet to send [08:50:25]OFD Sender: No OFD packet to send [08:50:30]OFD Sender: No OFD packet to send [08:50:35]OFD Sender: No OFD packet to send [08:50:40]OFD Sender: No OFD packet to send [08:50:45]OFD Sender: No OFD packet to send [08:50:46]recv_with_timeout no data received [08:50:50]OFD Sender: No OFD packet to send [08:50:55]OFD Sender: No OFD packet to send [08:51:00]OFD Sender: No OFD packet to send [08:51:05]OFD Sender: No OFD packet to send [08:51:10]OFD Sender: No OFD packet to send [08:51:15]OFD Sender: No OFD packet to send [08:51:20]OFD Sender: No OFD packet to send [08:51:25]OFD Sender: No OFD packet to send [08:51:30]OFD Sender: No OFD packet to send [08:51:35]OFD Sender: No OFD packet to send [08:51:38]recv_with_timeout no data received [08:51:39]accept exits with 10 [08:51:39]New connection [08:51:39]New thread 3067379044 created [08:51:39]Thread 3067522404 joined [08:51:39]Waiting for new connection... [08:51:39] Sock 10.Parse request [08:51:39]Sock 10.Check first char [08:51:39]Sock 10.First char is OK [08:51:39]request: POST /json_proto HTTP/1.0 [08:51:39]Method: POST [08:51:39]URL: /json_proto [08:51:39]Method is POST - this is cgi request [08:51:39]url: /json_proto [08:51:39]query_string will be loaded in cgi processing [08:51:39]execute_cgi json_proto POST (null) [08:51:39]execute_cgi path=json_proto method=POST [08:51:39]POST find Content-Length [08:51:39]Host: 172.17.44.67:8080 [08:51:39]Content-Length: 682 [08:51:39]Content-Type: application/json [08:51:39] [08:51:39]POST finish read [08:51:39]Found Content-Length = 682 [08:51:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:39]execute_script... [08:51:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:39]POST & json_proto [08:51:39]process_json_proto [08:51:39]json parsed OK: [08:51:39]protocol is kg_v1.0 [08:51:39]action value=close_receipt [08:51:39]process_action close_receipt [08:51:39]cmd_close_receipt [08:51:39]MH_GetDate [08:51:39]Write to MH i2c: F0 00 00 7A 01 6A [08:51:39]Write i2c OK [08:51:39]MH_I2C_Read... [08:51:39]Read from MH i2c: F0 [08:51:39]MH_I2C_Read... [08:51:39]Read from MH i2c: F0 09 00 [08:51:39]MH_I2C_Read... [08:51:39]Read from MH i2c: F0 09 00 7A 01 00 1B D0 10 67 F1 C7 6B 64 5C [08:51:39]GetLastDocTimeStamp 1729154636 [08:51:39]current date 1729155099 [08:51:39]FM_GetShiftState [08:51:39]SAM_PROTO_GetShiftState [08:51:39]wFMCommunicate request_size=4 [08:51:39]MH_SAM_APDU [08:51:39]CAPDU: 80 13 01 00 [08:51:39]Write to MH i2c: E2 08 00 7B 01 80 13 01 00 00 00 00 00 F9 [08:51:39]Write i2c OK [08:51:39]MH_I2C_Read... [08:51:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:39]Read from MH i2c: E2 [08:51:39]MH_I2C_Read... [08:51:39]Read from MH i2c: E2 0E 00 [08:51:39]MH_I2C_Read... [08:51:39]Read from MH i2c: E2 0E 00 7B 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 01 [08:51:39]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [08:51:39]wFMCommunicate OK [08:51:39]SAM_PROTO_GetShiftState done [08:51:39]FM_GetShiftState done [08:51:39]opened in 1729125927 [08:51:39]opened+sec_in_day 1729212327 [08:51:39]quantity*price = 100015 [08:51:39]sum+1 = 100017 [08:51:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 12 17.10.2024 08:51 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82086 ФПД: 267967186402732 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T085139&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82086&fm=267967186402732&tin=02508201610067®Number=0000000000091680&sum=100000 [08:51:40]StoreToDocumentArchive [08:51:40]shift 525 fd 82086 [08:51:40]save to /storage/0525/doc_00082086 [08:51:40]save last doc name /storage/0525/doc_00082086 to /storage/kkm_last_doc_name [08:51:40]save OK [08:51:40]Clear old archive folders... [08:51:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:51:40]tlvbuf is 01B58540 [08:51:40]SAM_PROTO_ClearQueue [08:51:40]wFMCommunicate request_size=4 [08:51:40]MH_SAM_APDU [08:51:40]CAPDU: 80 09 00 00 [08:51:40]Write to MH i2c: E2 08 00 88 01 80 09 00 00 00 00 00 00 FB [08:51:40]Write i2c OK [08:51:40]MH_I2C_Read... [08:51:40]OFD Sender: No OFD packet to send [08:51:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:51:40]Read from MH i2c: E2 [08:51:40]MH_I2C_Read... [08:51:40]Read from MH i2c: E2 03 00 [08:51:40]MH_I2C_Read... [08:51:40]Read from MH i2c: E2 03 00 88 01 00 90 00 FD [08:51:40]RAPDU: 90 00 [08:51:40]wFMCommunicate OK [08:51:40]SAM_PROTO_ClearQueue done [08:51:40]KKMCreateOFDPacket [08:51:40]OFDProtocolAddRootSTLVToBuf [08:51:40]FM_MakeSignedData [08:51:40]FM_MakeSignedData [08:51:40]SAM_PROTO_SignData [08:51:40]wFMCommunicate request_size=4 [08:51:40]MH_SAM_APDU [08:51:40]CAPDU: 80 0D 01 02 [08:51:40]Write to MH i2c: E2 08 00 89 01 80 0D 01 02 00 00 00 00 03 [08:51:40]Write i2c OK [08:51:40]MH_I2C_Read... [08:51:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:51:40]Read from MH i2c: E2 [08:51:40]MH_I2C_Read... [08:51:40]Read from MH i2c: E2 03 00 [08:51:40]MH_I2C_Read... [08:51:40]Read from MH i2c: E2 03 00 89 01 00 90 00 FE [08:51:40]RAPDU: 90 00 [08:51:40]wFMCommunicate OK [08:51:40]wFMCommunicate request_size=255 [08:51:40]MH_SAM_APDU [08:51:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 1B D0 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A6 40 01 00 35 04 06 00 F3 [08:51:40]Write to MH i2c: E2 02 01 8A 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 1B D0 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A6 40 01 00 35 04 06 00 F3 00 00 E0 [08:51:40]Write i2c OK [08:51:40]MH_I2C_Read... [08:51:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:40]Read from MH i2c: E2 [08:51:40]MH_I2C_Read... [08:51:40]Read from MH i2c: E2 03 00 [08:51:40]MH_I2C_Read... [08:51:40]Read from MH i2c: E2 03 00 8A 01 00 90 00 FF [08:51:40]RAPDU: 90 00 [08:51:40]wFMCommunicate OK [08:51:40]wFMCommunicate request_size=10 [08:51:40]MH_SAM_APDU [08:51:40]CAPDU: 80 0D 02 02 05 B6 F8 F4 FD AC [08:51:40]Write to MH i2c: E2 0D 00 8B 01 80 0D 02 02 05 00 B6 F8 F4 FD AC 00 00 5B [08:51:40]Write i2c OK [08:51:40]MH_I2C_Read... [08:51:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:40]Read from MH i2c: E2 [08:51:40]MH_I2C_Read... [08:51:40]Read from MH i2c: E2 03 00 [08:51:40]MH_I2C_Read... [08:51:40]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [08:51:40]RAPDU: 90 00 [08:51:40]wFMCommunicate OK [08:51:40]wFMCommunicate request_size=4 [08:51:40]MH_SAM_APDU [08:51:40]CAPDU: 80 0D 03 02 [08:51:40]Write to MH i2c: E2 08 00 8C 01 80 0D 03 02 00 00 00 00 08 [08:51:40]Write i2c OK [08:51:40]MH_I2C_Read... [08:51:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:51:40]Read from MH i2c: E2 [08:51:40]MH_I2C_Read... [08:51:40]Read from MH i2c: E2 0B 00 [08:51:40]MH_I2C_Read... [08:51:40]Read from MH i2c: E2 0B 00 8C 01 00 76 8B E4 9D 75 24 FC 18 90 00 38 [08:51:40]RAPDU: 76 8B E4 9D 75 24 FC 18 90 00 [08:51:40]wFMCommunicate OK [08:51:40]SAM_PROTO_SignData done [08:51:40]FM_MakeSignedData done [08:51:40]CreateOFDProtocolMessage [08:51:40]wFMCommunicate request_size=4 [08:51:40]MH_SAM_APDU [08:51:40]CAPDU: 80 11 00 00 [08:51:40]Write to MH i2c: E2 08 00 8D 01 80 11 00 00 00 00 00 00 08 [08:51:40]Write i2c OK [08:51:40]MH_I2C_Read... [08:51:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:40]Read from MH i2c: E2 [08:51:40]MH_I2C_Read... [08:51:40]Read from MH i2c: E2 17 00 [08:51:40]MH_I2C_Read... [08:51:40]Read from MH i2c: E2 17 00 8D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 5A [08:51:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [08:51:40]wFMCommunicate OK [08:51:40]CreateOFDProtocolMessage done [08:51:40]OFDSenderStorePacket 82086 [08:51:40]StoreOFDPacket docnum=82086 [08:51:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 5D 1D 07 01 DC 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 1B D0 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A6 40 01 00 35 04 06 00 F3 B6 F8 F4 FD AC 76 8B E4 9D 75 24 FC 18 [08:51:40]CheckFolder [08:51:40]dirname=/storage/ofd_packets [08:51:40]CheckFolder done [08:51:40]ProducePacketName [08:51:40]name=ofd_packets/00082086 [08:51:40]NVStorageSaveData ofd_packets/00082086 [08:51:40]File name is /storage/ofd_packets/00082086 [08:51:40]Write 301 bytes [08:51:40]NVStorageSaveData done [08:51:40]OFDSenderStorePacket done [08:51:40]KKMCreateOFDPacket done [08:51:40]NVStorageSaveData kkm_last_timestamp [08:51:40]File name is /storage/kkm_last_timestamp [08:51:40]Write 4 bytes [08:51:40]NVStorageSaveData done [08:51:40]ExternCall_PrintAddStr [08:51:40]wPrintStart [08:51:40]Write to MH i2c: 01 00 00 8E 01 8F [08:51:40]Write i2c OK [08:51:40]MH_I2C_Read... [08:51:40]Read from MH i2c: 01 [08:51:40]MH_I2C_Read... [08:51:40]Read from MH i2c: 01 07 00 [08:51:40]MH_I2C_Read... [08:51:40]Read from MH i2c: 01 07 00 8E 01 00 00 00 00 00 FF 0F A4 [08:51:40]RasterBufferAndPrint [08:51:40]line Счет N : (1)918592 [08:51:40]line ИНН: 02508201610067 [08:51:40]line Контрольно-Кассовый Чек [08:51:40]line ПРОДАЖА [08:51:40]line ТРК (МРК, ГНК) : 11 [08:51:40]line Товар: 2710124130 [08:51:40]line Аи-92-К-4 [08:51:40]line 14.950 * 66.90 [08:51:40]line = 1000.16 [08:51:40]line НДС 12% НСП 1% [08:51:40]line > о реализуемом товаре [08:51:40]line ОКРУГЛЕНИЕ: -0.16 [08:51:40]line ИТОГО: 1000.00 [08:51:40]line Внесено: 1000.00 [08:51:40]line СДАЧА: 0.00 [08:51:40]line НСП 1% : 8.85 [08:51:40]line НДС 12% : 106.21 [08:51:40]line Наличными: 1000.00 [08:51:40]line Безнал.: 0.00 [08:51:40]line Место: АЗС № 114 "Партнер Нефть" [08:51:40]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [08:51:40]line СНО: Общий режим [08:51:40]line Чек 12 17.10.2024 08:51 [08:51:40]line Смена: 525 ФФД: 1.0 [08:51:40]line ЗНМ: 0300000086 [08:51:40]line РНМ: 0000000000091680 [08:51:40]line Версия ККМ: 001 [08:51:40]line ФМ: 0000000000871843 [08:51:40]line ФД: 82086 [08:51:40]line ФПД: 267967186402732 [08:51:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T085139&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82086&fm=267967186402732&tin=02508201610067®Number=0000000000091680&sum=100000 [08:51:40]written 0, free lines is 4095 [08:51:40]OFD Sender: Processing packet 82086 [packets to send 254, broken 253] [08:51:40]ProducePacketName [08:51:40]name=ofd_packets/00082086 [08:51:40]OFD Sender: To server: pG, [08:51:40]CommunicateWithHost lk.salyk.kg:30040 [08:51:40]ConnectInit lk.salyk.kg [08:51:41]Write to MH i2c: 01 00 00 B9 01 BA [08:51:41]Write i2c OK [08:51:41]MH_I2C_Read... [08:51:41]Read from MH i2c: 01 [08:51:41]MH_I2C_Read... [08:51:41]Read from MH i2c: 01 07 00 [08:51:41]MH_I2C_Read... [08:51:41]Read from MH i2c: 01 07 00 B9 01 00 00 00 00 00 D8 0C A5 [08:51:41]RasterBufferAndPrint [08:51:41]line [08:51:41]line [08:51:41]line [08:51:41]line [08:51:41]line [08:51:41]written 0, free lines is 3295 [08:51:41]MH_Cut [08:51:41]Write to MH i2c: D1 01 00 C0 01 01 93 [08:51:41]Write i2c OK [08:51:41]MH_I2C_Read... [08:51:41]Read from MH i2c: D1 [08:51:41]MH_I2C_Read... [08:51:41]Read from MH i2c: D1 01 00 [08:51:41]MH_I2C_Read... [08:51:41]Read from MH i2c: D1 01 00 C0 01 00 92 [08:51:41]Write to MH i2c: 01 00 00 C1 01 C2 [08:51:41]Write i2c OK [08:51:41]MH_I2C_Read... [08:51:42]*** Cut start [08:51:42]*** Partial cut [08:51:42]*** CUTSNS_PIN = 1 [08:51:42]*** CUTSNS_PIN = 0 [08:51:42]*** Brake cut motor [08:51:42]Read from MH i2c: 01 [08:51:42]MH_I2C_Read... [08:51:42]*** Stop cut motor [08:51:42]*** Cut end [08:51:42]Read from MH i2c: 01 07 00 [08:51:42]MH_I2C_Read... [08:51:42]Read from MH i2c: 01 07 00 C1 01 00 00 00 00 00 FF 0F D7 [08:51:42]process_action close_receipt done [08:51:42]requested_data is exist [08:51:42]produce_requested_data [08:51:42]requested_item fm.sn is exist - process it [08:51:42]wFMCommunicate request_size=4 [08:51:42]MH_SAM_APDU [08:51:42]CAPDU: 80 11 00 00 [08:51:42]Write to MH i2c: E2 08 00 C2 01 80 11 00 00 00 00 00 00 3D [08:51:42]Write i2c OK [08:51:42]MH_I2C_Read... [08:51:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:42]Read from MH i2c: E2 [08:51:42]MH_I2C_Read... [08:51:42]Read from MH i2c: E2 17 00 [08:51:42]MH_I2C_Read... [08:51:42]Read from MH i2c: E2 17 00 C2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 8F [08:51:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [08:51:42]wFMCommunicate OK [08:51:42]requested_item fd.num is exist - process it [08:51:42]SAM_PROTO_GetFieldsCounters [08:51:42]wFMCommunicate request_size=4 [08:51:42]MH_SAM_APDU [08:51:42]CAPDU: 80 13 00 00 [08:51:42]Write to MH i2c: E2 08 00 C3 01 80 13 00 00 00 00 00 00 40 [08:51:42]Write i2c OK [08:51:42]MH_I2C_Read... [08:51:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:51:43]Read from MH i2c: E2 [08:51:43]MH_I2C_Read... [08:51:43]Read from MH i2c: E2 62 00 [08:51:43]MH_I2C_Read... [08:51:43]Read from MH i2c: E2 62 00 C3 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A6 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [08:51:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A6 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:51:43]wFMCommunicate OK [08:51:43]SAM_PROTO_GetFieldsCounters done [08:51:43]requested_item shift.num is exist - process it [08:51:43]requested_item shift.opened is exist - process it [08:51:43]req_shift_opened [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 C4 01 80 13 01 00 00 00 00 00 42 [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 C4 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 4A [08:51:43]RAPDU: 09 00 01 27 5E 10 67 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]req_shift_opened done [08:51:43]requested_item shift.open_date is exist - process it [08:51:43]req_shift_open_date [08:51:43]req_shift_open_date done [08:51:43]produce_requested_data done [08:51:43]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82086,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [08:51:43]process_action_free close_receipt [08:51:43]json_value_free [08:51:43]json_value_free done [08:51:43]process_json_proto returns [08:51:43]Send response to host [08:51:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82086,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [08:51:43]free response buf [08:51:43]execute_script done [08:51:43]execute_script returns [08:51:43]free content buf [08:51:43]Sock 10.Close socket [08:51:43]Sock 10.Thread stoped [08:51:46]ConnectInit Can't take IP for lk.salyk.kg [08:51:46]CommunicateWithHost connect error [08:51:46]CommunicateWithHost err = -1 [08:51:46]OFD Sender: Server communicate error [08:51:51]OFD Sender: Processing packet 82086 [packets to send 254, broken 253] [08:51:51]ProducePacketName [08:51:51]name=ofd_packets/00082086 [08:51:51]OFD Sender: To server: pG, [08:51:51]CommunicateWithHost lk.salyk.kg:30040 [08:51:51]ConnectInit lk.salyk.kg [08:51:55]Connected sock=9 [08:51:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 5D 1D 07 01 DC 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 1B D0 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A6 40 01 00 35 04 06 00 F3 B6 F8 F4 FD AC 76 8B E4 9D 75 24 FC 18 [08:51:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 26 93 47 00 80 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A6 40 01 00 F4 03 04 00 68 75 10 67 B6 04 01 00 00 0A BB E5 FD BA 1A 90 51 [08:51:55]CommunicateWithHost err = 0 [08:51:55]CheckOFDResponse [08:51:55]1017 (14) - 77093643461234 [08:51:55]1041 (16) - 0000000000871843 [08:51:55]1040 (4) - 82086 [08:51:55]1012 (4) - 17.10.2024 02:24 [08:51:55]1206 (1) - 0 [08:51:55]OFD Sender: Remove packet 82086 [08:51:55]ProducePacketName [08:51:55]name=ofd_packets/00082086 [08:51:55]NVStorageDeleteData [08:51:56]OFD Sender: No OFD packet to send [08:51:58]recv_with_timeout no data received [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:34]recv_with_timeout no data received [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:15]accept exits with 8 [08:53:15]New connection [08:53:15]New thread 3067522404 created [08:53:15]Thread 3067379044 joined [08:53:15]Waiting for new connection... [08:53:15] Sock 8.Parse request [08:53:15]Sock 8.Check first char [08:53:15]Sock 8.First char is OK [08:53:15]request: POST /json_proto HTTP/1.0 [08:53:15]Method: POST [08:53:15]URL: /json_proto [08:53:15]Method is POST - this is cgi request [08:53:15]url: /json_proto [08:53:15]query_string will be loaded in cgi processing [08:53:15]execute_cgi json_proto POST (null) [08:53:15]execute_cgi path=json_proto method=POST [08:53:15]POST find Content-Length [08:53:15]Host: 172.17.44.67:8080 [08:53:15]Content-Length: 766 [08:53:15]Content-Type: application/json [08:53:15] [08:53:15]POST finish read [08:53:15]Found Content-Length = 766 [08:53:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:15]execute_script... [08:53:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:15]POST & json_proto [08:53:15]process_json_proto [08:53:15]json parsed OK: [08:53:15]protocol is kg_v1.0 [08:53:15]action value=close_receipt [08:53:15]process_action close_receipt [08:53:15]cmd_close_receipt [08:53:15]MH_GetDate [08:53:15]Write to MH i2c: F0 00 00 C5 01 B5 [08:53:15]Write i2c OK [08:53:15]MH_I2C_Read... [08:53:15]Read from MH i2c: F0 [08:53:15]MH_I2C_Read... [08:53:15]Read from MH i2c: F0 09 00 [08:53:15]MH_I2C_Read... [08:53:15]Read from MH i2c: F0 09 00 C5 01 00 7C D0 10 67 F1 C7 6B 64 08 [08:53:15]GetLastDocTimeStamp 1729155099 [08:53:15]current date 1729155196 [08:53:15]FM_GetShiftState [08:53:15]SAM_PROTO_GetShiftState [08:53:15]wFMCommunicate request_size=4 [08:53:15]MH_SAM_APDU [08:53:15]CAPDU: 80 13 01 00 [08:53:15]Write to MH i2c: E2 08 00 C6 01 80 13 01 00 00 00 00 00 44 [08:53:15]Write i2c OK [08:53:15]MH_I2C_Read... [08:53:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:15]Read from MH i2c: E2 [08:53:15]MH_I2C_Read... [08:53:15]Read from MH i2c: E2 0E 00 [08:53:15]MH_I2C_Read... [08:53:15]Read from MH i2c: E2 0E 00 C6 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 4C [08:53:15]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [08:53:15]wFMCommunicate OK [08:53:15]SAM_PROTO_GetShiftState done [08:53:15]FM_GetShiftState done [08:53:15]opened in 1729125927 [08:53:15]opened+sec_in_day 1729212327 [08:53:15]quantity*price = 50041 [08:53:15]sum+1 = 50042 [08:53:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 13 17.10.2024 08:53 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82087 ФПД: 212104987524859 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T085316&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82087&fm=212104987524859&tin=02508201610067®Number=0000000000091680&sum=50041 [08:53:17]StoreToDocumentArchive [08:53:17]shift 525 fd 82087 [08:53:17]save to /storage/0525/doc_00082087 [08:53:17]save last doc name /storage/0525/doc_00082087 to /storage/kkm_last_doc_name [08:53:17]save OK [08:53:17]Clear old archive folders... [08:53:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:53:17]tlvbuf is 01B5B370 [08:53:17]SAM_PROTO_ClearQueue [08:53:17]wFMCommunicate request_size=4 [08:53:17]MH_SAM_APDU [08:53:17]CAPDU: 80 09 00 00 [08:53:17]Write to MH i2c: E2 08 00 D3 01 80 09 00 00 00 00 00 00 46 [08:53:17]Write i2c OK [08:53:17]MH_I2C_Read... [08:53:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:53:17]Read from MH i2c: E2 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: E2 03 00 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: E2 03 00 D3 01 00 90 00 48 [08:53:17]RAPDU: 90 00 [08:53:17]wFMCommunicate OK [08:53:17]SAM_PROTO_ClearQueue done [08:53:17]KKMCreateOFDPacket [08:53:17]OFDProtocolAddRootSTLVToBuf [08:53:17]FM_MakeSignedData [08:53:17]FM_MakeSignedData [08:53:17]SAM_PROTO_SignData [08:53:17]wFMCommunicate request_size=4 [08:53:17]MH_SAM_APDU [08:53:17]CAPDU: 80 0D 01 02 [08:53:17]Write to MH i2c: E2 08 00 D4 01 80 0D 01 02 00 00 00 00 4E [08:53:17]Write i2c OK [08:53:17]MH_I2C_Read... [08:53:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:53:17]Read from MH i2c: E2 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: E2 03 00 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: E2 03 00 D4 01 00 90 00 49 [08:53:17]RAPDU: 90 00 [08:53:17]wFMCommunicate OK [08:53:17]wFMCommunicate request_size=255 [08:53:17]MH_SAM_APDU [08:53:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 7C D0 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A7 40 01 00 35 04 06 00 C0 [08:53:17]Write to MH i2c: E2 02 01 D5 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 7C D0 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A7 40 01 00 35 04 06 00 C0 00 00 B3 [08:53:17]Write i2c OK [08:53:17]MH_I2C_Read... [08:53:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:17]Read from MH i2c: E2 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: E2 03 00 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: E2 03 00 D5 01 00 90 00 4A [08:53:17]RAPDU: 90 00 [08:53:17]wFMCommunicate OK [08:53:17]wFMCommunicate request_size=10 [08:53:17]MH_SAM_APDU [08:53:17]CAPDU: 80 0D 02 02 05 E8 8A 6F BE FB [08:53:17]Write to MH i2c: E2 0D 00 D6 01 80 0D 02 02 05 00 E8 8A 6F BE FB 00 00 F5 [08:53:17]Write i2c OK [08:53:17]MH_I2C_Read... [08:53:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:17]Read from MH i2c: E2 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: E2 03 00 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: E2 03 00 D6 01 00 90 00 4B [08:53:17]RAPDU: 90 00 [08:53:17]wFMCommunicate OK [08:53:17]wFMCommunicate request_size=4 [08:53:17]MH_SAM_APDU [08:53:17]CAPDU: 80 0D 03 02 [08:53:17]Write to MH i2c: E2 08 00 D7 01 80 0D 03 02 00 00 00 00 53 [08:53:17]Write i2c OK [08:53:17]MH_I2C_Read... [08:53:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:53:17]Read from MH i2c: E2 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: E2 0B 00 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: E2 0B 00 D7 01 00 94 91 A9 3A C5 28 AA 00 90 00 F3 [08:53:17]RAPDU: 94 91 A9 3A C5 28 AA 00 90 00 [08:53:17]wFMCommunicate OK [08:53:17]SAM_PROTO_SignData done [08:53:17]FM_MakeSignedData done [08:53:17]CreateOFDProtocolMessage [08:53:17]wFMCommunicate request_size=4 [08:53:17]MH_SAM_APDU [08:53:17]CAPDU: 80 11 00 00 [08:53:17]Write to MH i2c: E2 08 00 D8 01 80 11 00 00 00 00 00 00 53 [08:53:17]Write i2c OK [08:53:17]MH_I2C_Read... [08:53:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:17]Read from MH i2c: E2 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: E2 17 00 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: E2 17 00 D8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 A5 [08:53:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [08:53:17]wFMCommunicate OK [08:53:17]CreateOFDProtocolMessage done [08:53:17]OFDSenderStorePacket 82087 [08:53:17]StoreOFDPacket docnum=82087 [08:53:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 C8 DE 07 01 CE A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 7C D0 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A7 40 01 00 35 04 06 00 C0 E8 8A 6F BE FB 94 91 A9 3A C5 28 AA 00 [08:53:17]CheckFolder [08:53:17]dirname=/storage/ofd_packets [08:53:17]CheckFolder done [08:53:17]ProducePacketName [08:53:17]name=ofd_packets/00082087 [08:53:17]NVStorageSaveData ofd_packets/00082087 [08:53:17]File name is /storage/ofd_packets/00082087 [08:53:17]Write 301 bytes [08:53:17]NVStorageSaveData done [08:53:17]OFDSenderStorePacket done [08:53:17]KKMCreateOFDPacket done [08:53:17]NVStorageSaveData kkm_last_timestamp [08:53:17]File name is /storage/kkm_last_timestamp [08:53:17]Write 4 bytes [08:53:17]NVStorageSaveData done [08:53:17]ExternCall_PrintAddStr [08:53:17]wPrintStart [08:53:17]Write to MH i2c: 01 00 00 D9 01 DA [08:53:17]Write i2c OK [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: 01 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: 01 07 00 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: 01 07 00 D9 01 00 00 00 00 00 FF 0F EF [08:53:17]RasterBufferAndPrint [08:53:17]line Счет N : (1)918593 [08:53:17]line ИНН: 02508201610067 [08:53:17]line Контрольно-Кассовый Чек [08:53:17]line ПРОДАЖА [08:53:17]line ТРК (МРК, ГНК) : 11 [08:53:17]line Товар: 2710124130 [08:53:17]line Аи-92-К-4 [08:53:17]line 7.480 * 66.90 [08:53:17]line = 500.41 [08:53:17]line НДС 12% НСП 1% [08:53:17]line > о реализуемом товаре [08:53:17]line ИТОГО: 500.41 [08:53:17]line НСП 1% : 4.43 [08:53:17]line НДС 12% : 53.14 [08:53:17]line Наличными: 0.00 [08:53:17]line Безнал.: 500.41 [08:53:17]line Место: АЗС № 114 "Партнер Нефть" [08:53:17]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [08:53:17]line СНО: Общий режим [08:53:17]line Чек 13 17.10.2024 08:53 [08:53:17]line Смена: 525 ФФД: 1.0 [08:53:17]line ЗНМ: 0300000086 [08:53:17]line РНМ: 0000000000091680 [08:53:17]line Версия ККМ: 001 [08:53:17]line Платежная система: Mbank [08:53:17]line ФМ: 0000000000871843 [08:53:17]line ФД: 82087 [08:53:17]line ФПД: 212104987524859 [08:53:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T085316&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82087&fm=212104987524859&tin=02508201610067®Number=0000000000091680&sum=50041 [08:53:17]written 0, free lines is 4095 [08:53:17]OFD Sender: Processing packet 82087 [packets to send 254, broken 253] [08:53:17]ProducePacketName [08:53:17]name=ofd_packets/00082087 [08:53:17]OFD Sender: To server: pG, [08:53:17]CommunicateWithHost lk.salyk.kg:30040 [08:53:17]ConnectInit lk.salyk.kg [08:53:17]Write to MH i2c: 01 00 00 02 02 04 [08:53:17]Write i2c OK [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: 01 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: 01 07 00 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: 01 07 00 02 02 00 00 00 00 00 F5 0C 0C [08:53:17]RasterBufferAndPrint [08:53:17]line [08:53:17]line [08:53:17]line [08:53:17]line [08:53:17]line [08:53:18]written 0, free lines is 3323 [08:53:18]MH_Cut [08:53:18]Write to MH i2c: D1 01 00 09 02 01 DD [08:53:18]Write i2c OK [08:53:18]MH_I2C_Read... [08:53:18]Read from MH i2c: D1 [08:53:18]MH_I2C_Read... [08:53:18]Read from MH i2c: D1 01 00 [08:53:18]MH_I2C_Read... [08:53:18]Read from MH i2c: D1 01 00 09 02 00 DC [08:53:18]Write to MH i2c: 01 00 00 0A 02 0C [08:53:18]Write i2c OK [08:53:18]MH_I2C_Read... [08:53:18]Connected sock=9 [08:53:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 C8 DE 07 01 CE A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 7C D0 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A7 40 01 00 35 04 06 00 C0 E8 8A 6F BE FB 94 91 A9 3A C5 28 AA 00 [08:53:18]*** Cut start [08:53:18]*** Partial cut [08:53:18]*** CUTSNS_PIN = 1 [08:53:18]*** CUTSNS_PIN = 0 [08:53:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 E7 B6 47 00 CC 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A7 40 01 00 F4 03 04 00 BB 75 10 67 B6 04 01 00 00 23 70 36 47 BD 35 42 E9 [08:53:18]CommunicateWithHost err = 0 [08:53:18]CheckOFDResponse [08:53:18]1017 (14) - 77093643461234 [08:53:18]1041 (16) - 0000000000871843 [08:53:18]1040 (4) - 82087 [08:53:18]1012 (4) - 17.10.2024 02:26 [08:53:18]1206 (1) - 0 [08:53:18]OFD Sender: Remove packet 82087 [08:53:18]ProducePacketName [08:53:18]name=ofd_packets/00082087 [08:53:18]NVStorageDeleteData [08:53:19]*** Brake cut motor [08:53:19]Read from MH i2c: 01 [08:53:19]MH_I2C_Read... [08:53:19]*** Stop cut motor [08:53:19]*** Cut end [08:53:19]Read from MH i2c: 01 07 00 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: 01 07 00 0A 02 00 00 00 00 00 FF 0F 21 [08:53:19]process_action close_receipt done [08:53:19]requested_data is exist [08:53:19]produce_requested_data [08:53:19]requested_item fm.sn is exist - process it [08:53:19]wFMCommunicate request_size=4 [08:53:19]MH_SAM_APDU [08:53:19]CAPDU: 80 11 00 00 [08:53:19]Write to MH i2c: E2 08 00 0B 02 80 11 00 00 00 00 00 00 87 [08:53:19]Write i2c OK [08:53:19]MH_I2C_Read... [08:53:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:19]OFD Sender: No OFD packet to send [08:53:19]Read from MH i2c: E2 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: E2 17 00 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: E2 17 00 0B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D9 [08:53:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [08:53:19]wFMCommunicate OK [08:53:19]requested_item fd.num is exist - process it [08:53:19]SAM_PROTO_GetFieldsCounters [08:53:19]wFMCommunicate request_size=4 [08:53:19]MH_SAM_APDU [08:53:19]CAPDU: 80 13 00 00 [08:53:19]Write to MH i2c: E2 08 00 0C 02 80 13 00 00 00 00 00 00 8A [08:53:19]Write i2c OK [08:53:19]MH_I2C_Read... [08:53:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:53:19]Read from MH i2c: E2 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: E2 62 00 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: E2 62 00 0C 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A7 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [08:53:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A7 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:53:19]wFMCommunicate OK [08:53:19]SAM_PROTO_GetFieldsCounters done [08:53:19]requested_item shift.num is exist - process it [08:53:19]requested_item shift.opened is exist - process it [08:53:19]req_shift_opened [08:53:19]FM_GetShiftState [08:53:19]SAM_PROTO_GetShiftState [08:53:19]wFMCommunicate request_size=4 [08:53:19]MH_SAM_APDU [08:53:19]CAPDU: 80 13 01 00 [08:53:19]Write to MH i2c: E2 08 00 0D 02 80 13 01 00 00 00 00 00 8C [08:53:19]Write i2c OK [08:53:19]MH_I2C_Read... [08:53:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:19]Read from MH i2c: E2 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: E2 0E 00 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: E2 0E 00 0D 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 94 [08:53:19]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [08:53:19]wFMCommunicate OK [08:53:19]SAM_PROTO_GetShiftState done [08:53:19]FM_GetShiftState done [08:53:19]req_shift_opened done [08:53:19]requested_item shift.open_date is exist - process it [08:53:19]req_shift_open_date [08:53:19]req_shift_open_date done [08:53:19]produce_requested_data done [08:53:19]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82087,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [08:53:19]process_action_free close_receipt [08:53:19]json_value_free [08:53:19]json_value_free done [08:53:19]process_json_proto returns [08:53:19]Send response to host [08:53:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82087,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [08:53:19]free response buf [08:53:19]execute_script done [08:53:19]execute_script returns [08:53:19]free content buf [08:53:19]Sock 8.Close socket [08:53:19]Sock 8.Thread stoped [08:53:24]OFD Sender: No OFD packet to send [08:53:29]OFD Sender: No OFD packet to send [08:53:34]OFD Sender: No OFD packet to send [08:53:37]recv_with_timeout no data received [08:53:39]OFD Sender: No OFD packet to send [08:53:44]OFD Sender: No OFD packet to send [08:53:48]recv_with_timeout no data received [08:53:49]OFD Sender: No OFD packet to send [08:53:54]OFD Sender: No OFD packet to send [08:53:59]OFD Sender: No OFD packet to send [08:54:04]OFD Sender: No OFD packet to send [08:54:09]OFD Sender: No OFD packet to send [08:54:14]OFD Sender: No OFD packet to send [08:54:18]recv_with_timeout no data received [08:54:19]OFD Sender: No OFD packet to send [08:54:24]OFD Sender: No OFD packet to send [08:54:29]OFD Sender: No OFD packet to send [08:54:34]OFD Sender: No OFD packet to send [08:54:39]OFD Sender: No OFD packet to send [08:54:44]OFD Sender: No OFD packet to send [08:54:49]accept exits with 10 [08:54:49]New connection [08:54:49]New thread 3067379044 created [08:54:49]Thread 3067522404 joined [08:54:49]Waiting for new connection... [08:54:49] Sock 10.Parse request [08:54:49]Sock 10.Check first char [08:54:49]Sock 10.First char is OK [08:54:49]request: POST /json_proto HTTP/1.0 [08:54:49]Method: POST [08:54:49]URL: /json_proto [08:54:49]Method is POST - this is cgi request [08:54:49]url: /json_proto [08:54:49]query_string will be loaded in cgi processing [08:54:49]execute_cgi json_proto POST (null) [08:54:49]execute_cgi path=json_proto method=POST [08:54:49]POST find Content-Length [08:54:49]Host: 172.17.44.67:8080 [08:54:49]Content-Length: 754 [08:54:49]Content-Type: application/json [08:54:49] [08:54:49]POST finish read [08:54:49]Found Content-Length = 754 [08:54:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100517", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:49]execute_script... [08:54:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100517", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:49]POST & json_proto [08:54:49]process_json_proto [08:54:49]json parsed OK: [08:54:49]protocol is kg_v1.0 [08:54:49]action value=close_receipt [08:54:49]process_action close_receipt [08:54:49]cmd_close_receipt [08:54:49]MH_GetDate [08:54:49]Write to MH i2c: F0 00 00 0E 02 FF [08:54:49]Write i2c OK [08:54:49]MH_I2C_Read... [08:54:49]Read from MH i2c: F0 [08:54:49]MH_I2C_Read... [08:54:49]Read from MH i2c: F0 09 00 [08:54:49]MH_I2C_Read... [08:54:49]Read from MH i2c: F0 09 00 0E 02 00 D9 D0 10 67 F1 C7 6B 64 AF [08:54:49]GetLastDocTimeStamp 1729155196 [08:54:49]current date 1729155289 [08:54:49]FM_GetShiftState [08:54:49]SAM_PROTO_GetShiftState [08:54:49]wFMCommunicate request_size=4 [08:54:49]MH_SAM_APDU [08:54:49]CAPDU: 80 13 01 00 [08:54:49]Write to MH i2c: E2 08 00 0F 02 80 13 01 00 00 00 00 00 8E [08:54:49]Write i2c OK [08:54:49]MH_I2C_Read... [08:54:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:49]Read from MH i2c: E2 [08:54:49]MH_I2C_Read... [08:54:49]Read from MH i2c: E2 0E 00 [08:54:49]MH_I2C_Read... [08:54:49]Read from MH i2c: E2 0E 00 0F 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 96 [08:54:49]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [08:54:49]wFMCommunicate OK [08:54:49]SAM_PROTO_GetShiftState done [08:54:49]FM_GetShiftState done [08:54:49]opened in 1729125927 [08:54:49]opened+sec_in_day 1729212327 [08:54:49]quantity*price = 0 [08:54:49]sum+1 = 1 [08:54:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 14 17.10.2024 08:54 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30100517 ФМ: 0000000000871843 ФД: 82088 ФПД: 80041410529128 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T085449&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82088&fm=80041410529128&tin=02508201610067®Number=0000000000091680&sum=0 [08:54:50]StoreToDocumentArchive [08:54:50]shift 525 fd 82088 [08:54:50]save to /storage/0525/doc_00082088 [08:54:50]save last doc name /storage/0525/doc_00082088 to /storage/kkm_last_doc_name [08:54:50]save OK [08:54:50]Clear old archive folders... [08:54:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:54:50]tlvbuf is 01AE2CA0 [08:54:50]SAM_PROTO_ClearQueue [08:54:50]wFMCommunicate request_size=4 [08:54:50]MH_SAM_APDU [08:54:50]CAPDU: 80 09 00 00 [08:54:50]Write to MH i2c: E2 08 00 1C 02 80 09 00 00 00 00 00 00 90 [08:54:50]Write i2c OK [08:54:50]MH_I2C_Read... [08:54:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:54:50]Read from MH i2c: E2 [08:54:50]MH_I2C_Read... [08:54:50]Read from MH i2c: E2 03 00 [08:54:50]MH_I2C_Read... [08:54:50]Read from MH i2c: E2 03 00 1C 02 00 90 00 92 [08:54:50]RAPDU: 90 00 [08:54:50]wFMCommunicate OK [08:54:50]SAM_PROTO_ClearQueue done [08:54:50]KKMCreateOFDPacket [08:54:50]OFDProtocolAddRootSTLVToBuf [08:54:50]FM_MakeSignedData [08:54:50]FM_MakeSignedData [08:54:50]SAM_PROTO_SignData [08:54:50]wFMCommunicate request_size=4 [08:54:50]MH_SAM_APDU [08:54:50]CAPDU: 80 0D 01 02 [08:54:50]Write to MH i2c: E2 08 00 1D 02 80 0D 01 02 00 00 00 00 98 [08:54:50]Write i2c OK [08:54:50]MH_I2C_Read... [08:54:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:54:50]Read from MH i2c: E2 [08:54:50]MH_I2C_Read... [08:54:50]Read from MH i2c: E2 03 00 [08:54:50]MH_I2C_Read... [08:54:50]Read from MH i2c: E2 03 00 1D 02 00 90 00 93 [08:54:50]RAPDU: 90 00 [08:54:50]wFMCommunicate OK [08:54:50]wFMCommunicate request_size=255 [08:54:50]MH_SAM_APDU [08:54:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 D9 D0 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A8 40 01 00 35 04 06 00 48 [08:54:50]Write to MH i2c: E2 02 01 1E 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 D9 D0 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A8 40 01 00 35 04 06 00 48 00 00 DF [08:54:50]Write i2c OK [08:54:50]MH_I2C_Read... [08:54:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:50]Read from MH i2c: E2 [08:54:50]MH_I2C_Read... [08:54:50]Read from MH i2c: E2 03 00 [08:54:50]MH_I2C_Read... [08:54:50]Read from MH i2c: E2 03 00 1E 02 00 90 00 94 [08:54:50]RAPDU: 90 00 [08:54:50]wFMCommunicate OK [08:54:50]wFMCommunicate request_size=10 [08:54:50]MH_SAM_APDU [08:54:50]CAPDU: 80 0D 02 02 05 CC 17 D7 87 68 [08:54:50]Write to MH i2c: E2 0D 00 1F 02 80 0D 02 02 05 00 CC 17 D7 87 68 00 00 4E [08:54:50]Write i2c OK [08:54:50]MH_I2C_Read... [08:54:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:50]Read from MH i2c: E2 [08:54:50]MH_I2C_Read... [08:54:50]Read from MH i2c: E2 03 00 [08:54:50]MH_I2C_Read... [08:54:50]Read from MH i2c: E2 03 00 1F 02 00 90 00 95 [08:54:50]RAPDU: 90 00 [08:54:50]wFMCommunicate OK [08:54:50]wFMCommunicate request_size=4 [08:54:50]MH_SAM_APDU [08:54:50]CAPDU: 80 0D 03 02 [08:54:50]Write to MH i2c: E2 08 00 20 02 80 0D 03 02 00 00 00 00 9D [08:54:50]Write i2c OK [08:54:50]MH_I2C_Read... [08:54:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:54:50]Read from MH i2c: E2 [08:54:50]MH_I2C_Read... [08:54:50]Read from MH i2c: E2 0B 00 [08:54:50]MH_I2C_Read... [08:54:50]Read from MH i2c: E2 0B 00 20 02 00 85 ED 67 EA 74 D0 AF 97 90 00 EB [08:54:50]RAPDU: 85 ED 67 EA 74 D0 AF 97 90 00 [08:54:50]wFMCommunicate OK [08:54:50]SAM_PROTO_SignData done [08:54:50]FM_MakeSignedData done [08:54:50]CreateOFDProtocolMessage [08:54:50]wFMCommunicate request_size=4 [08:54:50]MH_SAM_APDU [08:54:50]CAPDU: 80 11 00 00 [08:54:50]Write to MH i2c: E2 08 00 21 02 80 11 00 00 00 00 00 00 9D [08:54:50]Write i2c OK [08:54:50]MH_I2C_Read... [08:54:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:50]Read from MH i2c: E2 [08:54:50]MH_I2C_Read... [08:54:50]Read from MH i2c: E2 17 00 [08:54:50]MH_I2C_Read... [08:54:50]Read from MH i2c: E2 17 00 21 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 EF [08:54:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [08:54:50]wFMCommunicate OK [08:54:50]CreateOFDProtocolMessage done [08:54:50]OFDSenderStorePacket 82088 [08:54:50]StoreOFDPacket docnum=82088 [08:54:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 04 74 07 01 F7 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 D9 D0 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A8 40 01 00 35 04 06 00 48 CC 17 D7 87 68 85 ED 67 EA 74 D0 AF 97 [08:54:50]CheckFolder [08:54:50]dirname=/storage/ofd_packets [08:54:50]CheckFolder done [08:54:50]ProducePacketName [08:54:50]name=ofd_packets/00082088 [08:54:50]NVStorageSaveData ofd_packets/00082088 [08:54:50]File name is /storage/ofd_packets/00082088 [08:54:50]Write 301 bytes [08:54:50]NVStorageSaveData done [08:54:50]OFDSenderStorePacket done [08:54:50]KKMCreateOFDPacket done [08:54:50]NVStorageSaveData kkm_last_timestamp [08:54:50]File name is /storage/kkm_last_timestamp [08:54:50]Write 4 bytes [08:54:50]NVStorageSaveData done [08:54:50]ExternCall_PrintAddStr [08:54:50]wPrintStart [08:54:50]Write to MH i2c: 01 00 00 22 02 24 [08:54:50]Write i2c OK [08:54:50]MH_I2C_Read... [08:54:50]Read from MH i2c: 01 [08:54:50]MH_I2C_Read... [08:54:50]Read from MH i2c: 01 07 00 [08:54:50]MH_I2C_Read... [08:54:50]Read from MH i2c: 01 07 00 22 02 00 00 00 00 00 FF 0F 39 [08:54:50]RasterBufferAndPrint [08:54:50]line Счет N : (1)918594 [08:54:50]line ИНН: 02508201610067 [08:54:50]line Контрольно-Кассовый Чек [08:54:50]line ПРОДАЖА [08:54:50]line ТРК (МРК, ГНК) : 22 [08:54:50]line Товар: 2710124130 [08:54:50]line Аи-92-К-4 [08:54:50]line 15.000 * 0.00 [08:54:50]line = 0.00 [08:54:50]line НДС 12% НСП 1% [08:54:50]line > о реализуемом товаре [08:54:50]line ИТОГО: 0.00 [08:54:50]line НСП 1% : 0.00 [08:54:50]line НДС 12% : 0.00 [08:54:50]line Наличными: 0.00 [08:54:50]line Безнал.: 0.00 [08:54:50]line Место: АЗС № 114 "Партнер Нефть" [08:54:50]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [08:54:50]line СНО: Общий режим [08:54:50]line Чек 14 17.10.2024 08:54 [08:54:50]line Смена: 525 ФФД: 1.0 [08:54:50]line ЗНМ: 0300000086 [08:54:50]line РНМ: 0000000000091680 [08:54:50]line Версия ККМ: 001 [08:54:50]line Талоны: ТК ГПНА Online [08:54:50]line 30100517 [08:54:50]line ФМ: 0000000000871843 [08:54:50]line ФД: 82088 [08:54:50]line ФПД: 80041410529128 [08:54:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T085449&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82088&fm=80041410529128&tin=02508201610067®Number=0000000000091680&sum=0 [08:54:50]written 0, free lines is 4095 [08:54:50]OFD Sender: Processing packet 82088 [packets to send 254, broken 253] [08:54:50]ProducePacketName [08:54:50]name=ofd_packets/00082088 [08:54:50]OFD Sender: To server: pG, [08:54:50]CommunicateWithHost lk.salyk.kg:30040 [08:54:50]ConnectInit lk.salyk.kg [08:54:51]Write to MH i2c: 01 00 00 4C 02 4E [08:54:51]Write i2c OK [08:54:51]MH_I2C_Read... [08:54:51]Read from MH i2c: 01 [08:54:51]MH_I2C_Read... [08:54:51]Read from MH i2c: 01 07 00 [08:54:51]MH_I2C_Read... [08:54:51]Read from MH i2c: 01 07 00 4C 02 00 00 00 00 00 DF 0C 40 [08:54:51]RasterBufferAndPrint [08:54:51]line [08:54:51]line [08:54:51]line [08:54:51]line [08:54:51]line [08:54:51]written 0, free lines is 3301 [08:54:51]MH_Cut [08:54:51]Write to MH i2c: D1 01 00 53 02 01 27 [08:54:51]Write i2c OK [08:54:51]MH_I2C_Read... [08:54:51]Read from MH i2c: D1 [08:54:51]MH_I2C_Read... [08:54:51]Read from MH i2c: D1 01 00 [08:54:51]MH_I2C_Read... [08:54:51]Read from MH i2c: D1 01 00 53 02 00 26 [08:54:51]Write to MH i2c: 01 00 00 54 02 56 [08:54:51]Write i2c OK [08:54:51]MH_I2C_Read... [08:54:51]*** Cut start [08:54:51]*** Partial cut [08:54:51]*** CUTSNS_PIN = 1 [08:54:52]*** CUTSNS_PIN = 0 [08:54:52]*** Brake cut motor [08:54:52]Read from MH i2c: 01 [08:54:52]MH_I2C_Read... [08:54:52]*** Stop cut motor [08:54:52]*** Cut end [08:54:52]Read from MH i2c: 01 07 00 [08:54:52]MH_I2C_Read... [08:54:52]Read from MH i2c: 01 07 00 54 02 00 00 00 00 00 FF 0F 6B [08:54:52]process_action close_receipt done [08:54:52]requested_data is exist [08:54:52]produce_requested_data [08:54:52]requested_item fm.sn is exist - process it [08:54:52]wFMCommunicate request_size=4 [08:54:52]MH_SAM_APDU [08:54:52]CAPDU: 80 11 00 00 [08:54:52]Write to MH i2c: E2 08 00 55 02 80 11 00 00 00 00 00 00 D1 [08:54:52]Write i2c OK [08:54:52]MH_I2C_Read... [08:54:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:52]Read from MH i2c: E2 [08:54:52]MH_I2C_Read... [08:54:52]Read from MH i2c: E2 17 00 [08:54:52]MH_I2C_Read... [08:54:52]Read from MH i2c: E2 17 00 55 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 23 [08:54:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [08:54:52]wFMCommunicate OK [08:54:52]requested_item fd.num is exist - process it [08:54:52]SAM_PROTO_GetFieldsCounters [08:54:52]wFMCommunicate request_size=4 [08:54:52]MH_SAM_APDU [08:54:52]CAPDU: 80 13 00 00 [08:54:52]Write to MH i2c: E2 08 00 56 02 80 13 00 00 00 00 00 00 D4 [08:54:52]Write i2c OK [08:54:52]MH_I2C_Read... [08:54:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:52]Read from MH i2c: E2 [08:54:52]MH_I2C_Read... [08:54:52]Read from MH i2c: E2 62 00 [08:54:52]MH_I2C_Read... [08:54:52]Read from MH i2c: E2 62 00 56 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A8 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [08:54:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A8 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:54:52]wFMCommunicate OK [08:54:52]SAM_PROTO_GetFieldsCounters done [08:54:52]requested_item shift.num is exist - process it [08:54:52]requested_item shift.opened is exist - process it [08:54:52]req_shift_opened [08:54:52]FM_GetShiftState [08:54:52]SAM_PROTO_GetShiftState [08:54:52]wFMCommunicate request_size=4 [08:54:52]MH_SAM_APDU [08:54:52]CAPDU: 80 13 01 00 [08:54:52]Write to MH i2c: E2 08 00 57 02 80 13 01 00 00 00 00 00 D6 [08:54:52]Write i2c OK [08:54:52]MH_I2C_Read... [08:54:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:52]Read from MH i2c: E2 [08:54:52]MH_I2C_Read... [08:54:52]Read from MH i2c: E2 0E 00 [08:54:52]MH_I2C_Read... [08:54:52]Read from MH i2c: E2 0E 00 57 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 DE [08:54:52]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [08:54:52]wFMCommunicate OK [08:54:52]SAM_PROTO_GetShiftState done [08:54:52]FM_GetShiftState done [08:54:52]req_shift_opened done [08:54:52]requested_item shift.open_date is exist - process it [08:54:52]req_shift_open_date [08:54:52]req_shift_open_date done [08:54:52]produce_requested_data done [08:54:52]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82088,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [08:54:52]process_action_free close_receipt [08:54:52]json_value_free [08:54:52]json_value_free done [08:54:52]process_json_proto returns [08:54:52]Send response to host [08:54:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82088,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [08:54:52]free response buf [08:54:52]execute_script done [08:54:52]execute_script returns [08:54:52]free content buf [08:54:52]Sock 10.Close socket [08:54:52]Sock 10.Thread stoped [08:54:55]ConnectInit Can't take IP for lk.salyk.kg [08:54:55]CommunicateWithHost connect error [08:54:55]CommunicateWithHost err = -1 [08:54:55]OFD Sender: Server communicate error [08:55:00]OFD Sender: Processing packet 82088 [packets to send 254, broken 253] [08:55:00]ProducePacketName [08:55:00]name=ofd_packets/00082088 [08:55:00]OFD Sender: To server: pG, [08:55:00]CommunicateWithHost lk.salyk.kg:30040 [08:55:00]ConnectInit lk.salyk.kg [08:55:01]Connected sock=8 [08:55:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 04 74 07 01 F7 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 D9 D0 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A8 40 01 00 35 04 06 00 48 CC 17 D7 87 68 85 ED 67 EA 74 D0 AF 97 [08:55:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 62 C9 47 00 1A 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A8 40 01 00 F4 03 04 00 23 76 10 67 B6 04 01 00 00 0E 25 03 0D A8 59 D6 B1 [08:55:02]CommunicateWithHost err = 0 [08:55:02]CheckOFDResponse [08:55:02]1017 (14) - 77093643461234 [08:55:02]1041 (16) - 0000000000871843 [08:55:02]1040 (4) - 82088 [08:55:02]1012 (4) - 17.10.2024 02:27 [08:55:02]1206 (1) - 0 [08:55:02]OFD Sender: Remove packet 82088 [08:55:02]ProducePacketName [08:55:02]name=ofd_packets/00082088 [08:55:02]NVStorageDeleteData [08:55:03]OFD Sender: No OFD packet to send [08:55:07]recv_with_timeout no data received [08:55:08]OFD Sender: No OFD packet to send [08:55:13]OFD Sender: No OFD packet to send [08:55:18]OFD Sender: No OFD packet to send [08:55:18]recv_with_timeout no data received [08:55:23]OFD Sender: No OFD packet to send [08:55:28]OFD Sender: No OFD packet to send [08:55:29]recv_with_timeout no data received [08:55:33]OFD Sender: No OFD packet to send [08:55:38]OFD Sender: No OFD packet to send [08:55:43]OFD Sender: No OFD packet to send [08:55:48]OFD Sender: No OFD packet to send [08:55:53]OFD Sender: No OFD packet to send [08:55:58]OFD Sender: No OFD packet to send [08:56:03]OFD Sender: No OFD packet to send [08:56:08]OFD Sender: No OFD packet to send [08:56:13]OFD Sender: No OFD packet to send [08:56:18]OFD Sender: No OFD packet to send [08:56:23]OFD Sender: No OFD packet to send [08:56:28]OFD Sender: No OFD packet to send [08:56:33]OFD Sender: No OFD packet to send [08:56:38]OFD Sender: No OFD packet to send [08:56:43]OFD Sender: No OFD packet to send [08:56:48]OFD Sender: No OFD packet to send [08:56:53]OFD Sender: No OFD packet to send [08:56:58]OFD Sender: No OFD packet to send [08:57:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:28]accept exits with 9 [08:58:28]New connection [08:58:28]New thread 3067522404 created [08:58:28]Thread 3067379044 joined [08:58:28]Waiting for new connection... [08:58:28] Sock 9.Parse request [08:58:28]Sock 9.Check first char [08:58:28]Sock 9.First char is OK [08:58:28]request: POST /json_proto HTTP/1.0 [08:58:28]Method: POST [08:58:28]URL: /json_proto [08:58:28]Method is POST - this is cgi request [08:58:28]url: /json_proto [08:58:28]query_string will be loaded in cgi processing [08:58:28]execute_cgi json_proto POST (null) [08:58:28]execute_cgi path=json_proto method=POST [08:58:28]POST find Content-Length [08:58:28]Host: 172.17.44.67:8080 [08:58:28]Content-Length: 683 [08:58:28]Content-Type: application/json [08:58:28] [08:58:28]POST finish read [08:58:28]Found Content-Length = 683 [08:58:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:28]execute_script... [08:58:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:28]POST & json_proto [08:58:28]process_json_proto [08:58:28]json parsed OK: [08:58:28]protocol is kg_v1.0 [08:58:28]action value=close_receipt [08:58:28]process_action close_receipt [08:58:28]cmd_close_receipt [08:58:28]MH_GetDate [08:58:28]Write to MH i2c: F0 00 00 58 02 49 [08:58:28]Write i2c OK [08:58:28]MH_I2C_Read... [08:58:28]Read from MH i2c: F0 [08:58:28]MH_I2C_Read... [08:58:28]Read from MH i2c: F0 09 00 [08:58:28]MH_I2C_Read... [08:58:28]Read from MH i2c: F0 09 00 58 02 00 B5 D1 10 67 F1 C7 6B 64 D6 [08:58:28]GetLastDocTimeStamp 1729155289 [08:58:28]current date 1729155509 [08:58:28]FM_GetShiftState [08:58:28]SAM_PROTO_GetShiftState [08:58:28]wFMCommunicate request_size=4 [08:58:28]MH_SAM_APDU [08:58:28]CAPDU: 80 13 01 00 [08:58:28]Write to MH i2c: E2 08 00 59 02 80 13 01 00 00 00 00 00 D8 [08:58:28]Write i2c OK [08:58:28]MH_I2C_Read... [08:58:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:28]Read from MH i2c: E2 [08:58:28]MH_I2C_Read... [08:58:28]Read from MH i2c: E2 0E 00 [08:58:28]MH_I2C_Read... [08:58:28]Read from MH i2c: E2 0E 00 59 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 E0 [08:58:28]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [08:58:28]wFMCommunicate OK [08:58:28]SAM_PROTO_GetShiftState done [08:58:28]FM_GetShiftState done [08:58:28]opened in 1729125927 [08:58:28]opened+sec_in_day 1729212327 [08:58:28]quantity*price = 80010 [08:58:28]sum+1 = 80011 [08:58:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 15 17.10.2024 08:58 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82089 ФПД: 102833264564907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T085829&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82089&fm=102833264564907&tin=02508201610067®Number=0000000000091680&sum=80000 [08:58:29]StoreToDocumentArchive [08:58:29]shift 525 fd 82089 [08:58:29]save to /storage/0525/doc_00082089 [08:58:29]save last doc name /storage/0525/doc_00082089 to /storage/kkm_last_doc_name [08:58:29]save OK [08:58:29]Clear old archive folders... [08:58:29]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:58:29]tlvbuf is 01B597E0 [08:58:29]SAM_PROTO_ClearQueue [08:58:29]wFMCommunicate request_size=4 [08:58:29]MH_SAM_APDU [08:58:29]CAPDU: 80 09 00 00 [08:58:29]Write to MH i2c: E2 08 00 66 02 80 09 00 00 00 00 00 00 DA [08:58:29]Write i2c OK [08:58:29]MH_I2C_Read... [08:58:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:58:29]Read from MH i2c: E2 [08:58:29]MH_I2C_Read... [08:58:29]Read from MH i2c: E2 03 00 [08:58:29]MH_I2C_Read... [08:58:29]Read from MH i2c: E2 03 00 66 02 00 90 00 DC [08:58:29]RAPDU: 90 00 [08:58:29]wFMCommunicate OK [08:58:29]SAM_PROTO_ClearQueue done [08:58:29]KKMCreateOFDPacket [08:58:29]OFDProtocolAddRootSTLVToBuf [08:58:29]FM_MakeSignedData [08:58:29]FM_MakeSignedData [08:58:29]SAM_PROTO_SignData [08:58:29]wFMCommunicate request_size=4 [08:58:29]MH_SAM_APDU [08:58:29]CAPDU: 80 0D 01 02 [08:58:29]Write to MH i2c: E2 08 00 67 02 80 0D 01 02 00 00 00 00 E2 [08:58:29]Write i2c OK [08:58:29]MH_I2C_Read... [08:58:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:58:29]Read from MH i2c: E2 [08:58:29]MH_I2C_Read... [08:58:29]Read from MH i2c: E2 03 00 [08:58:29]MH_I2C_Read... [08:58:29]Read from MH i2c: E2 03 00 67 02 00 90 00 DD [08:58:29]RAPDU: 90 00 [08:58:29]wFMCommunicate OK [08:58:29]wFMCommunicate request_size=255 [08:58:29]MH_SAM_APDU [08:58:29]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 B5 D1 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A9 40 01 00 35 04 06 00 [08:58:29]Write to MH i2c: E2 02 01 68 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 B5 D1 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A9 40 01 00 35 04 06 00 00 00 85 [08:58:29]Write i2c OK [08:58:29]MH_I2C_Read... [08:58:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:30]Read from MH i2c: E2 [08:58:30]MH_I2C_Read... [08:58:30]Read from MH i2c: E2 03 00 [08:58:30]MH_I2C_Read... [08:58:30]Read from MH i2c: E2 03 00 68 02 00 90 00 DE [08:58:30]RAPDU: 90 00 [08:58:30]wFMCommunicate OK [08:58:30]wFMCommunicate request_size=11 [08:58:30]MH_SAM_APDU [08:58:30]CAPDU: 80 0D 02 02 06 5D 86 BC 34 9A AB [08:58:30]Write to MH i2c: E2 0E 00 69 02 80 0D 02 02 06 00 5D 86 BC 34 9A AB 00 00 09 [08:58:30]Write i2c OK [08:58:30]MH_I2C_Read... [08:58:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:30]Read from MH i2c: E2 [08:58:30]MH_I2C_Read... [08:58:30]Read from MH i2c: E2 03 00 [08:58:30]MH_I2C_Read... [08:58:30]Read from MH i2c: E2 03 00 69 02 00 90 00 DF [08:58:30]RAPDU: 90 00 [08:58:30]wFMCommunicate OK [08:58:30]wFMCommunicate request_size=4 [08:58:30]MH_SAM_APDU [08:58:30]CAPDU: 80 0D 03 02 [08:58:30]Write to MH i2c: E2 08 00 6A 02 80 0D 03 02 00 00 00 00 E7 [08:58:30]Write i2c OK [08:58:30]MH_I2C_Read... [08:58:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:58:30]Read from MH i2c: E2 [08:58:30]MH_I2C_Read... [08:58:30]Read from MH i2c: E2 0B 00 [08:58:30]MH_I2C_Read... [08:58:30]Read from MH i2c: E2 0B 00 6A 02 00 1D 87 5D 56 DF 0B 92 EC 90 00 A7 [08:58:30]RAPDU: 1D 87 5D 56 DF 0B 92 EC 90 00 [08:58:30]wFMCommunicate OK [08:58:30]SAM_PROTO_SignData done [08:58:30]FM_MakeSignedData done [08:58:30]CreateOFDProtocolMessage [08:58:30]wFMCommunicate request_size=4 [08:58:30]MH_SAM_APDU [08:58:30]CAPDU: 80 11 00 00 [08:58:30]Write to MH i2c: E2 08 00 6B 02 80 11 00 00 00 00 00 00 E7 [08:58:30]Write i2c OK [08:58:30]MH_I2C_Read... [08:58:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:30]Read from MH i2c: E2 [08:58:30]MH_I2C_Read... [08:58:30]Read from MH i2c: E2 17 00 [08:58:30]MH_I2C_Read... [08:58:30]Read from MH i2c: E2 17 00 6B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 39 [08:58:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [08:58:30]wFMCommunicate OK [08:58:30]CreateOFDProtocolMessage done [08:58:30]OFDSenderStorePacket 82089 [08:58:30]StoreOFDPacket docnum=82089 [08:58:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 6D AE 08 01 1B 7E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 B5 D1 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A9 40 01 00 35 04 06 00 5D 86 BC 34 9A AB 1D 87 5D 56 DF 0B 92 EC [08:58:30]CheckFolder [08:58:30]dirname=/storage/ofd_packets [08:58:30]CheckFolder done [08:58:30]ProducePacketName [08:58:30]name=ofd_packets/00082089 [08:58:30]NVStorageSaveData ofd_packets/00082089 [08:58:30]File name is /storage/ofd_packets/00082089 [08:58:30]Write 302 bytes [08:58:30]NVStorageSaveData done [08:58:30]OFDSenderStorePacket done [08:58:30]KKMCreateOFDPacket done [08:58:30]NVStorageSaveData kkm_last_timestamp [08:58:30]File name is /storage/kkm_last_timestamp [08:58:30]Write 4 bytes [08:58:30]NVStorageSaveData done [08:58:30]ExternCall_PrintAddStr [08:58:30]wPrintStart [08:58:30]Write to MH i2c: 01 00 00 6C 02 6E [08:58:30]Write i2c OK [08:58:30]MH_I2C_Read... [08:58:30]Read from MH i2c: 01 [08:58:30]MH_I2C_Read... [08:58:30]Read from MH i2c: 01 07 00 [08:58:30]MH_I2C_Read... [08:58:30]Read from MH i2c: 01 07 00 6C 02 00 00 00 00 00 FF 0F 83 [08:58:30]RasterBufferAndPrint [08:58:30]line Счет N : (1)918595 [08:58:30]line ИНН: 02508201610067 [08:58:30]line Контрольно-Кассовый Чек [08:58:30]line ПРОДАЖА [08:58:30]line ТРК (МРК, ГНК) : 31 [08:58:30]line Товар: 2710194210 [08:58:30]line ДТ(л)-К-5 [08:58:30]line 10.500 * 76.20 [08:58:30]line = 800.10 [08:58:30]line НДС 12% НСП 1% [08:58:30]line > о реализуемом товаре [08:58:30]line ОКРУГЛЕНИЕ: -0.10 [08:58:30]line ИТОГО: 800.00 [08:58:30]line Внесено: 800.00 [08:58:30]line СДАЧА: 0.00 [08:58:30]line НСП 1% : 7.08 [08:58:30]line НДС 12% : 84.97 [08:58:30]line Наличными: 800.00 [08:58:30]line Безнал.: 0.00 [08:58:30]line Место: АЗС № 114 "Партнер Нефть" [08:58:30]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [08:58:30]line СНО: Общий режим [08:58:30]line Чек 15 17.10.2024 08:58 [08:58:30]line Смена: 525 ФФД: 1.0 [08:58:30]line ЗНМ: 0300000086 [08:58:30]line РНМ: 0000000000091680 [08:58:30]line Версия ККМ: 001 [08:58:30]line ФМ: 0000000000871843 [08:58:30]line ФД: 82089 [08:58:30]line ФПД: 102833264564907 [08:58:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T085829&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82089&fm=102833264564907&tin=02508201610067®Number=0000000000091680&sum=80000 [08:58:30]OFD Sender: Processing packet 82089 [packets to send 254, broken 253] [08:58:30]ProducePacketName [08:58:30]name=ofd_packets/00082089 [08:58:30]OFD Sender: To server: pG, [08:58:30]CommunicateWithHost lk.salyk.kg:30040 [08:58:30]ConnectInit lk.salyk.kg [08:58:30]written 0, free lines is 4095 [08:58:31]Write to MH i2c: 01 00 00 97 02 99 [08:58:31]Write i2c OK [08:58:31]MH_I2C_Read... [08:58:31]Read from MH i2c: 01 [08:58:31]MH_I2C_Read... [08:58:31]Read from MH i2c: 01 07 00 [08:58:31]MH_I2C_Read... [08:58:31]Read from MH i2c: 01 07 00 97 02 00 00 00 00 00 D8 0C 84 [08:58:31]RasterBufferAndPrint [08:58:31]line [08:58:31]line [08:58:31]line [08:58:31]line [08:58:31]line [08:58:31]written 0, free lines is 3297 [08:58:31]MH_Cut [08:58:31]Write to MH i2c: D1 01 00 9E 02 01 72 [08:58:31]Write i2c OK [08:58:31]MH_I2C_Read... [08:58:31]Read from MH i2c: D1 [08:58:31]MH_I2C_Read... [08:58:31]Read from MH i2c: D1 01 00 [08:58:31]MH_I2C_Read... [08:58:31]Read from MH i2c: D1 01 00 9E 02 00 71 [08:58:31]Write to MH i2c: 01 00 00 9F 02 A1 [08:58:31]Write i2c OK [08:58:31]MH_I2C_Read... [08:58:31]*** Cut start [08:58:31]*** Partial cut [08:58:31]*** CUTSNS_PIN = 1 [08:58:32]*** CUTSNS_PIN = 0 [08:58:32]*** Brake cut motor [08:58:32]Read from MH i2c: 01 [08:58:32]MH_I2C_Read... [08:58:32]*** Stop cut motor [08:58:32]*** Cut end [08:58:32]Read from MH i2c: 01 07 00 [08:58:32]MH_I2C_Read... [08:58:32]Read from MH i2c: 01 07 00 9F 02 00 00 00 00 00 FF 0F B6 [08:58:32]process_action close_receipt done [08:58:32]requested_data is exist [08:58:32]produce_requested_data [08:58:32]requested_item fm.sn is exist - process it [08:58:32]wFMCommunicate request_size=4 [08:58:32]MH_SAM_APDU [08:58:32]CAPDU: 80 11 00 00 [08:58:32]Write to MH i2c: E2 08 00 A0 02 80 11 00 00 00 00 00 00 1C [08:58:32]Write i2c OK [08:58:32]MH_I2C_Read... [08:58:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:32]Read from MH i2c: E2 [08:58:32]MH_I2C_Read... [08:58:32]Read from MH i2c: E2 17 00 [08:58:32]MH_I2C_Read... [08:58:32]Read from MH i2c: E2 17 00 A0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 6E [08:58:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [08:58:32]wFMCommunicate OK [08:58:32]requested_item fd.num is exist - process it [08:58:32]SAM_PROTO_GetFieldsCounters [08:58:32]wFMCommunicate request_size=4 [08:58:32]MH_SAM_APDU [08:58:32]CAPDU: 80 13 00 00 [08:58:32]Write to MH i2c: E2 08 00 A1 02 80 13 00 00 00 00 00 00 1F [08:58:32]Write i2c OK [08:58:32]MH_I2C_Read... [08:58:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:58:32]Read from MH i2c: E2 [08:58:32]MH_I2C_Read... [08:58:32]Read from MH i2c: E2 62 00 [08:58:32]MH_I2C_Read... [08:58:32]Read from MH i2c: E2 62 00 A1 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A9 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [08:58:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A9 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:58:32]wFMCommunicate OK [08:58:32]SAM_PROTO_GetFieldsCounters done [08:58:32]requested_item shift.num is exist - process it [08:58:32]requested_item shift.opened is exist - process it [08:58:32]req_shift_opened [08:58:32]FM_GetShiftState [08:58:32]SAM_PROTO_GetShiftState [08:58:32]wFMCommunicate request_size=4 [08:58:32]MH_SAM_APDU [08:58:32]CAPDU: 80 13 01 00 [08:58:32]Write to MH i2c: E2 08 00 A2 02 80 13 01 00 00 00 00 00 21 [08:58:32]Write i2c OK [08:58:32]MH_I2C_Read... [08:58:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:32]Read from MH i2c: E2 [08:58:32]MH_I2C_Read... [08:58:32]Read from MH i2c: E2 0E 00 [08:58:32]MH_I2C_Read... [08:58:32]Read from MH i2c: E2 0E 00 A2 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 29 [08:58:32]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [08:58:32]wFMCommunicate OK [08:58:32]SAM_PROTO_GetShiftState done [08:58:32]FM_GetShiftState done [08:58:32]req_shift_opened done [08:58:32]requested_item shift.open_date is exist - process it [08:58:32]req_shift_open_date [08:58:32]req_shift_open_date done [08:58:32]produce_requested_data done [08:58:32]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82089,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [08:58:32]process_action_free close_receipt [08:58:32]json_value_free [08:58:32]json_value_free done [08:58:32]process_json_proto returns [08:58:32]Send response to host [08:58:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82089,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [08:58:32]free response buf [08:58:32]execute_script done [08:58:32]execute_script returns [08:58:32]free content buf [08:58:32]Sock 9.Close socket [08:58:32]Sock 9.Thread stoped [08:58:34]recv_with_timeout no data received [08:58:35]ConnectInit Can't take IP for lk.salyk.kg [08:58:35]CommunicateWithHost connect error [08:58:35]CommunicateWithHost err = -1 [08:58:35]OFD Sender: Server communicate error [08:58:40]OFD Sender: Processing packet 82089 [packets to send 254, broken 253] [08:58:40]ProducePacketName [08:58:40]name=ofd_packets/00082089 [08:58:40]OFD Sender: To server: pG, [08:58:40]CommunicateWithHost lk.salyk.kg:30040 [08:58:40]ConnectInit lk.salyk.kg [08:58:41]Connected sock=10 [08:58:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 6D AE 08 01 1B 7E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 B5 D1 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A9 40 01 00 35 04 06 00 5D 86 BC 34 9A AB 1D 87 5D 56 DF 0B 92 EC [08:58:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 45 F5 47 00 CC 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A9 40 01 00 F4 03 04 00 FE 76 10 67 B6 04 01 00 00 03 35 AC AA 36 E6 9C 8F [08:58:41]CommunicateWithHost err = 0 [08:58:41]CheckOFDResponse [08:58:41]1017 (14) - 77093643461234 [08:58:41]1041 (16) - 0000000000871843 [08:58:41]1040 (4) - 82089 [08:58:41]1012 (4) - 17.10.2024 02:31 [08:58:41]1206 (1) - 0 [08:58:41]OFD Sender: Remove packet 82089 [08:58:41]ProducePacketName [08:58:41]name=ofd_packets/00082089 [08:58:41]NVStorageDeleteData [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:52]recv_with_timeout no data received [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:28]recv_with_timeout no data received [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:46]recv_with_timeout no data received [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:09]accept exits with 8 [09:01:09]New connection [09:01:09]New thread 3067379044 created [09:01:09]Thread 3067522404 joined [09:01:09]Waiting for new connection... [09:01:09] Sock 8.Parse request [09:01:09]Sock 8.Check first char [09:01:09]Sock 8.First char is OK [09:01:09]request: POST /json_proto HTTP/1.0 [09:01:09]Method: POST [09:01:09]URL: /json_proto [09:01:09]Method is POST - this is cgi request [09:01:09]url: /json_proto [09:01:09]query_string will be loaded in cgi processing [09:01:09]execute_cgi json_proto POST (null) [09:01:09]execute_cgi path=json_proto method=POST [09:01:09]POST find Content-Length [09:01:09]Host: 172.17.44.67:8080 [09:01:09]Content-Length: 806 [09:01:09]Content-Type: application/json [09:01:09] [09:01:09]POST finish read [09:01:09]Found Content-Length = 806 [09:01:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2226629", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:09]execute_script... [09:01: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)918596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2226629", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:09]POST & json_proto [09:01:09]process_json_proto [09:01:09]json parsed OK: [09:01:09]protocol is kg_v1.0 [09:01:09]action value=close_receipt [09:01:09]process_action close_receipt [09:01:09]cmd_close_receipt [09:01:09]MH_GetDate [09:01:09]Write to MH i2c: F0 00 00 A3 02 94 [09:01:09]Write i2c OK [09:01:09]MH_I2C_Read... [09:01:09]Read from MH i2c: F0 [09:01:09]MH_I2C_Read... [09:01:09]Read from MH i2c: F0 09 00 [09:01:09]MH_I2C_Read... [09:01:09]Read from MH i2c: F0 09 00 A3 02 00 55 D2 10 67 F1 C7 6B 64 C2 [09:01:09]GetLastDocTimeStamp 1729155509 [09:01:09]current date 1729155669 [09:01:09]FM_GetShiftState [09:01:09]SAM_PROTO_GetShiftState [09:01:09]wFMCommunicate request_size=4 [09:01:09]MH_SAM_APDU [09:01:09]CAPDU: 80 13 01 00 [09:01:09]Write to MH i2c: E2 08 00 A4 02 80 13 01 00 00 00 00 00 23 [09:01:09]Write i2c OK [09:01:09]MH_I2C_Read... [09:01:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:09]Read from MH i2c: E2 [09:01:09]MH_I2C_Read... [09:01:09]Read from MH i2c: E2 0E 00 [09:01:09]MH_I2C_Read... [09:01:09]Read from MH i2c: E2 0E 00 A4 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 2B [09:01:09]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:01:09]wFMCommunicate OK [09:01:09]SAM_PROTO_GetShiftState done [09:01:09]FM_GetShiftState done [09:01:09]opened in 1729125927 [09:01:09]opened+sec_in_day 1729212327 [09:01:09]quantity*price = 0 [09:01:09]sum+1 = 1 [09:01:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 16 17.10.2024 09:01 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 2226629 ФМ: 0000000000871843 ФД: 82090 ФПД: 134192785144545 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T090109&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82090&fm=134192785144545&tin=02508201610067®Number=0000000000091680&sum=0 [09:01:10]StoreToDocumentArchive [09:01:10]shift 525 fd 82090 [09:01:10]save to /storage/0525/doc_00082090 [09:01:10]save last doc name /storage/0525/doc_00082090 to /storage/kkm_last_doc_name [09:01:10]save OK [09:01:10]Clear old archive folders... [09:01:10]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:01:10]tlvbuf is 01AF3D90 [09:01:10]SAM_PROTO_ClearQueue [09:01:10]wFMCommunicate request_size=4 [09:01:10]MH_SAM_APDU [09:01:10]CAPDU: 80 09 00 00 [09:01:10]Write to MH i2c: E2 08 00 B1 02 80 09 00 00 00 00 00 00 25 [09:01:10]Write i2c OK [09:01:10]MH_I2C_Read... [09:01:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:01:10]Read from MH i2c: E2 [09:01:10]MH_I2C_Read... [09:01:10]Read from MH i2c: E2 03 00 [09:01:10]MH_I2C_Read... [09:01:10]Read from MH i2c: E2 03 00 B1 02 00 90 00 27 [09:01:10]RAPDU: 90 00 [09:01:10]wFMCommunicate OK [09:01:10]SAM_PROTO_ClearQueue done [09:01:10]KKMCreateOFDPacket [09:01:10]OFDProtocolAddRootSTLVToBuf [09:01:10]FM_MakeSignedData [09:01:10]FM_MakeSignedData [09:01:10]SAM_PROTO_SignData [09:01:10]wFMCommunicate request_size=4 [09:01:10]MH_SAM_APDU [09:01:10]CAPDU: 80 0D 01 02 [09:01:10]Write to MH i2c: E2 08 00 B2 02 80 0D 01 02 00 00 00 00 2D [09:01:10]Write i2c OK [09:01:10]MH_I2C_Read... [09:01:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:01:10]Read from MH i2c: E2 [09:01:10]MH_I2C_Read... [09:01:10]Read from MH i2c: E2 03 00 [09:01:10]MH_I2C_Read... [09:01:10]Read from MH i2c: E2 03 00 B2 02 00 90 00 28 [09:01:10]RAPDU: 90 00 [09:01:10]wFMCommunicate OK [09:01:10]wFMCommunicate request_size=255 [09:01:10]MH_SAM_APDU [09:01:10]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 55 D2 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AA 40 01 [09:01:10]Write to MH i2c: E2 02 01 B3 02 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 55 D2 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AA 40 01 00 00 78 [09:01:10]Write i2c OK [09:01:10]MH_I2C_Read... [09:01:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:10]Read from MH i2c: E2 [09:01:10]MH_I2C_Read... [09:01:10]Read from MH i2c: E2 03 00 [09:01:10]MH_I2C_Read... [09:01:10]Read from MH i2c: E2 03 00 B3 02 00 90 00 29 [09:01:10]RAPDU: 90 00 [09:01:10]wFMCommunicate OK [09:01:10]wFMCommunicate request_size=16 [09:01:10]MH_SAM_APDU [09:01:10]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 7A 0C 31 4A 3A E1 [09:01:10]Write to MH i2c: E2 13 00 B4 02 80 0D 02 02 0B 00 00 35 04 06 00 7A 0C 31 4A 3A E1 00 00 A1 [09:01:10]Write i2c OK [09:01:10]MH_I2C_Read... [09:01:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:10]Read from MH i2c: E2 [09:01:10]MH_I2C_Read... [09:01:10]Read from MH i2c: E2 03 00 [09:01:10]MH_I2C_Read... [09:01:10]Read from MH i2c: E2 03 00 B4 02 00 90 00 2A [09:01:10]RAPDU: 90 00 [09:01:10]wFMCommunicate OK [09:01:10]wFMCommunicate request_size=4 [09:01:10]MH_SAM_APDU [09:01:10]CAPDU: 80 0D 03 02 [09:01:10]Write to MH i2c: E2 08 00 B5 02 80 0D 03 02 00 00 00 00 32 [09:01:10]Write i2c OK [09:01:10]MH_I2C_Read... [09:01:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:01:10]Read from MH i2c: E2 [09:01:10]MH_I2C_Read... [09:01:10]Read from MH i2c: E2 0B 00 [09:01:10]MH_I2C_Read... [09:01:10]Read from MH i2c: E2 0B 00 B5 02 00 98 03 E5 97 8A C7 04 D7 90 00 76 [09:01:10]RAPDU: 98 03 E5 97 8A C7 04 D7 90 00 [09:01:10]wFMCommunicate OK [09:01:10]SAM_PROTO_SignData done [09:01:10]FM_MakeSignedData done [09:01:10]CreateOFDProtocolMessage [09:01:10]wFMCommunicate request_size=4 [09:01:10]MH_SAM_APDU [09:01:10]CAPDU: 80 11 00 00 [09:01:10]Write to MH i2c: E2 08 00 B6 02 80 11 00 00 00 00 00 00 32 [09:01:10]Write i2c OK [09:01:10]MH_I2C_Read... [09:01:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:10]Read from MH i2c: E2 [09:01:10]MH_I2C_Read... [09:01:10]Read from MH i2c: E2 17 00 [09:01:10]MH_I2C_Read... [09:01:10]Read from MH i2c: E2 17 00 B6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 84 [09:01:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:01:10]wFMCommunicate OK [09:01:10]CreateOFDProtocolMessage done [09:01:10]OFDSenderStorePacket 82090 [09:01:10]StoreOFDPacket docnum=82090 [09:01:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 00 09 0D 01 D8 08 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 55 D2 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AA 40 01 00 35 04 06 00 7A 0C 31 4A 3A E1 98 03 E5 97 8A C7 04 D7 [09:01:10]CheckFolder [09:01:10]dirname=/storage/ofd_packets [09:01:10]CheckFolder done [09:01:10]ProducePacketName [09:01:10]name=ofd_packets/00082090 [09:01:10]NVStorageSaveData ofd_packets/00082090 [09:01:10]File name is /storage/ofd_packets/00082090 [09:01:10]Write 307 bytes [09:01:10]NVStorageSaveData done [09:01:10]OFDSenderStorePacket done [09:01:10]KKMCreateOFDPacket done [09:01:10]NVStorageSaveData kkm_last_timestamp [09:01:10]File name is /storage/kkm_last_timestamp [09:01:10]Write 4 bytes [09:01:10]NVStorageSaveData done [09:01:10]ExternCall_PrintAddStr [09:01:10]wPrintStart [09:01:10]Write to MH i2c: 01 00 00 B7 02 B9 [09:01:10]Write i2c OK [09:01:10]MH_I2C_Read... [09:01:10]Read from MH i2c: 01 [09:01:10]MH_I2C_Read... [09:01:10]Read from MH i2c: 01 07 00 [09:01:10]MH_I2C_Read... [09:01:10]Read from MH i2c: 01 07 00 B7 02 00 00 00 00 00 FF 0F CE [09:01:10]RasterBufferAndPrint [09:01:10]line Счет N : (1)918596 [09:01:10]line ИНН: 02508201610067 [09:01:10]line Контрольно-Кассовый Чек [09:01:10]line ПРОДАЖА [09:01:10]line ТРК (МРК, ГНК) : 21 [09:01:10]line Товар: 2710194800 [09:01:10]line D-Energy ДТ-К-2 [09:01:10]line 20.000 * 0.00 [09:01:10]line = 0.00 [09:01:10]line НДС 12% НСП 1% [09:01:10]line > о реализуемом товаре [09:01:10]line ИТОГО: 0.00 [09:01:10]line НСП 1% : 0.00 [09:01:10]line НДС 12% : 0.00 [09:01:10]line Наличными: 0.00 [09:01:10]line Безнал.: 0.00 [09:01:10]line Место: АЗС № 114 "Партнер Нефть" [09:01:10]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:01:10]line СНО: Общий режим [09:01:10]line Чек 16 17.10.2024 09:01 [09:01:10]line Смена: 525 ФФД: 1.0 [09:01:10]line ЗНМ: 0300000086 [09:01:10]line РНМ: 0000000000091680 [09:01:10]line Версия ККМ: 001 [09:01:10]line Талоны: Топливные Талоны [09:01:10]line 2226629 [09:01:10]line ФМ: 0000000000871843 [09:01:10]line ФД: 82090 [09:01:10]line ФПД: 134192785144545 [09:01:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T090109&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82090&fm=134192785144545&tin=02508201610067®Number=0000000000091680&sum=0 [09:01:11]OFD Sender: Processing packet 82090 [packets to send 254, broken 253] [09:01:11]ProducePacketName [09:01:11]name=ofd_packets/00082090 [09:01:11]OFD Sender: To server: pG, [09:01:11]CommunicateWithHost lk.salyk.kg:30040 [09:01:11]ConnectInit lk.salyk.kg [09:01:11]written 0, free lines is 4095 [09:01:11]Write to MH i2c: 01 00 00 E1 02 E3 [09:01:11]Write i2c OK [09:01:11]MH_I2C_Read... [09:01:11]Read from MH i2c: 01 [09:01:11]MH_I2C_Read... [09:01:11]Read from MH i2c: 01 07 00 [09:01:11]MH_I2C_Read... [09:01:11]Read from MH i2c: 01 07 00 E1 02 00 00 00 00 00 F8 0C EE [09:01:11]RasterBufferAndPrint [09:01:11]line [09:01:11]line [09:01:11]line [09:01:11]line [09:01:11]line [09:01:11]written 0, free lines is 3326 [09:01:11]MH_Cut [09:01:11]Write to MH i2c: D1 01 00 E8 02 01 BC [09:01:11]Write i2c OK [09:01:11]MH_I2C_Read... [09:01:11]Read from MH i2c: D1 [09:01:11]MH_I2C_Read... [09:01:11]Read from MH i2c: D1 01 00 [09:01:11]MH_I2C_Read... [09:01:11]Read from MH i2c: D1 01 00 E8 02 00 BB [09:01:11]Write to MH i2c: 01 00 00 E9 02 EB [09:01:11]Write i2c OK [09:01:11]MH_I2C_Read... [09:01:12]Connected sock=11 [09:01:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 00 09 0D 01 D8 08 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 55 D2 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AA 40 01 00 35 04 06 00 7A 0C 31 4A 3A E1 98 03 E5 97 8A C7 04 D7 [09:01:12]*** Cut start [09:01:12]*** Partial cut [09:01:12]*** CUTSNS_PIN = 1 [09:01:12]*** CUTSNS_PIN = 0 [09:01:12]*** Brake cut motor [09:01:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 86 74 47 00 05 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AA 40 01 00 F4 03 04 00 95 77 10 67 B6 04 01 00 00 67 F8 83 44 7F D5 3A 63 [09:01:12]CommunicateWithHost err = 0 [09:01:12]CheckOFDResponse [09:01:12]1017 (14) - 77093643461234 [09:01:12]1041 (16) - 0000000000871843 [09:01:12]1040 (4) - 82090 [09:01:12]1012 (4) - 17.10.2024 02:33 [09:01:12]1206 (1) - 0 [09:01:12]OFD Sender: Remove packet 82090 [09:01:12]ProducePacketName [09:01:12]name=ofd_packets/00082090 [09:01:12]NVStorageDeleteData [09:01:12]Read from MH i2c: 01 [09:01:12]MH_I2C_Read... [09:01:12]*** Stop cut motor [09:01:12]*** Cut end [09:01:12]Read from MH i2c: 01 07 00 [09:01:12]MH_I2C_Read... [09:01:12]Read from MH i2c: 01 07 00 E9 02 00 00 00 00 00 FF 0F 00 [09:01:13]process_action close_receipt done [09:01:13]requested_data is exist [09:01:13]produce_requested_data [09:01:13]requested_item fm.sn is exist - process it [09:01:13]wFMCommunicate request_size=4 [09:01:13]MH_SAM_APDU [09:01:13]CAPDU: 80 11 00 00 [09:01:13]Write to MH i2c: E2 08 00 EA 02 80 11 00 00 00 00 00 00 66 [09:01:13]Write i2c OK [09:01:13]MH_I2C_Read... [09:01:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:13]Read from MH i2c: E2 [09:01:13]MH_I2C_Read... [09:01:13]Read from MH i2c: E2 17 00 [09:01:13]MH_I2C_Read... [09:01:13]Read from MH i2c: E2 17 00 EA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 B8 [09:01:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:01:13]wFMCommunicate OK [09:01:13]requested_item fd.num is exist - process it [09:01:13]SAM_PROTO_GetFieldsCounters [09:01:13]wFMCommunicate request_size=4 [09:01:13]MH_SAM_APDU [09:01:13]CAPDU: 80 13 00 00 [09:01:13]Write to MH i2c: E2 08 00 EB 02 80 13 00 00 00 00 00 00 69 [09:01:13]Write i2c OK [09:01:13]MH_I2C_Read... [09:01:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:13]Read from MH i2c: E2 [09:01:13]MH_I2C_Read... [09:01:13]Read from MH i2c: E2 62 00 [09:01:13]MH_I2C_Read... [09:01:13]Read from MH i2c: E2 62 00 EB 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 AA 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [09:01:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 AA 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:01:13]wFMCommunicate OK [09:01:13]SAM_PROTO_GetFieldsCounters done [09:01:13]requested_item shift.num is exist - process it [09:01:13]requested_item shift.opened is exist - process it [09:01:13]req_shift_opened [09:01:13]FM_GetShiftState [09:01:13]SAM_PROTO_GetShiftState [09:01:13]wFMCommunicate request_size=4 [09:01:13]MH_SAM_APDU [09:01:13]CAPDU: 80 13 01 00 [09:01:13]Write to MH i2c: E2 08 00 EC 02 80 13 01 00 00 00 00 00 6B [09:01:13]Write i2c OK [09:01:13]MH_I2C_Read... [09:01:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:13]Read from MH i2c: E2 [09:01:13]MH_I2C_Read... [09:01:13]Read from MH i2c: E2 0E 00 [09:01:13]MH_I2C_Read... [09:01:13]Read from MH i2c: E2 0E 00 EC 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 73 [09:01:13]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:01:13]wFMCommunicate OK [09:01:13]SAM_PROTO_GetShiftState done [09:01:13]FM_GetShiftState done [09:01:13]req_shift_opened done [09:01:13]requested_item shift.open_date is exist - process it [09:01:13]req_shift_open_date [09:01:13]req_shift_open_date done [09:01:13]produce_requested_data done [09:01:13]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82090,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [09:01:13]process_action_free close_receipt [09:01:13]json_value_free [09:01:13]json_value_free done [09:01:13]process_json_proto returns [09:01:13]Send response to host [09:01:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82090,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [09:01:13]free response buf [09:01:13]execute_script done [09:01:13]execute_script returns [09:01:13]free content buf [09:01:13]Sock 8.Close socket [09:01:13]Sock 8.Thread stoped [09:01:13]OFD Sender: No OFD packet to send [09:01:18]OFD Sender: No OFD packet to send [09:01:23]OFD Sender: No OFD packet to send [09:01:28]OFD Sender: No OFD packet to send [09:01:33]OFD Sender: No OFD packet to send [09:01:38]OFD Sender: No OFD packet to send [09:01:43]OFD Sender: No OFD packet to send [09:01:48]OFD Sender: No OFD packet to send [09:01:53]OFD Sender: No OFD packet to send [09:01:57]recv_with_timeout no data received [09:01:58]OFD Sender: No OFD packet to send [09:02:03]OFD Sender: No OFD packet to send [09:02:08]OFD Sender: No OFD packet to send [09:02:13]recv_with_timeout no data received [09:02:13]OFD Sender: No OFD packet to send [09:02:18]OFD Sender: No OFD packet to send [09:02:23]OFD Sender: No OFD packet to send [09:02:28]OFD Sender: No OFD packet to send [09:02:33]OFD Sender: No OFD packet to send [09:02:38]recv_with_timeout no data received [09:02:38]OFD Sender: No OFD packet to send [09:02:43]OFD Sender: No OFD packet to send [09:02:48]OFD Sender: No OFD packet to send [09:02:53]OFD Sender: No OFD packet to send [09:02:58]OFD Sender: No OFD packet to send [09:03:03]OFD Sender: No OFD packet to send [09:03:08]OFD Sender: No OFD packet to send [09:03:13]OFD Sender: No OFD packet to send [09:03:15]accept exits with 9 [09:03:15]New connection [09:03:15]New thread 3067522404 created [09:03:15]Thread 3067379044 joined [09:03:15]Waiting for new connection... [09:03:15] Sock 9.Parse request [09:03:15]Sock 9.Check first char [09:03:15]Sock 9.First char is OK [09:03:15]request: POST /json_proto HTTP/1.0 [09:03:15]Method: POST [09:03:15]URL: /json_proto [09:03:15]Method is POST - this is cgi request [09:03:15]url: /json_proto [09:03:15]query_string will be loaded in cgi processing [09:03:15]execute_cgi json_proto POST (null) [09:03:15]execute_cgi path=json_proto method=POST [09:03:15]POST find Content-Length [09:03:15]Host: 172.17.44.67:8080 [09:03:15]Content-Length: 754 [09:03:15]Content-Type: application/json [09:03:15] [09:03:15]POST finish read [09:03:15]Found Content-Length = 754 [09:03:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30053211", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:15]execute_script... [09:03:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30053211", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:15]POST & json_proto [09:03:15]process_json_proto [09:03:15]json parsed OK: [09:03:15]protocol is kg_v1.0 [09:03:15]action value=close_receipt [09:03:15]process_action close_receipt [09:03:15]cmd_close_receipt [09:03:15]MH_GetDate [09:03:15]Write to MH i2c: F0 00 00 ED 02 DE [09:03:15]Write i2c OK [09:03:15]MH_I2C_Read... [09:03:15]Read from MH i2c: F0 [09:03:15]MH_I2C_Read... [09:03:15]Read from MH i2c: F0 09 00 [09:03:15]MH_I2C_Read... [09:03:15]Read from MH i2c: F0 09 00 ED 02 00 D4 D2 10 67 F1 C7 6B 64 8B [09:03:15]GetLastDocTimeStamp 1729155669 [09:03:15]current date 1729155796 [09:03:15]FM_GetShiftState [09:03:15]SAM_PROTO_GetShiftState [09:03:15]wFMCommunicate request_size=4 [09:03:15]MH_SAM_APDU [09:03:15]CAPDU: 80 13 01 00 [09:03:15]Write to MH i2c: E2 08 00 EE 02 80 13 01 00 00 00 00 00 6D [09:03:15]Write i2c OK [09:03:15]MH_I2C_Read... [09:03:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:15]Read from MH i2c: E2 [09:03:15]MH_I2C_Read... [09:03:15]Read from MH i2c: E2 0E 00 [09:03:15]MH_I2C_Read... [09:03:15]Read from MH i2c: E2 0E 00 EE 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 75 [09:03:15]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:03:15]wFMCommunicate OK [09:03:15]SAM_PROTO_GetShiftState done [09:03:15]FM_GetShiftState done [09:03:15]opened in 1729125927 [09:03:15]opened+sec_in_day 1729212327 [09:03:15]quantity*price = 0 [09:03:15]sum+1 = 1 [09:03:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 17 17.10.2024 09:03 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30053211 ФМ: 0000000000871843 ФД: 82091 ФПД: 2137875099323 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T090316&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82091&fm=2137875099323&tin=02508201610067®Number=0000000000091680&sum=0 [09:03:17]StoreToDocumentArchive [09:03:17]shift 525 fd 82091 [09:03:17]save to /storage/0525/doc_00082091 [09:03:17]save last doc name /storage/0525/doc_00082091 to /storage/kkm_last_doc_name [09:03:17]save OK [09:03:17]Clear old archive folders... [09:03:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:03:17]tlvbuf is 01AE9C20 [09:03:17]SAM_PROTO_ClearQueue [09:03:17]wFMCommunicate request_size=4 [09:03:17]MH_SAM_APDU [09:03:17]CAPDU: 80 09 00 00 [09:03:17]Write to MH i2c: E2 08 00 FB 02 80 09 00 00 00 00 00 00 6F [09:03:17]Write i2c OK [09:03:17]MH_I2C_Read... [09:03:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:17]Read from MH i2c: E2 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: E2 03 00 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: E2 03 00 FB 02 00 90 00 71 [09:03:17]RAPDU: 90 00 [09:03:17]wFMCommunicate OK [09:03:17]SAM_PROTO_ClearQueue done [09:03:17]KKMCreateOFDPacket [09:03:17]OFDProtocolAddRootSTLVToBuf [09:03:17]FM_MakeSignedData [09:03:17]FM_MakeSignedData [09:03:17]SAM_PROTO_SignData [09:03:17]wFMCommunicate request_size=4 [09:03:17]MH_SAM_APDU [09:03:17]CAPDU: 80 0D 01 02 [09:03:17]Write to MH i2c: E2 08 00 FC 02 80 0D 01 02 00 00 00 00 77 [09:03:17]Write i2c OK [09:03:17]MH_I2C_Read... [09:03:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:17]Read from MH i2c: E2 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: E2 03 00 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: E2 03 00 FC 02 00 90 00 72 [09:03:17]RAPDU: 90 00 [09:03:17]wFMCommunicate OK [09:03:17]wFMCommunicate request_size=255 [09:03:17]MH_SAM_APDU [09:03:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 D4 D2 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AB 40 01 00 35 04 06 00 01 [09:03:17]Write to MH i2c: E2 02 01 FD 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 D4 D2 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AB 40 01 00 35 04 06 00 01 00 00 84 [09:03:17]Write i2c OK [09:03:17]MH_I2C_Read... [09:03:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:17]Read from MH i2c: E2 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: E2 03 00 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: E2 03 00 FD 02 00 90 00 73 [09:03:17]RAPDU: 90 00 [09:03:17]wFMCommunicate OK [09:03:17]wFMCommunicate request_size=10 [09:03:17]MH_SAM_APDU [09:03:17]CAPDU: 80 0D 02 02 05 F1 C3 49 2E BB [09:03:17]Write to MH i2c: E2 0D 00 FE 02 80 0D 02 02 05 00 F1 C3 49 2E BB 00 00 6A [09:03:17]Write i2c OK [09:03:17]MH_I2C_Read... [09:03:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:17]Read from MH i2c: E2 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: E2 03 00 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: E2 03 00 FE 02 00 90 00 74 [09:03:17]RAPDU: 90 00 [09:03:17]wFMCommunicate OK [09:03:17]wFMCommunicate request_size=4 [09:03:17]MH_SAM_APDU [09:03:17]CAPDU: 80 0D 03 02 [09:03:17]Write to MH i2c: E2 08 00 FF 02 80 0D 03 02 00 00 00 00 7C [09:03:17]Write i2c OK [09:03:17]MH_I2C_Read... [09:03:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:17]Read from MH i2c: E2 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: E2 0B 00 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: E2 0B 00 FF 02 00 16 E2 E6 2A 4B 36 F2 83 90 00 7B [09:03:17]RAPDU: 16 E2 E6 2A 4B 36 F2 83 90 00 [09:03:17]wFMCommunicate OK [09:03:17]SAM_PROTO_SignData done [09:03:17]FM_MakeSignedData done [09:03:17]CreateOFDProtocolMessage [09:03:17]wFMCommunicate request_size=4 [09:03:17]MH_SAM_APDU [09:03:17]CAPDU: 80 11 00 00 [09:03:17]Write to MH i2c: E2 08 00 00 03 80 11 00 00 00 00 00 00 7D [09:03:17]Write i2c OK [09:03:17]MH_I2C_Read... [09:03:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:17]Read from MH i2c: E2 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: E2 17 00 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: E2 17 00 00 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 CF [09:03:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:03:17]wFMCommunicate OK [09:03:17]CreateOFDProtocolMessage done [09:03:17]OFDSenderStorePacket 82091 [09:03:17]StoreOFDPacket docnum=82091 [09:03:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 ED AD 07 01 B1 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 D4 D2 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AB 40 01 00 35 04 06 00 01 F1 C3 49 2E BB 16 E2 E6 2A 4B 36 F2 83 [09:03:17]CheckFolder [09:03:17]dirname=/storage/ofd_packets [09:03:17]CheckFolder done [09:03:17]ProducePacketName [09:03:17]name=ofd_packets/00082091 [09:03:17]NVStorageSaveData ofd_packets/00082091 [09:03:17]File name is /storage/ofd_packets/00082091 [09:03:17]Write 301 bytes [09:03:17]NVStorageSaveData done [09:03:17]OFDSenderStorePacket done [09:03:17]KKMCreateOFDPacket done [09:03:17]NVStorageSaveData kkm_last_timestamp [09:03:17]File name is /storage/kkm_last_timestamp [09:03:17]Write 4 bytes [09:03:17]NVStorageSaveData done [09:03:17]ExternCall_PrintAddStr [09:03:17]wPrintStart [09:03:17]Write to MH i2c: 01 00 00 01 03 04 [09:03:17]Write i2c OK [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: 01 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: 01 07 00 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: 01 07 00 01 03 00 00 00 00 00 FF 0F 19 [09:03:17]RasterBufferAndPrint [09:03:17]line Счет N : (1)918597 [09:03:17]line ИНН: 02508201610067 [09:03:17]line Контрольно-Кассовый Чек [09:03:17]line ПРОДАЖА [09:03:17]line ТРК (МРК, ГНК) : 11 [09:03:17]line Товар: 2710124130 [09:03:17]line Аи-92-К-4 [09:03:17]line 40.000 * 0.00 [09:03:17]line = 0.00 [09:03:17]line НДС 12% НСП 1% [09:03:17]line > о реализуемом товаре [09:03:17]line ИТОГО: 0.00 [09:03:17]line НСП 1% : 0.00 [09:03:17]line НДС 12% : 0.00 [09:03:17]line Наличными: 0.00 [09:03:17]line Безнал.: 0.00 [09:03:17]line Место: АЗС № 114 "Партнер Нефть" [09:03:17]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:03:17]line СНО: Общий режим [09:03:17]line Чек 17 17.10.2024 09:03 [09:03:17]line Смена: 525 ФФД: 1.0 [09:03:17]line ЗНМ: 0300000086 [09:03:17]line РНМ: 0000000000091680 [09:03:17]line Версия ККМ: 001 [09:03:17]line Талоны: ТК ГПНА Online [09:03:17]line 30053211 [09:03:17]line ФМ: 0000000000871843 [09:03:17]line ФД: 82091 [09:03:17]line ФПД: 2137875099323 [09:03:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T090316&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82091&fm=2137875099323&tin=02508201610067®Number=0000000000091680&sum=0 [09:03:17]written 0, free lines is 4095 [09:03:17]OFD Sender: Processing packet 82091 [packets to send 254, broken 253] [09:03:17]ProducePacketName [09:03:17]name=ofd_packets/00082091 [09:03:17]OFD Sender: To server: pG, [09:03:17]CommunicateWithHost lk.salyk.kg:30040 [09:03:17]ConnectInit lk.salyk.kg [09:03:18]Write to MH i2c: 01 00 00 2B 03 2E [09:03:18]Write i2c OK [09:03:18]MH_I2C_Read... [09:03:18]Read from MH i2c: 01 [09:03:18]MH_I2C_Read... [09:03:18]Read from MH i2c: 01 07 00 [09:03:18]MH_I2C_Read... [09:03:18]Read from MH i2c: 01 07 00 2B 03 00 00 00 00 00 E2 0C 23 [09:03:18]RasterBufferAndPrint [09:03:18]line [09:03:18]line [09:03:18]line [09:03:18]line [09:03:18]line [09:03:18]written 0, free lines is 3304 [09:03:18]MH_Cut [09:03:18]Write to MH i2c: D1 01 00 32 03 01 07 [09:03:18]Write i2c OK [09:03:18]MH_I2C_Read... [09:03:18]Read from MH i2c: D1 [09:03:18]MH_I2C_Read... [09:03:18]Read from MH i2c: D1 01 00 [09:03:18]MH_I2C_Read... [09:03:18]Read from MH i2c: D1 01 00 32 03 00 06 [09:03:18]Write to MH i2c: 01 00 00 33 03 36 [09:03:18]Write i2c OK [09:03:18]MH_I2C_Read... [09:03:18]Connected sock=10 [09:03:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 ED AD 07 01 B1 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 D4 D2 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AB 40 01 00 35 04 06 00 01 F1 C3 49 2E BB 16 E2 E6 2A 4B 36 F2 83 [09:03:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 DD 25 47 00 DE 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AB 40 01 00 F4 03 04 00 13 78 10 67 B6 04 01 00 00 93 F3 C6 F9 49 18 48 ED [09:03:18]CommunicateWithHost err = 0 [09:03:18]CheckOFDResponse [09:03:18]1017 (14) - 77093643461234 [09:03:18]1041 (16) - 0000000000871843 [09:03:18]1040 (4) - 82091 [09:03:18]1012 (4) - 17.10.2024 02:36 [09:03:18]1206 (1) - 0 [09:03:18]OFD Sender: Remove packet 82091 [09:03:18]ProducePacketName [09:03:18]name=ofd_packets/00082091 [09:03:18]NVStorageDeleteData [09:03:18]*** Cut start [09:03:18]*** Partial cut [09:03:18]*** CUTSNS_PIN = 1 [09:03:18]*** CUTSNS_PIN = 0 [09:03:19]*** Brake cut motor [09:03:19]OFD Sender: No OFD packet to send [09:03:19]Read from MH i2c: 01 [09:03:19]MH_I2C_Read... [09:03:19]*** Stop cut motor [09:03:19]*** Cut end [09:03:19]Read from MH i2c: 01 07 00 [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: 01 07 00 33 03 00 00 00 00 00 FF 0F 4B [09:03:19]process_action close_receipt done [09:03:19]requested_data is exist [09:03:19]produce_requested_data [09:03:19]requested_item fm.sn is exist - process it [09:03:19]wFMCommunicate request_size=4 [09:03:19]MH_SAM_APDU [09:03:19]CAPDU: 80 11 00 00 [09:03:19]Write to MH i2c: E2 08 00 34 03 80 11 00 00 00 00 00 00 B1 [09:03:19]Write i2c OK [09:03:19]MH_I2C_Read... [09:03:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:19]Read from MH i2c: E2 [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: E2 17 00 [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: E2 17 00 34 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 03 [09:03:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:03:19]wFMCommunicate OK [09:03:19]requested_item fd.num is exist - process it [09:03:19]SAM_PROTO_GetFieldsCounters [09:03:19]wFMCommunicate request_size=4 [09:03:19]MH_SAM_APDU [09:03:19]CAPDU: 80 13 00 00 [09:03:19]Write to MH i2c: E2 08 00 35 03 80 13 00 00 00 00 00 00 B4 [09:03:19]Write i2c OK [09:03:19]MH_I2C_Read... [09:03:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:19]Read from MH i2c: E2 [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: E2 62 00 [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: E2 62 00 35 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 AB 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [09:03:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 AB 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:03:19]wFMCommunicate OK [09:03:19]SAM_PROTO_GetFieldsCounters done [09:03:19]requested_item shift.num is exist - process it [09:03:19]requested_item shift.opened is exist - process it [09:03:19]req_shift_opened [09:03:19]FM_GetShiftState [09:03:19]SAM_PROTO_GetShiftState [09:03:19]wFMCommunicate request_size=4 [09:03:19]MH_SAM_APDU [09:03:19]CAPDU: 80 13 01 00 [09:03:19]Write to MH i2c: E2 08 00 36 03 80 13 01 00 00 00 00 00 B6 [09:03:19]Write i2c OK [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: E2 [09:03:19]MH_I2C_Read... [09:03:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:19]Read from MH i2c: E2 0E 00 [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: E2 0E 00 36 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 BE [09:03:19]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:03:19]wFMCommunicate OK [09:03:19]SAM_PROTO_GetShiftState done [09:03:19]FM_GetShiftState done [09:03:19]req_shift_opened done [09:03:19]requested_item shift.open_date is exist - process it [09:03:19]req_shift_open_date [09:03:19]req_shift_open_date done [09:03:19]produce_requested_data done [09:03:19]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82091,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [09:03:19]process_action_free close_receipt [09:03:19]json_value_free [09:03:19]json_value_free done [09:03:19]process_json_proto returns [09:03:19]Send response to host [09:03:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82091,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [09:03:19]free response buf [09:03:19]execute_script done [09:03:19]execute_script returns [09:03:19]free content buf [09:03:19]Sock 9.Close socket [09:03:19]Sock 9.Thread stoped [09:03:24]OFD Sender: No OFD packet to send [09:03:29]OFD Sender: No OFD packet to send [09:03:34]OFD Sender: No OFD packet to send [09:03:39]OFD Sender: No OFD packet to send [09:03:44]OFD Sender: No OFD packet to send [09:03:46]accept exits with 8 [09:03:46]New connection [09:03:46]New thread 3067379044 created [09:03:46]Thread 3067522404 joined [09:03:46]Waiting for new connection... [09:03:46] Sock 8.Parse request [09:03:46]Sock 8.Check first char [09:03:46]Sock 8.First char is OK [09:03:46]request: POST /json_proto HTTP/1.0 [09:03:46]Method: POST [09:03:46]URL: /json_proto [09:03:46]Method is POST - this is cgi request [09:03:46]url: /json_proto [09:03:46]query_string will be loaded in cgi processing [09:03:46]execute_cgi json_proto POST (null) [09:03:46]execute_cgi path=json_proto method=POST [09:03:46]POST find Content-Length [09:03:46]Host: 172.17.44.67:8080 [09:03:46]Content-Length: 677 [09:03:46]Content-Type: application/json [09:03:46] [09:03:46]POST finish read [09:03:46]Found Content-Length = 677 [09:03:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:46]execute_script... [09:03:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:46]POST & json_proto [09:03:46]process_json_proto [09:03:46]json parsed OK: [09:03:46]protocol is kg_v1.0 [09:03:46]action value=close_receipt [09:03:46]process_action close_receipt [09:03:46]cmd_close_receipt [09:03:46]MH_GetDate [09:03:46]Write to MH i2c: F0 00 00 37 03 29 [09:03:46]Write i2c OK [09:03:46]MH_I2C_Read... [09:03:46]Read from MH i2c: F0 [09:03:46]MH_I2C_Read... [09:03:46]Read from MH i2c: F0 09 00 [09:03:46]MH_I2C_Read... [09:03:46]Read from MH i2c: F0 09 00 37 03 00 F2 D2 10 67 F1 C7 6B 64 F4 [09:03:46]GetLastDocTimeStamp 1729155796 [09:03:46]current date 1729155826 [09:03:46]FM_GetShiftState [09:03:46]SAM_PROTO_GetShiftState [09:03:46]wFMCommunicate request_size=4 [09:03:46]MH_SAM_APDU [09:03:46]CAPDU: 80 13 01 00 [09:03:46]Write to MH i2c: E2 08 00 38 03 80 13 01 00 00 00 00 00 B8 [09:03:46]Write i2c OK [09:03:46]MH_I2C_Read... [09:03:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:46]Read from MH i2c: E2 [09:03:46]MH_I2C_Read... [09:03:46]Read from MH i2c: E2 0E 00 [09:03:46]MH_I2C_Read... [09:03:46]Read from MH i2c: E2 0E 00 38 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 C0 [09:03:46]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:03:46]wFMCommunicate OK [09:03:46]SAM_PROTO_GetShiftState done [09:03:46]FM_GetShiftState done [09:03:46]opened in 1729125927 [09:03:46]opened+sec_in_day 1729212327 [09:03:46]quantity*price = 20003 [09:03:46]sum+1 = 20004 [09:03:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 18 17.10.2024 09:03 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82092 ФПД: 102232916382603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T090346&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82092&fm=102232916382603&tin=02508201610067®Number=0000000000091680&sum=20000 [09:03:47]StoreToDocumentArchive [09:03:47]shift 525 fd 82092 [09:03:47]save to /storage/0525/doc_00082092 [09:03:47]save last doc name /storage/0525/doc_00082092 to /storage/kkm_last_doc_name [09:03:47]save OK [09:03:47]Clear old archive folders... [09:03:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:03:47]tlvbuf is 01AEC300 [09:03:47]SAM_PROTO_ClearQueue [09:03:47]wFMCommunicate request_size=4 [09:03:47]MH_SAM_APDU [09:03:47]CAPDU: 80 09 00 00 [09:03:47]Write to MH i2c: E2 08 00 45 03 80 09 00 00 00 00 00 00 BA [09:03:47]Write i2c OK [09:03:47]MH_I2C_Read... [09:03:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:47]Read from MH i2c: E2 [09:03:47]MH_I2C_Read... [09:03:47]Read from MH i2c: E2 03 00 [09:03:47]MH_I2C_Read... [09:03:47]Read from MH i2c: E2 03 00 45 03 00 90 00 BC [09:03:47]RAPDU: 90 00 [09:03:47]wFMCommunicate OK [09:03:47]SAM_PROTO_ClearQueue done [09:03:47]KKMCreateOFDPacket [09:03:47]OFDProtocolAddRootSTLVToBuf [09:03:47]FM_MakeSignedData [09:03:47]FM_MakeSignedData [09:03:47]SAM_PROTO_SignData [09:03:47]wFMCommunicate request_size=4 [09:03:47]MH_SAM_APDU [09:03:47]CAPDU: 80 0D 01 02 [09:03:47]Write to MH i2c: E2 08 00 46 03 80 0D 01 02 00 00 00 00 C2 [09:03:47]Write i2c OK [09:03:47]MH_I2C_Read... [09:03:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:47]Read from MH i2c: E2 [09:03:47]MH_I2C_Read... [09:03:47]Read from MH i2c: E2 03 00 [09:03:47]MH_I2C_Read... [09:03:47]Read from MH i2c: E2 03 00 46 03 00 90 00 BD [09:03:47]RAPDU: 90 00 [09:03:47]wFMCommunicate OK [09:03:47]wFMCommunicate request_size=255 [09:03:47]MH_SAM_APDU [09:03:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 F2 D2 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AC 40 01 00 35 04 06 00 5C [09:03:47]Write to MH i2c: E2 02 01 47 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 F2 D2 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AC 40 01 00 35 04 06 00 5C 00 00 B5 [09:03:47]Write i2c OK [09:03:47]MH_I2C_Read... [09:03:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:47]Read from MH i2c: E2 [09:03:47]MH_I2C_Read... [09:03:47]Read from MH i2c: E2 03 00 [09:03:47]MH_I2C_Read... [09:03:47]Read from MH i2c: E2 03 00 47 03 00 90 00 BE [09:03:47]RAPDU: 90 00 [09:03:47]wFMCommunicate OK [09:03:47]wFMCommunicate request_size=10 [09:03:47]MH_SAM_APDU [09:03:47]CAPDU: 80 0D 02 02 05 FA F4 AA 53 8B [09:03:47]Write to MH i2c: E2 0D 00 48 03 80 0D 02 02 05 00 FA F4 AA 53 8B 00 00 45 [09:03:47]Write i2c OK [09:03:47]MH_I2C_Read... [09:03:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:47]Read from MH i2c: E2 [09:03:47]MH_I2C_Read... [09:03:47]Read from MH i2c: E2 03 00 [09:03:47]MH_I2C_Read... [09:03:47]Read from MH i2c: E2 03 00 48 03 00 90 00 BF [09:03:47]RAPDU: 90 00 [09:03:47]wFMCommunicate OK [09:03:47]wFMCommunicate request_size=4 [09:03:47]MH_SAM_APDU [09:03:47]CAPDU: 80 0D 03 02 [09:03:47]Write to MH i2c: E2 08 00 49 03 80 0D 03 02 00 00 00 00 C7 [09:03:47]Write i2c OK [09:03:47]MH_I2C_Read... [09:03:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:47]Read from MH i2c: E2 [09:03:47]MH_I2C_Read... [09:03:47]Read from MH i2c: E2 0B 00 [09:03:47]MH_I2C_Read... [09:03:47]Read from MH i2c: E2 0B 00 49 03 00 DD 8F E8 56 E3 89 C5 D2 90 00 75 [09:03:47]RAPDU: DD 8F E8 56 E3 89 C5 D2 90 00 [09:03:47]wFMCommunicate OK [09:03:47]SAM_PROTO_SignData done [09:03:47]FM_MakeSignedData done [09:03:47]CreateOFDProtocolMessage [09:03:47]wFMCommunicate request_size=4 [09:03:47]MH_SAM_APDU [09:03:47]CAPDU: 80 11 00 00 [09:03:47]Write to MH i2c: E2 08 00 4A 03 80 11 00 00 00 00 00 00 C7 [09:03:47]Write i2c OK [09:03:47]MH_I2C_Read... [09:03:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:47]Read from MH i2c: E2 [09:03:47]MH_I2C_Read... [09:03:47]Read from MH i2c: E2 17 00 [09:03:47]MH_I2C_Read... [09:03:47]Read from MH i2c: E2 17 00 4A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 19 [09:03:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:03:47]wFMCommunicate OK [09:03:47]CreateOFDProtocolMessage done [09:03:47]OFDSenderStorePacket 82092 [09:03:47]StoreOFDPacket docnum=82092 [09:03:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 2B DA 07 01 B6 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 F2 D2 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AC 40 01 00 35 04 06 00 5C FA F4 AA 53 8B DD 8F E8 56 E3 89 C5 D2 [09:03:47]CheckFolder [09:03:47]dirname=/storage/ofd_packets [09:03:47]CheckFolder done [09:03:47]ProducePacketName [09:03:47]name=ofd_packets/00082092 [09:03:47]NVStorageSaveData ofd_packets/00082092 [09:03:47]File name is /storage/ofd_packets/00082092 [09:03:47]Write 301 bytes [09:03:47]NVStorageSaveData done [09:03:47]OFDSenderStorePacket done [09:03:47]KKMCreateOFDPacket done [09:03:47]NVStorageSaveData kkm_last_timestamp [09:03:47]File name is /storage/kkm_last_timestamp [09:03:47]Write 4 bytes [09:03:47]NVStorageSaveData done [09:03:47]ExternCall_PrintAddStr [09:03:47]wPrintStart [09:03:47]Write to MH i2c: 01 00 00 4B 03 4E [09:03:47]Write i2c OK [09:03:47]MH_I2C_Read... [09:03:47]Read from MH i2c: 01 [09:03:47]MH_I2C_Read... [09:03:47]Read from MH i2c: 01 07 00 [09:03:47]MH_I2C_Read... [09:03:47]Read from MH i2c: 01 07 00 4B 03 00 00 00 00 00 FF 0F 63 [09:03:47]RasterBufferAndPrint [09:03:47]line Счет N : (1)918598 [09:03:47]line ИНН: 02508201610067 [09:03:47]line Контрольно-Кассовый Чек [09:03:47]line ПРОДАЖА [09:03:47]line ТРК (МРК, ГНК) : 22 [09:03:47]line Товар: 2710124130 [09:03:47]line Аи-92-К-4 [09:03:47]line 2.990 * 66.90 [09:03:47]line = 200.03 [09:03:47]line НДС 12% НСП 1% [09:03:47]line > о реализуемом товаре [09:03:47]line ОКРУГЛЕНИЕ: -0.03 [09:03:47]line ИТОГО: 200.00 [09:03:47]line Внесено: 200.00 [09:03:47]line СДАЧА: 0.00 [09:03:47]line НСП 1% : 1.77 [09:03:47]line НДС 12% : 21.24 [09:03:47]line Наличными: 200.00 [09:03:47]line Безнал.: 0.00 [09:03:47]line Место: АЗС № 114 "Партнер Нефть" [09:03:47]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:03:47]line СНО: Общий режим [09:03:47]line Чек 18 17.10.2024 09:03 [09:03:47]line Смена: 525 ФФД: 1.0 [09:03:47]line ЗНМ: 0300000086 [09:03:47]line РНМ: 0000000000091680 [09:03:47]line Версия ККМ: 001 [09:03:47]line ФМ: 0000000000871843 [09:03:47]line ФД: 82092 [09:03:47]line ФПД: 102232916382603 [09:03:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T090346&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82092&fm=102232916382603&tin=02508201610067®Number=0000000000091680&sum=20000 [09:03:48]OFD Sender: Processing packet 82092 [packets to send 254, broken 253] [09:03:48]ProducePacketName [09:03:48]name=ofd_packets/00082092 [09:03:48]OFD Sender: To server: pG, [09:03:48]CommunicateWithHost lk.salyk.kg:30040 [09:03:48]ConnectInit lk.salyk.kg [09:03:48]written 0, free lines is 4095 [09:03:48]Connected sock=9 [09:03:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 2B DA 07 01 B6 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 F2 D2 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AC 40 01 00 35 04 06 00 5C FA F4 AA 53 8B DD 8F E8 56 E3 89 C5 D2 [09:03:48]Write to MH i2c: 01 00 00 76 03 79 [09:03:48]Write i2c OK [09:03:48]MH_I2C_Read... [09:03:48]Read from MH i2c: 01 [09:03:48]MH_I2C_Read... [09:03:48]Read from MH i2c: 01 07 00 [09:03:48]MH_I2C_Read... [09:03:48]Read from MH i2c: 01 07 00 76 03 00 00 00 00 00 EF 0C 7B [09:03:48]RasterBufferAndPrint [09:03:48]line [09:03:48]line [09:03:48]line [09:03:48]line [09:03:48]line [09:03:48]written 0, free lines is 3317 [09:03:48]MH_Cut [09:03:48]Write to MH i2c: D1 01 00 7D 03 01 52 [09:03:48]Write i2c OK [09:03:48]MH_I2C_Read... [09:03:48]Read from MH i2c: D1 [09:03:48]MH_I2C_Read... [09:03:48]Read from MH i2c: D1 01 00 [09:03:48]MH_I2C_Read... [09:03:48]Read from MH i2c: D1 01 00 7D 03 00 51 [09:03:48]Write to MH i2c: 01 00 00 7E 03 81 [09:03:48]Write i2c OK [09:03:48]MH_I2C_Read... [09:03:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 F6 4C 47 00 77 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AC 40 01 00 F4 03 04 00 31 78 10 67 B6 04 01 00 00 80 31 C3 59 C8 BD D9 81 [09:03:49]CommunicateWithHost err = 0 [09:03:49]CheckOFDResponse [09:03:49]1017 (14) - 77093643461234 [09:03:49]1041 (16) - 0000000000871843 [09:03:49]1040 (4) - 82092 [09:03:49]1012 (4) - 17.10.2024 02:36 [09:03:49]1206 (1) - 0 [09:03:49]OFD Sender: Remove packet 82092 [09:03:49]ProducePacketName [09:03:49]name=ofd_packets/00082092 [09:03:49]NVStorageDeleteData [09:03:49]*** Cut start [09:03:49]*** Partial cut [09:03:49]*** CUTSNS_PIN = 1 [09:03:49]*** CUTSNS_PIN = 0 [09:03:49]OFD Sender: No OFD packet to send [09:03:49]*** Brake cut motor [09:03:50]Read from MH i2c: 01 [09:03:50]MH_I2C_Read... [09:03:50]*** Stop cut motor [09:03:50]*** Cut end [09:03:50]Read from MH i2c: 01 07 00 [09:03:50]MH_I2C_Read... [09:03:50]Read from MH i2c: 01 07 00 7E 03 00 00 00 00 00 FF 0F 96 [09:03:50]process_action close_receipt done [09:03:50]requested_data is exist [09:03:50]produce_requested_data [09:03:50]requested_item fm.sn is exist - process it [09:03:50]wFMCommunicate request_size=4 [09:03:50]MH_SAM_APDU [09:03:50]CAPDU: 80 11 00 00 [09:03:50]Write to MH i2c: E2 08 00 7F 03 80 11 00 00 00 00 00 00 FC [09:03:50]Write i2c OK [09:03:50]MH_I2C_Read... [09:03:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:50]Read from MH i2c: E2 [09:03:50]MH_I2C_Read... [09:03:50]Read from MH i2c: E2 17 00 [09:03:50]MH_I2C_Read... [09:03:50]Read from MH i2c: E2 17 00 7F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 4E [09:03:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:03:50]wFMCommunicate OK [09:03:50]requested_item fd.num is exist - process it [09:03:50]SAM_PROTO_GetFieldsCounters [09:03:50]wFMCommunicate request_size=4 [09:03:50]MH_SAM_APDU [09:03:50]CAPDU: 80 13 00 00 [09:03:50]Write to MH i2c: E2 08 00 80 03 80 13 00 00 00 00 00 00 FF [09:03:50]Write i2c OK [09:03:50]MH_I2C_Read... [09:03:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:50]Read from MH i2c: E2 [09:03:50]MH_I2C_Read... [09:03:50]Read from MH i2c: E2 62 00 [09:03:50]MH_I2C_Read... [09:03:50]Read from MH i2c: E2 62 00 80 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 AC 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [09:03:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 AC 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:03:50]wFMCommunicate OK [09:03:50]SAM_PROTO_GetFieldsCounters done [09:03:50]requested_item shift.num is exist - process it [09:03:50]requested_item shift.opened is exist - process it [09:03:50]req_shift_opened [09:03:50]FM_GetShiftState [09:03:50]SAM_PROTO_GetShiftState [09:03:50]wFMCommunicate request_size=4 [09:03:50]MH_SAM_APDU [09:03:50]CAPDU: 80 13 01 00 [09:03:50]Write to MH i2c: E2 08 00 81 03 80 13 01 00 00 00 00 00 01 [09:03:50]Write i2c OK [09:03:50]MH_I2C_Read... [09:03:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:50]Read from MH i2c: E2 [09:03:50]MH_I2C_Read... [09:03:50]Read from MH i2c: E2 0E 00 [09:03:50]MH_I2C_Read... [09:03:50]Read from MH i2c: E2 0E 00 81 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 09 [09:03:50]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:03:50]wFMCommunicate OK [09:03:50]SAM_PROTO_GetShiftState done [09:03:50]FM_GetShiftState done [09:03:50]req_shift_opened done [09:03:50]requested_item shift.open_date is exist - process it [09:03:50]req_shift_open_date [09:03:50]req_shift_open_date done [09:03:50]produce_requested_data done [09:03:50]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82092,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [09:03:50]process_action_free close_receipt [09:03:50]json_value_free [09:03:50]json_value_free done [09:03:50]process_json_proto returns [09:03:50]Send response to host [09:03:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82092,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [09:03:50]free response buf [09:03:50]execute_script done [09:03:50]execute_script returns [09:03:50]free content buf [09:03:50]Sock 8.Close socket [09:03:50]Sock 8.Thread stoped [09:03:54]OFD Sender: No OFD packet to send [09:03:59]OFD Sender: No OFD packet to send [09:04:04]OFD Sender: No OFD packet to send [09:04:09]OFD Sender: No OFD packet to send [09:04:12]recv_with_timeout no data received [09:04:14]OFD Sender: No OFD packet to send [09:04:19]OFD Sender: No OFD packet to send [09:04:24]OFD Sender: No OFD packet to send [09:04:26]recv_with_timeout no data received [09:04:29]OFD Sender: No OFD packet to send [09:04:34]OFD Sender: No OFD packet to send [09:04:39]OFD Sender: No OFD packet to send [09:04:44]OFD Sender: No OFD packet to send [09:04:49]OFD Sender: No OFD packet to send [09:04:54]OFD Sender: No OFD packet to send [09:04:59]OFD Sender: No OFD packet to send [09:05:04]OFD Sender: No OFD packet to send [09:05:09]OFD Sender: No OFD packet to send [09:05:14]OFD Sender: No OFD packet to send [09:05:19]OFD Sender: No OFD packet to send [09:05:24]OFD Sender: No OFD packet to send [09:05:29]OFD Sender: No OFD packet to send [09:05:34]OFD Sender: No OFD packet to send [09:05:39]OFD Sender: No OFD packet to send [09:05:44]OFD Sender: No OFD packet to send [09:05:49]OFD Sender: No OFD packet to send [09:05:54]OFD Sender: No OFD packet to send [09:05:59]OFD Sender: No OFD packet to send [09:06:04]OFD Sender: No OFD packet to send [09:06:09]OFD Sender: No OFD packet to send [09:06:14]OFD Sender: No OFD packet to send [09:06:19]OFD Sender: No OFD packet to send [09:06:24]OFD Sender: No OFD packet to send [09:06:29]OFD Sender: No OFD packet to send [09:06:34]OFD Sender: No OFD packet to send [09:06:39]OFD Sender: No OFD packet to send [09:06:44]OFD Sender: No OFD packet to send [09:06:49]OFD Sender: No OFD packet to send [09:06:54]OFD Sender: No OFD packet to send [09:06:59]OFD Sender: No OFD packet to send [09:07:04]OFD Sender: No OFD packet to send [09:07:09]OFD Sender: No OFD packet to send [09:07:14]OFD Sender: No OFD packet to send [09:07:19]OFD Sender: No OFD packet to send [09:07:24]OFD Sender: No OFD packet to send [09:07:29]OFD Sender: No OFD packet to send [09:07:34]OFD Sender: No OFD packet to send [09:07:39]OFD Sender: No OFD packet to send [09:07:44]OFD Sender: No OFD packet to send [09:07:49]OFD Sender: No OFD packet to send [09:07:54]OFD Sender: No OFD packet to send [09:07:59]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:50]OFD Sender: No OFD packet to send [09:08:55]OFD Sender: No OFD packet to send [09:08:58]accept exits with 10 [09:08:58]New connection [09:08:58]New thread 3067522404 created [09:08:58]Thread 3067379044 joined [09:08:58]Waiting for new connection... [09:08:58] Sock 10.Parse request [09:08:58]Sock 10.Check first char [09:08:58]Sock 10.First char is OK [09:08:58]request: POST /json_proto HTTP/1.0 [09:08:58]Method: POST [09:08:58]URL: /json_proto [09:08:58]Method is POST - this is cgi request [09:08:58]url: /json_proto [09:08:58]query_string will be loaded in cgi processing [09:08:58]execute_cgi json_proto POST (null) [09:08:58]execute_cgi path=json_proto method=POST [09:08:58]POST find Content-Length [09:08:58]Host: 172.17.44.67:8080 [09:08:58]Content-Length: 754 [09:08:58]Content-Type: application/json [09:08:58] [09:08:58]POST finish read [09:08:58]Found Content-Length = 754 [09:08:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30081287", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:58]execute_script... [09:08:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30081287", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:58]POST & json_proto [09:08:58]process_json_proto [09:08:58]json parsed OK: [09:08:58]protocol is kg_v1.0 [09:08:58]action value=close_receipt [09:08:58]process_action close_receipt [09:08:58]cmd_close_receipt [09:08:58]MH_GetDate [09:08:58]Write to MH i2c: F0 00 00 82 03 74 [09:08:58]Write i2c OK [09:08:58]MH_I2C_Read... [09:08:58]Read from MH i2c: F0 [09:08:58]MH_I2C_Read... [09:08:58]Read from MH i2c: F0 09 00 [09:08:58]MH_I2C_Read... [09:08:58]Read from MH i2c: F0 09 00 82 03 00 2B D4 10 67 F1 C7 6B 64 7A [09:08:58]GetLastDocTimeStamp 1729155826 [09:08:58]current date 1729156139 [09:08:58]FM_GetShiftState [09:08:58]SAM_PROTO_GetShiftState [09:08:58]wFMCommunicate request_size=4 [09:08:58]MH_SAM_APDU [09:08:58]CAPDU: 80 13 01 00 [09:08:58]Write to MH i2c: E2 08 00 83 03 80 13 01 00 00 00 00 00 03 [09:08:58]Write i2c OK [09:08:58]MH_I2C_Read... [09:08:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:58]Read from MH i2c: E2 [09:08:58]MH_I2C_Read... [09:08:58]Read from MH i2c: E2 0E 00 [09:08:58]MH_I2C_Read... [09:08:58]Read from MH i2c: E2 0E 00 83 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 0B [09:08:58]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:08:58]wFMCommunicate OK [09:08:58]SAM_PROTO_GetShiftState done [09:08:58]FM_GetShiftState done [09:08:58]opened in 1729125927 [09:08:58]opened+sec_in_day 1729212327 [09:08:58]quantity*price = 0 [09:08:58]sum+1 = 1 [09:08:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 19 17.10.2024 09:08 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30081287 ФМ: 0000000000871843 ФД: 82093 ФПД: 263577658452908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T090859&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82093&fm=263577658452908&tin=02508201610067®Number=0000000000091680&sum=0 [09:08:59]StoreToDocumentArchive [09:08:59]shift 525 fd 82093 [09:08:59]save to /storage/0525/doc_00082093 [09:08:59]save last doc name /storage/0525/doc_00082093 to /storage/kkm_last_doc_name [09:08:59]save OK [09:08:59]Clear old archive folders... [09:08:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:08:59]tlvbuf is 01B4D3D0 [09:08:59]SAM_PROTO_ClearQueue [09:08:59]wFMCommunicate request_size=4 [09:08:59]MH_SAM_APDU [09:08:59]CAPDU: 80 09 00 00 [09:08:59]Write to MH i2c: E2 08 00 90 03 80 09 00 00 00 00 00 00 05 [09:08:59]Write i2c OK [09:08:59]MH_I2C_Read... [09:08:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:59]Read from MH i2c: E2 [09:08:59]MH_I2C_Read... [09:08:59]Read from MH i2c: E2 03 00 [09:08:59]MH_I2C_Read... [09:08:59]Read from MH i2c: E2 03 00 90 03 00 90 00 07 [09:08:59]RAPDU: 90 00 [09:08:59]wFMCommunicate OK [09:08:59]SAM_PROTO_ClearQueue done [09:08:59]KKMCreateOFDPacket [09:08:59]OFDProtocolAddRootSTLVToBuf [09:08:59]FM_MakeSignedData [09:08:59]FM_MakeSignedData [09:08:59]SAM_PROTO_SignData [09:08:59]wFMCommunicate request_size=4 [09:08:59]MH_SAM_APDU [09:08:59]CAPDU: 80 0D 01 02 [09:08:59]Write to MH i2c: E2 08 00 91 03 80 0D 01 02 00 00 00 00 0D [09:08:59]Write i2c OK [09:08:59]MH_I2C_Read... [09:08:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:59]Read from MH i2c: E2 [09:08:59]MH_I2C_Read... [09:08:59]Read from MH i2c: E2 03 00 [09:08:59]MH_I2C_Read... [09:08:59]Read from MH i2c: E2 03 00 91 03 00 90 00 08 [09:08:59]RAPDU: 90 00 [09:08:59]wFMCommunicate OK [09:08:59]wFMCommunicate request_size=255 [09:08:59]MH_SAM_APDU [09:08:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 2B D4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AD 40 01 00 35 04 06 00 EF [09:08:59]Write to MH i2c: E2 02 01 92 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 2B D4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AD 40 01 00 35 04 06 00 EF 00 00 F7 [09:08:59]Write i2c OK [09:08:59]MH_I2C_Read... [09:09:00]OFD Sender: No OFD packet to send [09:09:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:00]Read from MH i2c: E2 [09:09:00]MH_I2C_Read... [09:09:00]Read from MH i2c: E2 03 00 [09:09:00]MH_I2C_Read... [09:09:00]Read from MH i2c: E2 03 00 92 03 00 90 00 09 [09:09:00]RAPDU: 90 00 [09:09:00]wFMCommunicate OK [09:09:00]wFMCommunicate request_size=10 [09:09:00]MH_SAM_APDU [09:09:00]CAPDU: 80 0D 02 02 05 B8 F4 B3 EB AC [09:09:00]Write to MH i2c: E2 0D 00 93 03 80 0D 02 02 05 00 B8 F4 B3 EB AC 00 00 10 [09:09:00]Write i2c OK [09:09:00]MH_I2C_Read... [09:09:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:00]Read from MH i2c: E2 [09:09:00]MH_I2C_Read... [09:09:00]Read from MH i2c: E2 03 00 [09:09:00]MH_I2C_Read... [09:09:00]Read from MH i2c: E2 03 00 93 03 00 90 00 0A [09:09:00]RAPDU: 90 00 [09:09:00]wFMCommunicate OK [09:09:00]wFMCommunicate request_size=4 [09:09:00]MH_SAM_APDU [09:09:00]CAPDU: 80 0D 03 02 [09:09:00]Write to MH i2c: E2 08 00 94 03 80 0D 03 02 00 00 00 00 12 [09:09:00]Write i2c OK [09:09:00]MH_I2C_Read... [09:09:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:00]Read from MH i2c: E2 [09:09:00]MH_I2C_Read... [09:09:00]Read from MH i2c: E2 0B 00 [09:09:00]MH_I2C_Read... [09:09:00]Read from MH i2c: E2 0B 00 94 03 00 1B 23 95 9B 3E 1D 42 39 90 00 57 [09:09:00]RAPDU: 1B 23 95 9B 3E 1D 42 39 90 00 [09:09:00]wFMCommunicate OK [09:09:00]SAM_PROTO_SignData done [09:09:00]FM_MakeSignedData done [09:09:00]CreateOFDProtocolMessage [09:09:00]wFMCommunicate request_size=4 [09:09:00]MH_SAM_APDU [09:09:00]CAPDU: 80 11 00 00 [09:09:00]Write to MH i2c: E2 08 00 95 03 80 11 00 00 00 00 00 00 12 [09:09:00]Write i2c OK [09:09:00]MH_I2C_Read... [09:09:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:00]Read from MH i2c: E2 [09:09:00]MH_I2C_Read... [09:09:00]Read from MH i2c: E2 17 00 [09:09:00]MH_I2C_Read... [09:09:00]Read from MH i2c: E2 17 00 95 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 64 [09:09:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:09:00]wFMCommunicate OK [09:09:00]CreateOFDProtocolMessage done [09:09:00]OFDSenderStorePacket 82093 [09:09:00]StoreOFDPacket docnum=82093 [09:09:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 AD B7 07 01 5A F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 2B D4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AD 40 01 00 35 04 06 00 EF B8 F4 B3 EB AC 1B 23 95 9B 3E 1D 42 39 [09:09:00]CheckFolder [09:09:00]dirname=/storage/ofd_packets [09:09:00]CheckFolder done [09:09:00]ProducePacketName [09:09:00]name=ofd_packets/00082093 [09:09:00]NVStorageSaveData ofd_packets/00082093 [09:09:00]File name is /storage/ofd_packets/00082093 [09:09:00]Write 301 bytes [09:09:00]NVStorageSaveData done [09:09:00]OFDSenderStorePacket done [09:09:00]KKMCreateOFDPacket done [09:09:00]NVStorageSaveData kkm_last_timestamp [09:09:00]File name is /storage/kkm_last_timestamp [09:09:00]Write 4 bytes [09:09:00]NVStorageSaveData done [09:09:00]ExternCall_PrintAddStr [09:09:00]wPrintStart [09:09:00]Write to MH i2c: 01 00 00 96 03 99 [09:09:00]Write i2c OK [09:09:00]MH_I2C_Read... [09:09:00]Read from MH i2c: 01 [09:09:00]MH_I2C_Read... [09:09:00]Read from MH i2c: 01 07 00 [09:09:00]MH_I2C_Read... [09:09:00]Read from MH i2c: 01 07 00 96 03 00 00 00 00 00 FF 0F AE [09:09:00]RasterBufferAndPrint [09:09:00]line Счет N : (1)918600 [09:09:00]line ИНН: 02508201610067 [09:09:00]line Контрольно-Кассовый Чек [09:09:00]line ПРОДАЖА [09:09:00]line ТРК (МРК, ГНК) : 11 [09:09:00]line Товар: 2710124130 [09:09:00]line Аи-92-К-4 [09:09:00]line 20.000 * 0.00 [09:09:00]line = 0.00 [09:09:00]line НДС 12% НСП 1% [09:09:00]line > о реализуемом товаре [09:09:00]line ИТОГО: 0.00 [09:09:00]line НСП 1% : 0.00 [09:09:00]line НДС 12% : 0.00 [09:09:00]line Наличными: 0.00 [09:09:00]line Безнал.: 0.00 [09:09:00]line Место: АЗС № 114 "Партнер Нефть" [09:09:00]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:09:00]line СНО: Общий режим [09:09:00]line Чек 19 17.10.2024 09:08 [09:09:00]line Смена: 525 ФФД: 1.0 [09:09:00]line ЗНМ: 0300000086 [09:09:00]line РНМ: 0000000000091680 [09:09:00]line Версия ККМ: 001 [09:09:00]line Талоны: ТК ГПНА Online [09:09:00]line 30081287 [09:09:00]line ФМ: 0000000000871843 [09:09:00]line ФД: 82093 [09:09:00]line ФПД: 263577658452908 [09:09:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T090859&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82093&fm=263577658452908&tin=02508201610067®Number=0000000000091680&sum=0 [09:09:00]OFD Sender: Processing packet 82093 [packets to send 254, broken 253] [09:09:00]ProducePacketName [09:09:00]name=ofd_packets/00082093 [09:09:00]OFD Sender: To server: pG, [09:09:00]CommunicateWithHost lk.salyk.kg:30040 [09:09:00]ConnectInit lk.salyk.kg [09:09:00]written 0, free lines is 4095 [09:09:01]Write to MH i2c: 01 00 00 C0 03 C3 [09:09:01]Write i2c OK [09:09:01]MH_I2C_Read... [09:09:01]Read from MH i2c: 01 [09:09:01]MH_I2C_Read... [09:09:01]Read from MH i2c: 01 07 00 [09:09:01]MH_I2C_Read... [09:09:01]Read from MH i2c: 01 07 00 C0 03 00 00 00 00 00 F1 0C C7 [09:09:01]RasterBufferAndPrint [09:09:01]line [09:09:01]line [09:09:01]line [09:09:01]line [09:09:01]line [09:09:01]written 0, free lines is 3319 [09:09:01]MH_Cut [09:09:01]Write to MH i2c: D1 01 00 C7 03 01 9C [09:09:01]Write i2c OK [09:09:01]MH_I2C_Read... [09:09:01]Read from MH i2c: D1 [09:09:01]MH_I2C_Read... [09:09:01]Read from MH i2c: D1 01 00 [09:09:01]MH_I2C_Read... [09:09:01]Read from MH i2c: D1 01 00 C7 03 00 9B [09:09:01]Write to MH i2c: 01 00 00 C8 03 CB [09:09:01]Write i2c OK [09:09:01]MH_I2C_Read... [09:09:01]Connected sock=9 [09:09:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 AD B7 07 01 5A F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 2B D4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AD 40 01 00 35 04 06 00 EF B8 F4 B3 EB AC 1B 23 95 9B 3E 1D 42 39 [09:09:01]*** Cut start [09:09:01]*** Partial cut [09:09:01]*** CUTSNS_PIN = 1 [09:09:01]*** CUTSNS_PIN = 0 [09:09:02]*** Brake cut motor [09:09:02]Read from MH i2c: 01 [09:09:02]MH_I2C_Read... [09:09:02]*** Stop cut motor [09:09:02]*** Cut end [09:09:02]Read from MH i2c: 01 07 00 [09:09:02]MH_I2C_Read... [09:09:02]Read from MH i2c: 01 07 00 C8 03 00 00 00 00 00 FF 0F E0 [09:09:02]process_action close_receipt done [09:09:02]requested_data is exist [09:09:02]produce_requested_data [09:09:02]requested_item fm.sn is exist - process it [09:09:02]wFMCommunicate request_size=4 [09:09:02]MH_SAM_APDU [09:09:02]CAPDU: 80 11 00 00 [09:09:02]Write to MH i2c: E2 08 00 C9 03 80 11 00 00 00 00 00 00 46 [09:09:02]Write i2c OK [09:09:02]MH_I2C_Read... [09:09:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:02]Read from MH i2c: E2 [09:09:02]MH_I2C_Read... [09:09:02]Read from MH i2c: E2 17 00 [09:09:02]MH_I2C_Read... [09:09:02]Read from MH i2c: E2 17 00 C9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 98 [09:09:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:09:02]wFMCommunicate OK [09:09:02]requested_item fd.num is exist - process it [09:09:02]SAM_PROTO_GetFieldsCounters [09:09:02]wFMCommunicate request_size=4 [09:09:02]MH_SAM_APDU [09:09:02]CAPDU: 80 13 00 00 [09:09:02]Write to MH i2c: E2 08 00 CA 03 80 13 00 00 00 00 00 00 49 [09:09:02]Write i2c OK [09:09:02]MH_I2C_Read... [09:09:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:02]Read from MH i2c: E2 [09:09:02]MH_I2C_Read... [09:09:02]Read from MH i2c: E2 62 00 [09:09:02]MH_I2C_Read... [09:09:02]Read from MH i2c: E2 62 00 CA 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 AD 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [09:09:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 AD 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:09:02]wFMCommunicate OK [09:09:02]SAM_PROTO_GetFieldsCounters done [09:09:02]requested_item shift.num is exist - process it [09:09:02]requested_item shift.opened is exist - process it [09:09:02]req_shift_opened [09:09:02]FM_GetShiftState [09:09:02]SAM_PROTO_GetShiftState [09:09:02]wFMCommunicate request_size=4 [09:09:02]MH_SAM_APDU [09:09:02]CAPDU: 80 13 01 00 [09:09:02]Write to MH i2c: E2 08 00 CB 03 80 13 01 00 00 00 00 00 4B [09:09:02]Write i2c OK [09:09:02]MH_I2C_Read... [09:09:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:02]Read from MH i2c: E2 [09:09:02]MH_I2C_Read... [09:09:02]Read from MH i2c: E2 0E 00 [09:09:02]MH_I2C_Read... [09:09:02]Read from MH i2c: E2 0E 00 CB 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 53 [09:09:02]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:09:02]wFMCommunicate OK [09:09:02]SAM_PROTO_GetShiftState done [09:09:02]FM_GetShiftState done [09:09:02]req_shift_opened done [09:09:02]requested_item shift.open_date is exist - process it [09:09:02]req_shift_open_date [09:09:02]req_shift_open_date done [09:09:02]produce_requested_data done [09:09:02]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82093,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [09:09:02]process_action_free close_receipt [09:09:02]json_value_free [09:09:02]json_value_free done [09:09:02]process_json_proto returns [09:09:02]Send response to host [09:09:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82093,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [09:09:02]free response buf [09:09:02]execute_script done [09:09:02]execute_script returns [09:09:02]free content buf [09:09:02]Sock 10.Close socket [09:09:02]Sock 10.Thread stoped [09:09:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 0B C0 47 00 9B 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AD 40 01 00 F4 03 04 00 6A 79 10 67 B6 04 01 00 00 64 E0 ED EC 71 30 DD DB [09:09:03]CommunicateWithHost err = 0 [09:09:03]CheckOFDResponse [09:09:03]1017 (14) - 77093643461234 [09:09:03]1041 (16) - 0000000000871843 [09:09:03]1040 (4) - 82093 [09:09:03]1012 (4) - 17.10.2024 02:41 [09:09:03]1206 (1) - 0 [09:09:03]OFD Sender: Remove packet 82093 [09:09:03]ProducePacketName [09:09:03]name=ofd_packets/00082093 [09:09:03]NVStorageDeleteData [09:09:03]OFD Sender: No OFD packet to send [09:09:08]OFD Sender: No OFD packet to send [09:09:12]accept exits with 8 [09:09:12]New connection [09:09:12]New thread 3067379044 created [09:09:12]Thread 3067522404 joined [09:09:12]Waiting for new connection... [09:09:12] Sock 8.Parse request [09:09:12]Sock 8.Check first char [09:09:12]Sock 8.First char is OK [09:09:12]request: POST /json_proto HTTP/1.0 [09:09:12]Method: POST [09:09:12]URL: /json_proto [09:09:12]Method is POST - this is cgi request [09:09:12]url: /json_proto [09:09:12]query_string will be loaded in cgi processing [09:09:12]execute_cgi json_proto POST (null) [09:09:12]execute_cgi path=json_proto method=POST [09:09:12]POST find Content-Length [09:09:12]Host: 172.17.44.67:8080 [09:09:12]Content-Length: 754 [09:09:12]Content-Type: application/json [09:09:12] [09:09:12]POST finish read [09:09:12]Found Content-Length = 754 [09:09:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 46.850, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30139226", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:12]execute_script... [09:09:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 46.850, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30139226", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:12]POST & json_proto [09:09:12]process_json_proto [09:09:12]json parsed OK: [09:09:12]protocol is kg_v1.0 [09:09:12]action value=close_receipt [09:09:12]process_action close_receipt [09:09:12]cmd_close_receipt [09:09:12]MH_GetDate [09:09:12]Write to MH i2c: F0 00 00 CC 03 BE [09:09:12]Write i2c OK [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: F0 [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: F0 09 00 [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: F0 09 00 CC 03 00 39 D4 10 67 F1 C7 6B 64 D2 [09:09:12]GetLastDocTimeStamp 1729156139 [09:09:12]current date 1729156153 [09:09:12]FM_GetShiftState [09:09:12]SAM_PROTO_GetShiftState [09:09:12]wFMCommunicate request_size=4 [09:09:12]MH_SAM_APDU [09:09:12]CAPDU: 80 13 01 00 [09:09:12]Write to MH i2c: E2 08 00 CD 03 80 13 01 00 00 00 00 00 4D [09:09:12]Write i2c OK [09:09:12]MH_I2C_Read... [09:09:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:12]Read from MH i2c: E2 [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: E2 0E 00 [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: E2 0E 00 CD 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 55 [09:09:12]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:09:12]wFMCommunicate OK [09:09:12]SAM_PROTO_GetShiftState done [09:09:12]FM_GetShiftState done [09:09:12]opened in 1729125927 [09:09:12]opened+sec_in_day 1729212327 [09:09:12]quantity*price = 0 [09:09:12]sum+1 = 1 [09:09:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 20 17.10.2024 09:09 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30139226 ФМ: 0000000000871843 ФД: 82094 ФПД: 69793193576466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T090913&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82094&fm=69793193576466&tin=02508201610067®Number=0000000000091680&sum=0 [09:09:14]StoreToDocumentArchive [09:09:14]shift 525 fd 82094 [09:09:14]save to /storage/0525/doc_00082094 [09:09:14]save last doc name /storage/0525/doc_00082094 to /storage/kkm_last_doc_name [09:09:14]save OK [09:09:14]Clear old archive folders... [09:09:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:09:14]tlvbuf is 01ADEC00 [09:09:14]SAM_PROTO_ClearQueue [09:09:14]wFMCommunicate request_size=4 [09:09:14]MH_SAM_APDU [09:09:14]CAPDU: 80 09 00 00 [09:09:14]Write to MH i2c: E2 08 00 DA 03 80 09 00 00 00 00 00 00 4F [09:09:14]Write i2c OK [09:09:14]MH_I2C_Read... [09:09:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:14]Read from MH i2c: E2 [09:09:14]MH_I2C_Read... [09:09:14]Read from MH i2c: E2 03 00 [09:09:14]MH_I2C_Read... [09:09:14]Read from MH i2c: E2 03 00 DA 03 00 90 00 51 [09:09:14]RAPDU: 90 00 [09:09:14]wFMCommunicate OK [09:09:14]SAM_PROTO_ClearQueue done [09:09:14]KKMCreateOFDPacket [09:09:14]OFDProtocolAddRootSTLVToBuf [09:09:14]FM_MakeSignedData [09:09:14]FM_MakeSignedData [09:09:14]SAM_PROTO_SignData [09:09:14]wFMCommunicate request_size=4 [09:09:14]MH_SAM_APDU [09:09:14]CAPDU: 80 0D 01 02 [09:09:14]Write to MH i2c: E2 08 00 DB 03 80 0D 01 02 00 00 00 00 57 [09:09:14]Write i2c OK [09:09:14]MH_I2C_Read... [09:09:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:14]Read from MH i2c: E2 [09:09:14]MH_I2C_Read... [09:09:14]Read from MH i2c: E2 03 00 [09:09:14]MH_I2C_Read... [09:09:14]Read from MH i2c: E2 03 00 DB 03 00 90 00 52 [09:09:14]RAPDU: 90 00 [09:09:14]wFMCommunicate OK [09:09:14]wFMCommunicate request_size=255 [09:09:14]MH_SAM_APDU [09:09:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 02 B7 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 39 D4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AE 40 01 00 35 04 06 00 3F [09:09:14]Write to MH i2c: E2 02 01 DC 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 02 B7 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 39 D4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AE 40 01 00 35 04 06 00 3F 00 00 EC [09:09:14]Write i2c OK [09:09:14]MH_I2C_Read... [09:09:14]Read from MH i2c: E2 [09:09:14]MH_I2C_Read... [09:09:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:14]Read from MH i2c: E2 03 00 [09:09:14]MH_I2C_Read... [09:09:14]Read from MH i2c: E2 03 00 DC 03 00 90 00 53 [09:09:14]RAPDU: 90 00 [09:09:14]wFMCommunicate OK [09:09:14]wFMCommunicate request_size=10 [09:09:14]MH_SAM_APDU [09:09:14]CAPDU: 80 0D 02 02 05 79 FE 82 C8 12 [09:09:14]Write to MH i2c: E2 0D 00 DD 03 80 0D 02 02 05 00 79 FE 82 C8 12 00 00 37 [09:09:14]Write i2c OK [09:09:14]MH_I2C_Read... [09:09:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:14]Read from MH i2c: E2 [09:09:14]MH_I2C_Read... [09:09:14]Read from MH i2c: E2 03 00 [09:09:14]MH_I2C_Read... [09:09:14]Read from MH i2c: E2 03 00 DD 03 00 90 00 54 [09:09:14]RAPDU: 90 00 [09:09:14]wFMCommunicate OK [09:09:14]wFMCommunicate request_size=4 [09:09:14]MH_SAM_APDU [09:09:14]CAPDU: 80 0D 03 02 [09:09:14]Write to MH i2c: E2 08 00 DE 03 80 0D 03 02 00 00 00 00 5C [09:09:14]Write i2c OK [09:09:14]MH_I2C_Read... [09:09:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:14]Read from MH i2c: E2 [09:09:14]MH_I2C_Read... [09:09:14]Read from MH i2c: E2 0B 00 [09:09:14]MH_I2C_Read... [09:09:14]Read from MH i2c: E2 0B 00 DE 03 00 01 CF 4B BE EC F6 10 ED 90 00 15 [09:09:14]RAPDU: 01 CF 4B BE EC F6 10 ED 90 00 [09:09:14]wFMCommunicate OK [09:09:14]SAM_PROTO_SignData done [09:09:14]FM_MakeSignedData done [09:09:14]CreateOFDProtocolMessage [09:09:14]wFMCommunicate request_size=4 [09:09:14]MH_SAM_APDU [09:09:14]CAPDU: 80 11 00 00 [09:09:14]Write to MH i2c: E2 08 00 DF 03 80 11 00 00 00 00 00 00 5C [09:09:14]Write i2c OK [09:09:14]MH_I2C_Read... [09:09:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:14]Read from MH i2c: E2 [09:09:14]MH_I2C_Read... [09:09:14]Read from MH i2c: E2 17 00 [09:09:14]MH_I2C_Read... [09:09:14]Read from MH i2c: E2 17 00 DF 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 AE [09:09:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:09:14]wFMCommunicate OK [09:09:14]CreateOFDProtocolMessage done [09:09:14]OFDSenderStorePacket 82094 [09:09:14]StoreOFDPacket docnum=82094 [09:09:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 D3 3C 07 01 C7 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 02 B7 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 39 D4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AE 40 01 00 35 04 06 00 3F 79 FE 82 C8 12 01 CF 4B BE EC F6 10 ED [09:09:14]CheckFolder [09:09:14]dirname=/storage/ofd_packets [09:09:14]CheckFolder done [09:09:14]ProducePacketName [09:09:14]name=ofd_packets/00082094 [09:09:14]NVStorageSaveData ofd_packets/00082094 [09:09:14]File name is /storage/ofd_packets/00082094 [09:09:14]Write 301 bytes [09:09:14]NVStorageSaveData done [09:09:14]OFDSenderStorePacket done [09:09:14]KKMCreateOFDPacket done [09:09:14]NVStorageSaveData kkm_last_timestamp [09:09:14]File name is /storage/kkm_last_timestamp [09:09:14]Write 4 bytes [09:09:14]NVStorageSaveData done [09:09:14]ExternCall_PrintAddStr [09:09:14]wPrintStart [09:09:14]Write to MH i2c: 01 00 00 E0 03 E3 [09:09:14]Write i2c OK [09:09:14]MH_I2C_Read... [09:09:14]Read from MH i2c: 01 [09:09:14]MH_I2C_Read... [09:09:14]Read from MH i2c: 01 07 00 [09:09:14]MH_I2C_Read... [09:09:14]Read from MH i2c: 01 07 00 E0 03 00 00 00 00 00 FF 0F F8 [09:09:14]RasterBufferAndPrint [09:09:14]line Счет N : (1)918599 [09:09:14]line ИНН: 02508201610067 [09:09:14]line Контрольно-Кассовый Чек [09:09:14]line ПРОДАЖА [09:09:14]line ТРК (МРК, ГНК) : 22 [09:09:14]line Товар: 2710124130 [09:09:14]line Аи-92-К-4 [09:09:14]line 46.850 * 0.00 [09:09:14]line = 0.00 [09:09:14]line НДС 12% НСП 1% [09:09:14]line > о реализуемом товаре [09:09:14]line ИТОГО: 0.00 [09:09:14]line НСП 1% : 0.00 [09:09:14]line НДС 12% : 0.00 [09:09:14]line Наличными: 0.00 [09:09:14]line Безнал.: 0.00 [09:09:14]line Место: АЗС № 114 "Партнер Нефть" [09:09:14]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:09:14]line СНО: Общий режим [09:09:14]line Чек 20 17.10.2024 09:09 [09:09:14]line Смена: 525 ФФД: 1.0 [09:09:14]line ЗНМ: 0300000086 [09:09:14]line РНМ: 0000000000091680 [09:09:14]line Версия ККМ: 001 [09:09:14]line Талоны: ТК ГПНА Online [09:09:14]line 30139226 [09:09:14]line ФМ: 0000000000871843 [09:09:14]line ФД: 82094 [09:09:14]line ФПД: 69793193576466 [09:09:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T090913&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82094&fm=69793193576466&tin=02508201610067®Number=0000000000091680&sum=0 [09:09:14]written 0, free lines is 4095 [09:09:14]OFD Sender: Processing packet 82094 [packets to send 254, broken 253] [09:09:14]ProducePacketName [09:09:14]name=ofd_packets/00082094 [09:09:14]OFD Sender: To server: pG, [09:09:14]CommunicateWithHost lk.salyk.kg:30040 [09:09:14]ConnectInit lk.salyk.kg [09:09:15]Write to MH i2c: 01 00 00 0A 04 0E [09:09:15]Write i2c OK [09:09:15]MH_I2C_Read... [09:09:15]Read from MH i2c: 01 [09:09:15]MH_I2C_Read... [09:09:15]Read from MH i2c: 01 07 00 [09:09:15]MH_I2C_Read... [09:09:15]Read from MH i2c: 01 07 00 0A 04 00 00 00 00 00 F1 0C 12 [09:09:15]RasterBufferAndPrint [09:09:15]line [09:09:15]line [09:09:15]line [09:09:15]line [09:09:15]line [09:09:15]written 0, free lines is 3323 [09:09:15]MH_Cut [09:09:15]Write to MH i2c: D1 01 00 11 04 01 E7 [09:09:15]Write i2c OK [09:09:15]MH_I2C_Read... [09:09:15]Read from MH i2c: D1 [09:09:15]MH_I2C_Read... [09:09:15]Read from MH i2c: D1 01 00 [09:09:15]MH_I2C_Read... [09:09:15]Read from MH i2c: D1 01 00 11 04 00 E6 [09:09:15]Write to MH i2c: 01 00 00 12 04 16 [09:09:15]Write i2c OK [09:09:15]MH_I2C_Read... [09:09:15]Connected sock=11 [09:09:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 D3 3C 07 01 C7 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 02 B7 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 39 D4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AE 40 01 00 35 04 06 00 3F 79 FE 82 C8 12 01 CF 4B BE EC F6 10 ED [09:09:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 FF 68 47 00 4B 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AE 40 01 00 F4 03 04 00 78 79 10 67 B6 04 01 00 00 36 21 0F 90 DA 42 9F 74 [09:09:15]CommunicateWithHost err = 0 [09:09:15]CheckOFDResponse [09:09:15]1017 (14) - 77093643461234 [09:09:15]1041 (16) - 0000000000871843 [09:09:15]1040 (4) - 82094 [09:09:15]1012 (4) - 17.10.2024 02:42 [09:09:15]1206 (1) - 0 [09:09:15]OFD Sender: Remove packet 82094 [09:09:15]ProducePacketName [09:09:15]name=ofd_packets/00082094 [09:09:15]NVStorageDeleteData [09:09:15]*** Cut start [09:09:15]*** Partial cut [09:09:15]*** CUTSNS_PIN = 1 [09:09:15]*** CUTSNS_PIN = 0 [09:09:16]OFD Sender: No OFD packet to send [09:09:16]*** Brake cut motor [09:09:16]Read from MH i2c: 01 [09:09:16]MH_I2C_Read... [09:09:16]*** Stop cut motor [09:09:16]*** Cut end [09:09:16]Read from MH i2c: 01 07 00 [09:09:16]MH_I2C_Read... [09:09:16]Read from MH i2c: 01 07 00 12 04 00 00 00 00 00 FF 0F 2B [09:09:16]process_action close_receipt done [09:09:16]requested_data is exist [09:09:16]produce_requested_data [09:09:16]requested_item fm.sn is exist - process it [09:09:16]wFMCommunicate request_size=4 [09:09:16]MH_SAM_APDU [09:09:16]CAPDU: 80 11 00 00 [09:09:16]Write to MH i2c: E2 08 00 13 04 80 11 00 00 00 00 00 00 91 [09:09:16]Write i2c OK [09:09:16]MH_I2C_Read... [09:09:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:16]Read from MH i2c: E2 [09:09:16]MH_I2C_Read... [09:09:16]Read from MH i2c: E2 17 00 [09:09:16]MH_I2C_Read... [09:09:16]Read from MH i2c: E2 17 00 13 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 E3 [09:09:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:09:16]wFMCommunicate OK [09:09:16]requested_item fd.num is exist - process it [09:09:16]SAM_PROTO_GetFieldsCounters [09:09:16]wFMCommunicate request_size=4 [09:09:16]MH_SAM_APDU [09:09:16]CAPDU: 80 13 00 00 [09:09:16]Write to MH i2c: E2 08 00 14 04 80 13 00 00 00 00 00 00 94 [09:09:16]Write i2c OK [09:09:16]MH_I2C_Read... [09:09:16]Read from MH i2c: E2 [09:09:16]MH_I2C_Read... [09:09:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:16]Read from MH i2c: E2 62 00 [09:09:16]MH_I2C_Read... [09:09:16]Read from MH i2c: E2 62 00 14 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 AE 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [09:09:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 AE 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:09:16]wFMCommunicate OK [09:09:16]SAM_PROTO_GetFieldsCounters done [09:09:16]requested_item shift.num is exist - process it [09:09:16]requested_item shift.opened is exist - process it [09:09:16]req_shift_opened [09:09:16]FM_GetShiftState [09:09:16]SAM_PROTO_GetShiftState [09:09:16]wFMCommunicate request_size=4 [09:09:16]MH_SAM_APDU [09:09:16]CAPDU: 80 13 01 00 [09:09:16]Write to MH i2c: E2 08 00 15 04 80 13 01 00 00 00 00 00 96 [09:09:16]Write i2c OK [09:09:16]MH_I2C_Read... [09:09:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:16]Read from MH i2c: E2 [09:09:16]MH_I2C_Read... [09:09:16]Read from MH i2c: E2 0E 00 [09:09:16]MH_I2C_Read... [09:09:16]Read from MH i2c: E2 0E 00 15 04 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 9E [09:09:16]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:09:16]wFMCommunicate OK [09:09:16]SAM_PROTO_GetShiftState done [09:09:16]FM_GetShiftState done [09:09:16]req_shift_opened done [09:09:16]requested_item shift.open_date is exist - process it [09:09:16]req_shift_open_date [09:09:16]req_shift_open_date done [09:09:16]produce_requested_data done [09:09:16]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82094,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [09:09:16]process_action_free close_receipt [09:09:16]json_value_free [09:09:16]json_value_free done [09:09:16]process_json_proto returns [09:09:16]Send response to host [09:09:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82094,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [09:09:16]free response buf [09:09:16]execute_script done [09:09:16]execute_script returns [09:09:16]free content buf [09:09:16]Sock 8.Close socket [09:09:16]Sock 8.Thread stoped [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:34]recv_with_timeout no data received [09:09:36]OFD Sender: No OFD packet to send [09:09:41]OFD Sender: No OFD packet to send [09:09:41]accept exits with 10 [09:09:41]New connection [09:09:41]New thread 3067522404 created [09:09:41]Thread 3067379044 joined [09:09:41]Waiting for new connection... [09:09:41] Sock 10.Parse request [09:09:41]Sock 10.Check first char [09:09:41]Sock 10.First char is OK [09:09:41]request: POST /json_proto HTTP/1.0 [09:09:41]Method: POST [09:09:41]URL: /json_proto [09:09:41]Method is POST - this is cgi request [09:09:41]url: /json_proto [09:09:41]query_string will be loaded in cgi processing [09:09:41]execute_cgi json_proto POST (null) [09:09:41]execute_cgi path=json_proto method=POST [09:09:41]POST find Content-Length [09:09:41]Host: 172.17.44.67:8080 [09:09:41]Content-Length: 766 [09:09:41]Content-Type: application/json [09:09:41] [09:09:41]POST finish read [09:09:41]Found Content-Length = 766 [09:09:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 1.850, "sum" : 123.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 123.77 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:41]execute_script... [09:09:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 1.850, "sum" : 123.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 123.77 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:41]POST & json_proto [09:09:41]process_json_proto [09:09:41]json parsed OK: [09:09:41]protocol is kg_v1.0 [09:09:41]action value=close_receipt [09:09:41]process_action close_receipt [09:09:41]cmd_close_receipt [09:09:41]MH_GetDate [09:09:41]Write to MH i2c: F0 00 00 16 04 09 [09:09:41]Write i2c OK [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: F0 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: F0 09 00 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: F0 09 00 16 04 00 56 D4 10 67 F1 C7 6B 64 3A [09:09:41]GetLastDocTimeStamp 1729156153 [09:09:41]current date 1729156182 [09:09:41]FM_GetShiftState [09:09:41]SAM_PROTO_GetShiftState [09:09:41]wFMCommunicate request_size=4 [09:09:41]MH_SAM_APDU [09:09:41]CAPDU: 80 13 01 00 [09:09:41]Write to MH i2c: E2 08 00 17 04 80 13 01 00 00 00 00 00 98 [09:09:41]Write i2c OK [09:09:41]MH_I2C_Read... [09:09:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:41]Read from MH i2c: E2 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: E2 0E 00 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: E2 0E 00 17 04 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 A0 [09:09:41]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:09:41]wFMCommunicate OK [09:09:41]SAM_PROTO_GetShiftState done [09:09:41]FM_GetShiftState done [09:09:41]opened in 1729125927 [09:09:41]opened+sec_in_day 1729212327 [09:09:41]quantity*price = 12376 [09:09:41]sum+1 = 12378 [09:09:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 123.77 НСП 1% : 1.09 НДС 12% : 13.14 Наличными: 0.00 Безнал.: 123.77 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 21 17.10.2024 09:09 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82095 ФПД: 266946719083198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T090942&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82095&fm=266946719083198&tin=02508201610067®Number=0000000000091680&sum=12377 [09:09:43]StoreToDocumentArchive [09:09:43]shift 525 fd 82095 [09:09:43]save to /storage/0525/doc_00082095 [09:09:43]save last doc name /storage/0525/doc_00082095 to /storage/kkm_last_doc_name [09:09:43]save OK [09:09:43]Clear old archive folders... [09:09:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:09:43]tlvbuf is 01B5A310 [09:09:43]SAM_PROTO_ClearQueue [09:09:43]wFMCommunicate request_size=4 [09:09:43]MH_SAM_APDU [09:09:43]CAPDU: 80 09 00 00 [09:09:43]Write to MH i2c: E2 08 00 24 04 80 09 00 00 00 00 00 00 9A [09:09:43]Write i2c OK [09:09:43]MH_I2C_Read... [09:09:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:43]Read from MH i2c: E2 [09:09:43]MH_I2C_Read... [09:09:43]Read from MH i2c: E2 03 00 [09:09:43]MH_I2C_Read... [09:09:43]Read from MH i2c: E2 03 00 24 04 00 90 00 9C [09:09:43]RAPDU: 90 00 [09:09:43]wFMCommunicate OK [09:09:43]SAM_PROTO_ClearQueue done [09:09:43]KKMCreateOFDPacket [09:09:43]OFDProtocolAddRootSTLVToBuf [09:09:43]FM_MakeSignedData [09:09:43]FM_MakeSignedData [09:09:43]SAM_PROTO_SignData [09:09:43]wFMCommunicate request_size=4 [09:09:43]MH_SAM_APDU [09:09:43]CAPDU: 80 0D 01 02 [09:09:43]Write to MH i2c: E2 08 00 25 04 80 0D 01 02 00 00 00 00 A2 [09:09:43]Write i2c OK [09:09:43]MH_I2C_Read... [09:09:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:43]Read from MH i2c: E2 [09:09:43]MH_I2C_Read... [09:09:43]Read from MH i2c: E2 03 00 [09:09:43]MH_I2C_Read... [09:09:43]Read from MH i2c: E2 03 00 25 04 00 90 00 9D [09:09:43]RAPDU: 90 00 [09:09:43]wFMCommunicate OK [09:09:43]wFMCommunicate request_size=255 [09:09:43]MH_SAM_APDU [09:09:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3A 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 59 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 56 D4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AF 40 01 00 35 04 06 00 F2 [09:09:43]Write to MH i2c: E2 02 01 26 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3A 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 59 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 56 D4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AF 40 01 00 35 04 06 00 F2 00 00 FC [09:09:43]Write i2c OK [09:09:43]MH_I2C_Read... [09:09:43]Read from MH i2c: E2 [09:09:43]MH_I2C_Read... [09:09:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:43]Read from MH i2c: E2 03 00 [09:09:43]MH_I2C_Read... [09:09:43]Read from MH i2c: E2 03 00 26 04 00 90 00 9E [09:09:43]RAPDU: 90 00 [09:09:43]wFMCommunicate OK [09:09:43]wFMCommunicate request_size=10 [09:09:43]MH_SAM_APDU [09:09:43]CAPDU: 80 0D 02 02 05 C9 60 5D 6A BE [09:09:43]Write to MH i2c: E2 0D 00 27 04 80 0D 02 02 05 00 C9 60 5D 6A BE 00 00 5D [09:09:43]Write i2c OK [09:09:43]MH_I2C_Read... [09:09:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:43]Read from MH i2c: E2 [09:09:43]MH_I2C_Read... [09:09:43]Read from MH i2c: E2 03 00 [09:09:43]MH_I2C_Read... [09:09:43]Read from MH i2c: E2 03 00 27 04 00 90 00 9F [09:09:43]RAPDU: 90 00 [09:09:43]wFMCommunicate OK [09:09:43]wFMCommunicate request_size=4 [09:09:43]MH_SAM_APDU [09:09:43]CAPDU: 80 0D 03 02 [09:09:43]Write to MH i2c: E2 08 00 28 04 80 0D 03 02 00 00 00 00 A7 [09:09:43]Write i2c OK [09:09:43]MH_I2C_Read... [09:09:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:43]Read from MH i2c: E2 [09:09:43]MH_I2C_Read... [09:09:43]Read from MH i2c: E2 0B 00 [09:09:43]MH_I2C_Read... [09:09:43]Read from MH i2c: E2 0B 00 28 04 00 2A 1B B4 5A E1 EB D6 F7 90 00 94 [09:09:43]RAPDU: 2A 1B B4 5A E1 EB D6 F7 90 00 [09:09:43]wFMCommunicate OK [09:09:43]SAM_PROTO_SignData done [09:09:43]FM_MakeSignedData done [09:09:43]CreateOFDProtocolMessage [09:09:43]wFMCommunicate request_size=4 [09:09:43]MH_SAM_APDU [09:09:43]CAPDU: 80 11 00 00 [09:09:43]Write to MH i2c: E2 08 00 29 04 80 11 00 00 00 00 00 00 A7 [09:09:43]Write i2c OK [09:09:43]MH_I2C_Read... [09:09:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:43]Read from MH i2c: E2 [09:09:43]MH_I2C_Read... [09:09:43]Read from MH i2c: E2 17 00 [09:09:43]MH_I2C_Read... [09:09:43]Read from MH i2c: E2 17 00 29 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 F9 [09:09:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:09:43]wFMCommunicate OK [09:09:43]CreateOFDProtocolMessage done [09:09:43]OFDSenderStorePacket 82095 [09:09:43]StoreOFDPacket docnum=82095 [09:09:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 56 CD 07 01 0B 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3A 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 59 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 56 D4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AF 40 01 00 35 04 06 00 F2 C9 60 5D 6A BE 2A 1B B4 5A E1 EB D6 F7 [09:09:43]CheckFolder [09:09:43]dirname=/storage/ofd_packets [09:09:43]CheckFolder done [09:09:43]ProducePacketName [09:09:43]name=ofd_packets/00082095 [09:09:43]NVStorageSaveData ofd_packets/00082095 [09:09:43]File name is /storage/ofd_packets/00082095 [09:09:43]Write 301 bytes [09:09:43]NVStorageSaveData done [09:09:43]OFDSenderStorePacket done [09:09:43]KKMCreateOFDPacket done [09:09:43]NVStorageSaveData kkm_last_timestamp [09:09:43]File name is /storage/kkm_last_timestamp [09:09:43]Write 4 bytes [09:09:43]NVStorageSaveData done [09:09:43]ExternCall_PrintAddStr [09:09:43]wPrintStart [09:09:43]Write to MH i2c: 01 00 00 2A 04 2E [09:09:43]Write i2c OK [09:09:43]MH_I2C_Read... [09:09:43]Read from MH i2c: 01 [09:09:43]MH_I2C_Read... [09:09:43]Read from MH i2c: 01 07 00 [09:09:43]MH_I2C_Read... [09:09:43]Read from MH i2c: 01 07 00 2A 04 00 00 00 00 00 FF 0F 43 [09:09:43]RasterBufferAndPrint [09:09:43]line Счет N : (1)918601 [09:09:43]line ИНН: 02508201610067 [09:09:43]line Контрольно-Кассовый Чек [09:09:43]line ПРОДАЖА [09:09:43]line ТРК (МРК, ГНК) : 11 [09:09:43]line Товар: 2710124130 [09:09:43]line Аи-92-К-4 [09:09:43]line 1.850 * 66.90 [09:09:43]line = 123.77 [09:09:43]line НДС 12% НСП 1% [09:09:43]line > о реализуемом товаре [09:09:43]line ИТОГО: 123.77 [09:09:43]line НСП 1% : 1.09 [09:09:43]line НДС 12% : 13.14 [09:09:43]line Наличными: 0.00 [09:09:43]line Безнал.: 123.77 [09:09:43]line Место: АЗС № 114 "Партнер Нефть" [09:09:43]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:09:43]line СНО: Общий режим [09:09:43]line Чек 21 17.10.2024 09:09 [09:09:43]line Смена: 525 ФФД: 1.0 [09:09:43]line ЗНМ: 0300000086 [09:09:43]line РНМ: 0000000000091680 [09:09:43]line Версия ККМ: 001 [09:09:43]line Платежная система: Mbank [09:09:43]line ФМ: 0000000000871843 [09:09:43]line ФД: 82095 [09:09:43]line ФПД: 266946719083198 [09:09:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T090942&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82095&fm=266946719083198&tin=02508201610067®Number=0000000000091680&sum=12377 [09:09:43]written 0, free lines is 4095 [09:09:43]OFD Sender: Processing packet 82095 [packets to send 254, broken 253] [09:09:43]ProducePacketName [09:09:43]name=ofd_packets/00082095 [09:09:43]OFD Sender: To server: pG, [09:09:43]CommunicateWithHost lk.salyk.kg:30040 [09:09:43]ConnectInit lk.salyk.kg [09:09:44]Write to MH i2c: 01 00 00 53 04 57 [09:09:44]Write i2c OK [09:09:44]MH_I2C_Read... [09:09:44]Read from MH i2c: 01 [09:09:44]MH_I2C_Read... [09:09:44]Read from MH i2c: 01 07 00 [09:09:44]MH_I2C_Read... [09:09:44]Read from MH i2c: 01 07 00 53 04 00 00 00 00 00 0A 0D 75 [09:09:44]RasterBufferAndPrint [09:09:44]line [09:09:44]line [09:09:44]line [09:09:44]line [09:09:44]line [09:09:44]written 0, free lines is 3347 [09:09:44]MH_Cut [09:09:44]Write to MH i2c: D1 01 00 5A 04 01 30 [09:09:44]Write i2c OK [09:09:44]MH_I2C_Read... [09:09:44]Read from MH i2c: D1 [09:09:44]MH_I2C_Read... [09:09:44]Read from MH i2c: D1 01 00 [09:09:44]MH_I2C_Read... [09:09:44]Read from MH i2c: D1 01 00 5A 04 00 2F [09:09:44]Write to MH i2c: 01 00 00 5B 04 5F [09:09:44]Write i2c OK [09:09:44]MH_I2C_Read... [09:09:44]Connected sock=8 [09:09:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 56 CD 07 01 0B 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3A 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 59 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 56 D4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AF 40 01 00 35 04 06 00 F2 C9 60 5D 6A BE 2A 1B B4 5A E1 EB D6 F7 [09:09:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 4A A3 47 00 A5 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AF 40 01 00 F4 03 04 00 95 79 10 67 B6 04 01 00 00 4D 93 3E B7 E6 E9 24 8C [09:09:44]CommunicateWithHost err = 0 [09:09:44]CheckOFDResponse [09:09:44]1017 (14) - 77093643461234 [09:09:44]1041 (16) - 0000000000871843 [09:09:44]1040 (4) - 82095 [09:09:44]1012 (4) - 17.10.2024 02:42 [09:09:44]1206 (1) - 0 [09:09:44]OFD Sender: Remove packet 82095 [09:09:44]ProducePacketName [09:09:44]name=ofd_packets/00082095 [09:09:44]NVStorageDeleteData [09:09:44]*** Cut start [09:09:44]*** Partial cut [09:09:44]*** CUTSNS_PIN = 1 [09:09:44]*** CUTSNS_PIN = 0 [09:09:45]*** Brake cut motor [09:09:45]OFD Sender: No OFD packet to send [09:09:45]Read from MH i2c: 01 [09:09:45]MH_I2C_Read... [09:09:45]*** Stop cut motor [09:09:45]*** Cut end [09:09:45]Read from MH i2c: 01 07 00 [09:09:45]MH_I2C_Read... [09:09:45]Read from MH i2c: 01 07 00 5B 04 00 00 00 00 00 FF 0F 74 [09:09:45]process_action close_receipt done [09:09:45]requested_data is exist [09:09:45]produce_requested_data [09:09:45]requested_item fm.sn is exist - process it [09:09:45]wFMCommunicate request_size=4 [09:09:45]MH_SAM_APDU [09:09:45]CAPDU: 80 11 00 00 [09:09:45]Write to MH i2c: E2 08 00 5C 04 80 11 00 00 00 00 00 00 DA [09:09:45]Write i2c OK [09:09:45]MH_I2C_Read... [09:09:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:45]Read from MH i2c: E2 [09:09:45]MH_I2C_Read... [09:09:45]Read from MH i2c: E2 17 00 [09:09:45]MH_I2C_Read... [09:09:45]Read from MH i2c: E2 17 00 5C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 2C [09:09:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:09:45]wFMCommunicate OK [09:09:45]requested_item fd.num is exist - process it [09:09:45]SAM_PROTO_GetFieldsCounters [09:09:45]wFMCommunicate request_size=4 [09:09:45]MH_SAM_APDU [09:09:45]CAPDU: 80 13 00 00 [09:09:45]Write to MH i2c: E2 08 00 5D 04 80 13 00 00 00 00 00 00 DD [09:09:45]Write i2c OK [09:09:45]MH_I2C_Read... [09:09:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:45]Read from MH i2c: E2 [09:09:45]MH_I2C_Read... [09:09:45]Read from MH i2c: E2 62 00 [09:09:45]MH_I2C_Read... [09:09:45]Read from MH i2c: E2 62 00 5D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 AF 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [09:09:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 AF 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:09:45]wFMCommunicate OK [09:09:45]SAM_PROTO_GetFieldsCounters done [09:09:45]requested_item shift.num is exist - process it [09:09:45]requested_item shift.opened is exist - process it [09:09:45]req_shift_opened [09:09:45]FM_GetShiftState [09:09:45]SAM_PROTO_GetShiftState [09:09:45]wFMCommunicate request_size=4 [09:09:45]MH_SAM_APDU [09:09:45]CAPDU: 80 13 01 00 [09:09:45]Write to MH i2c: E2 08 00 5E 04 80 13 01 00 00 00 00 00 DF [09:09:45]Write i2c OK [09:09:45]MH_I2C_Read... [09:09:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:45]Read from MH i2c: E2 [09:09:45]MH_I2C_Read... [09:09:45]Read from MH i2c: E2 0E 00 [09:09:45]MH_I2C_Read... [09:09:45]Read from MH i2c: E2 0E 00 5E 04 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 E7 [09:09:45]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:09:45]wFMCommunicate OK [09:09:45]SAM_PROTO_GetShiftState done [09:09:45]FM_GetShiftState done [09:09:45]req_shift_opened done [09:09:45]requested_item shift.open_date is exist - process it [09:09:45]req_shift_open_date [09:09:45]req_shift_open_date done [09:09:45]produce_requested_data done [09:09:45]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82095,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [09:09:45]process_action_free close_receipt [09:09:45]json_value_free [09:09:45]json_value_free done [09:09:45]process_json_proto returns [09:09:45]Send response to host [09:09:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82095,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [09:09:45]free response buf [09:09:45]execute_script done [09:09:45]execute_script returns [09:09:45]free content buf [09:09:45]Sock 10.Close socket [09:09:45]Sock 10.Thread stoped [09:09:50]OFD Sender: No OFD packet to send [09:09:55]OFD Sender: No OFD packet to send [09:10:00]OFD Sender: No OFD packet to send [09:10:04]recv_with_timeout no data received [09:10:05]OFD Sender: No OFD packet to send [09:10:10]OFD Sender: No OFD packet to send [09:10:15]OFD Sender: No OFD packet to send [09:10:20]OFD Sender: No OFD packet to send [09:10:25]OFD Sender: No OFD packet to send [09:10:30]OFD Sender: No OFD packet to send [09:10:35]OFD Sender: No OFD packet to send [09:10:40]OFD Sender: No OFD packet to send [09:10:45]OFD Sender: No OFD packet to send [09:10:48]accept exits with 9 [09:10:48]New connection [09:10:48]New thread 3067379044 created [09:10:48]Thread 3067522404 joined [09:10:48]Waiting for new connection... [09:10:48] Sock 9.Parse request [09:10:48]Sock 9.Check first char [09:10:48]Sock 9.First char is OK [09:10:48]request: POST /json_proto HTTP/1.0 [09:10:48]Method: POST [09:10:48]URL: /json_proto [09:10:48]Method is POST - this is cgi request [09:10:48]url: /json_proto [09:10:48]query_string will be loaded in cgi processing [09:10:48]execute_cgi json_proto POST (null) [09:10:48]execute_cgi path=json_proto method=POST [09:10:48]POST find Content-Length [09:10:48]Host: 172.17.44.67:8080 [09:10:48]Content-Length: 677 [09:10:48]Content-Type: application/json [09:10:48] [09:10:48]POST finish read [09:10:48]Found Content-Length = 677 [09:10:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:48]execute_script... [09:10:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:48]POST & json_proto [09:10:48]process_json_proto [09:10:48]json parsed OK: [09:10:48]protocol is kg_v1.0 [09:10:48]action value=close_receipt [09:10:48]process_action close_receipt [09:10:48]cmd_close_receipt [09:10:48]MH_GetDate [09:10:48]Write to MH i2c: F0 00 00 5F 04 52 [09:10:48]Write i2c OK [09:10:48]MH_I2C_Read... [09:10:48]Read from MH i2c: F0 [09:10:48]MH_I2C_Read... [09:10:48]Read from MH i2c: F0 09 00 [09:10:48]MH_I2C_Read... [09:10:48]Read from MH i2c: F0 09 00 5F 04 00 99 D4 10 67 F1 C7 6B 64 C6 [09:10:48]GetLastDocTimeStamp 1729156182 [09:10:48]current date 1729156249 [09:10:48]FM_GetShiftState [09:10:48]SAM_PROTO_GetShiftState [09:10:48]wFMCommunicate request_size=4 [09:10:48]MH_SAM_APDU [09:10:48]CAPDU: 80 13 01 00 [09:10:48]Write to MH i2c: E2 08 00 60 04 80 13 01 00 00 00 00 00 E1 [09:10:48]Write i2c OK [09:10:48]MH_I2C_Read... [09:10:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:48]Read from MH i2c: E2 [09:10:48]MH_I2C_Read... [09:10:48]Read from MH i2c: E2 0E 00 [09:10:48]MH_I2C_Read... [09:10:48]Read from MH i2c: E2 0E 00 60 04 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 E9 [09:10:48]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:10:48]wFMCommunicate OK [09:10:48]SAM_PROTO_GetShiftState done [09:10:48]FM_GetShiftState done [09:10:48]opened in 1729125927 [09:10:48]opened+sec_in_day 1729212327 [09:10:48]quantity*price = 22010 [09:10:48]sum+1 = 22011 [09:10:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.37 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 22 17.10.2024 09:10 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82096 ФПД: 134406593252800 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T091049&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82096&fm=134406593252800&tin=02508201610067®Number=0000000000091680&sum=22000 [09:10:49]StoreToDocumentArchive [09:10:49]shift 525 fd 82096 [09:10:49]save to /storage/0525/doc_00082096 [09:10:49]save last doc name /storage/0525/doc_00082096 to /storage/kkm_last_doc_name [09:10:49]save OK [09:10:49]Clear old archive folders... [09:10:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:10:49]tlvbuf is 01B54CB0 [09:10:49]SAM_PROTO_ClearQueue [09:10:49]wFMCommunicate request_size=4 [09:10:49]MH_SAM_APDU [09:10:49]CAPDU: 80 09 00 00 [09:10:49]Write to MH i2c: E2 08 00 6D 04 80 09 00 00 00 00 00 00 E3 [09:10:49]Write i2c OK [09:10:49]MH_I2C_Read... [09:10:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:10:49]Read from MH i2c: E2 [09:10:49]MH_I2C_Read... [09:10:49]Read from MH i2c: E2 03 00 [09:10:49]MH_I2C_Read... [09:10:49]Read from MH i2c: E2 03 00 6D 04 00 90 00 E5 [09:10:49]RAPDU: 90 00 [09:10:49]wFMCommunicate OK [09:10:49]SAM_PROTO_ClearQueue done [09:10:49]KKMCreateOFDPacket [09:10:49]OFDProtocolAddRootSTLVToBuf [09:10:49]FM_MakeSignedData [09:10:49]FM_MakeSignedData [09:10:49]SAM_PROTO_SignData [09:10:49]wFMCommunicate request_size=4 [09:10:49]MH_SAM_APDU [09:10:49]CAPDU: 80 0D 01 02 [09:10:49]Write to MH i2c: E2 08 00 6E 04 80 0D 01 02 00 00 00 00 EB [09:10:49]Write i2c OK [09:10:49]MH_I2C_Read... [09:10:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:10:49]Read from MH i2c: E2 [09:10:49]MH_I2C_Read... [09:10:49]Read from MH i2c: E2 03 00 [09:10:49]MH_I2C_Read... [09:10:49]Read from MH i2c: E2 03 00 6E 04 00 90 00 E6 [09:10:49]RAPDU: 90 00 [09:10:49]wFMCommunicate OK [09:10:49]wFMCommunicate request_size=255 [09:10:49]MH_SAM_APDU [09:10:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 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 99 D4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B0 40 01 00 35 04 06 00 7A [09:10:49]Write to MH i2c: E2 02 01 6F 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 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 99 D4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B0 40 01 00 35 04 06 00 7A 00 00 4E [09:10:49]Write i2c OK [09:10:49]MH_I2C_Read... [09:10:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:50]Read from MH i2c: E2 [09:10:50]MH_I2C_Read... [09:10:50]Read from MH i2c: E2 03 00 [09:10:50]MH_I2C_Read... [09:10:50]Read from MH i2c: E2 03 00 6F 04 00 90 00 E7 [09:10:50]RAPDU: 90 00 [09:10:50]wFMCommunicate OK [09:10:50]wFMCommunicate request_size=10 [09:10:50]MH_SAM_APDU [09:10:50]CAPDU: 80 0D 02 02 05 3D F9 3F 0D C0 [09:10:50]Write to MH i2c: E2 0D 00 70 04 80 0D 02 02 05 00 3D F9 3F 0D C0 00 00 3A [09:10:50]Write i2c OK [09:10:50]MH_I2C_Read... [09:10:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:50]Read from MH i2c: E2 [09:10:50]MH_I2C_Read... [09:10:50]Read from MH i2c: E2 03 00 [09:10:50]MH_I2C_Read... [09:10:50]Read from MH i2c: E2 03 00 70 04 00 90 00 E8 [09:10:50]RAPDU: 90 00 [09:10:50]wFMCommunicate OK [09:10:50]wFMCommunicate request_size=4 [09:10:50]MH_SAM_APDU [09:10:50]CAPDU: 80 0D 03 02 [09:10:50]Write to MH i2c: E2 08 00 71 04 80 0D 03 02 00 00 00 00 F0 [09:10:50]Write i2c OK [09:10:50]MH_I2C_Read... [09:10:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:10:50]OFD Sender: No OFD packet to send [09:10:50]Read from MH i2c: E2 [09:10:50]MH_I2C_Read... [09:10:50]Read from MH i2c: E2 0B 00 [09:10:50]MH_I2C_Read... [09:10:50]Read from MH i2c: E2 0B 00 71 04 00 86 A9 FC 13 BD DB 10 0A 90 00 E1 [09:10:50]RAPDU: 86 A9 FC 13 BD DB 10 0A 90 00 [09:10:50]wFMCommunicate OK [09:10:50]SAM_PROTO_SignData done [09:10:50]FM_MakeSignedData done [09:10:50]CreateOFDProtocolMessage [09:10:50]wFMCommunicate request_size=4 [09:10:50]MH_SAM_APDU [09:10:50]CAPDU: 80 11 00 00 [09:10:50]Write to MH i2c: E2 08 00 72 04 80 11 00 00 00 00 00 00 F0 [09:10:50]Write i2c OK [09:10:50]MH_I2C_Read... [09:10:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:50]Read from MH i2c: E2 [09:10:50]MH_I2C_Read... [09:10:50]Read from MH i2c: E2 17 00 [09:10:50]MH_I2C_Read... [09:10:50]Read from MH i2c: E2 17 00 72 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 42 [09:10:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:10:50]wFMCommunicate OK [09:10:50]CreateOFDProtocolMessage done [09:10:50]OFDSenderStorePacket 82096 [09:10:50]StoreOFDPacket docnum=82096 [09:10:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 06 6B 07 01 25 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 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 99 D4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B0 40 01 00 35 04 06 00 7A 3D F9 3F 0D C0 86 A9 FC 13 BD DB 10 0A [09:10:50]CheckFolder [09:10:50]dirname=/storage/ofd_packets [09:10:50]CheckFolder done [09:10:50]ProducePacketName [09:10:50]name=ofd_packets/00082096 [09:10:50]NVStorageSaveData ofd_packets/00082096 [09:10:50]File name is /storage/ofd_packets/00082096 [09:10:50]Write 301 bytes [09:10:50]NVStorageSaveData done [09:10:50]OFDSenderStorePacket done [09:10:50]KKMCreateOFDPacket done [09:10:50]NVStorageSaveData kkm_last_timestamp [09:10:50]File name is /storage/kkm_last_timestamp [09:10:50]Write 4 bytes [09:10:50]NVStorageSaveData done [09:10:50]ExternCall_PrintAddStr [09:10:50]wPrintStart [09:10:50]Write to MH i2c: 01 00 00 73 04 77 [09:10:50]Write i2c OK [09:10:50]MH_I2C_Read... [09:10:50]Read from MH i2c: 01 [09:10:50]MH_I2C_Read... [09:10:50]Read from MH i2c: 01 07 00 [09:10:50]MH_I2C_Read... [09:10:50]Read from MH i2c: 01 07 00 73 04 00 00 00 00 00 FF 0F 8C [09:10:50]RasterBufferAndPrint [09:10:50]line Счет N : (1)918602 [09:10:50]line ИНН: 02508201610067 [09:10:50]line Контрольно-Кассовый Чек [09:10:50]line ПРОДАЖА [09:10:50]line ТРК (МРК, ГНК) : 22 [09:10:50]line Товар: 2710124130 [09:10:50]line Аи-92-К-4 [09:10:50]line 3.290 * 66.90 [09:10:50]line = 220.10 [09:10:50]line НДС 12% НСП 1% [09:10:50]line > о реализуемом товаре [09:10:50]line ОКРУГЛЕНИЕ: -0.10 [09:10:50]line ИТОГО: 220.00 [09:10:50]line Внесено: 220.00 [09:10:50]line СДАЧА: 0.00 [09:10:50]line НСП 1% : 1.95 [09:10:50]line НДС 12% : 23.37 [09:10:50]line Наличными: 220.00 [09:10:50]line Безнал.: 0.00 [09:10:50]line Место: АЗС № 114 "Партнер Нефть" [09:10:50]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:10:50]line СНО: Общий режим [09:10:50]line Чек 22 17.10.2024 09:10 [09:10:50]line Смена: 525 ФФД: 1.0 [09:10:50]line ЗНМ: 0300000086 [09:10:50]line РНМ: 0000000000091680 [09:10:50]line Версия ККМ: 001 [09:10:50]line ФМ: 0000000000871843 [09:10:50]line ФД: 82096 [09:10:50]line ФПД: 134406593252800 [09:10:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T091049&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82096&fm=134406593252800&tin=02508201610067®Number=0000000000091680&sum=22000 [09:10:50]OFD Sender: Processing packet 82096 [packets to send 254, broken 253] [09:10:50]ProducePacketName [09:10:50]name=ofd_packets/00082096 [09:10:50]OFD Sender: To server: pG, [09:10:50]CommunicateWithHost lk.salyk.kg:30040 [09:10:50]ConnectInit lk.salyk.kg [09:10:50]written 0, free lines is 4095 [09:10:51]Write to MH i2c: 01 00 00 9E 04 A2 [09:10:51]Write i2c OK [09:10:51]MH_I2C_Read... [09:10:51]Read from MH i2c: 01 [09:10:51]MH_I2C_Read... [09:10:51]Read from MH i2c: 01 07 00 [09:10:51]MH_I2C_Read... [09:10:51]Read from MH i2c: 01 07 00 9E 04 00 00 00 00 00 DD 0C 92 [09:10:51]RasterBufferAndPrint [09:10:51]line [09:10:51]line [09:10:51]line [09:10:51]line [09:10:51]line [09:10:51]written 0, free lines is 3299 [09:10:51]MH_Cut [09:10:51]Write to MH i2c: D1 01 00 A5 04 01 7B [09:10:51]Write i2c OK [09:10:51]MH_I2C_Read... [09:10:51]Read from MH i2c: D1 [09:10:51]MH_I2C_Read... [09:10:51]Read from MH i2c: D1 01 00 [09:10:51]MH_I2C_Read... [09:10:51]Read from MH i2c: D1 01 00 A5 04 00 7A [09:10:51]Write to MH i2c: 01 00 00 A6 04 AA [09:10:51]Write i2c OK [09:10:51]MH_I2C_Read... [09:10:51]Connected sock=10 [09:10:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 06 6B 07 01 25 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 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 99 D4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B0 40 01 00 35 04 06 00 7A 3D F9 3F 0D C0 86 A9 FC 13 BD DB 10 0A [09:10:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 0E E1 47 00 2A 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B0 40 01 00 F4 03 04 00 D8 79 10 67 B6 04 01 00 00 BA 50 6E 98 80 26 70 B8 [09:10:51]CommunicateWithHost err = 0 [09:10:51]CheckOFDResponse [09:10:51]1017 (14) - 77093643461234 [09:10:51]1041 (16) - 0000000000871843 [09:10:51]1040 (4) - 82096 [09:10:51]1012 (4) - 17.10.2024 02:43 [09:10:51]1206 (1) - 0 [09:10:51]OFD Sender: Remove packet 82096 [09:10:51]ProducePacketName [09:10:51]name=ofd_packets/00082096 [09:10:51]NVStorageDeleteData [09:10:51]*** Cut start [09:10:51]*** Partial cut [09:10:51]*** CUTSNS_PIN = 1 [09:10:51]*** CUTSNS_PIN = 0 [09:10:52]OFD Sender: No OFD packet to send [09:10:52]*** Brake cut motor [09:10:52]Read from MH i2c: 01 [09:10:52]MH_I2C_Read... [09:10:52]*** Stop cut motor [09:10:52]*** Cut end [09:10:52]Read from MH i2c: 01 07 00 [09:10:52]MH_I2C_Read... [09:10:52]Read from MH i2c: 01 07 00 A6 04 00 00 00 00 00 FF 0F BF [09:10:52]process_action close_receipt done [09:10:52]requested_data is exist [09:10:52]produce_requested_data [09:10:52]requested_item fm.sn is exist - process it [09:10:52]wFMCommunicate request_size=4 [09:10:52]MH_SAM_APDU [09:10:52]CAPDU: 80 11 00 00 [09:10:52]Write to MH i2c: E2 08 00 A7 04 80 11 00 00 00 00 00 00 25 [09:10:52]Write i2c OK [09:10:52]MH_I2C_Read... [09:10:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:52]Read from MH i2c: E2 [09:10:52]MH_I2C_Read... [09:10:52]Read from MH i2c: E2 17 00 [09:10:52]MH_I2C_Read... [09:10:52]Read from MH i2c: E2 17 00 A7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 77 [09:10:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:10:52]wFMCommunicate OK [09:10:52]requested_item fd.num is exist - process it [09:10:52]SAM_PROTO_GetFieldsCounters [09:10:52]wFMCommunicate request_size=4 [09:10:52]MH_SAM_APDU [09:10:52]CAPDU: 80 13 00 00 [09:10:52]Write to MH i2c: E2 08 00 A8 04 80 13 00 00 00 00 00 00 28 [09:10:52]Write i2c OK [09:10:52]MH_I2C_Read... [09:10:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:52]Read from MH i2c: E2 [09:10:52]MH_I2C_Read... [09:10:52]Read from MH i2c: E2 62 00 [09:10:52]MH_I2C_Read... [09:10:52]Read from MH i2c: E2 62 00 A8 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B0 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [09:10:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B0 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:10:52]wFMCommunicate OK [09:10:52]SAM_PROTO_GetFieldsCounters done [09:10:52]requested_item shift.num is exist - process it [09:10:52]requested_item shift.opened is exist - process it [09:10:52]req_shift_opened [09:10:52]FM_GetShiftState [09:10:52]SAM_PROTO_GetShiftState [09:10:52]wFMCommunicate request_size=4 [09:10:52]MH_SAM_APDU [09:10:52]CAPDU: 80 13 01 00 [09:10:52]Write to MH i2c: E2 08 00 A9 04 80 13 01 00 00 00 00 00 2A [09:10:52]Write i2c OK [09:10:52]MH_I2C_Read... [09:10:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:52]Read from MH i2c: E2 [09:10:52]MH_I2C_Read... [09:10:52]Read from MH i2c: E2 0E 00 [09:10:52]MH_I2C_Read... [09:10:52]Read from MH i2c: E2 0E 00 A9 04 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 32 [09:10:52]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:10:52]wFMCommunicate OK [09:10:52]SAM_PROTO_GetShiftState done [09:10:52]FM_GetShiftState done [09:10:52]req_shift_opened done [09:10:52]requested_item shift.open_date is exist - process it [09:10:52]req_shift_open_date [09:10:52]req_shift_open_date done [09:10:52]produce_requested_data done [09:10:52]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82096,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [09:10:52]process_action_free close_receipt [09:10:52]json_value_free [09:10:52]json_value_free done [09:10:52]process_json_proto returns [09:10:52]Send response to host [09:10:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82096,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [09:10:52]free response buf [09:10:52]execute_script done [09:10:52]execute_script returns [09:10:52]free content buf [09:10:52]Sock 9.Close socket [09:10:52]Sock 9.Thread stoped [09:10:57]OFD Sender: No OFD packet to send [09:11:02]OFD Sender: No OFD packet to send [09:11:06]recv_with_timeout no data received [09:11:07]OFD Sender: No OFD packet to send [09:11:12]OFD Sender: No OFD packet to send [09:11:17]OFD Sender: No OFD packet to send [09:11:22]OFD Sender: No OFD packet to send [09:11:27]OFD Sender: No OFD packet to send [09:11:32]OFD Sender: No OFD packet to send [09:11:37]OFD Sender: No OFD packet to send [09:11:42]OFD Sender: No OFD packet to send [09:11:47]OFD Sender: No OFD packet to send [09:11:52]OFD Sender: No OFD packet to send [09:11:57]OFD Sender: No OFD packet to send [09:12:02]OFD Sender: No OFD packet to send [09:12:07]OFD Sender: No OFD packet to send [09:12:12]OFD Sender: No OFD packet to send [09:12:13]accept exits with 8 [09:12:13]New connection [09:12:13]New thread 3067522404 created [09:12:13]Thread 3067379044 joined [09:12:13]Waiting for new connection... [09:12:13] Sock 8.Parse request [09:12:13]Sock 8.Check first char [09:12:13]Sock 8.First char is OK [09:12:13]request: POST /json_proto HTTP/1.0 [09:12:13]Method: POST [09:12:13]URL: /json_proto [09:12:13]Method is POST - this is cgi request [09:12:13]url: /json_proto [09:12:13]query_string will be loaded in cgi processing [09:12:13]execute_cgi json_proto POST (null) [09:12:13]execute_cgi path=json_proto method=POST [09:12:13]POST find Content-Length [09:12:13]Host: 172.17.44.67:8080 [09:12:13]Content-Length: 759 [09:12:13]Content-Type: application/json [09:12:13] [09:12:13]POST finish read [09:12:13]Found Content-Length = 759 [09:12:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A2203050", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:13]execute_script... [09:12:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A2203050", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:13]POST & json_proto [09:12:13]process_json_proto [09:12:13]json parsed OK: [09:12:13]protocol is kg_v1.0 [09:12:13]action value=close_receipt [09:12:13]process_action close_receipt [09:12:13]cmd_close_receipt [09:12:13]MH_GetDate [09:12:13]Write to MH i2c: F0 00 00 AA 04 9D [09:12:13]Write i2c OK [09:12:13]MH_I2C_Read... [09:12:13]Read from MH i2c: F0 [09:12:13]MH_I2C_Read... [09:12:13]Read from MH i2c: F0 09 00 [09:12:13]MH_I2C_Read... [09:12:13]Read from MH i2c: F0 09 00 AA 04 00 EE D4 10 67 F1 C7 6B 64 66 [09:12:13]GetLastDocTimeStamp 1729156249 [09:12:13]current date 1729156334 [09:12:13]FM_GetShiftState [09:12:13]SAM_PROTO_GetShiftState [09:12:13]wFMCommunicate request_size=4 [09:12:13]MH_SAM_APDU [09:12:13]CAPDU: 80 13 01 00 [09:12:13]Write to MH i2c: E2 08 00 AB 04 80 13 01 00 00 00 00 00 2C [09:12:13]Write i2c OK [09:12:13]MH_I2C_Read... [09:12:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:13]Read from MH i2c: E2 [09:12:13]MH_I2C_Read... [09:12:13]Read from MH i2c: E2 0E 00 [09:12:13]MH_I2C_Read... [09:12:13]Read from MH i2c: E2 0E 00 AB 04 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 34 [09:12:13]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:12:13]wFMCommunicate OK [09:12:13]SAM_PROTO_GetShiftState done [09:12:13]FM_GetShiftState done [09:12:13]opened in 1729125927 [09:12:13]opened+sec_in_day 1729212327 [09:12:13]quantity*price = 0 [09:12:13]sum+1 = 1 [09:12:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 23 17.10.2024 09:12 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 2203050 ФМ: 0000000000871843 ФД: 82097 ФПД: 7856745636075 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T091214&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82097&fm=7856745636075&tin=02508201610067®Number=0000000000091680&sum=0 [09:12:14]StoreToDocumentArchive [09:12:14]shift 525 fd 82097 [09:12:14]save to /storage/0525/doc_00082097 [09:12:14]save last doc name /storage/0525/doc_00082097 to /storage/kkm_last_doc_name [09:12:14]save OK [09:12:14]Clear old archive folders... [09:12:14]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:12:14]tlvbuf is 01AEFDE0 [09:12:14]SAM_PROTO_ClearQueue [09:12:14]wFMCommunicate request_size=4 [09:12:14]MH_SAM_APDU [09:12:14]CAPDU: 80 09 00 00 [09:12:14]Write to MH i2c: E2 08 00 B8 04 80 09 00 00 00 00 00 00 2E [09:12:14]Write i2c OK [09:12:14]MH_I2C_Read... [09:12:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:12:14]Read from MH i2c: E2 [09:12:14]MH_I2C_Read... [09:12:14]Read from MH i2c: E2 03 00 [09:12:14]MH_I2C_Read... [09:12:14]Read from MH i2c: E2 03 00 B8 04 00 90 00 30 [09:12:14]RAPDU: 90 00 [09:12:14]wFMCommunicate OK [09:12:14]SAM_PROTO_ClearQueue done [09:12:14]KKMCreateOFDPacket [09:12:14]OFDProtocolAddRootSTLVToBuf [09:12:14]FM_MakeSignedData [09:12:14]FM_MakeSignedData [09:12:14]SAM_PROTO_SignData [09:12:14]wFMCommunicate request_size=4 [09:12:14]MH_SAM_APDU [09:12:14]CAPDU: 80 0D 01 02 [09:12:14]Write to MH i2c: E2 08 00 B9 04 80 0D 01 02 00 00 00 00 36 [09:12:14]Write i2c OK [09:12:14]MH_I2C_Read... [09:12:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:12:14]Read from MH i2c: E2 [09:12:14]MH_I2C_Read... [09:12:14]Read from MH i2c: E2 03 00 [09:12:14]MH_I2C_Read... [09:12:14]Read from MH i2c: E2 03 00 B9 04 00 90 00 31 [09:12:14]RAPDU: 90 00 [09:12:14]wFMCommunicate OK [09:12:14]wFMCommunicate request_size=255 [09:12:14]MH_SAM_APDU [09:12:14]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 EE D4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B1 40 01 [09:12:14]Write to MH i2c: E2 02 01 BA 04 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 EE D4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B1 40 01 00 00 2A [09:12:14]Write i2c OK [09:12:14]MH_I2C_Read... [09:12:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:15]Read from MH i2c: E2 [09:12:15]MH_I2C_Read... [09:12:15]Read from MH i2c: E2 03 00 [09:12:15]MH_I2C_Read... [09:12:15]Read from MH i2c: E2 03 00 BA 04 00 90 00 32 [09:12:15]RAPDU: 90 00 [09:12:15]wFMCommunicate OK [09:12:15]wFMCommunicate request_size=16 [09:12:15]MH_SAM_APDU [09:12:15]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 07 25 4A 88 60 EB [09:12:15]Write to MH i2c: E2 13 00 BB 04 80 0D 02 02 0B 00 00 35 04 06 00 07 25 4A 88 60 EB 00 00 D7 [09:12:15]Write i2c OK [09:12:15]MH_I2C_Read... [09:12:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:15]Read from MH i2c: E2 [09:12:15]MH_I2C_Read... [09:12:15]Read from MH i2c: E2 03 00 [09:12:15]MH_I2C_Read... [09:12:15]Read from MH i2c: E2 03 00 BB 04 00 90 00 33 [09:12:15]RAPDU: 90 00 [09:12:15]wFMCommunicate OK [09:12:15]wFMCommunicate request_size=4 [09:12:15]MH_SAM_APDU [09:12:15]CAPDU: 80 0D 03 02 [09:12:15]Write to MH i2c: E2 08 00 BC 04 80 0D 03 02 00 00 00 00 3B [09:12:15]Write i2c OK [09:12:15]MH_I2C_Read... [09:12:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:12:15]Read from MH i2c: E2 [09:12:15]MH_I2C_Read... [09:12:15]Read from MH i2c: E2 0B 00 [09:12:15]MH_I2C_Read... [09:12:15]Read from MH i2c: E2 0B 00 BC 04 00 25 31 CD 12 49 5D 28 45 90 00 84 [09:12:15]RAPDU: 25 31 CD 12 49 5D 28 45 90 00 [09:12:15]wFMCommunicate OK [09:12:15]SAM_PROTO_SignData done [09:12:15]FM_MakeSignedData done [09:12:15]CreateOFDProtocolMessage [09:12:15]wFMCommunicate request_size=4 [09:12:15]MH_SAM_APDU [09:12:15]CAPDU: 80 11 00 00 [09:12:15]Write to MH i2c: E2 08 00 BD 04 80 11 00 00 00 00 00 00 3B [09:12:15]Write i2c OK [09:12:15]MH_I2C_Read... [09:12:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:15]Read from MH i2c: E2 [09:12:15]MH_I2C_Read... [09:12:15]Read from MH i2c: E2 17 00 [09:12:15]MH_I2C_Read... [09:12:15]Read from MH i2c: E2 17 00 BD 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 8D [09:12:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:12:15]wFMCommunicate OK [09:12:15]CreateOFDProtocolMessage done [09:12:15]OFDSenderStorePacket 82097 [09:12:15]StoreOFDPacket docnum=82097 [09:12:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 F3 7E 0D 01 9A 87 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 EE D4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B1 40 01 00 35 04 06 00 07 25 4A 88 60 EB 25 31 CD 12 49 5D 28 45 [09:12:15]CheckFolder [09:12:15]dirname=/storage/ofd_packets [09:12:15]CheckFolder done [09:12:15]ProducePacketName [09:12:15]name=ofd_packets/00082097 [09:12:15]NVStorageSaveData ofd_packets/00082097 [09:12:15]File name is /storage/ofd_packets/00082097 [09:12:15]Write 307 bytes [09:12:15]NVStorageSaveData done [09:12:15]OFDSenderStorePacket done [09:12:15]KKMCreateOFDPacket done [09:12:15]NVStorageSaveData kkm_last_timestamp [09:12:15]File name is /storage/kkm_last_timestamp [09:12:15]Write 4 bytes [09:12:15]NVStorageSaveData done [09:12:15]ExternCall_PrintAddStr [09:12:15]wPrintStart [09:12:15]Write to MH i2c: 01 00 00 BE 04 C2 [09:12:15]Write i2c OK [09:12:15]MH_I2C_Read... [09:12:15]Read from MH i2c: 01 [09:12:15]MH_I2C_Read... [09:12:15]Read from MH i2c: 01 07 00 [09:12:15]MH_I2C_Read... [09:12:15]Read from MH i2c: 01 07 00 BE 04 00 00 00 00 00 FF 0F D7 [09:12:15]RasterBufferAndPrint [09:12:15]line Счет N : (1)918603 [09:12:15]line ИНН: 02508201610067 [09:12:15]line Контрольно-Кассовый Чек [09:12:15]line ПРОДАЖА [09:12:15]line ТРК (МРК, ГНК) : 21 [09:12:15]line Товар: 2710194800 [09:12:15]line D-Energy ДТ-К-2 [09:12:15]line 20.000 * 0.00 [09:12:15]line = 0.00 [09:12:15]line НДС 12% НСП 1% [09:12:15]line > о реализуемом товаре [09:12:15]line ИТОГО: 0.00 [09:12:15]line НСП 1% : 0.00 [09:12:15]line НДС 12% : 0.00 [09:12:15]line Наличными: 0.00 [09:12:15]line Безнал.: 0.00 [09:12:15]line Место: АЗС № 114 "Партнер Нефть" [09:12:15]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:12:15]line СНО: Общий режим [09:12:15]line Чек 23 17.10.2024 09:12 [09:12:15]line Смена: 525 ФФД: 1.0 [09:12:15]line ЗНМ: 0300000086 [09:12:15]line РНМ: 0000000000091680 [09:12:15]line Версия ККМ: 001 [09:12:15]line Талоны: ТК ГПНА Online [09:12:15]line 2203050 [09:12:15]line ФМ: 0000000000871843 [09:12:15]line ФД: 82097 [09:12:15]line ФПД: 7856745636075 [09:12:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T091214&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82097&fm=7856745636075&tin=02508201610067®Number=0000000000091680&sum=0 [09:12:15]OFD Sender: Processing packet 82097 [packets to send 254, broken 253] [09:12:15]ProducePacketName [09:12:15]name=ofd_packets/00082097 [09:12:15]OFD Sender: To server: pG, [09:12:15]CommunicateWithHost lk.salyk.kg:30040 [09:12:15]ConnectInit lk.salyk.kg [09:12:15]written 0, free lines is 4095 [09:12:15]Write to MH i2c: 01 00 00 E8 04 EC [09:12:15]Write i2c OK [09:12:15]MH_I2C_Read... [09:12:15]Read from MH i2c: 01 [09:12:15]MH_I2C_Read... [09:12:15]Read from MH i2c: 01 07 00 [09:12:15]MH_I2C_Read... [09:12:15]Read from MH i2c: 01 07 00 E8 04 00 00 00 00 00 F9 0C F8 [09:12:15]RasterBufferAndPrint [09:12:15]line [09:12:15]line [09:12:15]line [09:12:15]line [09:12:15]line [09:12:15]written 0, free lines is 3327 [09:12:15]MH_Cut [09:12:15]Write to MH i2c: D1 01 00 EF 04 01 C5 [09:12:15]Write i2c OK [09:12:15]MH_I2C_Read... [09:12:15]Read from MH i2c: D1 [09:12:15]MH_I2C_Read... [09:12:15]Read from MH i2c: D1 01 00 [09:12:15]MH_I2C_Read... [09:12:15]Read from MH i2c: D1 01 00 EF 04 00 C4 [09:12:15]Write to MH i2c: 01 00 00 F0 04 F4 [09:12:15]Write i2c OK [09:12:15]MH_I2C_Read... [09:12:16]*** Cut start [09:12:16]*** Partial cut [09:12:16]*** CUTSNS_PIN = 1 [09:12:16]*** CUTSNS_PIN = 0 [09:12:16]*** Brake cut motor [09:12:17]Connected sock=11 [09:12:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 F3 7E 0D 01 9A 87 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 EE D4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B1 40 01 00 35 04 06 00 07 25 4A 88 60 EB 25 31 CD 12 49 5D 28 45 [09:12:17]Read from MH i2c: 01 [09:12:17]MH_I2C_Read... [09:12:17]*** Stop cut motor [09:12:17]*** Cut end [09:12:17]Read from MH i2c: 01 07 00 [09:12:17]MH_I2C_Read... [09:12:17]Read from MH i2c: 01 07 00 F0 04 00 00 00 00 00 FF 0F 09 [09:12:17]process_action close_receipt done [09:12:17]requested_data is exist [09:12:17]produce_requested_data [09:12:17]requested_item fm.sn is exist - process it [09:12:17]wFMCommunicate request_size=4 [09:12:17]MH_SAM_APDU [09:12:17]CAPDU: 80 11 00 00 [09:12:17]Write to MH i2c: E2 08 00 F1 04 80 11 00 00 00 00 00 00 6F [09:12:17]Write i2c OK [09:12:17]MH_I2C_Read... [09:12:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:17]Read from MH i2c: E2 [09:12:17]MH_I2C_Read... [09:12:17]Read from MH i2c: E2 17 00 [09:12:17]MH_I2C_Read... [09:12:17]Read from MH i2c: E2 17 00 F1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C1 [09:12:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:12:17]wFMCommunicate OK [09:12:17]requested_item fd.num is exist - process it [09:12:17]SAM_PROTO_GetFieldsCounters [09:12:17]wFMCommunicate request_size=4 [09:12:17]MH_SAM_APDU [09:12:17]CAPDU: 80 13 00 00 [09:12:17]Write to MH i2c: E2 08 00 F2 04 80 13 00 00 00 00 00 00 72 [09:12:17]Write i2c OK [09:12:17]MH_I2C_Read... [09:12:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:17]Read from MH i2c: E2 [09:12:17]MH_I2C_Read... [09:12:17]Read from MH i2c: E2 62 00 [09:12:17]MH_I2C_Read... [09:12:17]Read from MH i2c: E2 62 00 F2 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B1 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [09:12:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B1 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:12:17]wFMCommunicate OK [09:12:17]SAM_PROTO_GetFieldsCounters done [09:12:17]requested_item shift.num is exist - process it [09:12:17]requested_item shift.opened is exist - process it [09:12:17]req_shift_opened [09:12:17]FM_GetShiftState [09:12:17]SAM_PROTO_GetShiftState [09:12:17]wFMCommunicate request_size=4 [09:12:17]MH_SAM_APDU [09:12:17]CAPDU: 80 13 01 00 [09:12:17]Write to MH i2c: E2 08 00 F3 04 80 13 01 00 00 00 00 00 74 [09:12:17]Write i2c OK [09:12:17]MH_I2C_Read... [09:12:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:17]Read from MH i2c: E2 [09:12:17]MH_I2C_Read... [09:12:17]Read from MH i2c: E2 0E 00 [09:12:17]MH_I2C_Read... [09:12:17]Read from MH i2c: E2 0E 00 F3 04 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 7C [09:12:17]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:12:17]wFMCommunicate OK [09:12:17]SAM_PROTO_GetShiftState done [09:12:17]FM_GetShiftState done [09:12:17]req_shift_opened done [09:12:17]requested_item shift.open_date is exist - process it [09:12:17]req_shift_open_date [09:12:17]req_shift_open_date done [09:12:17]produce_requested_data done [09:12:17]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82097,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [09:12:17]process_action_free close_receipt [09:12:17]json_value_free [09:12:17]json_value_free done [09:12:17]process_json_proto returns [09:12:17]Send response to host [09:12:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82097,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [09:12:17]free response buf [09:12:17]execute_script done [09:12:17]execute_script returns [09:12:17]free content buf [09:12:17]Sock 8.Close socket [09:12:17]Sock 8.Thread stoped [09:12:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 E6 05 47 00 51 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B1 40 01 00 F4 03 04 00 2E 7A 10 67 B6 04 01 00 00 D2 90 81 4D A2 D3 6E 74 [09:12:18]CommunicateWithHost err = 0 [09:12:18]CheckOFDResponse [09:12:18]1017 (14) - 77093643461234 [09:12:18]1041 (16) - 0000000000871843 [09:12:18]1040 (4) - 82097 [09:12:18]1012 (4) - 17.10.2024 02:45 [09:12:18]1206 (1) - 0 [09:12:18]OFD Sender: Remove packet 82097 [09:12:18]ProducePacketName [09:12:18]name=ofd_packets/00082097 [09:12:18]NVStorageDeleteData [09:12:18]OFD Sender: No OFD packet to send [09:12:20]recv_with_timeout no data received [09:12:23]OFD Sender: No OFD packet to send [09:12:28]OFD Sender: No OFD packet to send [09:12:33]OFD Sender: No OFD packet to send [09:12:38]OFD Sender: No OFD packet to send [09:12:43]OFD Sender: No OFD packet to send [09:12:48]OFD Sender: No OFD packet to send [09:12:53]OFD Sender: No OFD packet to send [09:12:58]OFD Sender: No OFD packet to send [09:13:03]OFD Sender: No OFD packet to send [09:13:08]OFD Sender: No OFD packet to send [09:13:13]OFD Sender: No OFD packet to send [09:13:18]OFD Sender: No OFD packet to send [09:13:23]OFD Sender: No OFD packet to send [09:13:28]OFD Sender: No OFD packet to send [09:13:33]OFD Sender: No OFD packet to send [09:13:38]OFD Sender: No OFD packet to send [09:13:43]OFD Sender: No OFD packet to send [09:13:48]OFD Sender: No OFD packet to send [09:13:53]OFD Sender: No OFD packet to send [09:13:58]OFD Sender: No OFD packet to send [09:14:03]OFD Sender: No OFD packet to send [09:14:08]OFD Sender: No OFD packet to send [09:14:13]OFD Sender: No OFD packet to send [09:14:18]OFD Sender: No OFD packet to send [09:14:23]OFD Sender: No OFD packet to send [09:14:28]OFD Sender: No OFD packet to send [09:14:33]OFD Sender: No OFD packet to send [09:14:38]OFD Sender: No OFD packet to send [09:14:43]OFD Sender: No OFD packet to send [09:14:48]OFD Sender: No OFD packet to send [09:14:53]OFD Sender: No OFD packet to send [09:14:58]OFD Sender: No OFD packet to send [09:15:03]OFD Sender: No OFD packet to send [09:15:08]OFD Sender: No OFD packet to send [09:15:13]accept exits with 9 [09:15:13]New connection [09:15:13]New thread 3067379044 created [09:15:13]Thread 3067522404 joined [09:15:13]Waiting for new connection... [09:15:13] Sock 9.Parse request [09:15:13]Sock 9.Check first char [09:15:13]Sock 9.First char is OK [09:15:13]request: POST /json_proto HTTP/1.0 [09:15:13]Method: POST [09:15:13]URL: /json_proto [09:15:13]Method is POST - this is cgi request [09:15:13]url: /json_proto [09:15:13]query_string will be loaded in cgi processing [09:15:13]execute_cgi json_proto POST (null) [09:15:13]execute_cgi path=json_proto method=POST [09:15:13]POST find Content-Length [09:15:13]Host: 172.17.44.67:8080 [09:15:13]Content-Length: 677 [09:15:13]Content-Type: application/json [09:15:13] [09:15:13]POST finish read [09:15:13]Found Content-Length = 677 [09:15:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.100, "sum" : 140.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:13]execute_script... [09:15:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.100, "sum" : 140.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:13]POST & json_proto [09:15:13]process_json_proto [09:15:13]json parsed OK: [09:15:13]protocol is kg_v1.0 [09:15:13]action value=close_receipt [09:15:13]process_action close_receipt [09:15:13]cmd_close_receipt [09:15:13]MH_GetDate [09:15:13]Write to MH i2c: F0 00 00 F4 04 E7 [09:15:13]Write i2c OK [09:15:13]MH_I2C_Read... [09:15:13]Read from MH i2c: F0 [09:15:13]MH_I2C_Read... [09:15:13]Read from MH i2c: F0 09 00 [09:15:13]MH_I2C_Read... [09:15:13]Read from MH i2c: F0 09 00 F4 04 00 A2 D5 10 67 F1 C7 6B 64 65 [09:15:13]GetLastDocTimeStamp 1729156334 [09:15:13]current date 1729156514 [09:15:13]FM_GetShiftState [09:15:13]SAM_PROTO_GetShiftState [09:15:13]wFMCommunicate request_size=4 [09:15:13]MH_SAM_APDU [09:15:13]CAPDU: 80 13 01 00 [09:15:13]Write to MH i2c: E2 08 00 F5 04 80 13 01 00 00 00 00 00 76 [09:15:13]Write i2c OK [09:15:13]MH_I2C_Read... [09:15:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:13]Read from MH i2c: E2 [09:15:13]MH_I2C_Read... [09:15:13]Read from MH i2c: E2 0E 00 [09:15:13]MH_I2C_Read... [09:15:13]Read from MH i2c: E2 0E 00 F5 04 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 7E [09:15:13]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:15:13]wFMCommunicate OK [09:15:13]SAM_PROTO_GetShiftState done [09:15:13]FM_GetShiftState done [09:15:13]opened in 1729125927 [09:15:13]opened+sec_in_day 1729212327 [09:15:13]quantity*price = 14049 [09:15:13]sum+1 = 14050 [09:15:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 140.00 Внесено: 140.00 СДАЧА: 0.00 НСП 1% : 1.24 НДС 12% : 14.92 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 24 17.10.2024 09:15 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82098 ФПД: 69778587378094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T091514&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82098&fm=69778587378094&tin=02508201610067®Number=0000000000091680&sum=14000 [09:15:14]StoreToDocumentArchive [09:15:14]shift 525 fd 82098 [09:15:14]save to /storage/0525/doc_00082098 [09:15:14]save last doc name /storage/0525/doc_00082098 to /storage/kkm_last_doc_name [09:15:14]save OK [09:15:14]Clear old archive folders... [09:15:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:15:14]tlvbuf is 01AF0A80 [09:15:14]SAM_PROTO_ClearQueue [09:15:14]wFMCommunicate request_size=4 [09:15:14]MH_SAM_APDU [09:15:14]CAPDU: 80 09 00 00 [09:15:14]Write to MH i2c: E2 08 00 02 05 80 09 00 00 00 00 00 00 79 [09:15:14]Write i2c OK [09:15:14]MH_I2C_Read... [09:15:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:14]Read from MH i2c: E2 [09:15:14]MH_I2C_Read... [09:15:14]Read from MH i2c: E2 03 00 [09:15:14]MH_I2C_Read... [09:15:14]Read from MH i2c: E2 03 00 02 05 00 90 00 7B [09:15:14]RAPDU: 90 00 [09:15:14]wFMCommunicate OK [09:15:14]SAM_PROTO_ClearQueue done [09:15:14]KKMCreateOFDPacket [09:15:14]OFDProtocolAddRootSTLVToBuf [09:15:14]FM_MakeSignedData [09:15:14]FM_MakeSignedData [09:15:14]SAM_PROTO_SignData [09:15:14]wFMCommunicate request_size=4 [09:15:14]MH_SAM_APDU [09:15:14]CAPDU: 80 0D 01 02 [09:15:14]Write to MH i2c: E2 08 00 03 05 80 0D 01 02 00 00 00 00 81 [09:15:14]Write i2c OK [09:15:14]MH_I2C_Read... [09:15:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:14]Read from MH i2c: E2 [09:15:14]MH_I2C_Read... [09:15:14]Read from MH i2c: E2 03 00 [09:15:14]MH_I2C_Read... [09:15:14]Read from MH i2c: E2 03 00 03 05 00 90 00 7C [09:15:14]RAPDU: 90 00 [09:15:14]wFMCommunicate OK [09:15:14]wFMCommunicate request_size=255 [09:15:14]MH_SAM_APDU [09:15:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 A2 D5 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B2 40 01 00 35 04 06 00 3F [09:15:14]Write to MH i2c: E2 02 01 04 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 A2 D5 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B2 40 01 00 35 04 06 00 3F 00 00 7F [09:15:14]Write i2c OK [09:15:14]MH_I2C_Read... [09:15:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:15]Read from MH i2c: E2 [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: E2 03 00 [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: E2 03 00 04 05 00 90 00 7D [09:15:15]RAPDU: 90 00 [09:15:15]wFMCommunicate OK [09:15:15]wFMCommunicate request_size=10 [09:15:15]MH_SAM_APDU [09:15:15]CAPDU: 80 0D 02 02 05 76 97 E9 E1 AE [09:15:15]Write to MH i2c: E2 0D 00 05 05 80 0D 02 02 05 00 76 97 E9 E1 AE 00 00 13 [09:15:15]Write i2c OK [09:15:15]MH_I2C_Read... [09:15:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:15]Read from MH i2c: E2 [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: E2 03 00 [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: E2 03 00 05 05 00 90 00 7E [09:15:15]RAPDU: 90 00 [09:15:15]wFMCommunicate OK [09:15:15]wFMCommunicate request_size=4 [09:15:15]MH_SAM_APDU [09:15:15]CAPDU: 80 0D 03 02 [09:15:15]Write to MH i2c: E2 08 00 06 05 80 0D 03 02 00 00 00 00 86 [09:15:15]Write i2c OK [09:15:15]MH_I2C_Read... [09:15:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:15]Read from MH i2c: E2 [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: E2 0B 00 [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: E2 0B 00 06 05 00 6A 2E 49 E4 03 29 95 90 90 00 9D [09:15:15]RAPDU: 6A 2E 49 E4 03 29 95 90 90 00 [09:15:15]wFMCommunicate OK [09:15:15]SAM_PROTO_SignData done [09:15:15]FM_MakeSignedData done [09:15:15]CreateOFDProtocolMessage [09:15:15]wFMCommunicate request_size=4 [09:15:15]MH_SAM_APDU [09:15:15]CAPDU: 80 11 00 00 [09:15:15]Write to MH i2c: E2 08 00 07 05 80 11 00 00 00 00 00 00 86 [09:15:15]Write i2c OK [09:15:15]MH_I2C_Read... [09:15:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:15]Read from MH i2c: E2 [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: E2 17 00 [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: E2 17 00 07 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D8 [09:15:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:15:15]wFMCommunicate OK [09:15:15]CreateOFDProtocolMessage done [09:15:15]OFDSenderStorePacket 82098 [09:15:15]StoreOFDPacket docnum=82098 [09:15:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 23 09 07 01 03 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 A2 D5 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B2 40 01 00 35 04 06 00 3F 76 97 E9 E1 AE 6A 2E 49 E4 03 29 95 90 [09:15:15]CheckFolder [09:15:15]dirname=/storage/ofd_packets [09:15:15]CheckFolder done [09:15:15]ProducePacketName [09:15:15]name=ofd_packets/00082098 [09:15:15]NVStorageSaveData ofd_packets/00082098 [09:15:15]File name is /storage/ofd_packets/00082098 [09:15:15]Write 301 bytes [09:15:15]NVStorageSaveData done [09:15:15]OFDSenderStorePacket done [09:15:15]KKMCreateOFDPacket done [09:15:15]NVStorageSaveData kkm_last_timestamp [09:15:15]File name is /storage/kkm_last_timestamp [09:15:15]Write 4 bytes [09:15:15]NVStorageSaveData done [09:15:15]ExternCall_PrintAddStr [09:15:15]wPrintStart [09:15:15]Write to MH i2c: 01 00 00 08 05 0D [09:15:15]Write i2c OK [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: 01 [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: 01 07 00 [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: 01 07 00 08 05 00 00 00 00 00 FF 0F 22 [09:15:15]RasterBufferAndPrint [09:15:15]line Счет N : (1)918604 [09:15:15]line ИНН: 02508201610067 [09:15:15]line Контрольно-Кассовый Чек [09:15:15]line ПРОДАЖА [09:15:15]line ТРК (МРК, ГНК) : 22 [09:15:15]line Товар: 2710124130 [09:15:15]line Аи-92-К-4 [09:15:15]line 2.100 * 66.90 [09:15:15]line = 140.49 [09:15:15]line НДС 12% НСП 1% [09:15:15]line > о реализуемом товаре [09:15:15]line ОКРУГЛЕНИЕ: -0.49 [09:15:15]line ИТОГО: 140.00 [09:15:15]line Внесено: 140.00 [09:15:15]line СДАЧА: 0.00 [09:15:15]line НСП 1% : 1.24 [09:15:15]line НДС 12% : 14.92 [09:15:15]line Наличными: 140.00 [09:15:15]line Безнал.: 0.00 [09:15:15]line Место: АЗС № 114 "Партнер Нефть" [09:15:15]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:15:15]line СНО: Общий режим [09:15:15]line Чек 24 17.10.2024 09:15 [09:15:15]line Смена: 525 ФФД: 1.0 [09:15:15]line ЗНМ: 0300000086 [09:15:15]line РНМ: 0000000000091680 [09:15:15]line Версия ККМ: 001 [09:15:15]line ФМ: 0000000000871843 [09:15:15]line ФД: 82098 [09:15:15]line ФПД: 69778587378094 [09:15:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T091514&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82098&fm=69778587378094&tin=02508201610067®Number=0000000000091680&sum=14000 [09:15:15]OFD Sender: Processing packet 82098 [packets to send 254, broken 253] [09:15:15]ProducePacketName [09:15:15]name=ofd_packets/00082098 [09:15:15]OFD Sender: To server: pG, [09:15:15]CommunicateWithHost lk.salyk.kg:30040 [09:15:15]ConnectInit lk.salyk.kg [09:15:15]written 0, free lines is 4095 [09:15:15]Write to MH i2c: 01 00 00 33 05 38 [09:15:15]Write i2c OK [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: 01 [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: 01 07 00 [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: 01 07 00 33 05 00 00 00 00 00 E4 0C 2F [09:15:15]RasterBufferAndPrint [09:15:15]line [09:15:15]line [09:15:15]line [09:15:15]line [09:15:15]line [09:15:15]written 0, free lines is 3306 [09:15:15]MH_Cut [09:15:15]Write to MH i2c: D1 01 00 3A 05 01 11 [09:15:15]Write i2c OK [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: D1 [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: D1 01 00 [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: D1 01 00 3A 05 00 10 [09:15:15]Write to MH i2c: 01 00 00 3B 05 40 [09:15:15]Write i2c OK [09:15:15]MH_I2C_Read... [09:15:16]Connected sock=10 [09:15:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 23 09 07 01 03 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 A2 D5 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B2 40 01 00 35 04 06 00 3F 76 97 E9 E1 AE 6A 2E 49 E4 03 29 95 90 [09:15:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 2D E6 47 00 DA 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B2 40 01 00 F4 03 04 00 E1 7A 10 67 B6 04 01 00 00 69 91 CA 64 B4 76 54 74 [09:15:16]CommunicateWithHost err = 0 [09:15:16]CheckOFDResponse [09:15:16]1017 (14) - 77093643461234 [09:15:16]1041 (16) - 0000000000871843 [09:15:16]1040 (4) - 82098 [09:15:16]1012 (4) - 17.10.2024 02:48 [09:15:16]1206 (1) - 0 [09:15:16]OFD Sender: Remove packet 82098 [09:15:16]ProducePacketName [09:15:16]name=ofd_packets/00082098 [09:15:16]NVStorageDeleteData [09:15:16]*** Cut start [09:15:16]*** Partial cut [09:15:16]*** CUTSNS_PIN = 1 [09:15:16]*** CUTSNS_PIN = 0 [09:15:17]*** Brake cut motor [09:15:17]OFD Sender: No OFD packet to send [09:15:17]Read from MH i2c: 01 [09:15:17]MH_I2C_Read... [09:15:17]*** Stop cut motor [09:15:17]*** Cut end [09:15:17]Read from MH i2c: 01 07 00 [09:15:17]MH_I2C_Read... [09:15:17]Read from MH i2c: 01 07 00 3B 05 00 00 00 00 00 FF 0F 55 [09:15:17]process_action close_receipt done [09:15:17]requested_data is exist [09:15:17]produce_requested_data [09:15:17]requested_item fm.sn is exist - process it [09:15:17]wFMCommunicate request_size=4 [09:15:17]MH_SAM_APDU [09:15:17]CAPDU: 80 11 00 00 [09:15:17]Write to MH i2c: E2 08 00 3C 05 80 11 00 00 00 00 00 00 BB [09:15:17]Write i2c OK [09:15:17]MH_I2C_Read... [09:15:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:17]Read from MH i2c: E2 [09:15:17]MH_I2C_Read... [09:15:17]Read from MH i2c: E2 17 00 [09:15:17]MH_I2C_Read... [09:15:17]Read from MH i2c: E2 17 00 3C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 0D [09:15:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:15:17]wFMCommunicate OK [09:15:17]requested_item fd.num is exist - process it [09:15:17]SAM_PROTO_GetFieldsCounters [09:15:17]wFMCommunicate request_size=4 [09:15:17]MH_SAM_APDU [09:15:17]CAPDU: 80 13 00 00 [09:15:17]Write to MH i2c: E2 08 00 3D 05 80 13 00 00 00 00 00 00 BE [09:15:17]Write i2c OK [09:15:17]MH_I2C_Read... [09:15:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:17]Read from MH i2c: E2 [09:15:17]MH_I2C_Read... [09:15:17]Read from MH i2c: E2 62 00 [09:15:17]MH_I2C_Read... [09:15:17]Read from MH i2c: E2 62 00 3D 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B2 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [09:15:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B2 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:15:17]wFMCommunicate OK [09:15:17]SAM_PROTO_GetFieldsCounters done [09:15:17]requested_item shift.num is exist - process it [09:15:17]requested_item shift.opened is exist - process it [09:15:17]req_shift_opened [09:15:17]FM_GetShiftState [09:15:17]SAM_PROTO_GetShiftState [09:15:17]wFMCommunicate request_size=4 [09:15:17]MH_SAM_APDU [09:15:17]CAPDU: 80 13 01 00 [09:15:17]Write to MH i2c: E2 08 00 3E 05 80 13 01 00 00 00 00 00 C0 [09:15:17]Write i2c OK [09:15:17]MH_I2C_Read... [09:15:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:17]Read from MH i2c: E2 [09:15:17]MH_I2C_Read... [09:15:17]Read from MH i2c: E2 0E 00 [09:15:17]MH_I2C_Read... [09:15:17]Read from MH i2c: E2 0E 00 3E 05 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 C8 [09:15:17]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:15:17]wFMCommunicate OK [09:15:17]SAM_PROTO_GetShiftState done [09:15:17]FM_GetShiftState done [09:15:17]req_shift_opened done [09:15:17]requested_item shift.open_date is exist - process it [09:15:17]req_shift_open_date [09:15:17]req_shift_open_date done [09:15:17]produce_requested_data done [09:15:17]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82098,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [09:15:17]process_action_free close_receipt [09:15:17]json_value_free [09:15:17]json_value_free done [09:15:17]process_json_proto returns [09:15:17]Send response to host [09:15:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82098,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [09:15:17]free response buf [09:15:17]execute_script done [09:15:17]execute_script returns [09:15:17]free content buf [09:15:17]Sock 9.Close socket [09:15:17]Sock 9.Thread stoped [09:15:22]OFD Sender: No OFD packet to send [09:15:27]OFD Sender: No OFD packet to send [09:15:30]recv_with_timeout no data received [09:15:32]OFD Sender: No OFD packet to send [09:15:37]OFD Sender: No OFD packet to send [09:15:42]OFD Sender: No OFD packet to send [09:15:47]OFD Sender: No OFD packet to send [09:15:52]OFD Sender: No OFD packet to send [09:15:57]OFD Sender: No OFD packet to send [09:16:02]OFD Sender: No OFD packet to send [09:16:07]OFD Sender: No OFD packet to send [09:16:12]OFD Sender: No OFD packet to send [09:16:17]OFD Sender: No OFD packet to send [09:16:22]OFD Sender: No OFD packet to send [09:16:27]OFD Sender: No OFD packet to send [09:16:32]OFD Sender: No OFD packet to send [09:16:37]OFD Sender: No OFD packet to send [09:16:42]OFD Sender: No OFD packet to send [09:16:47]OFD Sender: No OFD packet to send [09:16:52]OFD Sender: No OFD packet to send [09:16:52]accept exits with 8 [09:16:52]New connection [09:16:52]New thread 3067522404 created [09:16:52]Thread 3067379044 joined [09:16:52]Waiting for new connection... [09:16:52] Sock 8.Parse request [09:16:52]Sock 8.Check first char [09:16:52]Sock 8.First char is OK [09:16:52]request: POST /json_proto HTTP/1.0 [09:16:52]Method: POST [09:16:52]URL: /json_proto [09:16:52]Method is POST - this is cgi request [09:16:52]url: /json_proto [09:16:52]query_string will be loaded in cgi processing [09:16:52]execute_cgi json_proto POST (null) [09:16:52]execute_cgi path=json_proto method=POST [09:16:52]POST find Content-Length [09:16:52]Host: 172.17.44.67:8080 [09:16:52]Content-Length: 806 [09:16:52]Content-Type: application/json [09:16:52] [09:16:52]POST finish read [09:16:52]Found Content-Length = 806 [09:16:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2203038", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:52]execute_script... [09:16:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2203038", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:52]POST & json_proto [09:16:52]process_json_proto [09:16:52]json parsed OK: [09:16:52]protocol is kg_v1.0 [09:16:52]action value=close_receipt [09:16:52]process_action close_receipt [09:16:52]cmd_close_receipt [09:16:52]MH_GetDate [09:16:52]Write to MH i2c: F0 00 00 3F 05 33 [09:16:52]Write i2c OK [09:16:52]MH_I2C_Read... [09:16:52]Read from MH i2c: F0 [09:16:52]MH_I2C_Read... [09:16:52]Read from MH i2c: F0 09 00 [09:16:52]MH_I2C_Read... [09:16:52]Read from MH i2c: F0 09 00 3F 05 00 05 D6 10 67 F1 C7 6B 64 15 [09:16:52]GetLastDocTimeStamp 1729156514 [09:16:52]current date 1729156613 [09:16:52]FM_GetShiftState [09:16:52]SAM_PROTO_GetShiftState [09:16:52]wFMCommunicate request_size=4 [09:16:52]MH_SAM_APDU [09:16:52]CAPDU: 80 13 01 00 [09:16:52]Write to MH i2c: E2 08 00 40 05 80 13 01 00 00 00 00 00 C2 [09:16:52]Write i2c OK [09:16:52]MH_I2C_Read... [09:16:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:53]Read from MH i2c: E2 [09:16:53]MH_I2C_Read... [09:16:53]Read from MH i2c: E2 0E 00 [09:16:53]MH_I2C_Read... [09:16:53]Read from MH i2c: E2 0E 00 40 05 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 CA [09:16:53]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:16:53]wFMCommunicate OK [09:16:53]SAM_PROTO_GetShiftState done [09:16:53]FM_GetShiftState done [09:16:53]opened in 1729125927 [09:16:53]opened+sec_in_day 1729212327 [09:16:53]quantity*price = 0 [09:16:53]sum+1 = 1 [09:16:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 25 17.10.2024 09:16 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 2203038 ФМ: 0000000000871843 ФД: 82099 ФПД: 257354335683287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T091653&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82099&fm=257354335683287&tin=02508201610067®Number=0000000000091680&sum=0 [09:16:54]StoreToDocumentArchive [09:16:54]shift 525 fd 82099 [09:16:54]save to /storage/0525/doc_00082099 [09:16:54]save last doc name /storage/0525/doc_00082099 to /storage/kkm_last_doc_name [09:16:54]save OK [09:16:54]Clear old archive folders... [09:16:54]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:16:54]tlvbuf is 01B59670 [09:16:54]SAM_PROTO_ClearQueue [09:16:54]wFMCommunicate request_size=4 [09:16:54]MH_SAM_APDU [09:16:54]CAPDU: 80 09 00 00 [09:16:54]Write to MH i2c: E2 08 00 4D 05 80 09 00 00 00 00 00 00 C4 [09:16:54]Write i2c OK [09:16:54]MH_I2C_Read... [09:16:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:16:54]Read from MH i2c: E2 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 03 00 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 03 00 4D 05 00 90 00 C6 [09:16:54]RAPDU: 90 00 [09:16:54]wFMCommunicate OK [09:16:54]SAM_PROTO_ClearQueue done [09:16:54]KKMCreateOFDPacket [09:16:54]OFDProtocolAddRootSTLVToBuf [09:16:54]FM_MakeSignedData [09:16:54]FM_MakeSignedData [09:16:54]SAM_PROTO_SignData [09:16:54]wFMCommunicate request_size=4 [09:16:54]MH_SAM_APDU [09:16:54]CAPDU: 80 0D 01 02 [09:16:54]Write to MH i2c: E2 08 00 4E 05 80 0D 01 02 00 00 00 00 CC [09:16:54]Write i2c OK [09:16:54]MH_I2C_Read... [09:16:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:16:54]Read from MH i2c: E2 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 03 00 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 03 00 4E 05 00 90 00 C7 [09:16:54]RAPDU: 90 00 [09:16:54]wFMCommunicate OK [09:16:54]wFMCommunicate request_size=255 [09:16:54]MH_SAM_APDU [09:16:54]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 05 D6 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B3 40 01 [09:16:54]Write to MH i2c: E2 02 01 4F 05 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 05 D6 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B3 40 01 00 00 14 [09:16:54]Write i2c OK [09:16:54]MH_I2C_Read... [09:16:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:54]Read from MH i2c: E2 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 03 00 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 03 00 4F 05 00 90 00 C8 [09:16:54]RAPDU: 90 00 [09:16:54]wFMCommunicate OK [09:16:54]wFMCommunicate request_size=16 [09:16:54]MH_SAM_APDU [09:16:54]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 EA 0F F9 C2 82 D7 [09:16:54]Write to MH i2c: E2 13 00 50 05 80 0D 02 02 0B 00 00 35 04 06 00 EA 0F F9 C2 82 D7 00 00 31 [09:16:54]Write i2c OK [09:16:54]MH_I2C_Read... [09:16:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:54]Read from MH i2c: E2 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 03 00 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 03 00 50 05 00 90 00 C9 [09:16:54]RAPDU: 90 00 [09:16:54]wFMCommunicate OK [09:16:54]wFMCommunicate request_size=4 [09:16:54]MH_SAM_APDU [09:16:54]CAPDU: 80 0D 03 02 [09:16:54]Write to MH i2c: E2 08 00 51 05 80 0D 03 02 00 00 00 00 D1 [09:16:54]Write i2c OK [09:16:54]MH_I2C_Read... [09:16:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:16:54]Read from MH i2c: E2 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 0B 00 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 0B 00 51 05 00 87 40 E8 11 62 84 FF BE 90 00 35 [09:16:54]RAPDU: 87 40 E8 11 62 84 FF BE 90 00 [09:16:54]wFMCommunicate OK [09:16:54]SAM_PROTO_SignData done [09:16:54]FM_MakeSignedData done [09:16:54]CreateOFDProtocolMessage [09:16:54]wFMCommunicate request_size=4 [09:16:54]MH_SAM_APDU [09:16:54]CAPDU: 80 11 00 00 [09:16:54]Write to MH i2c: E2 08 00 52 05 80 11 00 00 00 00 00 00 D1 [09:16:54]Write i2c OK [09:16:54]MH_I2C_Read... [09:16:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:54]Read from MH i2c: E2 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 17 00 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 17 00 52 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 23 [09:16:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:16:54]wFMCommunicate OK [09:16:54]CreateOFDProtocolMessage done [09:16:54]OFDSenderStorePacket 82099 [09:16:54]StoreOFDPacket docnum=82099 [09:16:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 F0 AF 0D 01 9D EF 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 05 D6 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B3 40 01 00 35 04 06 00 EA 0F F9 C2 82 D7 87 40 E8 11 62 84 FF BE [09:16:54]CheckFolder [09:16:54]dirname=/storage/ofd_packets [09:16:54]CheckFolder done [09:16:54]ProducePacketName [09:16:54]name=ofd_packets/00082099 [09:16:54]NVStorageSaveData ofd_packets/00082099 [09:16:54]File name is /storage/ofd_packets/00082099 [09:16:54]Write 307 bytes [09:16:54]NVStorageSaveData done [09:16:54]OFDSenderStorePacket done [09:16:54]KKMCreateOFDPacket done [09:16:54]NVStorageSaveData kkm_last_timestamp [09:16:54]File name is /storage/kkm_last_timestamp [09:16:54]Write 4 bytes [09:16:54]NVStorageSaveData done [09:16:54]ExternCall_PrintAddStr [09:16:54]wPrintStart [09:16:54]Write to MH i2c: 01 00 00 53 05 58 [09:16:54]Write i2c OK [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: 01 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: 01 07 00 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: 01 07 00 53 05 00 00 00 00 00 FF 0F 6D [09:16:54]RasterBufferAndPrint [09:16:54]line Счет N : (1)918605 [09:16:54]line ИНН: 02508201610067 [09:16:54]line Контрольно-Кассовый Чек [09:16:54]line ПРОДАЖА [09:16:54]line ТРК (МРК, ГНК) : 21 [09:16:54]line Товар: 2710194800 [09:16:54]line D-Energy ДТ-К-2 [09:16:54]line 30.000 * 0.00 [09:16:54]line = 0.00 [09:16:54]line НДС 12% НСП 1% [09:16:54]line > о реализуемом товаре [09:16:54]line ИТОГО: 0.00 [09:16:54]line НСП 1% : 0.00 [09:16:54]line НДС 12% : 0.00 [09:16:54]line Наличными: 0.00 [09:16:54]line Безнал.: 0.00 [09:16:54]line Место: АЗС № 114 "Партнер Нефть" [09:16:54]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:16:54]line СНО: Общий режим [09:16:54]line Чек 25 17.10.2024 09:16 [09:16:54]line Смена: 525 ФФД: 1.0 [09:16:54]line ЗНМ: 0300000086 [09:16:54]line РНМ: 0000000000091680 [09:16:54]line Версия ККМ: 001 [09:16:54]line Талоны: Топливные Талоны [09:16:54]line 2203038 [09:16:54]line ФМ: 0000000000871843 [09:16:54]line ФД: 82099 [09:16:54]line ФПД: 257354335683287 [09:16:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T091653&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82099&fm=257354335683287&tin=02508201610067®Number=0000000000091680&sum=0 [09:16:55]OFD Sender: Processing packet 82099 [packets to send 254, broken 253] [09:16:55]ProducePacketName [09:16:55]name=ofd_packets/00082099 [09:16:55]OFD Sender: To server: pG, [09:16:55]written 0, free lines is 4095 [09:16:55]CommunicateWithHost lk.salyk.kg:30040 [09:16:55]ConnectInit lk.salyk.kg [09:16:55]Write to MH i2c: 01 00 00 7D 05 82 [09:16:55]Write i2c OK [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: 01 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: 01 07 00 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: 01 07 00 7D 05 00 00 00 00 00 F7 0C 8C [09:16:55]RasterBufferAndPrint [09:16:55]line [09:16:55]line [09:16:55]line [09:16:55]line [09:16:55]line [09:16:55]written 0, free lines is 3326 [09:16:55]MH_Cut [09:16:55]Write to MH i2c: D1 01 00 84 05 01 5B [09:16:55]Write i2c OK [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: D1 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: D1 01 00 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: D1 01 00 84 05 00 5A [09:16:55]Write to MH i2c: 01 00 00 85 05 8A [09:16:55]Write i2c OK [09:16:55]MH_I2C_Read... [09:16:55]Connected sock=11 [09:16:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 F0 AF 0D 01 9D EF 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 05 D6 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B3 40 01 00 35 04 06 00 EA 0F F9 C2 82 D7 87 40 E8 11 62 84 FF BE [09:16:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 4B 1C 47 00 23 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B3 40 01 00 F4 03 04 00 44 7B 10 67 B6 04 01 00 00 96 96 D7 68 F0 B9 C2 7C [09:16:55]CommunicateWithHost err = 0 [09:16:55]CheckOFDResponse [09:16:55]1017 (14) - 77093643461234 [09:16:55]1041 (16) - 0000000000871843 [09:16:55]1040 (4) - 82099 [09:16:55]1012 (4) - 17.10.2024 02:49 [09:16:55]1206 (1) - 0 [09:16:55]OFD Sender: Remove packet 82099 [09:16:55]ProducePacketName [09:16:55]name=ofd_packets/00082099 [09:16:55]NVStorageDeleteData [09:16:56]*** Cut start [09:16:56]*** Partial cut [09:16:56]*** CUTSNS_PIN = 1 [09:16:56]*** CUTSNS_PIN = 0 [09:16:56]OFD Sender: No OFD packet to send [09:16:56]*** Brake cut motor [09:16:56]Read from MH i2c: 01 [09:16:56]MH_I2C_Read... [09:16:56]*** Stop cut motor [09:16:56]*** Cut end [09:16:56]Read from MH i2c: 01 07 00 [09:16:56]MH_I2C_Read... [09:16:56]Read from MH i2c: 01 07 00 85 05 00 00 00 00 00 FF 0F 9F [09:16:56]process_action close_receipt done [09:16:56]requested_data is exist [09:16:56]produce_requested_data [09:16:56]requested_item fm.sn is exist - process it [09:16:56]wFMCommunicate request_size=4 [09:16:56]MH_SAM_APDU [09:16:56]CAPDU: 80 11 00 00 [09:16:56]Write to MH i2c: E2 08 00 86 05 80 11 00 00 00 00 00 00 05 [09:16:56]Write i2c OK [09:16:56]MH_I2C_Read... [09:16:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:56]Read from MH i2c: E2 [09:16:56]MH_I2C_Read... [09:16:56]Read from MH i2c: E2 17 00 [09:16:56]MH_I2C_Read... [09:16:56]Read from MH i2c: E2 17 00 86 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 57 [09:16:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:16:56]wFMCommunicate OK [09:16:56]requested_item fd.num is exist - process it [09:16:56]SAM_PROTO_GetFieldsCounters [09:16:56]wFMCommunicate request_size=4 [09:16:56]MH_SAM_APDU [09:16:56]CAPDU: 80 13 00 00 [09:16:56]Write to MH i2c: E2 08 00 87 05 80 13 00 00 00 00 00 00 08 [09:16:56]Write i2c OK [09:16:56]MH_I2C_Read... [09:16:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:57]Read from MH i2c: E2 [09:16:57]MH_I2C_Read... [09:16:57]Read from MH i2c: E2 62 00 [09:16:57]MH_I2C_Read... [09:16:57]Read from MH i2c: E2 62 00 87 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B3 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [09:16:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B3 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:16:57]wFMCommunicate OK [09:16:57]SAM_PROTO_GetFieldsCounters done [09:16:57]requested_item shift.num is exist - process it [09:16:57]requested_item shift.opened is exist - process it [09:16:57]req_shift_opened [09:16:57]FM_GetShiftState [09:16:57]SAM_PROTO_GetShiftState [09:16:57]wFMCommunicate request_size=4 [09:16:57]MH_SAM_APDU [09:16:57]CAPDU: 80 13 01 00 [09:16:57]Write to MH i2c: E2 08 00 88 05 80 13 01 00 00 00 00 00 0A [09:16:57]Write i2c OK [09:16:57]MH_I2C_Read... [09:16:57]Read from MH i2c: E2 [09:16:57]MH_I2C_Read... [09:16:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:57]Read from MH i2c: E2 0E 00 [09:16:57]MH_I2C_Read... [09:16:57]Read from MH i2c: E2 0E 00 88 05 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 12 [09:16:57]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:16:57]wFMCommunicate OK [09:16:57]SAM_PROTO_GetShiftState done [09:16:57]FM_GetShiftState done [09:16:57]req_shift_opened done [09:16:57]requested_item shift.open_date is exist - process it [09:16:57]req_shift_open_date [09:16:57]req_shift_open_date done [09:16:57]produce_requested_data done [09:16:57]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82099,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [09:16:57]process_action_free close_receipt [09:16:57]json_value_free [09:16:57]json_value_free done [09:16:57]process_json_proto returns [09:16:57]Send response to host [09:16:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82099,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [09:16:57]free response buf [09:16:57]execute_script done [09:16:57]execute_script returns [09:16:57]free content buf [09:16:57]Sock 8.Close socket [09:16:57]Sock 8.Thread stoped [09:17:01]OFD Sender: No OFD packet to send [09:17:05]recv_with_timeout no data received [09:17:06]OFD Sender: No OFD packet to send [09:17:11]OFD Sender: No OFD packet to send [09:17:16]OFD Sender: No OFD packet to send [09:17:21]OFD Sender: No OFD packet to send [09:17:26]OFD Sender: No OFD packet to send [09:17:31]OFD Sender: No OFD packet to send [09:17:36]OFD Sender: No OFD packet to send [09:17:41]OFD Sender: No OFD packet to send [09:17:46]OFD Sender: No OFD packet to send [09:17:51]OFD Sender: No OFD packet to send [09:17:56]OFD Sender: No OFD packet to send [09:18:01]OFD Sender: No OFD packet to send [09:18:06]OFD Sender: No OFD packet to send [09:18:11]OFD Sender: No OFD packet to send [09:18:16]OFD Sender: No OFD packet to send [09:18:21]OFD Sender: No OFD packet to send [09:18:26]OFD Sender: No OFD packet to send [09:18:31]OFD Sender: No OFD packet to send [09:18:36]OFD Sender: No OFD packet to send [09:18:41]OFD Sender: No OFD packet to send [09:18:46]OFD Sender: No OFD packet to send [09:18:51]OFD Sender: No OFD packet to send [09:18:56]OFD Sender: No OFD packet to send [09:19:01]OFD Sender: No OFD packet to send [09:19:06]OFD Sender: No OFD packet to send [09:19:11]OFD Sender: No OFD packet to send [09:19:16]OFD Sender: No OFD packet to send [09:19:21]OFD Sender: No OFD packet to send [09:19:26]OFD Sender: No OFD packet to send [09:19:31]OFD Sender: No OFD packet to send [09:19:36]OFD Sender: No OFD packet to send [09:19:41]OFD Sender: No OFD packet to send [09:19:46]OFD Sender: No OFD packet to send [09:19:51]OFD Sender: No OFD packet to send [09:19:56]OFD Sender: No OFD packet to send [09:20:01]OFD Sender: No OFD packet to send [09:20:06]recv_with_timeout no data received [09:20:06]OFD Sender: No OFD packet to send [09:20:11]OFD Sender: No OFD packet to send [09:20:16]OFD Sender: No OFD packet to send [09:20:21]OFD Sender: No OFD packet to send [09:20:26]OFD Sender: No OFD packet to send [09:20:31]OFD Sender: No OFD packet to send [09:20:35]accept exits with 9 [09:20:35]New connection [09:20:35]New thread 3067379044 created [09:20:35]Thread 3067522404 joined [09:20:35]Waiting for new connection... [09:20:35] Sock 9.Parse request [09:20:35]Sock 9.Check first char [09:20:35]Sock 9.First char is OK [09:20:35]request: POST /json_proto HTTP/1.0 [09:20:35]Method: POST [09:20:35]URL: /json_proto [09:20:35]Method is POST - this is cgi request [09:20:35]url: /json_proto [09:20:35]query_string will be loaded in cgi processing [09:20:35]execute_cgi json_proto POST (null) [09:20:35]execute_cgi path=json_proto method=POST [09:20:35]POST find Content-Length [09:20:35]Host: 172.17.44.67:8080 [09:20:35]Content-Length: 759 [09:20:35]Content-Type: application/json [09:20:35] [09:20:35]POST finish read [09:20:35]Found Content-Length = 759 [09:20:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30121604", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:35]execute_script... [09:20:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30121604", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:35]POST & json_proto [09:20:35]process_json_proto [09:20:35]json parsed OK: [09:20:35]protocol is kg_v1.0 [09:20:35]action value=close_receipt [09:20:35]process_action close_receipt [09:20:35]cmd_close_receipt [09:20:35]MH_GetDate [09:20:35]Write to MH i2c: F0 00 00 89 05 7D [09:20:35]Write i2c OK [09:20:35]MH_I2C_Read... [09:20:35]Read from MH i2c: F0 [09:20:35]MH_I2C_Read... [09:20:35]Read from MH i2c: F0 09 00 [09:20:35]MH_I2C_Read... [09:20:35]Read from MH i2c: F0 09 00 89 05 00 E3 D6 10 67 F1 C7 6B 64 3D [09:20:35]GetLastDocTimeStamp 1729156613 [09:20:35]current date 1729156835 [09:20:35]FM_GetShiftState [09:20:35]SAM_PROTO_GetShiftState [09:20:35]wFMCommunicate request_size=4 [09:20:35]MH_SAM_APDU [09:20:35]CAPDU: 80 13 01 00 [09:20:35]Write to MH i2c: E2 08 00 8A 05 80 13 01 00 00 00 00 00 0C [09:20:35]Write i2c OK [09:20:35]MH_I2C_Read... [09:20:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:35]Read from MH i2c: E2 [09:20:35]MH_I2C_Read... [09:20:35]Read from MH i2c: E2 0E 00 [09:20:35]MH_I2C_Read... [09:20:35]Read from MH i2c: E2 0E 00 8A 05 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 14 [09:20:35]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:20:35]wFMCommunicate OK [09:20:35]SAM_PROTO_GetShiftState done [09:20:35]FM_GetShiftState done [09:20:35]opened in 1729125927 [09:20:35]opened+sec_in_day 1729212327 [09:20:35]quantity*price = 0 [09:20:35]sum+1 = 1 [09:20:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 26 17.10.2024 09:20 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30121604 ФМ: 0000000000871843 ФД: 82100 ФПД: 187066616765186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T092035&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82100&fm=187066616765186&tin=02508201610067®Number=0000000000091680&sum=0 [09:20:36]StoreToDocumentArchive [09:20:36]shift 525 fd 82100 [09:20:36]save to /storage/0525/doc_00082100 [09:20:36]save last doc name /storage/0525/doc_00082100 to /storage/kkm_last_doc_name [09:20:36]save OK [09:20:36]Clear old archive folders... [09:20:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:20:36]tlvbuf is B6F4CA40 [09:20:36]SAM_PROTO_ClearQueue [09:20:36]wFMCommunicate request_size=4 [09:20:36]MH_SAM_APDU [09:20:36]CAPDU: 80 09 00 00 [09:20:36]Write to MH i2c: E2 08 00 97 05 80 09 00 00 00 00 00 00 0E [09:20:36]Write i2c OK [09:20:36]MH_I2C_Read... [09:20:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:20:36]Read from MH i2c: E2 [09:20:36]MH_I2C_Read... [09:20:36]Read from MH i2c: E2 03 00 [09:20:36]MH_I2C_Read... [09:20:36]Read from MH i2c: E2 03 00 97 05 00 90 00 10 [09:20:36]RAPDU: 90 00 [09:20:36]wFMCommunicate OK [09:20:36]SAM_PROTO_ClearQueue done [09:20:36]KKMCreateOFDPacket [09:20:36]OFDProtocolAddRootSTLVToBuf [09:20:36]FM_MakeSignedData [09:20:36]FM_MakeSignedData [09:20:36]SAM_PROTO_SignData [09:20:36]wFMCommunicate request_size=4 [09:20:36]MH_SAM_APDU [09:20:36]CAPDU: 80 0D 01 02 [09:20:36]Write to MH i2c: E2 08 00 98 05 80 0D 01 02 00 00 00 00 16 [09:20:36]Write i2c OK [09:20:36]MH_I2C_Read... [09:20:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:20:36]Read from MH i2c: E2 [09:20:36]MH_I2C_Read... [09:20:36]Read from MH i2c: E2 03 00 [09:20:36]MH_I2C_Read... [09:20:36]Read from MH i2c: E2 03 00 98 05 00 90 00 11 [09:20:36]RAPDU: 90 00 [09:20:36]wFMCommunicate OK [09:20:36]wFMCommunicate request_size=255 [09:20:36]MH_SAM_APDU [09:20:36]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 E3 D6 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B4 40 01 00 35 04 06 00 [09:20:36]Write to MH i2c: E2 02 01 99 05 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 E3 D6 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B4 40 01 00 35 04 06 00 00 00 83 [09:20:36]Write i2c OK [09:20:36]MH_I2C_Read... [09:20:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:36]Read from MH i2c: E2 [09:20:36]MH_I2C_Read... [09:20:36]Read from MH i2c: E2 03 00 [09:20:36]MH_I2C_Read... [09:20:36]Read from MH i2c: E2 03 00 99 05 00 90 00 12 [09:20:36]RAPDU: 90 00 [09:20:36]wFMCommunicate OK [09:20:36]wFMCommunicate request_size=11 [09:20:36]MH_SAM_APDU [09:20:36]CAPDU: 80 0D 02 02 06 AA 22 D7 3D DB 02 [09:20:36]Write to MH i2c: E2 0E 00 9A 05 80 0D 02 02 06 00 AA 22 D7 3D DB 02 00 00 E2 [09:20:36]Write i2c OK [09:20:36]MH_I2C_Read... [09:20:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:36]Read from MH i2c: E2 [09:20:36]MH_I2C_Read... [09:20:36]Read from MH i2c: E2 03 00 [09:20:36]MH_I2C_Read... [09:20:36]Read from MH i2c: E2 03 00 9A 05 00 90 00 13 [09:20:36]RAPDU: 90 00 [09:20:36]wFMCommunicate OK [09:20:36]wFMCommunicate request_size=4 [09:20:36]MH_SAM_APDU [09:20:36]CAPDU: 80 0D 03 02 [09:20:36]Write to MH i2c: E2 08 00 9B 05 80 0D 03 02 00 00 00 00 1B [09:20:36]Write i2c OK [09:20:36]MH_I2C_Read... [09:20:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:20:36]Read from MH i2c: E2 [09:20:36]MH_I2C_Read... [09:20:36]Read from MH i2c: E2 0B 00 [09:20:36]MH_I2C_Read... [09:20:36]Read from MH i2c: E2 0B 00 9B 05 00 F3 AD 6F 79 59 6D A3 2E 90 00 3B [09:20:36]RAPDU: F3 AD 6F 79 59 6D A3 2E 90 00 [09:20:36]wFMCommunicate OK [09:20:36]SAM_PROTO_SignData done [09:20:36]FM_MakeSignedData done [09:20:36]CreateOFDProtocolMessage [09:20:36]wFMCommunicate request_size=4 [09:20:36]MH_SAM_APDU [09:20:36]CAPDU: 80 11 00 00 [09:20:36]Write to MH i2c: E2 08 00 9C 05 80 11 00 00 00 00 00 00 1B [09:20:36]Write i2c OK [09:20:36]MH_I2C_Read... [09:20:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:36]Read from MH i2c: E2 [09:20:36]MH_I2C_Read... [09:20:36]Read from MH i2c: E2 17 00 [09:20:36]MH_I2C_Read... [09:20:36]Read from MH i2c: E2 17 00 9C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 6D [09:20:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:20:36]wFMCommunicate OK [09:20:36]CreateOFDProtocolMessage done [09:20:36]OFDSenderStorePacket 82100 [09:20:36]StoreOFDPacket docnum=82100 [09:20:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 7B 48 08 01 57 5C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 E3 D6 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B4 40 01 00 35 04 06 00 AA 22 D7 3D DB 02 F3 AD 6F 79 59 6D A3 2E [09:20:36]CheckFolder [09:20:36]dirname=/storage/ofd_packets [09:20:36]CheckFolder done [09:20:36]ProducePacketName [09:20:36]name=ofd_packets/00082100 [09:20:36]NVStorageSaveData ofd_packets/00082100 [09:20:36]File name is /storage/ofd_packets/00082100 [09:20:36]Write 302 bytes [09:20:36]NVStorageSaveData done [09:20:36]OFDSenderStorePacket done [09:20:36]KKMCreateOFDPacket done [09:20:36]NVStorageSaveData kkm_last_timestamp [09:20:36]File name is /storage/kkm_last_timestamp [09:20:36]Write 4 bytes [09:20:36]NVStorageSaveData done [09:20:36]ExternCall_PrintAddStr [09:20:36]wPrintStart [09:20:36]Write to MH i2c: 01 00 00 9D 05 A2 [09:20:36]Write i2c OK [09:20:36]MH_I2C_Read... [09:20:36]Read from MH i2c: 01 [09:20:36]MH_I2C_Read... [09:20:36]Read from MH i2c: 01 07 00 [09:20:36]MH_I2C_Read... [09:20:36]Read from MH i2c: 01 07 00 9D 05 00 00 00 00 00 FF 0F B7 [09:20:36]RasterBufferAndPrint [09:20:36]line Счет N : (1)918606 [09:20:36]line ИНН: 02508201610067 [09:20:36]line Контрольно-Кассовый Чек [09:20:36]line ПРОДАЖА [09:20:36]line ТРК (МРК, ГНК) : 31 [09:20:36]line Товар: 2710194210 [09:20:36]line ДТ(л)-К-5 [09:20:36]line 40.000 * 0.00 [09:20:36]line = 0.00 [09:20:36]line НДС 12% НСП 1% [09:20:36]line > о реализуемом товаре [09:20:36]line ИТОГО: 0.00 [09:20:36]line НСП 1% : 0.00 [09:20:36]line НДС 12% : 0.00 [09:20:36]line Наличными: 0.00 [09:20:36]line Безнал.: 0.00 [09:20:36]line Место: АЗС № 114 "Партнер Нефть" [09:20:36]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:20:36]line СНО: Общий режим [09:20:36]line Чек 26 17.10.2024 09:20 [09:20:36]line Смена: 525 ФФД: 1.0 [09:20:36]line ЗНМ: 0300000086 [09:20:36]line РНМ: 0000000000091680 [09:20:36]line Версия ККМ: 001 [09:20:36]line Талоны: ТК ГПНА Online [09:20:36]line 30121604 [09:20:36]line ФМ: 0000000000871843 [09:20:36]line ФД: 82100 [09:20:36]line ФПД: 187066616765186 [09:20:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T092035&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82100&fm=187066616765186&tin=02508201610067®Number=0000000000091680&sum=0 [09:20:37]OFD Sender: Processing packet 82100 [packets to send 254, broken 253] [09:20:37]ProducePacketName [09:20:37]name=ofd_packets/00082100 [09:20:37]OFD Sender: To server: pG, [09:20:37]CommunicateWithHost lk.salyk.kg:30040 [09:20:37]ConnectInit lk.salyk.kg [09:20:37]written 0, free lines is 4095 [09:20:37]Write to MH i2c: 01 00 00 C7 05 CC [09:20:37]Write i2c OK [09:20:37]MH_I2C_Read... [09:20:37]Read from MH i2c: 01 [09:20:37]MH_I2C_Read... [09:20:37]Read from MH i2c: 01 07 00 [09:20:37]MH_I2C_Read... [09:20:37]Read from MH i2c: 01 07 00 C7 05 00 00 00 00 00 DF 0C BE [09:20:37]RasterBufferAndPrint [09:20:37]line [09:20:37]line [09:20:37]line [09:20:37]line [09:20:37]line [09:20:37]written 0, free lines is 3301 [09:20:37]MH_Cut [09:20:37]Write to MH i2c: D1 01 00 CE 05 01 A5 [09:20:37]Write i2c OK [09:20:37]MH_I2C_Read... [09:20:37]Read from MH i2c: D1 [09:20:37]MH_I2C_Read... [09:20:37]Read from MH i2c: D1 01 00 [09:20:37]MH_I2C_Read... [09:20:37]Read from MH i2c: D1 01 00 CE 05 00 A4 [09:20:37]Write to MH i2c: 01 00 00 CF 05 D4 [09:20:37]Write i2c OK [09:20:37]MH_I2C_Read... [09:20:38]*** Cut start [09:20:38]*** Partial cut [09:20:38]*** CUTSNS_PIN = 1 [09:20:38]*** CUTSNS_PIN = 0 [09:20:38]*** Brake cut motor [09:20:38]Read from MH i2c: 01 [09:20:38]MH_I2C_Read... [09:20:38]*** Stop cut motor [09:20:38]*** Cut end [09:20:38]Read from MH i2c: 01 07 00 [09:20:38]MH_I2C_Read... [09:20:38]Read from MH i2c: 01 07 00 CF 05 00 00 00 00 00 FF 0F E9 [09:20:38]process_action close_receipt done [09:20:38]requested_data is exist [09:20:38]produce_requested_data [09:20:38]requested_item fm.sn is exist - process it [09:20:38]wFMCommunicate request_size=4 [09:20:38]MH_SAM_APDU [09:20:38]CAPDU: 80 11 00 00 [09:20:38]Write to MH i2c: E2 08 00 D0 05 80 11 00 00 00 00 00 00 4F [09:20:38]Write i2c OK [09:20:38]MH_I2C_Read... [09:20:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:39]Read from MH i2c: E2 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: E2 17 00 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: E2 17 00 D0 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 A1 [09:20:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:20:39]wFMCommunicate OK [09:20:39]requested_item fd.num is exist - process it [09:20:39]SAM_PROTO_GetFieldsCounters [09:20:39]wFMCommunicate request_size=4 [09:20:39]MH_SAM_APDU [09:20:39]CAPDU: 80 13 00 00 [09:20:39]Write to MH i2c: E2 08 00 D1 05 80 13 00 00 00 00 00 00 52 [09:20:39]Write i2c OK [09:20:39]MH_I2C_Read... [09:20:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:39]Read from MH i2c: E2 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: E2 62 00 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: E2 62 00 D1 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B4 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [09:20:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B4 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:20:39]wFMCommunicate OK [09:20:39]SAM_PROTO_GetFieldsCounters done [09:20:39]requested_item shift.num is exist - process it [09:20:39]requested_item shift.opened is exist - process it [09:20:39]req_shift_opened [09:20:39]FM_GetShiftState [09:20:39]SAM_PROTO_GetShiftState [09:20:39]wFMCommunicate request_size=4 [09:20:39]MH_SAM_APDU [09:20:39]CAPDU: 80 13 01 00 [09:20:39]Write to MH i2c: E2 08 00 D2 05 80 13 01 00 00 00 00 00 54 [09:20:39]Write i2c OK [09:20:39]MH_I2C_Read... [09:20:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:39]Read from MH i2c: E2 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: E2 0E 00 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: E2 0E 00 D2 05 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 5C [09:20:39]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:20:39]wFMCommunicate OK [09:20:39]SAM_PROTO_GetShiftState done [09:20:39]FM_GetShiftState done [09:20:39]req_shift_opened done [09:20:39]requested_item shift.open_date is exist - process it [09:20:39]req_shift_open_date [09:20:39]req_shift_open_date done [09:20:39]produce_requested_data done [09:20:39]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82100,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [09:20:39]process_action_free close_receipt [09:20:39]json_value_free [09:20:39]json_value_free done [09:20:39]process_json_proto returns [09:20:39]Send response to host [09:20:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82100,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [09:20:39]free response buf [09:20:39]execute_script done [09:20:39]execute_script returns [09:20:39]free content buf [09:20:39]Sock 9.Close socket [09:20:39]Sock 9.Thread stoped [09:20:40]Connected sock=11 [09:20:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 7B 48 08 01 57 5C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 E3 D6 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B4 40 01 00 35 04 06 00 AA 22 D7 3D DB 02 F3 AD 6F 79 59 6D A3 2E [09:20:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 EE CD 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 30 38 37 31 38 34 33 10 04 04 00 B4 40 01 00 F4 03 04 00 25 7C 10 67 B6 04 01 00 00 64 53 C7 01 0F 25 34 EC [09:20:42]CommunicateWithHost err = 0 [09:20:42]CheckOFDResponse [09:20:42]1017 (14) - 77093643461234 [09:20:42]1041 (16) - 0000000000871843 [09:20:42]1040 (4) - 82100 [09:20:42]1012 (4) - 17.10.2024 02:53 [09:20:42]1206 (1) - 0 [09:20:42]OFD Sender: Remove packet 82100 [09:20:42]ProducePacketName [09:20:42]name=ofd_packets/00082100 [09:20:42]NVStorageDeleteData [09:20:42]OFD Sender: No OFD packet to send [09:20:43]recv_with_timeout no data received [09:20:47]OFD Sender: No OFD packet to send [09:20:52]OFD Sender: No OFD packet to send [09:20:54]recv_with_timeout no data received [09:20:57]OFD Sender: No OFD packet to send [09:21:02]OFD Sender: No OFD packet to send [09:21:05]recv_with_timeout no data received [09:21:07]OFD Sender: No OFD packet to send [09:21:12]OFD Sender: No OFD packet to send [09:21:17]OFD Sender: No OFD packet to send [09:21:22]OFD Sender: No OFD packet to send [09:21:27]OFD Sender: No OFD packet to send [09:21:32]OFD Sender: No OFD packet to send [09:21:37]OFD Sender: No OFD packet to send [09:21:42]OFD Sender: No OFD packet to send [09:21:47]OFD Sender: No OFD packet to send [09:21:52]OFD Sender: No OFD packet to send [09:21:59]CAPDU: 80 15 02 00 08 F4 03 04 00 37 D7 10 67 [09:21:59]Write to MH i2c: E2 10 00 DD 05 80 15 02 00 08 00 F4 03 04 00 37 D7 10 67 00 00 F2 [09:21:59]Write i2c OK [09:21:59]MH_I2C_Read... [09:21:59]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:21:59]Read from MH i2c: E2 [09:21:59]MH_I2C_Read... [09:21:59]Read from MH i2c: E2 03 00 [09:21:59]MH_I2C_Read... [09:21:59]Read from MH i2c: E2 03 00 DD 05 00 90 00 56 [09:21:59]RAPDU: 90 00 [09:21:59]wFMCommunicate OK [09:21:59]wFMCommunicate request_size=25 [09:21:59]MH_SAM_APDU [09:21:59]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 [09:21:59]Write to MH i2c: E2 1C 00 DE 05 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 00 00 C4 [09:21:59]Write i2c OK [09:21:59]MH_I2C_Read... [09:22:00]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:22:00]Read from MH i2c: E2 [09:22:00]MH_I2C_Read... [09:22:00]Read from MH i2c: E2 03 00 [09:22:00]MH_I2C_Read... [09:22:00]Read from MH i2c: E2 03 00 DE 05 00 90 00 57 [09:22:00]RAPDU: 90 00 [09:22:00]wFMCommunicate OK [09:22:00]wFMCommunicate request_size=4 [09:22:00]MH_SAM_APDU [09:22:00]CAPDU: 80 15 03 00 [09:22:00]Write to MH i2c: E2 08 00 DF 05 80 15 03 00 00 00 00 00 65 [09:22:00]Write i2c OK [09:22:00]MH_I2C_Read... [09:22:00]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [09:22:00]Read from MH i2c: E2 [09:22:00]MH_I2C_Read... [09:22:00]Read from MH i2c: E2 40 00 [09:22:00]MH_I2C_Read... [09:22:00]Read from MH i2c: E2 40 00 DF 05 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B5 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 1B 00 00 00 35 04 06 00 B9 0D A1 22 17 A5 90 00 BF [09:22:00]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B5 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 1B 00 00 00 35 04 06 00 B9 0D A1 22 17 A5 90 00 [09:22:00]wFMCommunicate OK [09:22:00]SAM_PROTO_ProcessDocument answer len = 59 [09:22:00]SAM_PROTO_ProcessDocument done [09:22:00]SetTLVBufToDocument [09:22:00]Processing tag 1209 (04B9) [09:22:00]Malloc new data [09:22:00]Processing tag 1041 (0411) [09:22:00]Processing tag 1040 (0410) [09:22:00]Malloc new data [09:22:00]Processing tag 1038 (040E) [09:22:00]Malloc new data [09:22:00]Processing tag 1042 (0412) [09:22:00]Malloc new data [09:22:00]Processing tag 1077 (0435) [09:22:00]Malloc new data [09:22:00]SetTLVBufToDocument err=0 [09:22:00]KKMLoadAndSignReceiptData store KKM data [09:22:00]KKMLoadAndSignReceiptData err=0 [09:22:00]wFMCommunicate request_size=4 [09:22:00]MH_SAM_APDU [09:22:00]CAPDU: 80 11 00 00 [09:22:00]Write to MH i2c: E2 08 00 E0 05 80 11 00 00 00 00 00 00 5F [09:22:00]Write i2c OK [09:22:00]MH_I2C_Read... [09:22:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:00]Read from MH i2c: E2 [09:22:00]MH_I2C_Read... [09:22:00]Read from MH i2c: E2 17 00 [09:22:00]MH_I2C_Read... [09:22:00]Read from MH i2c: E2 17 00 E0 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 B1 [09:22:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:22:00]wFMCommunicate OK [09:22:00]Счет N : (1)918607 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 22 Товар: 2710124130 Аи-92-К-4 4.490 * 66.90 = 300.38 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 27 17.10.2024 09:21 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82101 ФПД: 203468189079461 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T092159&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82101&fm=203468189079461&tin=02508201610067®Number=0000000000091680&sum=30000 [09:22:00]StoreToDocumentArchive [09:22:00]shift 525 fd 82101 [09:22:00]save to /storage/0525/doc_00082101 [09:22:00]save last doc name /storage/0525/doc_00082101 to /storage/kkm_last_doc_name [09:22:00]save OK [09:22:00]Clear old archive folders... [09:22:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:22:00]tlvbuf is 01B5A080 [09:22:00]SAM_PROTO_ClearQueue [09:22:00]wFMCommunicate request_size=4 [09:22:00]MH_SAM_APDU [09:22:00]CAPDU: 80 09 00 00 [09:22:00]Write to MH i2c: E2 08 00 E1 05 80 09 00 00 00 00 00 00 58 [09:22:00]Write i2c OK [09:22:00]MH_I2C_Read... [09:22:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:00]Read from MH i2c: E2 [09:22:00]MH_I2C_Read... [09:22:00]Read from MH i2c: E2 03 00 [09:22:00]MH_I2C_Read... [09:22:00]Read from MH i2c: E2 03 00 E1 05 00 90 00 5A [09:22:00]RAPDU: 90 00 [09:22:00]wFMCommunicate OK [09:22:00]SAM_PROTO_ClearQueue done [09:22:00]KKMCreateOFDPacket [09:22:00]OFDProtocolAddRootSTLVToBuf [09:22:00]FM_MakeSignedData [09:22:00]FM_MakeSignedData [09:22:00]SAM_PROTO_SignData [09:22:00]wFMCommunicate request_size=4 [09:22:00]MH_SAM_APDU [09:22:00]CAPDU: 80 0D 01 02 [09:22:00]Write to MH i2c: E2 08 00 E2 05 80 0D 01 02 00 00 00 00 60 [09:22:00]Write i2c OK [09:22:00]MH_I2C_Read... [09:22:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:00]Read from MH i2c: E2 [09:22:00]MH_I2C_Read... [09:22:00]Read from MH i2c: E2 03 00 [09:22:00]MH_I2C_Read... [09:22:00]Read from MH i2c: E2 03 00 E2 05 00 90 00 5B [09:22:00]RAPDU: 90 00 [09:22:00]wFMCommunicate OK [09:22:00]wFMCommunicate request_size=255 [09:22:00]MH_SAM_APDU [09:22:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 37 D7 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B5 40 01 00 35 04 06 00 B9 [09:22:00]Write to MH i2c: E2 02 01 E3 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 37 D7 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B5 40 01 00 35 04 06 00 B9 00 00 3E [09:22:00]Write i2c OK [09:22:00]MH_I2C_Read... [09:22:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:00]Read from MH i2c: E2 [09:22:00]MH_I2C_Read... [09:22:00]Read from MH i2c: E2 03 00 [09:22:00]MH_I2C_Read... [09:22:00]Read from MH i2c: E2 03 00 E3 05 00 90 00 5C [09:22:00]RAPDU: 90 00 [09:22:00]wFMCommunicate OK [09:22:00]wFMCommunicate request_size=10 [09:22:00]MH_SAM_APDU [09:22:00]CAPDU: 80 0D 02 02 05 0D A1 22 17 A5 [09:22:00]Write to MH i2c: E2 0D 00 E4 05 80 0D 02 02 05 00 0D A1 22 17 A5 00 00 F9 [09:22:00]Write i2c OK [09:22:00]MH_I2C_Read... [09:22:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:00]Read from MH i2c: E2 [09:22:00]MH_I2C_Read... [09:22:00]Read from MH i2c: E2 03 00 [09:22:00]MH_I2C_Read... [09:22:00]Read from MH i2c: E2 03 00 E4 05 00 90 00 5D [09:22:00]RAPDU: 90 00 [09:22:00]wFMCommunicate OK [09:22:00]wFMCommunicate request_size=4 [09:22:00]MH_SAM_APDU [09:22:00]CAPDU: 80 0D 03 02 [09:22:00]Write to MH i2c: E2 08 00 E5 05 80 0D 03 02 00 00 00 00 65 [09:22:00]Write i2c OK [09:22:00]MH_I2C_Read... [09:22:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:00]Read from MH i2c: E2 [09:22:00]MH_I2C_Read... [09:22:00]Read from MH i2c: E2 0B 00 [09:22:00]MH_I2C_Read... [09:22:00]Read from MH i2c: E2 0B 00 E5 05 00 B5 F2 C9 FE 4D 8A 9E D7 90 00 20 [09:22:00]RAPDU: B5 F2 C9 FE 4D 8A 9E D7 90 00 [09:22:00]wFMCommunicate OK [09:22:00]SAM_PROTO_SignData done [09:22:00]FM_MakeSignedData done [09:22:00]CreateOFDProtocolMessage [09:22:00]wFMCommunicate request_size=4 [09:22:00]MH_SAM_APDU [09:22:00]CAPDU: 80 11 00 00 [09:22:00]Write to MH i2c: E2 08 00 E6 05 80 11 00 00 00 00 00 00 65 [09:22:00]Write i2c OK [09:22:00]MH_I2C_Read... [09:22:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:00]Read from MH i2c: E2 [09:22:00]MH_I2C_Read... [09:22:00]Read from MH i2c: E2 17 00 [09:22:00]MH_I2C_Read... [09:22:00]Read from MH i2c: E2 17 00 E6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 B7 [09:22:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:22:00]wFMCommunicate OK [09:22:00]CreateOFDProtocolMessage done [09:22:00]OFDSenderStorePacket 82101 [09:22:00]StoreOFDPacket docnum=82101 [09:22:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 0E D8 07 01 58 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 37 D7 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B5 40 01 00 35 04 06 00 B9 0D A1 22 17 A5 B5 F2 C9 FE 4D 8A 9E D7 [09:22:00]CheckFolder [09:22:00]dirname=/storage/ofd_packets [09:22:00]CheckFolder done [09:22:00]ProducePacketName [09:22:00]name=ofd_packets/00082101 [09:22:00]NVStorageSaveData ofd_packets/00082101 [09:22:00]File name is /storage/ofd_packets/00082101 [09:22:00]Write 301 bytes [09:22:00]NVStorageSaveData done [09:22:00]OFDSenderStorePacket done [09:22:00]KKMCreateOFDPacket done [09:22:00]NVStorageSaveData kkm_last_timestamp [09:22:00]File name is /storage/kkm_last_timestamp [09:22:00]Write 4 bytes [09:22:00]NVStorageSaveData done [09:22:00]ExternCall_PrintAddStr [09:22:00]wPrintStart [09:22:00]Write to MH i2c: 01 00 00 E7 05 EC [09:22:00]Write i2c OK [09:22:00]MH_I2C_Read... [09:22:00]Read from MH i2c: 01 [09:22:00]MH_I2C_Read... [09:22:00]Read from MH i2c: 01 07 00 [09:22:00]MH_I2C_Read... [09:22:00]Read from MH i2c: 01 07 00 E7 05 00 00 00 00 00 FF 0F 01 [09:22:00]RasterBufferAndPrint [09:22:00]line Счет N : (1)918607 [09:22:00]line ИНН: 02508201610067 [09:22:00]line Контрольно-Кассовый Чек [09:22:00]line ПРОДАЖА [09:22:00]line ТРК (МРК, ГНК) : 22 [09:22:00]line Товар: 2710124130 [09:22:00]line Аи-92-К-4 [09:22:00]line 4.490 * 66.90 [09:22:00]line = 300.38 [09:22:00]line НДС 12% НСП 1% [09:22:00]line > о реализуемом товаре [09:22:00]line ОКРУГЛЕНИЕ: -0.38 [09:22:00]line ИТОГО: 300.00 [09:22:00]line Внесено: 300.00 [09:22:00]line СДАЧА: 0.00 [09:22:00]line НСП 1% : 2.66 [09:22:00]line НДС 12% : 31.90 [09:22:00]line Наличными: 300.00 [09:22:00]line Безнал.: 0.00 [09:22:00]line Место: АЗС № 114 "Партнер Нефть" [09:22:00]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:22:00]line СНО: Общий режим [09:22:00]line Чек 27 17.10.2024 09:21 [09:22:00]line Смена: 525 ФФД: 1.0 [09:22:00]line ЗНМ: 0300000086 [09:22:00]line РНМ: 0000000000091680 [09:22:00]line Версия ККМ: 001 [09:22:00]line ФМ: 0000000000871843 [09:22:00]line ФД: 82101 [09:22:00]line ФПД: 203468189079461 [09:22:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T092159&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82101&fm=203468189079461&tin=02508201610067®Number=0000000000091680&sum=30000 [09:22:01]OFD Sender: Processing packet 82101 [packets to send 254, broken 253] [09:22:01]ProducePacketName [09:22:01]name=ofd_packets/00082101 [09:22:01]OFD Sender: To server: pG, [09:22:01]CommunicateWithHost lk.salyk.kg:30040 [09:22:01]ConnectInit lk.salyk.kg [09:22:01]written 0, free lines is 4095 [09:22:01]Write to MH i2c: 01 00 00 12 06 18 [09:22:01]Write i2c OK [09:22:01]MH_I2C_Read... [09:22:01]Read from MH i2c: 01 [09:22:01]MH_I2C_Read... [09:22:01]Read from MH i2c: 01 07 00 [09:22:01]MH_I2C_Read... [09:22:01]Read from MH i2c: 01 07 00 12 06 00 00 00 00 00 D3 0C FE [09:22:01]RasterBufferAndPrint [09:22:01]line [09:22:01]line [09:22:01]line [09:22:01]line [09:22:01]line [09:22:01]written 0, free lines is 3287 [09:22:01]MH_Cut [09:22:01]Write to MH i2c: D1 01 00 19 06 01 F1 [09:22:01]Write i2c OK [09:22:01]MH_I2C_Read... [09:22:01]Read from MH i2c: D1 [09:22:01]MH_I2C_Read... [09:22:01]Read from MH i2c: D1 01 00 [09:22:01]MH_I2C_Read... [09:22:01]Read from MH i2c: D1 01 00 19 06 00 F0 [09:22:01]Write to MH i2c: 01 00 00 1A 06 20 [09:22:01]Write i2c OK [09:22:01]MH_I2C_Read... [09:22:02]*** Cut start [09:22:02]*** Partial cut [09:22:02]*** CUTSNS_PIN = 1 [09:22:02]*** CUTSNS_PIN = 0 [09:22:02]*** Brake cut motor [09:22:03]Read from MH i2c: 01 [09:22:03]MH_I2C_Read... [09:22:03]*** Stop cut motor [09:22:03]*** Cut end [09:22:03]Read from MH i2c: 01 07 00 [09:22:03]MH_I2C_Read... [09:22:03]Read from MH i2c: 01 07 00 1A 06 00 00 00 00 00 FF 0F 35 [09:22:03]process_action close_receipt done [09:22:03]requested_data is exist [09:22:03]produce_requested_data [09:22:03]requested_item fm.sn is exist - process it [09:22:03]wFMCommunicate request_size=4 [09:22:03]MH_SAM_APDU [09:22:03]CAPDU: 80 11 00 00 [09:22:03]Write to MH i2c: E2 08 00 1B 06 80 11 00 00 00 00 00 00 9B [09:22:03]Write i2c OK [09:22:03]MH_I2C_Read... [09:22:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:03]Read from MH i2c: E2 [09:22:03]MH_I2C_Read... [09:22:03]Read from MH i2c: E2 17 00 [09:22:03]MH_I2C_Read... [09:22:03]Read from MH i2c: E2 17 00 1B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 ED [09:22:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:22:03]wFMCommunicate OK [09:22:03]requested_item fd.num is exist - process it [09:22:03]SAM_PROTO_GetFieldsCounters [09:22:03]wFMCommunicate request_size=4 [09:22:03]MH_SAM_APDU [09:22:03]CAPDU: 80 13 00 00 [09:22:03]Write to MH i2c: E2 08 00 1C 06 80 13 00 00 00 00 00 00 9E [09:22:03]Write i2c OK [09:22:03]MH_I2C_Read... [09:22:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:03]Read from MH i2c: E2 [09:22:03]MH_I2C_Read... [09:22:03]Read from MH i2c: E2 62 00 [09:22:03]MH_I2C_Read... [09:22:03]Read from MH i2c: E2 62 00 1C 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B5 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [09:22:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B5 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:22:03]wFMCommunicate OK [09:22:03]SAM_PROTO_GetFieldsCounters done [09:22:03]requested_item shift.num is exist - process it [09:22:03]requested_item shift.opened is exist - process it [09:22:03]req_shift_opened [09:22:03]FM_GetShiftState [09:22:03]SAM_PROTO_GetShiftState [09:22:03]wFMCommunicate request_size=4 [09:22:03]MH_SAM_APDU [09:22:03]CAPDU: 80 13 01 00 [09:22:03]Write to MH i2c: E2 08 00 1D 06 80 13 01 00 00 00 00 00 A0 [09:22:03]Write i2c OK [09:22:03]MH_I2C_Read... [09:22:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:03]Read from MH i2c: E2 [09:22:03]MH_I2C_Read... [09:22:03]Read from MH i2c: E2 0E 00 [09:22:03]MH_I2C_Read... [09:22:03]Read from MH i2c: E2 0E 00 1D 06 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 A8 [09:22:03]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:22:03]wFMCommunicate OK [09:22:03]SAM_PROTO_GetShiftState done [09:22:03]FM_GetShiftState done [09:22:03]req_shift_opened done [09:22:03]requested_item shift.open_date is exist - process it [09:22:03]req_shift_open_date [09:22:03]req_shift_open_date done [09:22:03]produce_requested_data done [09:22:03]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82101,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [09:22:03]process_action_free close_receipt [09:22:03]json_value_free [09:22:03]json_value_free done [09:22:03]process_json_proto returns [09:22:03]Send response to host [09:22:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82101,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [09:22:03]free response buf [09:22:03]execute_script done [09:22:03]execute_script returns [09:22:03]free content buf [09:22:03]Sock 8.Close socket [09:22:03]Sock 8.Thread stoped [09:22:06]ConnectInit Can't take IP for lk.salyk.kg [09:22:06]CommunicateWithHost connect error [09:22:06]CommunicateWithHost err = -1 [09:22:06]OFD Sender: Server communicate error [09:22:09]recv_with_timeout no data received [09:22:11]OFD Sender: Processing packet 82101 [packets to send 254, broken 253] [09:22:11]ProducePacketName [09:22:11]name=ofd_packets/00082101 [09:22:11]OFD Sender: To server: pG, [09:22:11]CommunicateWithHost lk.salyk.kg:30040 [09:22:11]ConnectInit lk.salyk.kg [09:22:16]ConnectInit Can't take IP for lk.salyk.kg [09:22:16]CommunicateWithHost connect error [09:22:16]CommunicateWithHost err = -1 [09:22:16]OFD Sender: Server communicate error [09:22:21]OFD Sender: Processing packet 82101 [packets to send 254, broken 253] [09:22:21]ProducePacketName [09:22:21]name=ofd_packets/00082101 [09:22:21]OFD Sender: To server: pG, [09:22:21]CommunicateWithHost lk.salyk.kg:30040 [09:22:21]ConnectInit lk.salyk.kg [09:22:24]Connected sock=8 [09:22:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 0E D8 07 01 58 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 37 D7 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B5 40 01 00 35 04 06 00 B9 0D A1 22 17 A5 B5 F2 C9 FE 4D 8A 9E D7 [09:22:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 C3 F1 47 00 E2 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B5 40 01 00 F4 03 04 00 8E 7C 10 67 B6 04 01 00 00 4E C6 E6 C3 7E 00 65 3D [09:22:26]CommunicateWithHost err = 0 [09:22:26]CheckOFDResponse [09:22:26]1017 (14) - 77093643461234 [09:22:26]1041 (16) - 0000000000871843 [09:22:26]1040 (4) - 82101 [09:22:26]1012 (4) - 17.10.2024 02:55 [09:22:26]1206 (1) - 0 [09:22:26]OFD Sender: Remove packet 82101 [09:22:26]ProducePacketName [09:22:26]name=ofd_packets/00082101 [09:22:26]NVStorageDeleteData [09:22:26]OFD Sender: No OFD packet to send [09:22:27]recv_with_timeout no data received [09:22:31]OFD Sender: No OFD packet to send [09:22:36]OFD Sender: No OFD packet to send [09:22:41]OFD Sender: No OFD packet to send [09:22:47]OFD Sender: No OFD packet to send [09:22:52]OFD Sender: No OFD packet to send [09:22:57]OFD Sender: No OFD packet to send [09:23:02]OFD Sender: No OFD packet to send [09:23:04]accept exits with 9 [09:23:04]New connection [09:23:04]New thread 3067379044 created [09:23:04]Thread 3067522404 joined [09:23:04]Waiting for new connection... [09:23:04] Sock 9.Parse request [09:23:04]Sock 9.Check first char [09:23:04]Sock 9.First char is OK [09:23:04]request: POST /json_proto HTTP/1.0 [09:23:04]Method: POST [09:23:04]URL: /json_proto [09:23:04]Method is POST - this is cgi request [09:23:04]url: /json_proto [09:23:04]query_string will be loaded in cgi processing [09:23:04]execute_cgi json_proto POST (null) [09:23:04]execute_cgi path=json_proto method=POST [09:23:04]POST find Content-Length [09:23:04]Host: 172.17.44.67:8080 [09:23:04]Content-Length: 806 [09:23:04]Content-Type: application/json [09:23:04] [09:23:04]POST finish read [09:23:04]Found Content-Length = 806 [09:23:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2203041", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:04]execute_script... [09:23:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2203041", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:04]POST & json_proto [09:23:04]process_json_proto [09:23:04]json parsed OK: [09:23:04]protocol is kg_v1.0 [09:23:04]action value=close_receipt [09:23:04]process_action close_receipt [09:23:04]cmd_close_receipt [09:23:04]MH_GetDate [09:23:04]Write to MH i2c: F0 00 00 1E 06 13 [09:23:04]Write i2c OK [09:23:04]MH_I2C_Read... [09:23:04]Read from MH i2c: F0 [09:23:04]MH_I2C_Read... [09:23:04]Read from MH i2c: F0 09 00 [09:23:04]MH_I2C_Read... [09:23:04]Read from MH i2c: F0 09 00 1E 06 00 78 D7 10 67 F1 C7 6B 64 69 [09:23:04]GetLastDocTimeStamp 1729156919 [09:23:04]current date 1729156984 [09:23:04]FM_GetShiftState [09:23:04]SAM_PROTO_GetShiftState [09:23:04]wFMCommunicate request_size=4 [09:23:04]MH_SAM_APDU [09:23:04]CAPDU: 80 13 01 00 [09:23:04]Write to MH i2c: E2 08 00 1F 06 80 13 01 00 00 00 00 00 A2 [09:23:04]Write i2c OK [09:23:04]MH_I2C_Read... [09:23:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:04]Read from MH i2c: E2 [09:23:04]MH_I2C_Read... [09:23:04]Read from MH i2c: E2 0E 00 [09:23:04]MH_I2C_Read... [09:23:04]Read from MH i2c: E2 0E 00 1F 06 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 AA [09:23:04]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:23:04]wFMCommunicate OK [09:23:04]SAM_PROTO_GetShiftState done [09:23:04]FM_GetShiftState done [09:23:04]opened in 1729125927 [09:23:04]opened+sec_in_day 1729212327 [09:23:04]quantity*price = 0 [09:23:04]sum+1 = 1 [09:23:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 28 17.10.2024 09:23 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 2203041 ФМ: 0000000000871843 ФД: 82102 ФПД: 202277499412403 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T092304&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82102&fm=202277499412403&tin=02508201610067®Number=0000000000091680&sum=0 [09:23:05]StoreToDocumentArchive [09:23:05]shift 525 fd 82102 [09:23:05]save to /storage/0525/doc_00082102 [09:23:05]save last doc name /storage/0525/doc_00082102 to /storage/kkm_last_doc_name [09:23:05]save OK [09:23:05]Clear old archive folders... [09:23:05]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:23:05]tlvbuf is 01AE5220 [09:23:05]SAM_PROTO_ClearQueue [09:23:05]wFMCommunicate request_size=4 [09:23:05]MH_SAM_APDU [09:23:05]CAPDU: 80 09 00 00 [09:23:05]Write to MH i2c: E2 08 00 2C 06 80 09 00 00 00 00 00 00 A4 [09:23:05]Write i2c OK [09:23:05]MH_I2C_Read... [09:23:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:05]Read from MH i2c: E2 [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: E2 03 00 [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: E2 03 00 2C 06 00 90 00 A6 [09:23:05]RAPDU: 90 00 [09:23:05]wFMCommunicate OK [09:23:05]SAM_PROTO_ClearQueue done [09:23:05]KKMCreateOFDPacket [09:23:05]OFDProtocolAddRootSTLVToBuf [09:23:05]FM_MakeSignedData [09:23:05]FM_MakeSignedData [09:23:05]SAM_PROTO_SignData [09:23:05]wFMCommunicate request_size=4 [09:23:05]MH_SAM_APDU [09:23:05]CAPDU: 80 0D 01 02 [09:23:05]Write to MH i2c: E2 08 00 2D 06 80 0D 01 02 00 00 00 00 AC [09:23:05]Write i2c OK [09:23:05]MH_I2C_Read... [09:23:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:05]Read from MH i2c: E2 [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: E2 03 00 [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: E2 03 00 2D 06 00 90 00 A7 [09:23:05]RAPDU: 90 00 [09:23:05]wFMCommunicate OK [09:23:05]wFMCommunicate request_size=255 [09:23:05]MH_SAM_APDU [09:23:05]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 78 D7 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B6 40 01 [09:23:05]Write to MH i2c: E2 02 01 2E 06 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 78 D7 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B6 40 01 00 00 6E [09:23:05]Write i2c OK [09:23:05]MH_I2C_Read... [09:23:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:05]Read from MH i2c: E2 [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: E2 03 00 [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: E2 03 00 2E 06 00 90 00 A8 [09:23:05]RAPDU: 90 00 [09:23:05]wFMCommunicate OK [09:23:05]wFMCommunicate request_size=16 [09:23:05]MH_SAM_APDU [09:23:05]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B7 F8 66 7F 9F B3 [09:23:05]Write to MH i2c: E2 13 00 2F 06 80 0D 02 02 0B 00 00 35 04 06 00 B7 F8 66 7F 9F B3 00 00 EA [09:23:05]Write i2c OK [09:23:05]MH_I2C_Read... [09:23:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:05]Read from MH i2c: E2 [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: E2 03 00 [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: E2 03 00 2F 06 00 90 00 A9 [09:23:05]RAPDU: 90 00 [09:23:05]wFMCommunicate OK [09:23:05]wFMCommunicate request_size=4 [09:23:05]MH_SAM_APDU [09:23:05]CAPDU: 80 0D 03 02 [09:23:05]Write to MH i2c: E2 08 00 30 06 80 0D 03 02 00 00 00 00 B1 [09:23:05]Write i2c OK [09:23:05]MH_I2C_Read... [09:23:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:05]Read from MH i2c: E2 [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: E2 0B 00 [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: E2 0B 00 30 06 00 78 EB 2B 20 68 D4 C2 B2 90 00 10 [09:23:05]RAPDU: 78 EB 2B 20 68 D4 C2 B2 90 00 [09:23:05]wFMCommunicate OK [09:23:05]SAM_PROTO_SignData done [09:23:05]FM_MakeSignedData done [09:23:05]CreateOFDProtocolMessage [09:23:05]wFMCommunicate request_size=4 [09:23:05]MH_SAM_APDU [09:23:05]CAPDU: 80 11 00 00 [09:23:05]Write to MH i2c: E2 08 00 31 06 80 11 00 00 00 00 00 00 B1 [09:23:05]Write i2c OK [09:23:05]MH_I2C_Read... [09:23:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:05]Read from MH i2c: E2 [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: E2 17 00 [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: E2 17 00 31 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 03 [09:23:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:23:05]wFMCommunicate OK [09:23:05]CreateOFDProtocolMessage done [09:23:05]OFDSenderStorePacket 82102 [09:23:05]StoreOFDPacket docnum=82102 [09:23:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 6D E3 0D 01 27 CD 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 78 D7 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B6 40 01 00 35 04 06 00 B7 F8 66 7F 9F B3 78 EB 2B 20 68 D4 C2 B2 [09:23:05]CheckFolder [09:23:05]dirname=/storage/ofd_packets [09:23:05]CheckFolder done [09:23:05]ProducePacketName [09:23:05]name=ofd_packets/00082102 [09:23:05]NVStorageSaveData ofd_packets/00082102 [09:23:05]File name is /storage/ofd_packets/00082102 [09:23:05]Write 307 bytes [09:23:05]NVStorageSaveData done [09:23:05]OFDSenderStorePacket done [09:23:05]KKMCreateOFDPacket done [09:23:05]NVStorageSaveData kkm_last_timestamp [09:23:05]File name is /storage/kkm_last_timestamp [09:23:05]Write 4 bytes [09:23:05]NVStorageSaveData done [09:23:05]ExternCall_PrintAddStr [09:23:05]wPrintStart [09:23:05]Write to MH i2c: 01 00 00 32 06 38 [09:23:05]Write i2c OK [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: 01 [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: 01 07 00 [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: 01 07 00 32 06 00 00 00 00 00 FF 0F 4D [09:23:05]RasterBufferAndPrint [09:23:05]line Счет N : (1)918608 [09:23:05]line ИНН: 02508201610067 [09:23:05]line Контрольно-Кассовый Чек [09:23:05]line ПРОДАЖА [09:23:05]line ТРК (МРК, ГНК) : 21 [09:23:05]line Товар: 2710194800 [09:23:05]line D-Energy ДТ-К-2 [09:23:05]line 30.000 * 0.00 [09:23:05]line = 0.00 [09:23:05]line НДС 12% НСП 1% [09:23:05]line > о реализуемом товаре [09:23:05]line ИТОГО: 0.00 [09:23:05]line НСП 1% : 0.00 [09:23:05]line НДС 12% : 0.00 [09:23:05]line Наличными: 0.00 [09:23:05]line Безнал.: 0.00 [09:23:05]line Место: АЗС № 114 "Партнер Нефть" [09:23:05]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:23:05]line СНО: Общий режим [09:23:05]line Чек 28 17.10.2024 09:23 [09:23:05]line Смена: 525 ФФД: 1.0 [09:23:05]line ЗНМ: 0300000086 [09:23:05]line РНМ: 0000000000091680 [09:23:05]line Версия ККМ: 001 [09:23:05]line Талоны: Топливные Талоны [09:23:05]line 2203041 [09:23:05]line ФМ: 0000000000871843 [09:23:05]line ФД: 82102 [09:23:05]line ФПД: 202277499412403 [09:23:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T092304&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82102&fm=202277499412403&tin=02508201610067®Number=0000000000091680&sum=0 [09:23:06]OFD Sender: Processing packet 82102 [packets to send 254, broken 253] [09:23:06]ProducePacketName [09:23:06]name=ofd_packets/00082102 [09:23:06]OFD Sender: To server: pG, [09:23:06]CommunicateWithHost lk.salyk.kg:30040 [09:23:06]ConnectInit lk.salyk.kg [09:23:06]written 0, free lines is 4095 [09:23:06]Write to MH i2c: 01 00 00 5C 06 62 [09:23:06]Write i2c OK [09:23:06]MH_I2C_Read... [09:23:06]Read from MH i2c: 01 [09:23:06]MH_I2C_Read... [09:23:06]Read from MH i2c: 01 07 00 [09:23:06]MH_I2C_Read... [09:23:06]Read from MH i2c: 01 07 00 5C 06 00 00 00 00 00 F6 0C 6B [09:23:06]RasterBufferAndPrint [09:23:06]line [09:23:06]line [09:23:06]line [09:23:06]line [09:23:06]line [09:23:06]written 0, free lines is 3324 [09:23:06]MH_Cut [09:23:06]Write to MH i2c: D1 01 00 63 06 01 3B [09:23:06]Write i2c OK [09:23:06]MH_I2C_Read... [09:23:06]Read from MH i2c: D1 [09:23:06]MH_I2C_Read... [09:23:06]Read from MH i2c: D1 01 00 [09:23:06]MH_I2C_Read... [09:23:06]Read from MH i2c: D1 01 00 63 06 00 3A [09:23:06]Write to MH i2c: 01 00 00 64 06 6A [09:23:06]Write i2c OK [09:23:06]MH_I2C_Read... [09:23:07]Connected sock=8 [09:23:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 6D E3 0D 01 27 CD 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 78 D7 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B6 40 01 00 35 04 06 00 B7 F8 66 7F 9F B3 78 EB 2B 20 68 D4 C2 B2 [09:23:07]*** Cut start [09:23:07]*** Partial cut [09:23:07]*** CUTSNS_PIN = 1 [09:23:07]*** CUTSNS_PIN = 0 [09:23:07]*** Brake cut motor [09:23:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 1B 54 47 00 27 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B6 40 01 00 F4 03 04 00 B8 7C 10 67 B6 04 01 00 00 8D 74 8F B3 B1 DC AC 9D [09:23:07]CommunicateWithHost err = 0 [09:23:07]CheckOFDResponse [09:23:07]1017 (14) - 77093643461234 [09:23:07]1041 (16) - 0000000000871843 [09:23:07]1040 (4) - 82102 [09:23:07]1012 (4) - 17.10.2024 02:55 [09:23:07]1206 (1) - 0 [09:23:07]OFD Sender: Remove packet 82102 [09:23:07]ProducePacketName [09:23:07]name=ofd_packets/00082102 [09:23:07]NVStorageDeleteData [09:23:07]Read from MH i2c: 01 [09:23:07]MH_I2C_Read... [09:23:07]*** Stop cut motor [09:23:07]*** Cut end [09:23:07]Read from MH i2c: 01 07 00 [09:23:07]MH_I2C_Read... [09:23:07]Read from MH i2c: 01 07 00 64 06 00 00 00 00 00 FF 0F 7F [09:23:07]process_action close_receipt done [09:23:07]requested_data is exist [09:23:07]produce_requested_data [09:23:07]requested_item fm.sn is exist - process it [09:23:07]wFMCommunicate request_size=4 [09:23:07]MH_SAM_APDU [09:23:07]CAPDU: 80 11 00 00 [09:23:07]Write to MH i2c: E2 08 00 65 06 80 11 00 00 00 00 00 00 E5 [09:23:07]Write i2c OK [09:23:07]MH_I2C_Read... [09:23:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:07]Read from MH i2c: E2 [09:23:07]MH_I2C_Read... [09:23:07]Read from MH i2c: E2 17 00 [09:23:07]MH_I2C_Read... [09:23:07]Read from MH i2c: E2 17 00 65 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 37 [09:23:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:23:07]wFMCommunicate OK [09:23:07]requested_item fd.num is exist - process it [09:23:07]SAM_PROTO_GetFieldsCounters [09:23:07]wFMCommunicate request_size=4 [09:23:07]MH_SAM_APDU [09:23:07]CAPDU: 80 13 00 00 [09:23:07]Write to MH i2c: E2 08 00 66 06 80 13 00 00 00 00 00 00 E8 [09:23:07]Write i2c OK [09:23:07]MH_I2C_Read... [09:23:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:08]Read from MH i2c: E2 [09:23:08]MH_I2C_Read... [09:23:08]Read from MH i2c: E2 62 00 [09:23:08]MH_I2C_Read... [09:23:08]Read from MH i2c: E2 62 00 66 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B6 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [09:23:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B6 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:23:08]wFMCommunicate OK [09:23:08]SAM_PROTO_GetFieldsCounters done [09:23:08]requested_item shift.num is exist - process it [09:23:08]requested_item shift.opened is exist - process it [09:23:08]req_shift_opened [09:23:08]FM_GetShiftState [09:23:08]SAM_PROTO_GetShiftState [09:23:08]wFMCommunicate request_size=4 [09:23:08]MH_SAM_APDU [09:23:08]CAPDU: 80 13 01 00 [09:23:08]Write to MH i2c: E2 08 00 67 06 80 13 01 00 00 00 00 00 EA [09:23:08]Write i2c OK [09:23:08]MH_I2C_Read... [09:23:08]Read from MH i2c: E2 [09:23:08]MH_I2C_Read... [09:23:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:08]Read from MH i2c: E2 0E 00 [09:23:08]MH_I2C_Read... [09:23:08]Read from MH i2c: E2 0E 00 67 06 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 F2 [09:23:08]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:23:08]wFMCommunicate OK [09:23:08]SAM_PROTO_GetShiftState done [09:23:08]FM_GetShiftState done [09:23:08]req_shift_opened done [09:23:08]requested_item shift.open_date is exist - process it [09:23:08]req_shift_open_date [09:23:08]req_shift_open_date done [09:23:08]produce_requested_data done [09:23:08]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82102,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [09:23:08]process_action_free close_receipt [09:23:08]json_value_free [09:23:08]json_value_free done [09:23:08]process_json_proto returns [09:23:08]Send response to host [09:23:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82102,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [09:23:08]free response buf [09:23:08]execute_script done [09:23:08]execute_script returns [09:23:08]free content buf [09:23:08]Sock 9.Close socket [09:23:08]Sock 9.Thread stoped [09:23:08]OFD Sender: No OFD packet to send [09:23:13]OFD Sender: No OFD packet to send [09:23:15]recv_with_timeout no data received [09:23:18]OFD Sender: No OFD packet to send [09:23:23]OFD Sender: No OFD packet to send [09:23:26]recv_with_timeout no data received [09:23:28]OFD Sender: No OFD packet to send [09:23:33]OFD Sender: No OFD packet to send [09:23:38]OFD Sender: No OFD packet to send [09:23:38]recv_with_timeout no data received [09:23:43]OFD Sender: No OFD packet to send [09:23:48]OFD Sender: No OFD packet to send [09:23:53]OFD Sender: No OFD packet to send [09:23:58]OFD Sender: No OFD packet to send [09:24:03]OFD Sender: No OFD packet to send [09:24:08]OFD Sender: No OFD packet to send [09:24:13]OFD Sender: No OFD packet to send [09:24:18]OFD Sender: No OFD packet to send [09:24:23]OFD Sender: No OFD packet to send [09:24:28]OFD Sender: No OFD packet to send [09:24:33]OFD Sender: No OFD packet to send [09:24:38]OFD Sender: No OFD packet to send [09:24:43]OFD Sender: No OFD packet to send [09:24:48]OFD Sender: No OFD packet to send [09:24:53]OFD Sender: No OFD packet to send [09:24:58]OFD Sender: No OFD packet to send [09:25:03]OFD Sender: No OFD packet to send [09:25:08]OFD Sender: No OFD packet to send [09:25:13]OFD Sender: No OFD packet to send [09:25:18]OFD Sender: No OFD packet to send [09:25:23]OFD Sender: No OFD packet to send [09:25:28]OFD Sender: No OFD packet to send [09:25:33]OFD Sender: No OFD packet to send [09:25:38]OFD Sender: No OFD packet to send [09:25:43]OFD Sender: No OFD packet to send [09:25:48]OFD Sender: No OFD packet to send [09:25:53]OFD Sender: No OFD packet to send [09:25:58]OFD Sender: No OFD packet to send [09:26:03]OFD Sender: No OFD packet to send [09:26:08]OFD Sender: No OFD packet to send [09:26:13]OFD Sender: No OFD packet to send [09:26:18]OFD Sender: No OFD packet to send [09:26:23]OFD Sender: No OFD packet to send [09:26:28]OFD Sender: No OFD packet to send [09:26:33]OFD Sender: No OFD packet to send [09:26:38]OFD Sender: No OFD packet to send [09:26:43]OFD Sender: No OFD packet to send [09:26:48]OFD Sender: No OFD packet to send [09:26:53]OFD Sender: No OFD packet to send [09:26:58]OFD Sender: No OFD packet to send [09:27:03]OFD Sender: No OFD packet to send [09:21:57]OFD Sender: No OFD packet to send [09:21:59]accept exits with 8 [09:21:59]New connection [09:21:59]New thread 3067522404 created [09:21:59]Thread 3067379044 joined [09:21:59]Waiting for new connection... [09:21:59] Sock 8.Parse request [09:21:59]Sock 8.Check first char [09:21:59]Sock 8.First char is OK [09:21:59]request: POST /json_proto HTTP/1.0 [09:21:59]Method: POST [09:21:59]URL: /json_proto [09:21:59]Method is POST - this is cgi request [09:21:59]url: /json_proto [09:21:59]query_string will be loaded in cgi processing [09:21:59]execute_cgi json_proto POST (null) [09:21:59]execute_cgi path=json_proto method=POST [09:21:59]POST find Content-Length [09:21:59]Host: 172.17.44.67:8080 [09:21:59]Content-Length: 677 [09:21:59]Content-Type: application/json [09:21:59] [09:21:59]POST finish read [09:21:59]Found Content-Length = 677 [09:21:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:59]execute_script... [09: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 : (1)918607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:59]POST & json_proto [09:21:59]process_json_proto [09:21:59]json parsed OK: [09:21:59]protocol is kg_v1.0 [09:21:59]action value=close_receipt [09:21:59]process_action close_receipt [09:21:59]cmd_close_receipt [09:21:59]MH_GetDate [09:21:59]Wr[09:27:08]OFD Sender: No OFD packet to send [09:27:13]OFD Sender: No OFD packet to send [09:27:18]OFD Sender: No OFD packet to send [09:27:23]OFD Sender: No OFD packet to send [09:27:28]OFD Sender: No OFD packet to send [09:27:33]OFD Sender: No OFD packet to send [09:27:38]OFD Sender: No OFD packet to send [09:27:43]OFD Sender: No OFD packet to send [09:27:48]OFD Sender: No OFD packet to send [09:27:53]OFD Sender: No OFD packet to send [09:27:58]OFD Sender: No OFD packet to send [09:28:03]OFD Sender: No OFD packet to send [09:28:08]OFD Sender: No OFD packet to send [09:28:13]OFD Sender: No OFD packet to send [09:28:18]OFD Sender: No OFD packet to send [09:28:23]OFD Sender: No OFD packet to send [09:28:28]OFD Sender: No OFD packet to send [09:28:33]OFD Sender: No OFD packet to send [09:28:38]OFD Sender: No OFD packet to send [09:28:43]OFD Sender: No OFD packet to send [09:28:48]OFD Sender: No OFD packet to send [09:28:53]OFD Sender: No OFD packet to send [09:28:58]OFD Sender: No OFD packet to send [09:29:03]OFD Sender: No OFD packet to send [09:29:08]OFD Sender: No OFD packet to send [09:29:13]OFD Sender: No OFD packet to send [09:29:18]OFD Sender: No OFD packet to send [09:29:23]OFD Sender: No OFD packet to send [09:29:28]OFD Sender: No OFD packet to send [09:29:33]OFD Sender: No OFD packet to send [09:29:36]accept exits with 10 [09:29:36]New connection [09:29:36]New thread 3067522404 created [09:29:36]Thread 3067379044 joined [09:29:36]Waiting for new connection... [09:29:36] Sock 10.Parse request [09:29:36]Sock 10.Check first char [09:29:36]Sock 10.First char is OK [09:29:36]request: POST /json_proto HTTP/1.0 [09:29:36]Method: POST [09:29:36]URL: /json_proto [09:29:36]Method is POST - this is cgi request [09:29:36]url: /json_proto [09:29:36]query_string will be loaded in cgi processing [09:29:36]execute_cgi json_proto POST (null) [09:29:36]execute_cgi path=json_proto method=POST [09:29:36]POST find Content-Length [09:29:36]Host: 172.17.44.67:8080 [09:29:36]Content-Length: 677 [09:29:36]Content-Type: application/json [09:29:36] [09:29:36]POST finish read [09:29:36]Found Content-Length = 677 [09:29:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:36]execute_script... [09:29:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:36]POST & json_proto [09:29:36]process_json_proto [09:29:36]json parsed OK: [09:29:36]protocol is kg_v1.0 [09:29:36]action value=close_receipt [09:29:36]process_action close_receipt [09:29:36]cmd_close_receipt [09:29:36]MH_GetDate [09:29:36]Write to MH i2c: F0 00 00 68 06 5D [09:29:36]Write i2c OK [09:29:36]MH_I2C_Read... [09:29:36]Read from MH i2c: F0 [09:29:36]MH_I2C_Read... [09:29:36]Read from MH i2c: F0 09 00 [09:29:36]MH_I2C_Read... [09:29:36]Read from MH i2c: F0 09 00 68 06 00 01 D9 10 67 F1 C7 6B 64 3E [09:29:36]GetLastDocTimeStamp 1729156984 [09:29:36]current date 1729157377 [09:29:36]FM_GetShiftState [09:29:36]SAM_PROTO_GetShiftState [09:29:36]wFMCommunicate request_size=4 [09:29:36]MH_SAM_APDU [09:29:36]CAPDU: 80 13 01 00 [09:29:36]Write to MH i2c: E2 08 00 69 06 80 13 01 00 00 00 00 00 EC [09:29:36]Write i2c OK [09:29:36]MH_I2C_Read... [09:29:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:36]Read from MH i2c: E2 [09:29:36]MH_I2C_Read... [09:29:36]Read from MH i2c: E2 0E 00 [09:29:36]MH_I2C_Read... [09:29:36]Read from MH i2c: E2 0E 00 69 06 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 F4 [09:29:36]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:29:36]wFMCommunicate OK [09:29:36]SAM_PROTO_GetShiftState done [09:29:36]FM_GetShiftState done [09:29:36]opened in 1729125927 [09:29:36]opened+sec_in_day 1729212327 [09:29:36]quantity*price = 50041 [09:29:36]sum+1 = 50042 [09:29:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 29 17.10.2024 09:29 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82103 ФПД: 128564329772007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T092937&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82103&fm=128564329772007&tin=02508201610067®Number=0000000000091680&sum=50000 [09:29:37]StoreToDocumentArchive [09:29:37]shift 525 fd 82103 [09:29:37]save to /storage/0525/doc_00082103 [09:29:37]save last doc name /storage/0525/doc_00082103 to /storage/kkm_last_doc_name [09:29:37]save OK [09:29:37]Clear old archive folders... [09:29:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:29:37]tlvbuf is 01AEB6F0 [09:29:37]SAM_PROTO_ClearQueue [09:29:37]wFMCommunicate request_size=4 [09:29:37]MH_SAM_APDU [09:29:37]CAPDU: 80 09 00 00 [09:29:37]Write to MH i2c: E2 08 00 76 06 80 09 00 00 00 00 00 00 EE [09:29:37]Write i2c OK [09:29:37]MH_I2C_Read... [09:29:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:29:37]Read from MH i2c: E2 [09:29:37]MH_I2C_Read... [09:29:37]Read from MH i2c: E2 03 00 [09:29:37]MH_I2C_Read... [09:29:37]Read from MH i2c: E2 03 00 76 06 00 90 00 F0 [09:29:37]RAPDU: 90 00 [09:29:37]wFMCommunicate OK [09:29:37]SAM_PROTO_ClearQueue done [09:29:37]KKMCreateOFDPacket [09:29:37]OFDProtocolAddRootSTLVToBuf [09:29:37]FM_MakeSignedData [09:29:37]FM_MakeSignedData [09:29:37]SAM_PROTO_SignData [09:29:37]wFMCommunicate request_size=4 [09:29:37]MH_SAM_APDU [09:29:37]CAPDU: 80 0D 01 02 [09:29:37]Write to MH i2c: E2 08 00 77 06 80 0D 01 02 00 00 00 00 F6 [09:29:37]Write i2c OK [09:29:37]MH_I2C_Read... [09:29:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:29:37]Read from MH i2c: E2 [09:29:37]MH_I2C_Read... [09:29:37]Read from MH i2c: E2 03 00 [09:29:37]MH_I2C_Read... [09:29:37]Read from MH i2c: E2 03 00 77 06 00 90 00 F1 [09:29:37]RAPDU: 90 00 [09:29:37]wFMCommunicate OK [09:29:37]wFMCommunicate request_size=255 [09:29:37]MH_SAM_APDU [09:29:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 01 D9 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B7 40 01 00 35 04 06 00 74 [09:29:37]Write to MH i2c: E2 02 01 78 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 01 D9 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B7 40 01 00 35 04 06 00 74 00 00 6B [09:29:37]Write i2c OK [09:29:37]MH_I2C_Read... [09:29:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:38]Read from MH i2c: E2 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 03 00 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 03 00 78 06 00 90 00 F2 [09:29:38]RAPDU: 90 00 [09:29:38]wFMCommunicate OK [09:29:38]wFMCommunicate request_size=10 [09:29:38]MH_SAM_APDU [09:29:38]CAPDU: 80 0D 02 02 05 ED B7 34 F3 E7 [09:29:38]Write to MH i2c: E2 0D 00 79 06 80 0D 02 02 05 00 ED B7 34 F3 E7 00 00 B5 [09:29:38]Write i2c OK [09:29:38]MH_I2C_Read... [09:29:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:38]Read from MH i2c: E2 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 03 00 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 03 00 79 06 00 90 00 F3 [09:29:38]RAPDU: 90 00 [09:29:38]wFMCommunicate OK [09:29:38]wFMCommunicate request_size=4 [09:29:38]MH_SAM_APDU [09:29:38]CAPDU: 80 0D 03 02 [09:29:38]Write to MH i2c: E2 08 00 7A 06 80 0D 03 02 00 00 00 00 FB [09:29:38]Write i2c OK [09:29:38]MH_I2C_Read... [09:29:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:29:38]Read from MH i2c: E2 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 0B 00 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 0B 00 7A 06 00 D1 5F 4A C6 32 A5 EE CA 90 00 CB [09:29:38]RAPDU: D1 5F 4A C6 32 A5 EE CA 90 00 [09:29:38]wFMCommunicate OK [09:29:38]SAM_PROTO_SignData done [09:29:38]FM_MakeSignedData done [09:29:38]CreateOFDProtocolMessage [09:29:38]wFMCommunicate request_size=4 [09:29:38]MH_SAM_APDU [09:29:38]CAPDU: 80 11 00 00 [09:29:38]Write to MH i2c: E2 08 00 7B 06 80 11 00 00 00 00 00 00 FB [09:29:38]Write i2c OK [09:29:38]MH_I2C_Read... [09:29:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:38]Read from MH i2c: E2 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 17 00 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 17 00 7B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 4D [09:29:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:29:38]wFMCommunicate OK [09:29:38]CreateOFDProtocolMessage done [09:29:38]OFDSenderStorePacket 82103 [09:29:38]StoreOFDPacket docnum=82103 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 53 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]Read from MH i2c: *** [00:00:10]A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725AE (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 44372880+1684785137=1729158017 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 54 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 82 DB 10 67 F1 C7 6B 64 5A [09:40:18]Current date/time: 17.10.2024 09:40 [09:40:18]FM_Init [09:40:18]wFMConnect [09:40:18]MH_SAM_On [09:40:18]Write to MH i2c: E0 00 00 08 00 E7 [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]*** iso7816_init finished! [09:40:18]*** atr: [09:40:18]*** 0F 3B D5 18 FF 81 91 FE [09:40:18]*** 1F C3 80 73 C8 21 10 0A [09:40:18]*** 00 00 00 00 00 00 00 00 [09:40:18]*** 00 00 00 00 00 00 00 00 [09:40:18]*** 00 00 00 00 00 00 00 00 [09:40:18]*** 00 00 00 00 00 00 00 00 [09:40:18]*** 00 00 00 00 00 00 00 00 [09:40:18]*** 00 00 00 00 00 00 00 00 [09:40:18]Read from MH i2c: E0 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E0 10 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [09:40:18]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [09:40:18]wFMCommunicate request_size=10 [09:40:18]MH_SAM_APDU [09:40:18]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [09:40:18]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [09:40:18]Read from MH i2c: E2 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 03 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [09:40:18]RAPDU: 90 00 [09:40:18]wFMCommunicate OK [09:40:18]wFMCommunicate request_size=4 [09:40:18]MH_SAM_APDU [09:40:18]CAPDU: 80 11 00 00 [09:40:18]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:18]Read from MH i2c: E2 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 17 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D6 [09:40:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:40:18]wFMCommunicate OK [09:40:18]Detected FM SN is 0000000000871843 [09:40:18]Stored FM SN is 0000000000871843 [09:40:18]wFMCommunicate request_size=9 [09:40:18]MH_SAM_APDU [09:40:18]CAPDU: 80 16 00 00 04 C3 A3 00 00 [09:40:18]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 C3 A3 00 00 00 00 F8 [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [09:40:18]Read from MH i2c: E2 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 03 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [09:40:18]RAPDU: 90 00 [09:40:18]wFMCommunicate OK [09:40:18]FM PIN OK [09:40:18]wFMCommunicate request_size=8 [09:40:18]MH_SAM_APDU [09:40:18]CAPDU: 80 14 04 00 03 02 00 01 [09:40:18]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [09:40:18]Read from MH i2c: E2 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 03 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [09:40:18]RAPDU: 90 00 [09:40:18]wFMCommunicate OK [09:40:18]wFMCommunicate request_size=13 [09:40:18]MH_SAM_APDU [09:40:18]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [09:40:18]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [09:40:18]Read from MH i2c: E2 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 03 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [09:40:18]RAPDU: 90 00 [09:40:18]wFMCommunicate OK [09:40:18]wFMCommunicate request_size=4 [09:40:18]MH_SAM_APDU [09:40:18]CAPDU: 80 11 00 00 [09:40:18]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:18]Read from MH i2c: E2 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 17 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DA [09:40:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:40:18]wFMCommunicate OK [09:40:18]DocumentArchiveInit [09:40:18]Start Httpd... [09:40:18]Httpd thread 3067907428 created [09:40:18]Write to MH i2c: 01 00 00 0F 00 0F [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: 01 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: 01 07 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [09:40:18]MH Int Process started [09:40:18]Allocated Socket 8 [09:40:18]Bind OK [09:40:18]Listen OK [09:40:18]httpd running on port 8080 [09:40:18]Waiting for new connection... [09:40:18]OFD Sender: Processing packet 82103 [packets to send 254, broken 253] [09:40:18]ProducePacketName [09:40:18]name=ofd_packets/00082103 [09:40:18]OFD Sender: To server: pG, [09:40:18]CommunicateWithHost lk.salyk.kg:30040 [09:40:18]ConnectInit lk.salyk.kg [09:40:19]accept exits with 9 [09:40:19]New connection [09:40:19]New thread 3067620708 created [09:40:19]Waiting for new connection... [09:40:19] Sock 9.Parse request [09:40:19]Sock 9.Check first char [09:40:19]Sock 9.First char is OK [09:40:19]request: POST /json_proto HTTP/1.0 [09:40:19]Method: POST [09:40:19]URL: /json_proto [09:40:19]Method is POST - this is cgi request [09:40:19]url: /json_proto [09:40:19]query_string will be loaded in cgi processing [09:40:19]execute_cgi json_proto POST (null) [09:40:19]execute_cgi path=json_proto method=POST [09:40:19]POST find Content-Length [09:40:19]Host: 172.17.44.67:8080 [09:40:19]Content-Length: 215 [09:40:19]Content-Type: application/json [09:40:19] [09:40:19]POST finish read [09:40:19]Found Content-Length = 215 [09:40:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:19]execute_script... [09:40:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:19]POST & json_proto [09:40:19]process_json_proto [09:40:19]json parsed OK: [09:40:19]protocol is kg_v1.0 [09:40:19]action value=get_value [09:40:19]process_action get_value [09:40:19]cmd_get_value [09:40:19]process_action get_value done [09:40:19]requested_data is exist [09:40:19]produce_requested_data [09:40:19]requested_item kkm.sn is exist - process it [09:40:19]requested_item kkm.ver is exist - process it [09:40:19]requested_item fm.sn is exist - process it [09:40:19]wFMCommunicate request_size=4 [09:40:19]MH_SAM_APDU [09:40:19]CAPDU: 80 11 00 00 [09:40:19]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [09:40:19]Write i2c OK [09:40:19]MH_I2C_Read... [09:40:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:19]Read from MH i2c: E2 [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: E2 17 00 [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DC [09:40:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:40:19]wFMCommunicate OK [09:40:19]requested_item fd.num is exist - process it [09:40:19]SAM_PROTO_GetFieldsCounters [09:40:19]wFMCommunicate request_size=4 [09:40:19]MH_SAM_APDU [09:40:19]CAPDU: 80 13 00 00 [09:40:19]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [09:40:19]Write i2c OK [09:40:19]MH_I2C_Read... [09:40:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:19]Read from MH i2c: E2 [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: E2 62 00 [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B7 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [09:40:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B7 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:40:19]wFMCommunicate OK [09:40:19]SAM_PROTO_GetFieldsCounters done [09:40:19]requested_item shift.num is exist - process it [09:40:19]requested_item shift.opened is exist - process it [09:40:19]req_shift_opened [09:40:19]FM_GetShiftState [09:40:19]SAM_PROTO_GetShiftState [09:40:19]wFMCommunicate request_size=4 [09:40:19]MH_SAM_APDU [09:40:19]CAPDU: 80 13 01 00 [09:40:19]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [09:40:19]Write i2c OK [09:40:19]MH_I2C_Read... [09:40:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:20]Read from MH i2c: E2 [09:40:20]MH_I2C_Read... [09:40:20]Read from MH i2c: E2 0E 00 [09:40:20]MH_I2C_Read... [09:40:20]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 97 [09:40:20]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:40:20]wFMCommunicate OK [09:40:20]SAM_PROTO_GetShiftState done [09:40:20]FM_GetShiftState done [09:40:20]req_shift_opened done [09:40:20]requested_item shift.open_date is exist - process it [09:40:20]req_shift_open_date [09:40:20]req_shift_open_date done [09:40:20]produce_requested_data done [09:40:20]produce_requested_data return {"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82103,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [09:40:20]process_action_free get_value [09:40:20]json_value_free [09:40:20]json_value_free done [09:40:20]process_json_proto returns [09:40:20]Send response to host [09:40:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82103,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [09:40:20]free response buf [09:40:20]execute_script done [09:40:20]execute_script returns [09:40:20]free content buf [09:40:20]Sock 9.Close socket [09:40:20]Sock 9.Thread stoped [09:40:20]accept exits with 10 [09:40:20]New connection [09:40:20]New thread 3067477348 created [09:40:20]Thread 3067620708 joined [09:40:20]Waiting for new connection... [09:40:20] Sock 10.Parse request [09:40:20]Sock 10.Check first char [09:40:20]Sock 10.First char is OK [09:40:20]request: POST /json_proto HTTP/1.0 [09:40:20]Method: POST [09:40:20]URL: /json_proto 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [09:40:21]wFMCommunicate OK [09:40:21]wFMCommunicate request_size=4 [09:40:21]MH_SAM_APDU [09:40:21]CAPDU: 80 17 00 00 [09:40:21]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [09:40:21]Write i2c OK [09:40:21]MH_I2C_Read... [09:40:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 E7 58 47 00 88 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B7 40 01 00 F4 03 04 00 C1 80 10 67 B6 04 01 00 00 63 81 1F 68 2A 0D 29 A7 [09:40:21]CommunicateWithHost err = 0 [09:40:21]CheckOFDResponse [09:40:21]1017 (14) - 77093643461234 [09:40:21]1041 (16) - 0000000000871843 [09:40:21]1040 (4) - 82103 [09:40:21]1012 (4) - 17.10.2024 03:13 [09:40:21]1206 (1) - 0 [09:40:21]OFD Sender: Remove packet 82103 [09:40:21]ProducePacketName [09:40:21]name=ofd_packets/00082103 [09:40:21]NVStorageDeleteData [09:40:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [09:40:21]Read from MH i2c: E2 [09:40:21]MH_I2C_Read... [09:40:21]Read from MH i2c: E2 E4 00 [09:40:21]MH_I2C_Read... [09:40:21]Read from MH i2c: E2 E4 00 17 00 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 77 [09:40:21]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:40:21]wFMCommunicate OK [09:40:21]SAM_PROTO_GetFMData done [09:40:21]requested_item fm.sale_refund.total is exist - process it [09:40:21]requested_item fm.buy.total is exist - process it [09:40:21]requested_item shift.sale.total is exist - process it [09:40:21]SAM_PROTO_GetShiftData [09:40:21]wFMCommunicate request_size=4 [09:40:21]MH_SAM_APDU [09:40:21]CAPDU: 80 13 02 00 [09:40:21]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [09:40:21]Write i2c OK [09:40:21]MH_I2C_Read... [09:40:22]OFD Sender: No OFD packet to send [09:40:22]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:40:22]Read from MH i2c: E2 [09:40:22]MH_I2C_Read... [09:40:22]Read from MH i2c: E2 FD 00 [09:40:22]MH_I2C_Read... [09:40:22]Read from MH i2c: E2 FD 00 18 00 00 AD 04 AA 04 A9 04 6E 04 04 00 1D 00 00 00 69 04 9A 00 6F 04 04 00 1D 00 00 00 B1 04 03 00 D2 3C 12 70 04 03 00 00 49 11 72 04 02 00 D2 F3 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 F1 EF 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 52 29 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 2B [09:40:22]RAPDU: AD 04 AA 04 A9 04 6E 04 04 00 1D 00 00 00 69 04 9A 00 6F 04 04 00 1D 00 00 00 B1 04 03 00 D2 3C 12 70 04 03 00 00 49 11 72 04 02 00 D2 F3 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 F1 EF 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 52 29 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 [09:40:22]wFMCommunicate OK [09:40:22]wFMCommunicate request_size=4 [09:40:22]MH_SAM_APDU [09:40:22]CAPDU: 80 17 00 00 [09:40:22]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [09:40:22]Write i2c OK [09:40:22]MH_I2C_Read... [09:40:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:40:22]Read from MH i2c: E2 [09:40:22]MH_I2C_Read... [09:40:22]Read from MH i2c: E2 FD 00 [09:40:22]MH_I2C_Read... [09:40:22]Read from MH i2c: E2 FD 00 19 00 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 AB [09:40: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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 [09:40:22]wFMCommunicate OK [09:40:22]wFMCommunicate request_size=4 [09:40:22]MH_SAM_APDU [09:40:22]CAPDU: 80 17 00 00 [09:40:22]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [09:40:22]Write i2c OK [09:40:22]MH_I2C_Read... [09:40:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:40:23]Read from MH i2c: E2 [09:40:23]MH_I2C_Read... [09:40:23]Read from MH i2c: E2 FD 00 [09:40:23]MH_I2C_Read... [09:40:23]Read from MH i2c: E2 FD 00 1A 00 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 90 00 5E [09:40:23]RAPDU: 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 90 00 [09:40:23]wFMCommunicate OK [09:40:23]wFMCommunicate request_size=4 [09:40:23]MH_SAM_APDU [09:40:23]CAPDU: 80 17 00 00 [09:40:23]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [09:40:23]Write i2c OK [09:40:23]MH_I2C_Read... [09:40:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:40:23]Read from MH i2c: E2 [09:40:23]MH_I2C_Read... [09:40:23]Read from MH i2c: E2 FD 00 [09:40:23]MH_I2C_Read... [09:40:23]Read from MH i2c: E2 FD 00 1B 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 10 [09:40:23]RAPDU: 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 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 [09:40:23]wFMCommunicate OK [09:40:23]wFMCommunicate request_size=4 [09:40:23]MH_SAM_APDU [09:40:23]CAPDU: 80 17 00 00 [09:40:23]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [09:40:23]Write i2c OK [09:40:23]MH_I2C_Read... [09:40:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 199! [09:40:23]Read from MH i2c: E2 [09:40:23]MH_I2C_Read... [09:40:23]Read from MH i2c: E2 CA 00 [09:40:23]MH_I2C_Read... [09:40:23]Read from MH i2c: E2 CA 00 1C 00 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [09:40:23]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:40:23]wFMCommunicate OK [09:40:23]SAM_PROTO_GetShiftData done [09:40:23]requested_item shift.sale.total_cash is exist - process it [09:40:23]requested_item shift.sale_refund.total is exist - process it [09:40:23]requested_item shift.sale_refund.total_cash is exist - process it [09:40:23]requested_item shift.buy.total is exist - process it [09:40:23]requested_item shift.buy.total_cash is exist - process it [09:40:23]produce_requested_data done [09:40:23]produce_requested_data return {"fm.sale.total":63520660.27,"fm.sale_refund.total":3190684.00,"fm.buy.total":0.00,"shift.sale.total":11952.18,"shift.sale.total_cash":11328.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [09:40:23]process_action_free get_value [09:40:23]json_value_free [09:40:23]json_value_free done [09:40:23]process_json_proto returns [09:40:23]Send response to host [09:40:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":63520660.27,"fm.sale_refund.total":3190684.00,"fm.buy.total":0.00,"shift.sale.total":11952.18,"shift.sale.total_cash":11328.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [09:40:23]free response buf [09:40:23]execute_script done [09:40:23]execute_script returns [09:40:23]free content buf [09:40:23]Sock 10.Close socket [09:40:23]Sock 10.Thread stoped [09:40:24]accept exits with 9 [09:40:24]New connection [09:40:24]New thread 3067620708 created [09:40:24]Thread 3067477348 joined [09:40:24]Waiting for new connection... [09:40:24] Sock 9.Parse request [09:40:24]Sock 9.Check first char [09:40:24]Sock 9.First char is OK [09:40:24]request: POST /json_proto HTTP/1.0 [09:40:24]Method: POST [09:40:24]URL: /json_proto [09:40:24]Method is POST - this is cgi request [09:40:24]url: /json_proto [09:40:24]query_string will be loaded in cgi processing [09:40:24]execute_cgi json_proto POST (null) [09:40:24]execute_cgi path=json_proto method=POST [09:40:24]POST find Content-Length [09:40:24]Host: 172.17.44.67:8080 [09:40:24]Content-Length: 806 [09:40:24]Content-Type: application/json [09:40:24] [09:40:24]POST finish read [09:40:24]Found Content-Length = 806 [09:40:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2202656", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:24]execute_script... [09:40:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2202656", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:24]POST & json_proto [09:40:24]process_json_proto [09:40:24]json parsed OK: [09:40:24]protocol is kg_v1.0 [09:40:24]action value=close_receipt [09:40:24]process_action close_receipt [09:40:24]cmd_close_receipt [09:40:24]MH_GetDate [09:40:24]Write to MH i2c: F0 00 00 1D 00 0C [09:40:24]Write i2c OK [09:40:24]MH_I2C_Read... [09:40:24]Read from MH i2c: F0 [09:40:24]MH_I2C_Read... [09:40:24]Read from MH i2c: F0 09 00 [09:40:24]MH_I2C_Read... [09:40:24]Read from MH i2c: F0 09 00 1D 00 00 88 DB 10 67 F1 C7 6B 64 76 [09:40:24]GetLastDocTimeStamp 1729157377 [09:40:24]current date 1729158024 [09:40:24]FM_GetShiftState [09:40:24]SAM_PROTO_GetShiftState [09:40:24]wFMCommunicate request_size=4 [09:40:24]MH_SAM_APDU [09:40:24]CAPDU: 80 13 01 00 [09:40:24]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [09:40:24]Write i2c OK [09:40:24]MH_I2C_Read... [09:40:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:24]Read from MH i2c: E2 [09:40:24]MH_I2C_Read... [09:40:24]Read from MH i2c: E2 0E 00 [09:40:24]MH_I2C_Read... [09:40:24]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 A3 [09:40:24]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:40:24]wFMCommunicate OK [09:40:24]SAM_PROTO_GetShiftState done [09:40:24]FM_GetShiftState done [09:40:24]opened in 1729125927 [09:40:24]opened+sec_in_day 1729212327 [09:40:24]quantity*price = 0 [09:40:24]sum+1 = 1 [09:40:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 30 17.10.2024 09:40 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 2202656 ФМ: 0000000000871843 ФД: 82104 ФПД: 232503989613476 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T094024&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82104&fm=232503989613476&tin=02508201610067®Number=0000000000091680&sum=0 [09:40:25]StoreToDocumentArchive [09:40:25]shift 525 fd 82104 [09:40:25]save to /storage/0525/doc_00082104 [09:40:25]save last doc name /storage/0525/doc_00082104 to /storage/kkm_last_doc_name [09:40:25]save OK [09:40:25]Clear old archive folders... [09:40:25]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:40:25]tlvbuf is 0087EE60 [09:40:25]SAM_PROTO_ClearQueue [09:40:25]wFMCommunicate request_size=4 [09:40:25]MH_SAM_APDU [09:40:25]CAPDU: 80 09 00 00 [09:40:25]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [09:40:25]Write i2c OK [09:40:25]MH_I2C_Read... [09:40:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:25]Read from MH i2c: E2 [09:40:25]MH_I2C_Read... [09:40:25]Read from MH i2c: E2 03 00 [09:40:25]MH_I2C_Read... [09:40:25]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [09:40:25]RAPDU: 90 00 [09:40:25]wFMCommunicate OK [09:40:25]SAM_PROTO_ClearQueue done [09:40:28]Read from MH i2c: E2 [09:40:28]MH_I2C_Read... [09:40:28]Read from MH i2c: E2 17 00 [09:40:28]MH_I2C_Read... [09:40:28]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 30 [09:40:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:40:28]wFMCommunicate OK [09:40:28]requested_item fd.num is exist - process it [09:40:28]SAM_PROTO_GetFieldsCounters [09:40:28]wFMCommunicate request_size=4 [09:40:28]MH_SAM_APDU [09:40:28]CAPDU: 80 13 00 00 [09:40:28]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [09:40:28]Write i2c OK [09:40:28]MH_I2C_Read... [09:40:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:28]Read from MH i2c: E2 [09:40:28]MH_I2C_Read... [09:40:28]Read from MH i2c: E2 62 00 [09:40:28]MH_I2C_Read... [09:40:28]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B8 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [09:40:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B8 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:40:28]wFMCommunicate OK [09:40:28]SAM_PROTO_GetFieldsCounters done [09:40:28]requested_item shift.num is exist - process it [09:40:28]requested_item shift.opened is exist - process it [09:40:28]req_shift_opened [09:40:28]FM_GetShiftState [09:40:28]SAM_PROTO_GetShiftState [09:40:28]wFMCommunicate request_size=4 [09:40:28]MH_SAM_APDU [09:40:28]CAPDU: 80 13 01 00 [09:40:28]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [09:40:28]Write i2c OK [09:40:28]MH_I2C_Read... [09:40:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:28]Read from MH i2c: E2 [09:40:28]MH_I2C_Read... [09:40:28]Read from MH i2c: E2 0E 00 [09:40:28]MH_I2C_Read... [09:40:28]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 EB [09:40:28]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:40:28]wFMCommunicate OK [09:40:28]SAM_PROTO_GetShiftState done [09:40:28]FM_GetShiftState done [09:40:28]req_shift_opened done [09:40:28]requested_item shift.open_date is exist - process it [09:40:28]req_shift_open_date [09:40:28]req_shift_open_date done [09:40:28]produce_requested_data done [09:40:28]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82104,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [09:40:28]process_action_free close_receipt [09:40:28]json_value_free [09:40:28]json_value_free done [09:40:28]process_json_proto returns [09:40:28]Send response to host [09:40:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82104,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [09:40:28]free response buf [09:40:28]execute_script done [09:40:28]execute_script returns [09:40:28]free content buf [09:40:28]Sock 9.Close socket [09:40:28]Sock 9.Thread stoped [09:40:29]Connected sock=11 [09:40:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 24 87 0D 01 75 CA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 88 DB 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B8 40 01 00 35 04 06 00 D3 76 0D B5 B3 A4 E8 36 95 15 C7 1A 53 B6 [09:40:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 A0 75 47 00 F1 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B8 40 01 00 F4 03 04 00 CA 80 10 67 B6 04 01 00 00 AF 12 D0 D0 71 D9 5F 40 [09:40:30]CommunicateWithHost err = 0 [09:40:30]CheckOFDResponse [09:40:30]1017 (14) - 77093643461234 [09:40:30]1041 (16) - 0000000000871843 [09:40:30]1040 (4) - 82104 [09:40:30]1012 (4) - 17.10.2024 03:13 [09:40:30]1206 (1) - 0 [09:40:30]OFD Sender: Remove packet 82104 [09:40:30]ProducePacketName [09:40:30]name=ofd_packets/00082104 [09:40:30]NVStorageDeleteData [09:40:31]OFD Sender: No OFD packet to send [09:40:36]OFD Sender: No OFD packet to send [09:40:40]recv_with_timeout no data received [09:40:41]OFD Sender: No OFD packet to send [09:40:46]OFD Sender: No OFD packet to send [09:40:48]accept exits with 10 [09:40:48]New connection [09:40:48]New thread 3067477348 created [09:40:48]Thread 3067620708 joined [09:40:48]Waiting for new connection... [09:40:48] Sock 10.Parse request [09:40:48]Sock 10.Check first char [09:40:48]Sock 10.First char is OK [09:40:48]request: POST /json_proto HTTP/1.0 [09:40:48]Method: POST [09:40:48]URL: /json_proto [09:40:48]Method is POST - this is cgi request [09:40:48]url: /json_proto [09:40:48]query_string will be loaded in cgi processing [09:40:48]execute_cgi json_proto POST (null) [09:40:48]execute_cgi path=json_proto method=POST [09:40:48]POST find Content-Length [09:40:48]Host: 172.17.44.67:8080 [09:40:48]Content-Length: 677 [09:40:48]Content-Type: application/json [09:40:48] [09:40:48]POST finish read [09:40:48]Found Content-Length = 677 [09:40:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:48]execute_script... [09:40:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:48]POST & json_proto [09:40:48]process_json_proto [09:40:48]json parsed OK: [09:40:48]protocol is kg_v1.0 [09:40:48]action value=close_receipt [09:40:48]process_action close_receipt [09:40:48]cmd_close_receipt [09:40:48]MH_GetDate [09:40:48]Write to MH i2c: F0 00 00 67 00 56 [09:40:48]Write i2c OK [09:40:48]MH_I2C_Read... [09:40:48]Read from MH i2c: F0 [09:40:48]MH_I2C_Read... [09:40:48]Read from MH i2c: F0 09 00 [09:40:48]MH_I2C_Read... [09:40:48]Read from MH i2c: F0 09 00 67 00 00 A1 DB 10 67 F1 C7 6B 64 D9 [09:40:48]GetLastDocTimeStamp 1729158024 [09:40:48]current date 1729158049 [09:40:48]FM_GetShiftState [09:40:48]SAM_PROTO_GetShiftState [09:40:48]wFMCommunicate request_size=4 [09:40:48]MH_SAM_APDU [09:40:48]CAPDU: 80 13 01 00 [09:40:48]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [09:40:48]Write i2c OK [09:40:48]MH_I2C_Read... [09:40:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:48]Read from MH i2c: E2 [09:40:48]MH_I2C_Read... [09:40:48]Read from MH i2c: E2 0E 00 [09:40:48]MH_I2C_Read... [09:40:48]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 ED [09:40:48]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:40:48]wFMCommunicate OK [09:40:48]SAM_PROTO_GetShiftState done [09:40:48]FM_GetShiftState done [09:40:48]opened in 1729125927 [09:40:48]opened+sec_in_day 1729212327 [09:40:48]quantity*price = 40006 [09:40:48]sum+1 = 40007 [09:40:48]Check (price>sum+1) || (price+1 о реализуемом товаре [09:40:26]line ИТОГО: 0.00 [09:40:26]line НСП 1% : 0.00 [09:40:26]line НДС 12% : 0.00 [09:40:26]line Наличными: 0.00 [09:40:26]line Безнал.: 0.00 [09:40:26]line Место: АЗС № 114 "Партнер Нефть" [09:40:26]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:40:26]line СНО: Общий режим [09:40:26]line Чек 30 17.10.2024 09:40 [09:40:26]line Смена: 525 ФФД: 1.0 [09:40:26]line ЗНМ: 0300000086 [09:40:26]line РНМ: 0000000000091680 [09:40:26]line Версия ККМ: 001 [09:40:26]line Талоны: Топливные Талоны [09:40:26]line 2202656 [09:40:26]line ФМ: 0000000000871843 [09:40:26]line ФД: 82104 [09:40:26]line ФПД: 232503989613476 [09:40:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T094024&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82104&fm=232503989613476&tin=02508201610067®Number=0000000000091680&sum=0 [09:40:26]written 0, free lines is 4095 [09:40:26]OFD Sender: Processing packet 82104 [packets to send 254, broken 253] [09:40:26]ProducePacketName [09:40:26]name=ofd_packets/00082104 [09:40:26]OFD Sender: To server: pG, [09:40:26]CommunicateWithHost lk.salyk.kg:30040 [09:40:26]ConnectInit lk.salyk.kg [09:40:26]Write to MH i2c: 01 00 00 5B 00 5B [09:40:26]Write i2c OK [09:40:26]MH_I2C_Read... [09:40:26]Read from MH i2c: 01 [09:40:26]MH_I2C_Read... [09:40:26]Read from MH i2c: 01 07 00 [09:40:26]MH_I2C_Read... [09:40:26]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 FB 0C 69 [09:40:26]RasterBufferAndPrint [09:40:26]line [09:40:26]line [09:40:26]line [09:40:26]line [09:40:26]line [09:40:26]written 0, free lines is 3345 [09:40:26]MH_Cut [09:40:26]Write to MH i2c: D1 01 00 62 00 01 34 [09:40:26]Write i2c OK [09:40:26]MH_I2C_Read... [09:40:26]Read from MH i2c: D1 [09:40:26]MH_I2C_Read... [09:40:26]Read from MH i2c: D1 01 00 [09:40:26]MH_I2C_Read... [09:40:26]Read from MH i2c: D1 01 00 62 00 00 33 [09:40:26]Write to MH i2c: 01 00 00 63 00 63 [09:40:26]Write i2c OK [09:40:26]MH_I2C_Read... [09:40:27]*** Cut start [09:40:27]*** Partial cut [09:40:27]*** CUTSNS_PIN = 1 [09:40:27]*** CUTSNS_PIN = 0 [09:40:27]*** Brake cut motor [09:40:28]recv_with_timeout no data received [09:40:28]Read from MH i2c: 01 [09:40:28]MH_I2C_Read... [09:40:28]*** Stop cut motor [09:40:28]*** Cut end [09:40:28]Read from MH i2c: 01 07 00 [09:40:28]MH_I2C_Read... [09:40:28]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [09:40:28]process_action close_receipt done [09:40:28]requested_data is exist [09:40:28]produce_requested_data [09:40:28]requested_item fm.sn is exist - process it [09:40:28]wFMCommunicate request_size=4 [09:40:28]MH_SAM_APDU [09:40:28]CAPDU: 80 11 00 00 [09:40:28]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [09:40:28]Write i2c OK [09:40:28]MH_I2C_Read... [09:40:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:49]LoadAmountFromDocumentTag total=0 [09:40:49]LoadAmountFromDocumentTag cost=40006 [09:40:49]SetAmountToDocument total=40006 [09:40:49]Malloc new data [09:40:49]cost*persent_nds=4800720 [09:40:49]+500=4801220 [09:40:49]tax_nds_amount=4248 [09:40:49]cost*persent_nds=400060 [09:40:49]+500=400560 [09:40:49]tax_nsp_amount=354 [09:40:49]Load OK [09:40:49]Load OK [09:40:49]Malloc new data [09:40:49]Malloc new data [09:40:49]Load OK [09:40:49]Load OK [09:40:49]Malloc new data [09:40:49]Malloc new data [09:40:49]free (receipt_item_data.pre_item_text) [09:40:49]free (receipt_item_data.post_item_text) [09:40:49]done [09:40:49]Malloc new data [09:40:49]Malloc new data [09:40:49]Malloc new data [09:40:49]KKMSetReceiptData OK [09:40:49]Malloc new data [09:40:49]Malloc new data [09:40:49]Malloc new data [09:40:49]Malloc new data [09:40:49]ProcessDocumentItem done err = 0, tmpTLVsize=111 [09:40:49]tlvbuf is 00824750 [09:40:49]KKMLoadAndSignReceiptData [09:40:49]SAM_PROTO_ProcessDocument [09:40:49]wFMCommunicate request_size=9 [09:40:49]MH_SAM_APDU [09:40:49]CAPDU: 80 15 01 00 04 03 00 6F 00 [09:40:49]Write to MH i2c: E2 0C 00 6A 00 80 15 01 00 04 00 03 00 6F 00 00 00 63 [09:40:49]Write i2c OK [09:40:49]MH_I2C_Read... [09:40:49]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [09:40:49]Read from MH i2c: E2 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 03 00 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 03 00 6A 00 00 90 00 DE [09:40:49]RAPDU: 90 00 [09:40:49]wFMCommunicate OK [09:40:49]wFMCommunicate request_size=10 [09:40:49]MH_SAM_APDU [09:40:49]CAPDU: 80 15 02 00 05 1E 04 01 00 01 [09:40:49]Write to MH i2c: E2 0D 00 6B 00 80 15 02 00 05 00 1E 04 01 00 01 00 00 19 [09:40:49]Write i2c OK [09:40:49]MH_I2C_Read... [09:40:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:40:49]Read from MH i2c: E2 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 03 00 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 03 00 6B 00 00 90 00 DF [09:40:49]RAPDU: 90 00 [09:40:49]wFMCommunicate OK [09:40:49]wFMCommunicate request_size=15 [09:40:49]MH_SAM_APDU [09:40:49]CAPDU: 80 15 02 00 0A FC 03 06 00 40 9C 00 00 00 00 [09:40:49]Write to MH i2c: E2 12 00 6C 00 80 15 02 00 0A 00 FC 03 06 00 40 9C 00 00 00 00 00 00 E1 [09:40:49]Write i2c OK [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 [09:40:49]MH_I2C_Read... [09:40:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:40:49]Read from MH i2c: E2 03 00 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 03 00 6C 00 00 90 00 E0 [09:40:49]RAPDU: 90 00 [09:40:49]wFMCommunicate OK [09:40:49]wFMCommunicate request_size=47 [09:40:49]MH_SAM_APDU [09:40:49]CAPDU: 80 15 02 00 2A EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 [09:40:49]Write to MH i2c: E2 32 00 6D 00 80 15 02 00 2A 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 00 00 4F [09:40:49]Write i2c OK [09:40:49]MH_I2C_Read... [09:40:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:40:49]Read from MH i2c: E2 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 03 00 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 03 00 6D 00 00 90 00 E1 [09:40:49]RAPDU: 90 00 [09:40:49]wFMCommunicate OK [09:40:49]wFMCommunicate request_size=15 [09:40:49]MH_SAM_APDU [09:40:49]CAPDU: 80 15 02 00 0A 07 04 06 00 40 9C 00 00 00 00 [09:40:49]Write to MH i2c: E2 12 00 6E 00 80 15 02 00 0A 00 07 04 06 00 40 9C 00 00 00 00 00 00 EF [09:40:49]Write i2c OK [09:40:49]MH_I2C_Read... [09:40:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:40:49]Read from MH i2c: E2 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 03 00 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 03 00 6E 00 00 90 00 E2 [09:40:49]RAPDU: 90 00 [09:40:49]wFMCommunicate OK [09:40:49]wFMCommunicate request_size=15 [09:40:49]MH_SAM_APDU [09:40:49]CAPDU: 80 15 02 00 0A 39 04 06 00 00 00 00 00 00 00 [09:40:49]Write to MH i2c: E2 12 00 6F 00 80 15 02 00 0A 00 39 04 06 00 00 00 00 00 00 00 00 00 46 [09:40:49]Write i2c OK [09:40:49]MH_I2C_Read... [09:40:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:40:49]Read from MH i2c: E2 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 03 00 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 03 00 6F 00 00 90 00 E3 [09:40:49]RAPDU: 90 00 [09:40:49]wFMCommunicate OK [09:40:49]wFMCommunicate request_size=11 [09:40:49]MH_SAM_APDU [09:40:49]CAPDU: 80 15 02 00 06 1F 04 02 00 01 00 [09:40:49]Write to MH i2c: E2 0E 00 70 00 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 22 [09:40:49]Write i2c OK [09:40:49]MH_I2C_Read... [09:40:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:40:49]Read from MH i2c: E2 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 03 00 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 03 00 70 00 00 90 00 E4 [09:40:49]RAPDU: 90 00 [09:40:49]wFMCommunicate OK [09:40:49]wFMCommunicate request_size=13 [09:40:49]MH_SAM_APDU [09:40:49]CAPDU: 80 15 02 00 08 F4 03 04 00 A1 DB 10 67 [09:40:49]Write to MH i2c: E2 10 00 71 00 80 15 02 00 08 00 F4 03 04 00 A1 DB 10 67 00 00 EF [09:40:49]Write i2c OK [09:40:49]MH_I2C_Read... [09:40:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:40:49]Read from MH i2c: E2 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 03 00 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 03 00 71 00 00 90 00 E5 [09:40:49]RAPDU: 90 00 [09:40:49]wFMCommunicate OK [09:40:49]wFMCommunicate request_size=25 [09:40:49]MH_SAM_APDU [09:40:49]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 [09:40:49]Write to MH i2c: E2 1C 00 72 00 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 00 00 53 [09:40:49]Write i2c OK [09:40:49]MH_I2C_Read... [09:40:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:40:49]Read from MH i2c: E2 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 03 00 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 03 00 72 00 00 90 00 E6 [09:40:49]RAPDU: 90 00 [09:40:49]wFMCommunicate OK [09:40:49]wFMCommunicate request_size=4 [09:40:49]MH_SAM_APDU [09:40:49]CAPDU: 80 15 03 00 [09:40:49]Write to MH i2c: E2 08 00 73 00 80 15 03 00 00 00 00 00 F4 [09:40:49]Write i2c OK [09:40:49]MH_I2C_Read... [09:40:49]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [09:40:49]Read from MH i2c: E2 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 40 00 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 40 00 73 00 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B9 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 1F 00 00 00 35 04 06 00 19 3A F8 8F 76 F6 90 00 57 [09:40:49]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B9 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 1F 00 00 00 35 04 06 00 19 3A F8 8F 76 F6 90 00 [09:40:49]wFMCommunicate OK [09:40:49]SAM_PROTO_ProcessDocument answer len = 59 [09:40:49]SAM_PROTO_ProcessDocument done [09:40:49]SetTLVBufToDocument [09:40:49]Processing tag 1209 (04B9) [09:40:49]Malloc new data [09:40:49]Processing tag 1041 (0411) [09:40:49]Processing tag 1040 (0410) [09:40:49]Malloc new data [09:40:49]Processing tag 1038 (040E) [09:40:49]Malloc new data [09:40:49]Processing tag 1042 (0412) [09:40:49]Malloc new data [09:40:49]Processing tag 1077 (0435) [09:40:49]Malloc new data [09:40:49]SetTLVBufToDocument err=0 [09:40:49]KKMLoadAndSignReceiptData store KKM data [09:40:49]KKMLoadAndSignReceiptData err=0 [09:40:49]wFMCommunicate request_size=4 [09:40:50]MH_SAM_APDU [09:40:50]CAPDU: 80 11 00 00 [09:40:50]Write to MH i2c: E2 08 00 74 00 80 11 00 00 00 00 00 00 EE [09:40:50]Write i2c OK [09:40:50]MH_I2C_Read... [09:40:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:50]Read from MH i2c: E2 [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: E2 17 00 [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: E2 17 00 74 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 40 [09:40:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:40:50]wFMCommunicate OK [09:40:50]Счет N : (1)918611 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 11 Товар: 2710124130 Аи-92-К-4 5.980 * 66.90 = 400.06 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 31 17.10.2024 09:40 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82105 ФПД: 27741068949238 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T094049&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82105&fm=27741068949238&tin=02508201610067®Number=0000000000091680&sum=40000 [09:40:50]StoreToDocumentArchive [09:40:50]shift 525 fd 82105 [09:40:50]save to /storage/0525/doc_00082105 [09:40:50]save last doc name /storage/0525/doc_00082105 to /storage/kkm_last_doc_name [09:40:50]save OK [09:40:50]Clear old archive folders... [09:40:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:40:50]tlvbuf is 00829920 [09:40:50]SAM_PROTO_ClearQueue [09:40:50]wFMCommunicate request_size=4 [09:40:50]MH_SAM_APDU [09:40:50]CAPDU: 80 09 00 00 [09:40:50]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [09:40:50]Write i2c OK [09:40:50]MH_I2C_Read... [09:40:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:50]Read from MH i2c: E2 [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: E2 03 00 [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [09:40:50]RAPDU: 90 00 [09:40:50]wFMCommunicate OK [09:40:50]SAM_PROTO_ClearQueue done [09:40:50]KKMCreateOFDPacket [09:40:50]OFDProtocolAddRootSTLVToBuf [09:40:50]FM_MakeSignedData [09:40:50]FM_MakeSignedData [09:40:50]SAM_PROTO_SignData [09:40:50]wFMCommunicate request_size=4 [09:40:50]MH_SAM_APDU [09:40:50]CAPDU: 80 0D 01 02 [09:40:50]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [09:40:50]Write i2c OK [09:40:50]MH_I2C_Read... [09:40:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:50]Read from MH i2c: E2 [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: E2 03 00 [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [09:40:50]RAPDU: 90 00 [09:40:50]wFMCommunicate OK [09:40:50]wFMCommunicate request_size=255 [09:40:50]MH_SAM_APDU [09:40:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 A1 DB 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B9 40 01 00 35 04 06 00 19 [09:40:50]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 A1 DB 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B9 40 01 00 35 04 06 00 19 00 00 7E [09:40:50]Write i2c OK [09:40:50]MH_I2C_Read... [09:40:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:50]Read from MH i2c: E2 [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: E2 03 00 [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [09:40:50]RAPDU: 90 00 [09:40:50]wFMCommunicate OK [09:40:50]wFMCommunicate request_size=10 [09:40:50]MH_SAM_APDU [09:40:50]CAPDU: 80 0D 02 02 05 3A F8 8F 76 F6 [09:40:50]Write to MH i2c: E2 0D 00 78 00 80 0D 02 02 05 00 3A F8 8F 76 F6 00 00 29 [09:40:50]Write i2c OK [09:40:50]MH_I2C_Read... [09:40:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:50]Read from MH i2c: E2 [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: E2 03 00 [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [09:40:50]RAPDU: 90 00 [09:40:50]wFMCommunicate OK [09:40:50]wFMCommunicate request_size=4 [09:40:50]MH_SAM_APDU [09:40:50]CAPDU: 80 0D 03 02 [09:40:50]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [09:40:50]Write i2c OK [09:40:50]MH_I2C_Read... [09:40:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:50]Read from MH i2c: E2 [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: E2 0B 00 [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: E2 0B 00 79 00 00 BF 01 93 BD 28 B6 D1 F0 90 00 A4 [09:40:50]RAPDU: BF 01 93 BD 28 B6 D1 F0 90 00 [09:40:50]wFMCommunicate OK [09:40:50]SAM_PROTO_SignData done [09:40:50]FM_MakeSignedData done [09:40:50]CreateOFDProtocolMessage [09:40:50]wFMCommunicate request_size=4 [09:40:50]MH_SAM_APDU [09:40:50]CAPDU: 80 11 00 00 [09:40:50]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [09:40:50]Write i2c OK [09:40:50]MH_I2C_Read... [09:40:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:50]Read from MH i2c: E2 [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: E2 17 00 [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 46 [09:40:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:40:50]wFMCommunicate OK [09:40:50]CreateOFDProtocolMessage done [09:40:50]OFDSenderStorePacket 82105 [09:40:50]StoreOFDPacket docnum=82105 [09:40:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 31 4E 07 01 28 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 A1 DB 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B9 40 01 00 35 04 06 00 19 3A F8 8F 76 F6 BF 01 93 BD 28 B6 D1 F0 [09:40:50]CheckFolder [09:40:50]dirname=/storage/ofd_packets [09:40:50]CheckFolder done [09:40:50]ProducePacketName [09:40:50]name=ofd_packets/00082105 [09:40:50]NVStorageSaveData ofd_packets/00082105 [09:40:50]File name is /storage/ofd_packets/00082105 [09:40:50]Write 301 bytes [09:40:50]NVStorageSaveData done [09:40:50]OFDSenderStorePacket done [09:40:50]KKMCreateOFDPacket done [09:40:50]NVStorageSaveData kkm_last_timestamp [09:40:50]File name is /storage/kkm_last_timestamp [09:40:50]Write 4 bytes [09:40:50]NVStorageSaveData done [09:40:50]ExternCall_PrintAddStr [09:40:50]wPrintStart [09:40:50]Write to MH i2c: 01 00 00 7B 00 7B [09:40:50]Write i2c OK [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: 01 [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: 01 07 00 [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [09:40:50]RasterBufferAndPrint [09:40:50]line Счет N : (1)918611 [09:40:50]line ИНН: 02508201610067 [09:40:50]line Контрольно-Кассовый Чек [09:40:50]line ПРОДАЖА [09:40:50]line ТРК (МРК, ГНК) : 11 [09:40:50]line Товар: 2710124130 [09:40:50]line Аи-92-К-4 [09:40:50]line 5.980 * 66.90 [09:40:50]line = 400.06 [09:40:50]line НДС 12% НСП 1% [09:40:50]line > о реализуемом товаре [09:40:50]line ОКРУГЛЕНИЕ: -0.06 [09:40:50]line ИТОГО: 400.00 [09:40:50]line Внесено: 400.00 [09:40:50]line СДАЧА: 0.00 [09:40:50]line НСП 1% : 3.54 [09:40:50]line НДС 12% : 42.48 [09:40:50]line Наличными: 400.00 [09:40:50]line Безнал.: 0.00 [09:40:50]line Место: АЗС № 114 "Партнер Нефть" [09:40:50]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:40:50]line СНО: Общий режим [09:40:50]line Чек 31 17.10.2024 09:40 [09:40:50]line Смена: 525 ФФД: 1.0 [09:40:50]line ЗНМ: 0300000086 [09:40:50]line РНМ: 0000000000091680 [09:40:50]line Версия ККМ: 001 [09:40:50]line ФМ: 0000000000871843 [09:40:50]line ФД: 82105 [09:40:50]line ФПД: 27741068949238 [09:40:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T094049&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82105&fm=27741068949238&tin=02508201610067®Number=0000000000091680&sum=40000 [09:40:50]written 0, free lines is 4095 [09:40:50]OFD Sender: Processing packet 82105 [packets to send 254, broken 253] [09:40:50]ProducePacketName [09:40:50]name=ofd_packets/00082105 [09:40:50]OFD Sender: To server: pG, [09:40:50]CommunicateWithHost lk.salyk.kg:30040 [09:40:50]ConnectInit lk.salyk.kg [09:40:51]Write to MH i2c: 01 00 00 A6 00 A6 [09:40:51]Write i2c OK [09:40:51]MH_I2C_Read... [09:40:51]Read from MH i2c: 01 [09:40:51]MH_I2C_Read... [09:40:51]Read from MH i2c: 01 07 00 [09:40:51]MH_I2C_Read... [09:40:51]Read from MH i2c: 01 07 00 A6 00 00 00 00 00 00 D4 0C 8D [09:40:51]RasterBufferAndPrint [09:40:51]line [09:40:51]line [09:40:51]line [09:40:51]line [09:40:51]line [09:40:51]written 0, free lines is 3310 [09:40:51]MH_Cut [09:40:51]Write to MH i2c: D1 01 00 AD 00 01 7F [09:40:51]Write i2c OK [09:40:51]MH_I2C_Read... [09:40:51]Read from MH i2c: D1 [09:40:51]MH_I2C_Read... [09:40:51]Read from MH i2c: D1 01 00 [09:40:51]MH_I2C_Read... [09:40:51]Read from MH i2c: D1 01 00 AD 00 00 7E [09:40:51]Write to MH i2c: 01 00 00 AE 00 AE [09:40:51]Write i2c OK [09:40:51]MH_I2C_Read... [09:40:52]*** Cut start [09:40:52]*** Partial cut [09:40:52]*** CUTSNS_PIN = 1 [09:40:52]*** CUTSNS_PIN = 0 [09:40:52]*** Brake cut motor [09:40:52]Read from MH i2c: 01 [09:40:52]MH_I2C_Read... [09:40:52]*** Stop cut motor [09:40:52]*** Cut end [09:40:52]Read from MH i2c: 01 07 00 [09:40:52]MH_I2C_Read... [09:40:52]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [09:40:52]process_action close_receipt done [09:40:52]requested_data is exist [09:40:52]produce_requested_data [09:40:52]requested_item fm.sn is exist - process it [09:40:52]wFMCommunicate request_size=4 [09:40:52]MH_SAM_APDU [09:40:52]CAPDU: 80 11 00 00 [09:40:52]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [09:40:52]Write i2c OK [09:40:52]MH_I2C_Read... [09:40:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:52]Read from MH i2c: E2 [09:40:52]MH_I2C_Read... [09:40:52]Read from MH i2c: E2 17 00 [09:40:52]MH_I2C_Read... [09:40:52]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 7B [09:40:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:40:52]wFMCommunicate OK [09:40:52]requested_item fd.num is exist - process it [09:40:52]SAM_PROTO_GetFieldsCounters [09:40:52]wFMCommunicate request_size=4 [09:40:52]MH_SAM_APDU [09:40:52]CAPDU: 80 13 00 00 [09:40:52]Write to MH i2c: E2 08 00 B0 00 80 13 00 00 00 00 00 00 2C [09:40:52]Write i2c OK [09:40:52]MH_I2C_Read... [09:40:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:53]Read from MH i2c: E2 [09:40:53]MH_I2C_Read... [09:40:53]Read from MH i2c: E2 62 00 [09:40:53]MH_I2C_Read... [09:40:53]Read from MH i2c: E2 62 00 B0 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B9 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [09:40:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B9 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:40:53]wFMCommunicate OK [09:40:53]SAM_PROTO_GetFieldsCounters done [09:40:53]requested_item shift.num is exist - process it [09:40:53]requested_item shift.opened is exist - process it [09:40:53]req_shift_opened [09:40:53]FM_GetShiftState [09:40:53]SAM_PROTO_GetShiftState [09:40:53]wFMCommunicate request_size=4 [09:40:53]MH_SAM_APDU [09:40:53]CAPDU: 80 13 01 00 [09:40:53]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [09:40:53]Write i2c OK [09:40:53]MH_I2C_Read... [09:40:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:53]Read from MH i2c: E2 [09:40:53]MH_I2C_Read... [09:40:53]Read from MH i2c: E2 0E 00 [09:40:53]MH_I2C_Read... [09:40:53]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 36 [09:40:53]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:40:53]wFMCommunicate OK [09:40:53]SAM_PROTO_GetShiftState done [09:40:53]FM_GetShiftState done [09:40:53]req_shift_opened done [09:40:53]requested_item shift.open_date is exist - process it [09:40:53]req_shift_open_date [09:40:53]req_shift_open_date done [09:40:53]produce_requested_data done [09:40:53]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82105,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [09:40:53]process_action_free close_receipt [09:40:53]json_value_free [09:40:53]json_value_free done [09:40:53]process_json_proto returns [09:40:53]Send response to host [09:40:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82105,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [09:40:53]free response buf [09:40:53]execute_script done [09:40:53]execute_script returns [09:40:53]free content buf [09:40:53]Sock 10.Close socket [09:40:53]Sock 10.Thread stoped [09:40:55]ConnectInit Can't take IP for lk.salyk.kg [09:40:55]CommunicateWithHost connect error [09:40:55]CommunicateWithHost err = -1 [09:40:55]OFD Sender: Server communicate error [09:41:00]OFD Sender: Processing packet 82105 [packets to send 254, broken 253] [09:41:00]ProducePacketName [09:41:00]name=ofd_packets/00082105 [09:41:00]OFD Sender: To server: pG, [09:41:00]CommunicateWithHost lk.salyk.kg:30040 [09:41:00]ConnectInit lk.salyk.kg [09:41:05]ConnectInit Can't take IP for lk.salyk.kg [09:41:05]CommunicateWithHost connect error [09:41:06]CommunicateWithHost err = -1 [09:41:06]OFD Sender: Server communicate error [09:41:11]OFD Sender: Processing packet 82105 [packets to send 254, broken 253] [09:41:11]ProducePacketName [09:41:11]name=ofd_packets/00082105 [09:41:11]OFD Sender: To server: pG, [09:41:11]CommunicateWithHost lk.salyk.kg:30040 [09:41:11]ConnectInit lk.salyk.kg [09:41:17]recv_with_timeout no data received [09:41:18]Connected sock=10 [09:41:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 31 4E 07 01 28 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 A1 DB 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B9 40 01 00 35 04 06 00 19 3A F8 8F 76 F6 BF 01 93 BD 28 B6 D1 F0 [09:41:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 76 1D 47 00 9A AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B9 40 01 00 F4 03 04 00 FC 80 10 67 B6 04 01 00 00 09 F0 28 3E 92 C2 F8 45 [09:41:20]CommunicateWithHost err = 0 [09:41:20]CheckOFDResponse [09:41:20]1017 (14) - 77093643461234 [09:41:20]1041 (16) - 0000000000871843 [09:41:20]1040 (4) - 82105 [09:41:20]1012 (4) - 17.10.2024 03:14 [09:41:20]1206 (1) - 0 [09:41:20]OFD Sender: Remove packet 82105 [09:41:20]ProducePacketName [09:41:20]name=ofd_packets/00082105 [09:41:20]NVStorageDeleteData [09:41:20]OFD Sender: No OFD packet to send [09:41:25]OFD Sender: No OFD packet to send [09:41:30]OFD Sender: No OFD packet to send [09:41:35]OFD Sender: No OFD packet to send [09:41:37]recv_with_timeout no data received [09:41:40]OFD Sender: No OFD packet to send [09:41:45]OFD Sender: No OFD packet to send [09:41:47]recv_with_timeout no data received [09:41:49]accept exits with 9 [09:41:49]New connection [09:41:49]New thread 3067620708 created [09:41:49]Thread 3067477348 joined [09:41:49]Waiting for new connection... [09:41:49] Sock 9.Parse request [09:41:49]Sock 9.Check first char [09:41:49]Sock 9.First char is OK [09:41:49]request: POST /json_proto HTTP/1.0 [09:41:49]Method: POST [09:41:49]URL: /json_proto [09:41:49]Method is POST - this is cgi request [09:41:49]url: /json_proto [09:41:49]query_string will be loaded in cgi processing [09:41:49]execute_cgi json_proto POST (null) [09:41:49]execute_cgi path=json_proto method=POST [09:41:49]POST find Content-Length [09:41:49]Host: 172.17.44.67:8080 [09:41:49]Content-Length: 677 [09:41:49]Content-Type: application/json [09:41:49] [09:41:49]POST finish read [09:41:49]Found Content-Length = 677 [09:41:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:49]execute_script... [09:41:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:49]POST & json_proto [09:41:49]process_json_proto [09:41:49]json parsed OK: [09:41:49]protocol is kg_v1.0 [09:41:49]action value=close_receipt [09:41:49]process_action close_receipt [09:41:49]cmd_close_receipt [09:41:49]MH_GetDate [09:41:49]Write to MH i2c: F0 00 00 B2 00 A1 [09:41:49]Write i2c OK [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: F0 [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: F0 09 00 [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: F0 09 00 B2 00 00 DE DB 10 67 F1 C7 6B 64 61 [09:41:49]GetLastDocTimeStamp 1729158049 [09:41:49]current date 1729158110 [09:41:49]FM_GetShiftState [09:41:49]SAM_PROTO_GetShiftState [09:41:49]wFMCommunicate request_size=4 [09:41:49]MH_SAM_APDU [09:41:49]CAPDU: 80 13 01 00 [09:41:49]Write to MH i2c: E2 08 00 B3 00 80 13 01 00 00 00 00 00 30 [09:41:49]Write i2c OK [09:41:49]MH_I2C_Read... [09:41:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:49]Read from MH i2c: E2 [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: E2 0E 00 [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: E2 0E 00 B3 00 00 09 00 [09:41:50]Счет N : (1)918612 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 22 Товар: 2710124130 Аи-92-К-4 8.970 * 66.90 = 600.09 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 32 17.10.2024 09:41 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82106 ФПД: 76237190948372 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T094150&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82106&fm=76237190948372&tin=02508201610067®Number=0000000000091680&sum=60000 [09:41:50]StoreToDocumentArchive [09:41:50]shift 525 fd 82106 [09:41:50]save to /storage/0525/doc_00082106 [09:41:50]save last doc name /storage/0525/doc_00082106 to /storage/kkm_last_doc_name [09:41:50]save OK [09:41:50]Clear old archive folders... [09:41:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:41:50]tlvbuf is 0081FE00 [09:41:50]SAM_PROTO_ClearQueue [09:41:50]wFMCommunicate request_size=4 [09:41:50]MH_SAM_APDU [09:41:50]CAPDU: 80 09 00 00 [09:41:50]Write to MH i2c: E2 08 00 C0 00 80 09 00 00 00 00 00 00 32 [09:41:50]Write i2c OK [09:41:50]MH_I2C_Read... [09:41:50]OFD Sender: No OFD packet to send [09:41:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:50]Read from MH i2c: E2 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: E2 03 00 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [09:41:50]RAPDU: 90 00 [09:41:50]wFMCommunicate OK [09:41:50]SAM_PROTO_ClearQueue done [09:41:50]KKMCreateOFDPacket [09:41:50]OFDProtocolAddRootSTLVToBuf [09:41:50]FM_MakeSignedData [09:41:50]FM_MakeSignedData [09:41:50]SAM_PROTO_SignData [09:41:50]wFMCommunicate request_size=4 [09:41:50]MH_SAM_APDU [09:41:50]CAPDU: 80 0D 01 02 [09:41:50]Write to MH i2c: E2 08 00 C1 00 80 0D 01 02 00 00 00 00 3A [09:41:50]Write i2c OK [09:41:50]MH_I2C_Read... [09:41:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:50]Read from MH i2c: E2 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: E2 03 00 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [09:41:50]RAPDU: 90 00 [09:41:50]wFMCommunicate OK [09:41:50]wFMCommunicate request_size=255 [09:41:50]MH_SAM_APDU [09:41:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 DE DB 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BA 40 01 00 35 04 06 00 45 [09:41:50]Write to MH i2c: E2 02 01 C2 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 DE DB 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BA 40 01 00 35 04 06 00 45 00 00 42 [09:41:50]Write i2c OK [09:41:50]MH_I2C_Read... [09:41:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:51]Read from MH i2c: E2 [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: E2 03 00 [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [09:41:51]RAPDU: 90 00 [09:41:51]wFMCommunicate OK [09:41:51]wFMCommunicate request_size=10 [09:41:51]MH_SAM_APDU [09:41:51]CAPDU: 80 0D 02 02 05 56 5A AF 66 14 [09:41:51]Write to MH i2c: E2 0D 00 C3 00 80 0D 02 02 05 00 56 5A AF 66 14 00 00 20 [09:41:51]Write i2c OK [09:41:51]MH_I2C_Read... [09:41:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:51]Read from MH i2c: E2 [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: E2 03 00 [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [09:41:51]RAPDU: 90 00 [09:41:51]wFMCommunicate OK [09:41:51]wFMCommunicate request_size=4 [09:41:51]MH_SAM_APDU [09:41:51]CAPDU: 80 0D 03 02 [09:41:51]Write to MH i2c: E2 08 00 C4 00 80 0D 03 02 00 00 00 00 3F [09:41:51]Write i2c OK [09:41:51]MH_I2C_Read... [09:41:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:51]Read from MH i2c: E2 [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: E2 0B 00 [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: E2 0B 00 C4 00 00 27 87 DA 15 9B 37 51 06 90 00 06 [09:41:51]RAPDU: 27 87 DA 15 9B 37 51 06 90 00 [09:41:51]wFMCommunicate OK [09:41:51]SAM_PROTO_SignData done [09:41:51]FM_MakeSignedData done [09:41:51]CreateOFDProtocolMessage [09:41:51]wFMCommunicate request_size=4 [09:41:51]MH_SAM_APDU [09:41:51]CAPDU: 80 11 00 00 [09:41:51]Write to MH i2c: E2 08 00 C5 00 80 11 00 00 00 00 00 00 3F [09:41:51]Write i2c OK [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: E2 [09:41:51]MH_I2C_Read... [09:41:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:51]Read from MH i2c: E2 17 00 [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: E2 17 00 C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 91 [09:41:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:41:51]wFMCommunicate OK [09:41:51]CreateOFDProtocolMessage done [09:41:51]OFDSenderStorePacket 82106 [09:41:51]StoreOFDPacket docnum=82106 [09:41:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 D2 83 07 01 94 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 DE DB 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BA 40 01 00 35 04 06 00 45 56 5A AF 66 14 27 87 DA 15 9B 37 51 06 [09:41:51]CheckFolder [09:41:51]dirname=/storage/ofd_packets [09:41:51]CheckFolder done [09:41:51]ProducePacketName [09:41:51]name=ofd_packets/00082106 [09:41:51]NVStorageSaveData ofd_packets/00082106 [09:41:51]File name is /storage/ofd_packets/00082106 [09:41:51]Write 301 bytes [09:41:51]NVStorageSaveData done [09:41:51]OFDSenderStorePacket done [09:41:51]KKMCreateOFDPacket done [09:41:51]NVStorageSaveData kkm_last_timestamp [09:41:51]File name is /storage/kkm_last_timestamp [09:41:51]Write 4 bytes [09:41:51]NVStorageSaveData done [09:41:51]ExternCall_PrintAddStr [09:41:51]wPrintStart [09:41:51]Write to MH i2c: 01 00 00 C6 00 C6 [09:41:51]Write i2c OK [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: 01 [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: 01 07 00 [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: 01 07 00 C6 00 00 00 00 00 00 FF 0F DB [09:41:51]RasterBufferAndPrint [09:41:51]line Счет N : (1)918612 [09:41:51]line ИНН: 02508201610067 [09:41:51]line Контрольно-Кассовый Чек [09:41:51]line ПРОДАЖА [09:41:51]line ТРК (МРК, ГНК) : 22 [09:41:51]line Товар: 2710124130 [09:41:51]line Аи-92-К-4 [09:41:51]line 8.970 * 66.90 [09:41:51]line = 600.09 [09:41:51]line НДС 12% НСП 1% [09:41:51]line > о реализуемом товаре [09:41:51]line ОКРУГЛЕНИЕ: -0.09 [09:41:51]line ИТОГО: 600.00 [09:41:51]line Внесено: 600.00 [09:41:51]line СДАЧА: 0.00 [09:41:51]line НСП 1% : 5.31 [09:41:51]line НДС 12% : 63.73 [09:41:51]line Наличными: 600.00 [09:41:51]line Безнал.: 0.00 [09:41:51]line Место: АЗС № 114 "Партнер Нефть" [09:41:51]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:41:51]line СНО: Общий режим [09:41:51]line Чек 32 17.10.2024 09:41 [09:41:51]line Смена: 525 ФФД: 1.0 [09:41:51]line ЗНМ: 0300000086 [09:41:51]line РНМ: 0000000000091680 [09:41:51]line Версия ККМ: 001 [09:41:51]line ФМ: 0000000000871843 [09:41:51]line ФД: 82106 [09:41:51]line ФПД: 76237190948372 [09:41:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T094150&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82106&fm=76237190948372&tin=02508201610067®Number=0000000000091680&sum=60000 [09:41:51]OFD Sender: Processing packet 82106 [packets to send 254, broken 253] [09:41:51]ProducePacketName [09:41:51]name=ofd_packets/00082106 [09:41:51]OFD Sender: To server: pG, [09:41:51]CommunicateWithHost lk.salyk.kg:30040 [09:41:51]ConnectInit lk.salyk.kg [09:41:51]written 0, free lines is 4095 [09:41:51]Write to MH i2c: 01 00 00 F1 00 F1 [09:41:51]Write i2c OK [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: 01 [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: 01 07 00 [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: 01 07 00 F1 00 00 00 00 00 00 DA 0C DE [09:41:51]RasterBufferAndPrint [09:41:51]line [09:41:51]line [09:41:51]line [09:41:51]line [09:41:51]line [09:41:51]written 0, free lines is 3312 [09:41:51]MH_Cut [09:41:51]Write to MH i2c: D1 01 00 F8 00 01 CA [09:41:51]Write i2c OK [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: D1 [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: D1 01 00 [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: D1 01 00 F8 00 00 C9 [09:41:51]Write to MH i2c: 01 00 00 F9 00 F9 [09:41:51]Write i2c OK [09:41:51]MH_I2C_Read... [09:41:52]*** Cut start [09:41:52]*** Partial cut [09:41:52]*** CUTSNS_PIN = 1 [09:41:52]*** CUTSNS_PIN = 0 [09:41:52]*** Brake cut motor [09:41:53]Read from MH i2c: 01 [09:41:53]MH_I2C_Read... [09:41:53]*** Stop cut motor [09:41:53]*** Cut end [09:41:53]Read from MH i2c: 01 07 00 [09:41:53]MH_I2C_Read... [09:41:53]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 FF 0F 0E [09:41:53]process_action close_receipt done [09:41:53]requested_data is exist [09:41:53]produce_requested_data [09:41:53]requested_item fm.sn is exist - process it [09:41:53]wFMCommunicate request_size=4 [09:41:53]MH_SAM_APDU [09:41:53]CAPDU: 80 11 00 00 [09:41:53]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [09:41:53]Write i2c OK [09:41:53]MH_I2C_Read... [09:41:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:53]Read from MH i2c: E2 [09:41:53]MH_I2C_Read... [09:41:53]Read from MH i2c: E2 17 00 [09:41:53]MH_I2C_Read... [09:41:53]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C6 [09:41:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:41:53]wFMCommunicate OK [09:41:53]requested_item fd.num is exist - process it [09:41:53]SAM_PROTO_GetFieldsCounters [09:41:53]wFMCommunicate request_size=4 [09:41:53]MH_SAM_APDU [09:41:53]CAPDU: 80 13 00 00 [09:41:53]Write to MH i2c: E2 08 00 FB 00 80 13 00 00 00 00 00 00 77 [09:41:53]Write i2c OK [09:41:53]MH_I2C_Read... [09:41:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:53]Read from MH i2c: E2 [09:41:53]MH_I2C_Read... [09:41:53]Read from MH i2c: E2 62 00 [09:41:53]MH_I2C_Read... [09:41:53]Read from MH i2c: E2 62 00 FB 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 BA 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [09:41:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 BA 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:41:53]wFMCommunicate OK [09:41:53]SAM_PROTO_GetFieldsCounters done [09:41:53]requested_item shift.num is exist - process it [09:41:53]requested_item shift.opened is exist - process it [09:41:53]req_shift_opened [09:41:53]FM_GetShiftState [09:41:53]SAM_PROTO_GetShiftState [09:41:53]wFMCommunicate request_size=4 [09:41:53]MH_SAM_APDU [09:41:53]CAPDU: 80 13 01 00 [09:41:53]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [09:41:53]Write i2c OK [09:41:53]MH_I2C_Read... [09:41:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:53]Read from MH i2c: E2 [09:41:53]MH_I2C_Read... [09:41:53]Read from MH i2c: E2 0E 00 [09:41:53]MH_I2C_Read... [09:41:53]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 81 [09:41:53]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:41:53]wFMCommunicate OK [09:41:53]SAM_PROTO_GetShiftState done [09:41:53]FM_GetShiftState done [09:41:53]req_shift_opened done [09:41:53]requested_item shift.open_date is exist - process it [09:41:53]req_shift_open_date [09:41:53]req_shift_open_date done [09:41:53]produce_requested_data done [09:41:53]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82106,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [09:41:53]process_action_free close_receipt [09:41:53]json_value_free [09:41:53]json_value_free done [09:41:53]process_json_proto returns [09:41:53]Send response to host [09:41:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82106,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [09:41:53]free response buf [09:41:53]execute_script done [09:41:53]execute_script returns [09:41:53]free content buf [09:41:53]Sock 9.Close socket [09:41:53]Sock 9.Thread stoped [09:41:55]Connected sock=10 [09:41:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 D2 83 07 01 94 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 DE DB 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BA 40 01 00 35 04 06 00 45 56 5A AF 66 14 27 87 DA 15 9B 37 51 06 [09:41:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 B2 C7 47 00 09 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BA 40 01 00 F4 03 04 00 21 81 10 67 B6 04 01 00 00 7F A7 31 F1 8E 95 38 FE [09:41:59]CommunicateWithHost err = 0 [09:41:59]CheckOFDResponse [09:41:59]1017 (14) - 77093643461234 [09:41:59]1041 (16) - 0000000000871843 [09:41:59]1040 (4) - 82106 [09:41:59]1012 (4) - 17.10.2024 03:14 [09:41:59]1206 (1) - 0 [09:41:59]OFD Sender: Remove packet 82106 [09:41:59]ProducePacketName [09:41:59]name=ofd_packets/00082106 [09:41:59]NVStorageDeleteData [09:41:59]OFD Sender: No OFD packet to send [09:42:00]recv_with_timeout no data received [09:42:04]OFD Sender: No OFD packet to send [09:42:09]OFD Sender: No OFD packet to send [09:42:11]recv_with_timeout no data received [09:42:14]OFD Sender: No OFD packet to send [09:42:15]accept exits with 7 [09:42:15]New connection [09:42:15]New thread 3067477348 created [09:42:15]Thread 3067620708 joined [09:42:15]Waiting for new connection... [09:42:15] Sock 7.Parse request [09:42:15]Sock 7.Check first char [09:42:15]Sock 7.First char is OK [09:42:15]request: POST /json_proto HTTP/1.0 [09:42:15]Method: POST [09:42:15]URL: /json_proto [09:42:15]Method is POST - this is cgi request [09:42:15]url: /json_proto [09:42:15]query_string will be loaded in cgi processing [09:42:15]execute_cgi json_proto POST (null) [09:42:15]execute_cgi path=json_proto method=POST [09:42:15]POST find Content-Length [09:42:15]Host: 172.17.44.67:8080 [09:42:15]Content-Length: 677 [09:42:15]Content-Type: application/json [09:42:15] [09:42:15]POST finish read [09:42:15]Found Content-Length = 677 [09:42:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:15]execute_script... [09:42:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:15]POST & json_proto [09:42:15]process_json_proto [09:42:15]json parsed OK: [09:42:15]protocol is kg_v1.0 [09:42:15]action value=close_receipt [09:42:15]process_action close_receipt [09:42:15]cmd_close_receipt [09:42:15]MH_GetDate [09:42:15]Write to MH i2c: F0 00 00 FD 00 EC [09:42:15]Write i2c OK [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: F0 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: F0 09 00 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: F0 09 00 FD 00 00 F8 DB 10 67 F1 C7 6B 64 C6 [09:42:15]GetLastDocTimeStamp 1729158110 [09:42:15]current date 1729158136 [09:42:15]FM_GetShiftState [09:42:15]SAM_PROTO_GetShiftState [09:42:15]wFMCommunicate request_size=4 [09:42:15]MH_SAM_APDU [09:42:15]CAPDU: 80 13 01 00 [09:42:15]Write to MH i2c: E2 08 00 FE 00 80 13 01 00 00 00 00 00 7B [09:42:15]Write i2c OK [09:42:15]MH_I2C_Read... [09:42:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:15]Read from MH i2c: E2 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: E2 0E 00 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: E2 0E 00 FE 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 83 [09:42:15]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:42:15]wFMCommunicate OK [09:42:15]SAM_PROTO_GetShiftState done [09:42:15]FM_GetShiftState done [09:42:15]opened in 1729125927 [09:42:15]opened+sec_in_day 1729212327 [09:42:15]quantity*price = 60027 [09:42:15]sum+1 = 60029 [09:42:15]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 33 17.10.2024 09:42 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82107 ФПД: 256826102525925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T094216&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82107&fm=256826102525925&tin=02508201610067®Number=0000000000091680&sum=60000 [09:42:16]StoreToDocumentArchive [09:42:16]shift 525 fd 82107 [09:42:16]save to /storage/0525/doc_00082107 [09:42:16]save last doc name /storage/0525/doc_00082107 to /storage/kkm_last_doc_name [09:42:16]save OK [09:42:16]Clear old archive folders... [09:42:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:42:16]tlvbuf is 00865EC0 [09:42:16]SAM_PROTO_ClearQueue [09:42:16]wFMCommunicate request_size=4 [09:42:16]MH_SAM_APDU [09:42:16]CAPDU: 80 09 00 00 [09:42:16]Write to MH i2c: E2 08 00 0B 01 80 09 00 00 00 00 00 00 7E [09:42:16]Write i2c OK [09:42:16]MH_I2C_Read... [09:42:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:16]Read from MH i2c: E2 [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: E2 03 00 [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [09:42:16]RAPDU: 90 00 [09:42:16]wFMCommunicate OK [09:42:16]SAM_PROTO_ClearQueue done [09:42:16]KKMCreateOFDPacket [09:42:16]OFDProtocolAddRootSTLVToBuf [09:42:16]FM_MakeSignedData [09:42:16]FM_MakeSignedData [09:42:16]SAM_PROTO_SignData [09:42:16]wFMCommunicate request_size=4 [09:42:16]MH_SAM_APDU [09:42:16]CAPDU: 80 0D 01 02 [09:42:16]Write to MH i2c: E2 08 00 0C 01 80 0D 01 02 00 00 00 00 86 [09:42:16]Write i2c OK [09:42:16]MH_I2C_Read... [09:42:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:16]Read from MH i2c: E2 [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: E2 03 00 [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [09:42:16]RAPDU: 90 00 [09:42:16]wFMCommunicate OK [09:42:16]wFMCommunicate request_size=255 [09:42:16]MH_SAM_APDU [09:42:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 F8 DB 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BB 40 01 00 35 04 06 00 E9 [09:42:16]Write to MH i2c: E2 02 01 0D 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 F8 DB 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BB 40 01 00 35 04 06 00 E9 00 00 D0 [09:42:17]Write i2c OK [09:42:17]MH_I2C_Read... [09:42:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:17]Read from MH i2c: E2 [09:42:17]MH_I2C_Read... [09:42:17]Read from MH i2c: E2 03 00 [09:42:17]MH_I2C_Read... [09:42:17]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [09:42:17]RAPDU: 90 00 [09:42:17]wFMCommunicate OK [09:42:17]wFMCommunicate request_size=10 [09:42:17]MH_SAM_APDU [09:42:17]CAPDU: 80 0D 02 02 05 94 FC 9C 2F E5 [09:42:17]Write to MH i2c: E2 0D 00 0E 01 80 0D 02 02 05 00 94 FC 9C 2F E5 00 00 D3 [09:42:17]Write i2c OK [09:42:17]MH_I2C_Read... [09:42:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:17]Read from MH i2c: E2 [09:42:17]MH_I2C_Read... [09:42:17]Read from MH i2c: E2 03 00 [09:42:17]MH_I2C_Read... [09:42:17]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [09:42:17]RAPDU: 90 00 [09:42:17]wFMCommunicate OK [09:42:17]wFMCommunicate request_size=4 [09:42:17]MH_SAM_APDU [09:42:17]CAPDU: 80 0D 03 02 [09:42:17]Write to MH i2c: E2 08 00 0F 01 80 0D 03 02 00 00 00 00 8B [09:42:17]Write i2c OK [09:42:17]MH_I2C_Read... [09:42:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:17]Read from MH i2c: E2 [09:42:17]MH_I2C_Read... [09:42:17]Read from MH i2c: E2 0B 00 [09:42:17]MH_I2C_Read... [09:42:17]Read from MH i2c: E2 0B 00 0F 01 00 E5 A2 2E 31 4B 24 F2 50 90 00 23 [09:42:17]RAPDU: E5 A2 2E 31 4B 24 F2 50 90 00 [09:42:17]wFMCommunicate OK [09:42:17]SAM_PROTO_SignData done [09:42:17]FM_MakeSignedData done [09:42:17]CreateOFDProtocolMessage [09:42:17]wFMCommunicate request_size=4 [09:42:17]MH_SAM_APDU [09:42:17]CAPDU: 80 11 00 00 [09:42:17]Write to MH i2c: E2 08 00 10 01 80 11 00 00 00 00 00 00 8B [09:42:17]Write i2c OK [09:42:17]MH_I2C_Read... [09:42:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:17]Read from MH i2c: E2 [09:42:17]MH_I2C_Read... [09:42:17]Read from MH i2c: E2 17 00 [09:42:17]MH_I2C_Read... [09:42:17]Read from MH i2c: E2 17 00 10 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DD [09:42:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:42:17]wFMCommunicate OK [09:42:17]CreateOFDProtocolMessage done [09:42:17]OFDSenderStorePacket 82107 [09:42:17]StoreOFDPacket docnum=82107 [09:42:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 F8 78 07 01 C9 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 F8 DB 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BB 40 01 00 35 04 06 00 E9 94 FC 9C 2F E5 E5 A2 2E 31 4B 24 F2 50 [09:42:17]CheckFolder [09:42:17]dirname=/storage/ofd_packets [09:42:17]CheckFolder done [09:42:17]ProducePacketName [09:42:17]name=ofd_packets/00082107 [09:42:17]NVStorageSaveData ofd_packets/00082107 [09:42:17]File name is /storage/ofd_packets/00082107 [09:42:17]Write 301 bytes [09:42:17]NVStorageSaveData done [09:42:17]OFDSenderStorePacket done [09:42:17]KKMCreateOFDPacket done [09:42:17]NVStorageSaveData kkm_last_timestamp [09:42:17]File name is /storage/kkm_last_timestamp [09:42:17]Write 4 bytes [09:42:17]NVStorageSaveData done [09:42:17]ExternCall_PrintAddStr [09:42:17]wPrintStart [09:42:17]Write to MH i2c: 01 00 00 11 01 12 [09:42:17]Write i2c OK [09:42:17]MH_I2C_Read... [09:42:17]Read from MH i2c: 01 [09:42:17]MH_I2C_Read... [09:42:17]Read from MH i2c: 01 07 00 [09:42:17]MH_I2C_Read... [09:42:17]Read from MH i2c: 01 07 00 11 01 00 00 00 00 00 FF 0F 27 [09:42:17]RasterBufferAndPrint [09:42:17]line Счет N : (1)918614 [09:42:17]line ИНН: 02508201610067 [09:42:17]line Контрольно-Кассовый Чек [09:42:17]line ПРОДАЖА [09:42:17]line ТРК (МРК, ГНК) : 12 [09:42:17]line Товар: 2710124500 [09:42:17]line Аи-95-К-5 [09:42:17]line 8.090 * 74.20 [09:42:17]line = 600.28 [09:42:17]line НДС 12% НСП 1% [09:42:17]line > о реализуемом товаре [09:42:17]line ОКРУГЛЕНИЕ: -0.28 [09:42:17]line ИТОГО: 600.00 [09:42:17]line Внесено: 600.00 [09:42:17]line СДАЧА: 0.00 [09:42:17]line НСП 1% : 5.31 [09:42:17]line НДС 12% : 63.75 [09:42:17]line Наличными: 600.00 [09:42:17]line Безнал.: 0.00 [09:42:17]line Место: АЗС № 114 "Партнер Нефть" [09:42:17]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:42:17]line СНО: Общий режим [09:42:17]line Чек 33 17.10.2024 09:42 [09:42:17]line Смена: 525 ФФД: 1.0 [09:42:17]line ЗНМ: 0300000086 [09:42:17]line РНМ: 0000000000091680 [09:42:17]line Версия ККМ: 001 [09:42:17]line ФМ: 0000000000871843 [09:42:17]line ФД: 82107 [09:42:17]line ФПД: 256826102525925 [09:42:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T094216&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82107&fm=256826102525925&tin=02508201610067®Number=0000000000091680&sum=60000 [09:42:17]OFD Sender: Processing packet 82107 [packets to send 254, broken 253] [09:42:17]ProducePacketName [09:42:17]name=ofd_packets/00082107 [09:42:17]OFD Sender: To server: pG, [09:42:17]CommunicateWithHost lk.salyk.kg:30040 [09:42:17]ConnectInit lk.salyk.kg [09:42:17]written 0, free lines is 4095 [09:42:18]Write to MH i2c: 01 00 00 3C 01 3D [09:42:18]Write i2c OK [09:42:18]MH_I2C_Read... [09:42:18]Read from MH i2c: 01 [09:42:18]MH_I2C_Read... [09:42:18]Read from MH i2c: 01 07 00 [09:42:18]MH_I2C_Read... [09:42:18]Read from MH i2c: 01 07 00 3C 01 00 00 00 00 00 D7 0C 27 [09:42:18]RasterBufferAndPrint [09:42:18]line [09:42:18]line [09:42:18]line [09:42:18]line [09:42:18]line [09:42:18]written 0, free lines is 3312 [09:42:18]MH_Cut [09:42:18]Write to MH i2c: D1 01 00 43 01 01 16 [09:42:18]Write i2c OK [09:42:18]MH_I2C_Read... [09:42:18]Read from MH i2c: D1 [09:42:18]MH_I2C_Read... [09:42:18]Read from MH i2c: D1 01 00 [09:42:18]MH_I2C_Read... [09:42:18]Read from MH i2c: D1 01 00 43 01 00 15 [09:42:18]Write to MH i2c: 01 00 00 44 01 45 [09:42:18]Write i2c OK [09:42:18]MH_I2C_Read... [09:42:18]*** Cut start [09:42:18]*** Partial cut [09:42:18]*** CUTSNS_PIN = 1 [09:42:18]*** CUTSNS_PIN = 0 [09:42:19]*** Brake cut motor [09:42:19]Read from MH i2c: 01 [09:42:19]MH_I2C_Read... [09:42:19]*** Stop cut motor [09:42:19]*** Cut end [09:42:19]Read from MH i2c: 01 07 00 [09:42:19]MH_I2C_Read... [09:42:19]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 FF 0F 5A [09:42:19]process_action close_receipt done [09:42:19]requested_data is exist [09:42:19]produce_requested_data [09:42:19]requested_item fm.sn is exist - process it [09:42:19]wFMCommunicate request_size=4 [09:42:19]MH_SAM_APDU [09:42:19]CAPDU: 80 11 00 00 [09:42:19]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [09:42:19]Write i2c OK [09:42:19]MH_I2C_Read... [09:42:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:19]Read from MH i2c: E2 [09:42:19]MH_I2C_Read... [09:42:19]Read from MH i2c: E2 17 00 [09:42:19]MH_I2C_Read... [09:42:19]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 12 [09:42:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:42:19]wFMCommunicate OK [09:42:19]requested_item fd.num is exist - process it [09:42:19]SAM_PROTO_GetFieldsCounters [09:42:19]wFMCommunicate request_size=4 [09:42:19]MH_SAM_APDU [09:42:19]CAPDU: 80 13 00 00 [09:42:19]Write to MH i2c: E2 08 00 46 01 80 13 00 00 00 00 00 00 C3 [09:42:19]Write i2c OK [09:42:19]MH_I2C_Read... [09:42:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:19]Read from MH i2c: E2 [09:42:19]MH_I2C_Read... [09:42:19]Read from MH i2c: E2 62 00 [09:42:19]MH_I2C_Read... [09:42:19]Read from MH i2c: E2 62 00 46 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 BB 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [09:42:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 BB 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:19]wFMCommunicate OK [09:42:19]SAM_PROTO_GetFieldsCounters done [09:42:19]requested_item shift.num is exist - process it [09:42:19]requested_item shift.opened is exist - process it [09:42:19]req_shift_opened [09:42:19]FM_GetShiftState [09:42:19]SAM_PROTO_GetShiftState [09:42:19]wFMCommunicate request_size=4 [09:42:19]MH_SAM_APDU [09:42:19]CAPDU: 80 13 01 00 [09:42:19]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [09:42:19]Write i2c OK [09:42:19]MH_I2C_Read... [09:42:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:19]Read from MH i2c: E2 [09:42:19]MH_I2C_Read... [09:42:19]Read from MH i2c: E2 0E 00 [09:42:19]MH_I2C_Read... [09:42:19]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 CD [09:42:19]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:42:19]wFMCommunicate OK [09:42:19]SAM_PROTO_GetShiftState done [09:42:19]FM_GetShiftState done [09:42:19]req_shift_opened done [09:42:19]requested_item shift.open_date is exist - process it [09:42:19]req_shift_open_date [09:42:19]req_shift_open_date done [09:42:19]produce_requested_data done [09:42:19]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82107,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [09:42:19]process_action_free close_receipt [09:42:19]json_value_free [09:42:19]json_value_free done [09:42:19]process_json_proto returns [09:42:19]Send response to host [09:42:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82107,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [09:42:19]free response buf [09:42:19]execute_script done [09:42:19]execute_script returns [09:42:19]free content buf [09:42:19]Sock 7.Close socket [09:42:19]Sock 7.Thread stoped [09:42:22]Connected sock=11 [09:42:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 F8 78 07 01 C9 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 F8 DB 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BB 40 01 00 35 04 06 00 E9 94 FC 9C 2F E5 E5 A2 2E 31 4B 24 F2 50 [09:42:23]recv_with_timeout no data received [09:42:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 5C 0D 47 00 CE 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BB 40 01 00 F4 03 04 00 3C 81 10 67 B6 04 01 00 00 09 14 05 41 42 8A 47 5D [09:42:24]CommunicateWithHost err = 0 [09:42:24]CheckOFDResponse [09:42:24]1017 (14) - 77093643461234 [09:42:24]1041 (16) - 0000000000871843 [09:42:24]1040 (4) - 82107 [09:42:24]1012 (4) - 17.10.2024 03:15 [09:42:24]1206 (1) - 0 [09:42:24]OFD Sender: Remove packet 82107 [09:42:24]ProducePacketName [09:42:24]name=ofd_packets/00082107 [09:42:24]NVStorageDeleteData [09:42:25]OFD Sender: No OFD packet to send [09:42:30]OFD Sender: No OFD packet to send [09:42:35]OFD Sender: No OFD packet to send [09:42:35]recv_with_timeout no data received [09:42:40]OFD Sender: No OFD packet to send [09:42:45]OFD Sender: No OFD packet to send [09:42:50]OFD Sender: No OFD packet to send [09:42:53]recv_with_timeout no data received [09:42:55]OFD Sender: No OFD packet to send [09:43:00]OFD Sender: No OFD packet to send [09:43:03]recv_with_timeout no data received [09:43:05]OFD Sender: No OFD packet to send [09:43:10]OFD Sender: No OFD packet to send [09:43:15]OFD Sender: No OFD packet to send [09:43:20]OFD Sender: No OFD packet to send [09:43:25]OFD Sender: No OFD packet to send [09:43:27]recv_with_timeout no data received [09:43:30]OFD Sender: No OFD packet to send [09:43:35]OFD Sender: No OFD packet to send [09:43:40]OFD Sender: No OFD packet to send [09:43:45]OFD Sender: No OFD packet to send [09:43:49]recv_with_timeout no data received [09:43:50]OFD Sender: No OFD packet to send [09:43:55]OFD Sender: No OFD packet to send [09:44:00]OFD Sender: No OFD packet to send [09:44:05]OFD Sender: No OFD packet to send [09:44:10]recv_with_timeout no data received [09:44:10]OFD Sender: No OFD packet to send [09:44:15]OFD Sender: No OFD packet to send [09:44:20]OFD Sender: No OFD packet to send [09:44:22]recv_with_timeout no data received [09:44:25]OFD Sender: No OFD packet to send [09:44:30]OFD Sender: No OFD packet to send [09:44:35]OFD Sender: No OFD packet to send [09:44:40]OFD Sender: No OFD packet to send [09:44:45]OFD Sender: No OFD packet to send [09:44:50]OFD Sender: No OFD packet to send [09:44:55]OFD Sender: No OFD packet to send [09:45:00]OFD Sender: No OFD packet to send [09:45:05]OFD Sender: No OFD packet to send [09:45:10]OFD Sender: No OFD packet to send [09:45:15]OFD Sender: No OFD packet to send [09:45:20]OFD Sender: No OFD packet to send [09:45:25]OFD Sender: No OFD packet to send [09:45:30]OFD Sender: No OFD packet to send [09:45:35]OFD Sender: No OFD packet to send [09:45:40]OFD Sender: No OFD packet to send [09:45:45]OFD Sender: No OFD packet to send [09:45:50]OFD Sender: No OFD packet to send [09:45:55]accept exits with 9 [09:45:55]New connection [09:45:55]New thread 3067620708 created [09:45:55]Thread 3067477348 joined [09:45:55]Waiting for new connection... [09:45:55] Sock 9.Parse request [09:45:55]Sock 9.Check first char [09:45:55]Sock 9.First char is OK [09:45:55]request: POST /json_proto HTTP/1.0 [09:45:55]Method: POST [09:45:55]URL: /json_proto [09:45:55]Method is POST - this is cgi request [09:45:55]url: /json_proto [09:45:55]query_string will be loaded in cgi processing [09:45:55]execute_cgi json_proto POST (null) [09:45:55]execute_cgi path=json_proto method=POST [09:45:55]POST find Content-Length [09:45:55]Host: 172.17.44.67:8080 [09:45:55]Content-Length: 677 [09:45:55]Content-Type: application/json [09:45:55] [09:45:55]POST finish read [09:45:55]Found Content-Length = 677 [09:45:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 6.580, "sum" : 440.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 440.00, "total" : 440.00, "payments": [ { "type": 0, "sum" : 440.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:55]execute_script... [09:45:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 6.580, "sum" : 440.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 440.00, "total" : 440.00, "payments": [ { "type": 0, "sum" : 440.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:55]POST & json_proto [09:45:55]process_json_proto [09:45:55]json parsed OK: [09:45:55]protocol is kg_v1.0 [09:45:55]action value=close_receipt [09:45:55]process_action close_receipt [09:45:55]cmd_close_receipt [09:45:55]MH_GetDate [09:45:55]Write to MH i2c: F0 00 00 48 01 38 [09:45:55]Write i2c OK [09:45:55]MH_I2C_Read... [09:45:55]Read from MH i2c: F0 [09:45:55]MH_I2C_Read... [09:45:55]Read from MH i2c: F0 09 00 [09:45:55]MH_I2C_Read... [09:45:55]Read from MH i2c: F0 09 00 48 01 00 D3 DC 10 67 F1 C7 6B 64 EE [09:45:55]GetLastDocTimeStamp 1729158136 [09:45:55]current date 1729158355 [09:45:55]FM_GetShiftState [09:45:55]SAM_PROTO_GetShiftState [09:45:55]wFMCommunicate request_size=4 [09:45:55]MH_SAM_APDU [09:45:55]CAPDU: 80 13 01 00 [09:45:55]Write to MH i2c: E2 08 00 49 01 80 13 01 00 00 00 00 00 C7 [09:45:55]Write i2c OK [09:45:55]MH_I2C_Read... [09:45:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:55]Read from MH i2c: E2 [09:45:55]MH_I2C_Read... [09:45:55]Read from MH i2c: E2 0E 00 [09:45:55]MH_I2C_Read... [09:45:55]Read from MH i2c: E2 0E 00 49 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 CF [09:45:55]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:45:55]wFMCommunicate OK [09:45:55]SAM_PROTO_GetShiftState done [09:45:55]FM_GetShiftState done [09:45:55]opened in 1729125927 [09:45:55]opened+sec_in_day 1729212327 [09:45:55]quantity*price = 44020 [09:45:55]sum+1 = 44021 [09:45:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 440.00 Внесено: 440.00 СДАЧА: 0.00 НСП 1% : 3.90 НДС 12% : 46.75 Наличными: 440.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 34 17.10.2024 09:45 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82108 ФПД: 135832804067614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T094555&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82108&fm=135832804067614&tin=02508201610067®Number=0000000000091680&sum=44000 [09:45:56]StoreToDocumentArchive [09:45:56]shift 525 fd 82108 [09:45:56]save to /storage/0525/doc_00082108 [09:45:56]save last doc name /storage/0525/doc_00082108 to /storage/kkm_last_doc_name [09:45:56]save OK [09:45:56]Clear old archive folders... [09:45:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:45:56]tlvbuf is 0089CAA0 [09:45:56]SAM_PROTO_ClearQueue [09:45:56]wFMCommunicate request_size=4 [09:45:56]MH_SAM_APDU [09:45:56]CAPDU: 80 09 00 00 [09:45:56]Write to MH i2c: E2 08 00 56 01 80 09 00 00 00 00 00 00 C9 [09:45:56]Write i2c OK [09:45:56]MH_I2C_Read... [09:45:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:56]Read from MH i2c: E2 [09:45:56]MH_I2C_Read... [09:45:56]Read from MH i2c: E2 03 00 [09:45:56]MH_I2C_Read... [09:45:56]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [09:45:56]RAPDU: 90 00 [09:45:56]wFMCommunicate OK [09:45:56]SAM_PROTO_ClearQueue done [09:45:56]KKMCreateOFDPacket [09:45:56]OFDProtocolAddRootSTLVToBuf [09:45:56]FM_MakeSignedData [09:45:56]FM_MakeSignedData [09:45:56]SAM_PROTO_SignData [09:45:56]wFMCommunicate request_size=4 [09:45:56]MH_SAM_APDU [09:45:56]CAPDU: 80 0D 01 02 [09:45:56]Write to MH i2c: E2 08 00 57 01 80 0D 01 02 00 00 00 00 D1 [09:45:56]Write i2c OK [09:45:56]MH_I2C_Read... [09:45:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:56]Read from MH i2c: E2 [09:45:56]MH_I2C_Read... [09:45:56]Read from MH i2c: E2 03 00 [09:45:56]MH_I2C_Read... [09:45:56]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [09:45:56]RAPDU: 90 00 [09:45:56]wFMCommunicate OK [09:45:56]wFMCommunicate request_size=255 [09:45:56]MH_SAM_APDU [09:45:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B4 19 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F4 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 12 00 00 00 00 07 04 06 00 E0 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 22 00 00 00 F4 03 04 00 D3 DC 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BC 40 01 00 35 04 06 00 7B [09:45:56]Write to MH i2c: E2 02 01 58 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B4 19 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F4 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 12 00 00 00 00 07 04 06 00 E0 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 22 00 00 00 F4 03 04 00 D3 DC 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BC 40 01 00 35 04 06 00 7B 00 00 41 [09:45:56]Write i2c OK [09:45:56]MH_I2C_Read... [09:45:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:56]Read from MH i2c: E2 [09:45:56]MH_I2C_Read... [09:45:56]Read from MH i2c: E2 03 00 [09:45:56]MH_I2C_Read... [09:45:56]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [09:45:56]RAPDU: 90 00 [09:45:56]wFMCommunicate OK [09:45:56]wFMCommunicate request_size=10 [09:45:56]MH_SAM_APDU [09:45:56]CAPDU: 80 0D 02 02 05 8A 0A 09 09 1E [09:45:56]Write to MH i2c: E2 0D 00 59 01 80 0D 02 02 05 00 8A 0A 09 09 1E 00 00 A2 [09:45:56]Write i2c OK [09:45:56]MH_I2C_Read... [09:45:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:56]Read from MH i2c: E2 [09:45:56]MH_I2C_Read... [09:45:56]Read from MH i2c: E2 03 00 [09:45:56]MH_I2C_Read... [09:45:56]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [09:45:56]RAPDU: 90 00 [09:45:56]wFMCommunicate OK [09:45:56]wFMCommunicate request_size=4 [09:45:56]MH_SAM_APDU [09:45:56]CAPDU: 80 0D 03 02 [09:45:56]Write to MH i2c: E2 08 00 5A 01 80 0D 03 02 00 00 00 00 D6 [09:45:56]Write i2c OK [09:45:56]MH_I2C_Read... [09:45:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:56]Read from MH i2c: E2 [09:45:56]MH_I2C_Read... [09:45:56]Read from MH i2c: E2 0B 00 [09:45:56]MH_I2C_Read... [09:45:56]Read from MH i2c: E2 0B 00 5A 01 00 93 56 EE 23 CC 14 ED 6C 90 00 0A [09:45:56]RAPDU: 93 56 EE 23 CC 14 ED 6C 90 00 [09:45:56]wFMCommunicate OK [09:45:56]SAM_PROTO_SignData done [09:45:56]FM_MakeSignedData done [09:45:56]CreateOFDProtocolMessage [09:45:56]wFMCommunicate request_size=4 [09:45:56]MH_SAM_APDU [09:45:56]CAPDU: 80 11 00 00 [09:45:56]Write to MH i2c: E2 08 00 5B 01 80 11 00 00 00 00 00 00 D6 [09:45:56]Write i2c OK [09:45:56]MH_I2C_Read... [09:45:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:56]Read from MH i2c: E2 [09:45:56]MH_I2C_Read... [09:45:56]Read from MH i2c: E2 17 00 [09:45:56]MH_I2C_Read... [09:45:56]Read from MH i2c: E2 17 00 5B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 28 [09:45:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:45:56]wFMCommunicate OK [09:45:56]CreateOFDProtocolMessage done [09:45:56]OFDSenderStorePacket 82108 [09:45:56]StoreOFDPacket docnum=82108 [09:45:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 3B EE 07 01 54 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B4 19 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F4 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 12 00 00 00 00 07 04 06 00 E0 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 22 00 00 00 F4 03 04 00 D3 DC 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BC 40 01 00 35 04 06 00 7B 8A 0A 09 09 1E 93 56 EE 23 CC 14 ED 6C [09:45:56]CheckFolder [09:45:56]dirname=/storage/ofd_packets [09:45:56]CheckFolder done [09:45:56]ProducePacketName [09:45:56]name=ofd_packets/00082108 [09:45:56]NVStorageSaveData ofd_packets/00082108 [09:45:56]File name is /storage/ofd_packets/00082108 [09:45:56]Write 301 bytes [09:45:56]NVStorageSaveData done [09:45:56]OFDSenderStorePacket done [09:45:56]KKMCreateOFDPacket done [09:45:56]NVStorageSaveData kkm_last_timestamp [09:45:56]File name is /storage/kkm_last_timestamp [09:45:56]Write 4 bytes [09:45:56]NVStorageSaveData done [09:45:56]ExternCall_PrintAddStr [09:45:56]wPrintStart [09:45:56]Write to MH i2c: 01 00 00 5C 01 5D [09:45:56]Write i2c OK [09:45:56]MH_I2C_Read... [09:45:56]Read from MH i2c: 01 [09:45:56]MH_I2C_Read... [09:45:56]Read from MH i2c: 01 07 00 [09:45:56]MH_I2C_Read... [09:45:56]Read from MH i2c: 01 07 00 5C 01 00 00 00 00 00 FF 0F 72 [09:45:56]RasterBufferAndPrint [09:45:56]line Счет N : (1)918616 [09:45:56]line ИНН: 02508201610067 [09:45:56]line Контрольно-Кассовый Чек [09:45:56]line ПРОДАЖА [09:45:56]line ТРК (МРК, ГНК) : 11 [09:45:56]line Товар: 2710124130 [09:45:56]line Аи-92-К-4 [09:45:56]line 6.580 * 66.90 [09:45:56]line = 440.20 [09:45:56]line НДС 12% НСП 1% [09:45:56]line > о реализуемом товаре [09:45:56]line ОКРУГЛЕНИЕ: -0.20 [09:45:56]line ИТОГО: 440.00 [09:45:56]line Внесено: 440.00 [09:45:56]line СДАЧА: 0.00 [09:45:56]line НСП 1% : 3.90 [09:45:56]line НДС 12% : 46.75 [09:45:56]line Наличными: 440.00 [09:45:56]line Безнал.: 0.00 [09:45:56]line Место: АЗС № 114 "Партнер Нефть" [09:45:56]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:45:56]line СНО: Общий режим [09:45:56]line Чек 34 17.10.2024 09:45 [09:45:56]line Смена: 525 ФФД: 1.0 [09:45:56]line ЗНМ: 0300000086 [09:45:56]line РНМ: 0000000000091680 [09:45:56]line Версия ККМ: 001 [09:45:56]line ФМ: 0000000000871843 [09:45:56]line ФД: 82108 [09:45:56]line ФПД: 135832804067614 [09:45:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T094555&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82108&fm=135832804067614&tin=02508201610067®Number=0000000000091680&sum=44000 [09:45:57]OFD Sender: Processing packet 82108 [packets to send 254, broken 253] [09:45:57]ProducePacketName [09:45:57]name=ofd_packets/00082108 [09:45:57]OFD Sender: To server: pG, [09:45:57]CommunicateWithHost lk.salyk.kg:30040 [09:45:57]ConnectInit lk.salyk.kg [09:45:57]written 0, free lines is 4095 [09:45:57]Write to MH i2c: 01 00 00 87 01 88 [09:45:57]Write i2c OK [09:45:57]MH_I2C_Read... [09:45:57]Read from MH i2c: 01 [09:45:57]MH_I2C_Read... [09:45:57]Read from MH i2c: 01 07 00 [09:45:57]MH_I2C_Read... [09:45:57]Read from MH i2c: 01 07 00 87 01 00 00 00 00 00 D8 0C 73 [09:45:57]RasterBufferAndPrint [09:45:57]line [09:45:57]line [09:45:57]line [09:45:57]line [09:45:57]line [09:45:57]written 0, free lines is 3295 [09:45:57]MH_Cut [09:45:57]Write to MH i2c: D1 01 00 8E 01 01 61 [09:45:57]Write i2c OK [09:45:57]MH_I2C_Read... [09:45:57]Read from MH i2c: D1 [09:45:57]MH_I2C_Read... [09:45:57]Read from MH i2c: D1 01 00 [09:45:57]MH_I2C_Read... [09:45:57]Read from MH i2c: D1 01 00 8E 01 00 60 [09:45:57]Write to MH i2c: 01 00 00 8F 01 90 [09:45:57]Write i2c OK [09:45:57]MH_I2C_Read... [09:45:57]Connected sock=7 [09:45:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 3B EE 07 01 54 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B4 19 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F4 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 12 00 00 00 00 07 04 06 00 E0 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 22 00 00 00 F4 03 04 00 D3 DC 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BC 40 01 00 35 04 06 00 7B 8A 0A 09 09 1E 93 56 EE 23 CC 14 ED 6C [09:45:58]*** Cut start [09:45:58]*** Partial cut [09:45:58]*** CUTSNS_PIN = 1 [09:45:58]*** CUTSNS_PIN = 0 [09:45:58]*** Brake cut motor [09:45:58]Read from MH i2c: 01 [09:45:58]MH_I2C_Read... [09:45:58]*** Stop cut motor [09:45:58]*** Cut end [09:45:58]Read from MH i2c: 01 07 00 [09:45:58]MH_I2C_Read... [09:45:58]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 FF 0F A5 [09:45:58]process_action close_receipt done [09:45:58]requested_data is exist [09:45:58]produce_requested_data [09:45:58]requested_item fm.sn is exist - process it [09:45:58]wFMCommunicate request_size=4 [09:45:58]MH_SAM_APDU [09:45:58]CAPDU: 80 11 00 00 [09:45:58]Write to MH i2c: E2 08 00 90 01 80 11 00 00 00 00 00 00 0B [09:45:58]Write i2c OK [09:45:58]MH_I2C_Read... [09:45:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:59]Read from MH i2c: E2 [09:45:59]MH_I2C_Read... [09:45:59]Read from MH i2c: E2 17 00 [09:45:59]MH_I2C_Read... [09:45:59]Read from MH i2c: E2 17 00 90 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 5D [09:45:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:45:59]wFMCommunicate OK [09:45:59]requested_item fd.num is exist - process it [09:45:59]SAM_PROTO_GetFieldsCounters [09:45:59]wFMCommunicate request_size=4 [09:45:59]MH_SAM_APDU [09:45:59]CAPDU: 80 13 00 00 [09:45:59]Write to MH i2c: E2 08 00 91 01 80 13 00 00 00 00 00 00 0E [09:45:59]Write i2c OK [09:45:59]MH_I2C_Read... [09:45:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:59]Read from MH i2c: E2 [09:45:59]MH_I2C_Read... [09:45:59]Read from MH i2c: E2 62 00 [09:45:59]MH_I2C_Read... [09:45:59]Read from MH i2c: E2 62 00 91 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 BC 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [09:45:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 BC 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:45:59]wFMCommunicate OK [09:45:59]SAM_PROTO_GetFieldsCounters done [09:45:59]requested_item shift.num is exist - process it [09:45:59]requested_item shift.opened is exist - process it [09:45:59]req_shift_opened [09:45:59]FM_GetShiftState [09:45:59]SAM_PROTO_GetShiftState [09:45:59]wFMCommunicate request_size=4 [09:45:59]MH_SAM_APDU [09:45:59]CAPDU: 80 13 01 00 [09:45:59]Write to MH i2c: E2 08 00 92 01 80 13 01 00 00 00 00 00 10 [09:45:59]Write i2c OK [09:45:59]MH_I2C_Read... [09:45:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 88 4F 47 00 FA C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BC 40 01 00 F4 03 04 00 13 82 10 67 B6 04 01 00 00 F6 6D AC 7F 67 85 C9 12 [09:45:59]CommunicateWithHost err = 0 [09:45:59]CheckOFDResponse [09:45:59]1017 (14) - 77093643461234 [09:45:59]1041 (16) - 0000000000871843 [09:45:59]1040 (4) - 82108 [09:45:59]1012 (4) - 17.10.2024 03:18 [09:45:59]1206 (1) - 0 [09:45:59]OFD Sender: Remove packet 82108 [09:45:59]ProducePacketName [09:45:59]name=ofd_packets/00082108 [09:45:59]NVStorageDeleteData [09:45:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:59]Read from MH i2c: E2 [09:45:59]MH_I2C_Read... [09:45:59]Read from MH i2c: E2 0E 00 [09:45:59]MH_I2C_Read... [09:45:59]Read from MH i2c: E2 0E 00 92 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 18 [09:45:59]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:45:59]wFMCommunicate OK [09:45:59]SAM_PROTO_GetShiftState done [09:45:59]FM_GetShiftState done [09:45:59]req_shift_opened done [09:45:59]requested_item shift.open_date is exist - process it [09:45:59]req_shift_open_date [09:45:59]req_shift_open_date done [09:45:59]produce_requested_data done [09:45:59]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82108,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [09:45:59]process_action_free close_receipt [09:45:59]json_value_free [09:45:59]json_value_free done [09:45:59]process_json_proto returns [09:45:59]Send response to host [09:46:00]Write to MH i2c: E2 0E 00 9C 01 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 4F [09:46:00]Write i2c OK [09:46:00]MH_I2C_Read... [09:46:00]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:46:00]Read from MH i2c: E2 [09:46:00]MH_I2C_Read... [09:46:00]Read from MH i2c: E2 03 00 [09:46:00]MH_I2C_Read... [09:46:00]Read from MH i2c: E2 03 00 9C 01 00 90 00 11 [09:46:00]RAPDU: 90 00 [09:46:00]wFMCommunicate OK [09:46:00]wFMCommunicate request_size=13 [09:46:00]MH_SAM_APDU [09:46:00]CAPDU: 80 15 02 00 08 F4 03 04 00 D8 DC 10 67 [09:46:00]Write to MH i2c: E2 10 00 9D 01 80 15 02 00 08 00 F4 03 04 00 D8 DC 10 67 00 00 54 [09:46:00]Write i2c OK [09:46:00]MH_I2C_Read... [09:46:00]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:46:00]Read from MH i2c: E2 [09:46:00]MH_I2C_Read... [09:46:00]Read from MH i2c: E2 03 00 [09:46:00]MH_I2C_Read... [09:46:00]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [09:46:00]RAPDU: 90 00 [09:46:00]wFMCommunicate OK [09:46:00]wFMCommunicate request_size=25 [09:46:00]MH_SAM_APDU [09:46:00]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 [09:46:00]Write to MH i2c: E2 1C 00 9E 01 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 00 00 80 [09:46:00]Write i2c OK [09:46:00]MH_I2C_Read... [09:46:00]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:46:00]Read from MH i2c: E2 [09:46:00]MH_I2C_Read... [09:46:00]Read from MH i2c: E2 03 00 [09:46:00]MH_I2C_Read... [09:46:00]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [09:46:00]RAPDU: 90 00 [09:46:00]wFMCommunicate OK [09:46:00]wFMCommunicate request_size=4 [09:46:00]MH_SAM_APDU [09:46:00]CAPDU: 80 15 03 00 [09:46:00]Write to MH i2c: E2 08 00 9F 01 80 15 03 00 00 00 00 00 21 [09:46:00]Write i2c OK [09:46:00]MH_I2C_Read... [09:46:01]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [09:46:01]Read from MH i2c: E2 [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: E2 40 00 [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: E2 40 00 9F 01 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BD 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 23 00 00 00 35 04 06 00 F5 20 05 78 A6 BD 90 00 3B [09:46:01]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BD 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 23 00 00 00 35 04 06 00 F5 20 05 78 A6 BD 90 00 [09:46:01]wFMCommunicate OK [09:46:01]SAM_PROTO_ProcessDocument answer len = 59 [09:46:01]SAM_PROTO_ProcessDocument done [09:46:01]SetTLVBufToDocument [09:46:01]Processing tag 1209 (04B9) [09:46:01]Malloc new data [09:46:01]Processing tag 1041 (0411) [09:46:01]Processing tag 1040 (0410) [09:46:01]Malloc new data [09:46:01]Processing tag 1038 (040E) [09:46:01]Malloc new data [09:46:01]Processing tag 1042 (0412) [09:46:01]Malloc new data [09:46:01]Processing tag 1077 (0435) [09:46:01]Malloc new data [09:46:01]SetTLVBufToDocument err=0 [09:46:01]KKMLoadAndSignReceiptData store KKM data [09:46:01]KKMLoadAndSignReceiptData err=0 [09:46:01]wFMCommunicate request_size=4 [09:46:01]MH_SAM_APDU [09:46:01]CAPDU: 80 11 00 00 [09:46:01]Write to MH i2c: E2 08 00 A0 01 80 11 00 00 00 00 00 00 1B [09:46:01]Write i2c OK [09:46:01]MH_I2C_Read... [09:46:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:01]Read from MH i2c: E2 [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: E2 17 00 [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: E2 17 00 A0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 6D [09:46:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:46:01]wFMCommunicate OK [09:46:01]Счет N : (1)918615 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 21 Товар: 2710194800 D-Energy ДТ-К-2 20.000 * 0.00 = 0.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 35 17.10.2024 09:46 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 2226628 ФМ: 0000000000871843 ФД: 82109 ФПД: 269517879551677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T094600&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82109&fm=269517879551677&tin=02508201610067®Number=0000000000091680&sum=0 [09:46:01]StoreToDocumentArchive [09:46:01]shift 525 fd 82109 [09:46:01]save to /storage/0525/doc_00082109 [09:46:01]save last doc name /storage/0525/doc_00082109 to /storage/kkm_last_doc_name [09:46:01]save OK [09:46:01]Clear old archive folders... [09:46:01]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:46:01]tlvbuf is B6E4B510 [09:46:01]SAM_PROTO_ClearQueue [09:46:01]wFMCommunicate request_size=4 [09:46:01]MH_SAM_APDU [09:46:01]CAPDU: 80 09 00 00 [09:46:01]Write to MH i2c: E2 08 00 A1 01 80 09 00 00 00 00 00 00 14 [09:46:01]Write i2c OK [09:46:01]MH_I2C_Read... [09:46:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:01]Read from MH i2c: E2 [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: E2 03 00 [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [09:46:01]RAPDU: 90 00 [09:46:01]wFMCommunicate OK [09:46:01]SAM_PROTO_ClearQueue done [09:46:01]KKMCreateOFDPacket [09:46:01]OFDProtocolAddRootSTLVToBuf [09:46:01]FM_MakeSignedData [09:46:01]FM_MakeSignedData [09:46:01]SAM_PROTO_SignData [09:46:01]wFMCommunicate request_size=4 [09:46:01]MH_SAM_APDU [09:46:01]CAPDU: 80 0D 01 02 [09:46:01]Write to MH i2c: E2 08 00 A2 01 80 0D 01 02 00 00 00 00 1C [09:46:01]Write i2c OK [09:46:01]MH_I2C_Read... [09:46:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:01]Read from MH i2c: E2 [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: E2 03 00 [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [09:46:01]RAPDU: 90 00 [09:46:01]wFMCommunicate OK [09:46:01]wFMCommunicate request_size=255 [09:46:01]MH_SAM_APDU [09:46:01]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 D8 DC 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BD 40 01 [09:46:01]Write to MH i2c: E2 02 01 A3 01 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 D8 DC 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BD 40 01 00 00 1A [09:46:01]Write i2c OK [09:46:01]MH_I2C_Read... [09:46:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:01]Read from MH i2c: E2 [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: E2 03 00 [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [09:46:01]RAPDU: 90 00 [09:46:01]wFMCommunicate OK [09:46:01]wFMCommunicate request_size=16 [09:46:01]MH_SAM_APDU [09:46:01]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F5 20 05 78 A6 BD [09:46:01]Write to MH i2c: E2 13 00 A4 01 80 0D 02 02 0B 00 00 35 04 06 00 F5 20 05 78 A6 BD 00 00 69 [09:46:01]Write i2c OK [09:46:01]MH_I2C_Read... [09:46:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:01]Read from MH i2c: E2 [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: E2 03 00 [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [09:46:01]RAPDU: 90 00 [09:46:01]wFMCommunicate OK [09:46:01]wFMCommunicate request_size=4 [09:46:01]MH_SAM_APDU [09:46:01]CAPDU: 80 0D 03 02 [09:46:01]Write to MH i2c: E2 08 00 A5 01 80 0D 03 02 00 00 00 00 21 [09:46:01]Write i2c OK [09:46:01]MH_I2C_Read... [09:46:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:01]Read from MH i2c: E2 [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: E2 0B 00 [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: E2 0B 00 A5 01 00 05 E0 7C 78 6F F5 56 41 90 00 F6 [09:46:01]RAPDU: 05 E0 7C 78 6F F5 56 41 90 00 [09:46:01]wFMCommunicate OK [09:46:01]SAM_PROTO_SignData done [09:46:01]FM_MakeSignedData done [09:46:01]CreateOFDProtocolMessage [09:46:01]wFMCommunicate request_size=4 [09:46:01]MH_SAM_APDU [09:46:01]CAPDU: 80 11 00 00 [09:46:01]Write to MH i2c: E2 08 00 A6 01 80 11 00 00 00 00 00 00 21 [09:46:01]Write i2c OK [09:46:01]MH_I2C_Read... [09:46:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:01]Read from MH i2c: E2 [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: E2 17 00 [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: E2 17 00 A6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 73 [09:46:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:46:01]wFMCommunicate OK [09:46:01]CreateOFDProtocolMessage done [09:46:01]OFDSenderStorePacket 82109 [09:46:01]StoreOFDPacket docnum=82109 [09:46:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 38 F8 0D 01 62 0B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 D8 DC 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BD 40 01 00 35 04 06 00 F5 20 05 78 A6 BD 05 E0 7C 78 6F F5 56 41 [09:46:01]CheckFolder [09:46:01]dirname=/storage/ofd_packets [09:46:01]CheckFolder done [09:46:01]ProducePacketName [09:46:01]name=ofd_packets/00082109 [09:46:01]NVStorageSaveData ofd_packets/00082109 [09:46:01]File name is /storage/ofd_packets/00082109 [09:46:01]Write 307 bytes [09:46:01]NVStorageSaveData done [09:46:01]OFDSenderStorePacket done [09:46:01]KKMCreateOFDPacket done [09:46:01]NVStorageSaveData kkm_last_timestamp [09:46:01]File name is /storage/kkm_last_timestamp [09:46:01]Write 4 bytes [09:46:01]NVStorageSaveData done [09:46:01]ExternCall_PrintAddStr [09:46:01]wPrintStart [09:46:01]Write to MH i2c: 01 00 00 A7 01 A8 [09:46:01]Write i2c OK [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: 01 [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: 01 07 00 [09:46:01]MH_I2C_Read... [09:46:01]Read from MH i2c: 01 07 00 A7 01 00 00 00 00 00 FF 0F BD [09:46:01]RasterBufferAndPrint [09:46:01]line Счет N : (1)918615 [09:46:01]line ИНН: 02508201610067 [09:46:01]line Контрольно-Кассовый Чек [09:46:01]line ПРОДАЖА [09:46:01]line ТРК (МРК, ГНК) : 21 [09:46:01]line Товар: 2710194800 [09:46:01]line D-Energy ДТ-К-2 [09:46:01]line 20.000 * 0.00 [09:46:01]line = 0.00 [09:46:01]line НДС 12% НСП 1% [09:46:01]line > о реализуемом товаре [09:46:01]line ИТОГО: 0.00 [09:46:01]line НСП 1% : 0.00 [09:46:01]line НДС 12% : 0.00 [09:46:01]line Наличными: 0.00 [09:46:01]line Безнал.: 0.00 [09:46:01]line Место: АЗС № 114 "Партнер Нефть" [09:46:02]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:46:02]line СНО: Общий режим [09:46:02]line Чек 35 17.10.2024 09:46 [09:46:02]line Смена: 525 ФФД: 1.0 [09:46:02]line ЗНМ: 0300000086 [09:46:02]line РНМ: 0000000000091680 [09:46:02]line Версия ККМ: 001 [09:46:02]line Талоны: Топливные Талоны [09:46:02]line 2226628 [09:46:02]line ФМ: 0000000000871843 [09:46:02]line ФД: 82109 [09:46:02]line ФПД: 269517879551677 [09:46:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T094600&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82109&fm=269517879551677&tin=02508201610067®Number=0000000000091680&sum=0 [09:46:02]OFD Sender: Processing packet 82109 [packets to send 254, broken 253] [09:46:02]ProducePacketName [09:46:02]name=ofd_packets/00082109 [09:46:02]OFD Sender: To server: pG, [09:46:02]CommunicateWithHost lk.salyk.kg:30040 [09:46:02]ConnectInit lk.salyk.kg [09:46:02]written 0, free lines is 4095 [09:46:02]Write to MH i2c: 01 00 00 D1 01 D2 [09:46:02]Write i2c OK [09:46:02]MH_I2C_Read... [09:46:02]Read from MH i2c: 01 [09:46:02]MH_I2C_Read... [09:46:02]Read from MH i2c: 01 07 00 [09:46:02]MH_I2C_Read... [09:46:02]Read from MH i2c: 01 07 00 D1 01 00 00 00 00 00 F7 0C DC [09:46:02]RasterBufferAndPrint [09:46:02]line [09:46:02]line [09:46:02]line [09:46:02]line [09:46:02]line [09:46:02]written 0, free lines is 3332 [09:46:02]MH_Cut [09:46:02]Write to MH i2c: D1 01 00 D8 01 01 AB [09:46:02]Write i2c OK [09:46:02]MH_I2C_Read... [09:46:02]Read from MH i2c: D1 [09:46:02]MH_I2C_Read... [09:46:02]Read from MH i2c: D1 01 00 [09:46:02]MH_I2C_Read... [09:46:02]Read from MH i2c: D1 01 00 D8 01 00 AA [09:46:02]Write to MH i2c: 01 00 00 D9 01 DA [09:46:02]Write i2c OK [09:46:02]MH_I2C_Read... [09:46:03]*** Cut start [09:46:03]*** Partial cut [09:46:03]*** CUTSNS_PIN = 1 [09:46:03]*** CUTSNS_PIN = 0 [09:46:03]*** Brake cut motor [09:46:03]Read from MH i2c: 01 [09:46:03]MH_I2C_Read... [09:46:03]*** Stop cut motor [09:46:03]*** Cut end [09:46:03]Read from MH i2c: 01 07 00 [09:46:03]MH_I2C_Read... [09:46:03]Read from MH i2c: 01 07 00 D9 01 00 00 00 00 00 FF 0F EF [09:46:03]process_action close_receipt done [09:46:03]requested_data is exist [09:46:03]produce_requested_data [09:46:03]requested_item fm.sn is exist - process it [09:46:03]wFMCommunicate request_size=4 [09:46:03]MH_SAM_APDU [09:46:03]CAPDU: 80 11 00 00 [09:46:03]Write to MH i2c: E2 08 00 DA 01 80 11 00 00 00 00 00 00 55 [09:46:03]Write i2c OK [09:46:03]MH_I2C_Read... [09:46:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:03]Read from MH i2c: E2 [09:46:03]MH_I2C_Read... [09:46:03]Read from MH i2c: E2 17 00 [09:46:03]MH_I2C_Read... [09:46:03]Read from MH i2c: E2 17 00 DA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 A7 [09:46:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:46:04]wFMCommunicate OK [09:46:04]requested_item fd.num is exist - process it [09:46:04]SAM_PROTO_GetFieldsCounters [09:46:04]wFMCommunicate request_size=4 [09:46:04]MH_SAM_APDU [09:46:04]CAPDU: 80 13 00 00 [09:46:04]Write to MH i2c: E2 08 00 DB 01 80 13 00 00 00 00 00 00 58 [09:46:04]Write i2c OK [09:46:04]MH_I2C_Read... [09:46:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:04]Read from MH i2c: E2 [09:46:04]MH_I2C_Read... [09:46:04]Read from MH i2c: E2 62 00 [09:46:04]MH_I2C_Read... [09:46:04]Read from MH i2c: E2 62 00 DB 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 BD 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [09:46:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 BD 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:46:04]wFMCommunicate OK [09:46:04]SAM_PROTO_GetFieldsCounters done [09:46:04]requested_item shift.num is exist - process it [09:46:04]requested_item shift.opened is exist - process it [09:46:04]req_shift_opened [09:46:04]FM_GetShiftState [09:46:04]SAM_PROTO_GetShiftState [09:46:04]wFMCommunicate request_size=4 [09:46:04]MH_SAM_APDU [09:46:04]CAPDU: 80 13 01 00 [09:46:04]Write to MH i2c: E2 08 00 DC 01 80 13 01 00 00 00 00 00 5A [09:46:04]Write i2c OK [09:46:04]MH_I2C_Read... [09:46:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:04]Read from MH i2c: E2 [09:46:04]MH_I2C_Read... [09:46:04]Read from MH i2c: E2 0E 00 [09:46:04]MH_I2C_Read... [09:46:04]Read from MH i2c: E2 0E 00 DC 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 62 [09:46:04]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:46:04]wFMCommunicate OK [09:46:04]SAM_PROTO_GetShiftState done [09:46:04]FM_GetShiftState done [09:46:04]req_shift_opened done [09:46:04]requested_item shift.open_date is exist - process it [09:46:04]req_shift_open_date [09:46:04]req_shift_open_date done [09:46:04]produce_requested_data done [09:46:04]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82109,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [09:46:04]process_action_free close_receipt [09:46:04]json_value_free [09:46:04]json_value_free done [09:46:04]process_json_proto returns [09:46:04]Send response to host [09:46:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82109,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [09:46:04]free response buf [09:46:04]execute_script done [09:46:04]execute_script returns [09:46:04]free content buf [09:46:04]Sock 10.Close socket [09:46:04]Sock 10.Thread stoped [09:46:06]recv_with_timeout no data received [09:46:11]Connected sock=11 [09:46:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 38 F8 0D 01 62 0B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 D8 DC 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BD 40 01 00 35 04 06 00 F5 20 05 78 A6 BD 05 E0 7C 78 6F F5 56 41 [09:46:16]recv_with_timeout no data received [09:46:16]CommunicateWithHost answer receiving error [09:46:16]CommunicateWithHost err = -3 [09:46:16]OFD Sender: Server communicate error [09:46:21]OFD Sender: Processing packet 82109 [packets to send 254, broken 253] [09:46:21]ProducePacketName [09:46:21]name=ofd_packets/00082109 [09:46:21]OFD Sender: To server: pG, [09:46:21]CommunicateWithHost lk.salyk.kg:30040 [09:46:21]ConnectInit lk.salyk.kg [09:46:24]recv_with_timeout no data received [09:46:30]Connected sock=10 [09:46:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 38 F8 0D 01 62 0B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 D8 DC 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BD 40 01 00 35 04 06 00 F5 20 05 78 A6 BD 05 E0 7C 78 6F F5 56 41 [09:46:35]recv_with_timeout no data received [09:46:35]CommunicateWithHost answer receiving error [09:46:35]CommunicateWithHost err = -3 [09:46:35]OFD Sender: Server communicate error [09:46:40]OFD Sender: Processing packet 82109 [packets to send 254, broken 253] [09:46:40]ProducePacketName [09:46:40]name=ofd_packets/00082109 [09:46:40]OFD Sender: To server: pG, [09:46:40]CommunicateWithHost lk.salyk.kg:30040 [09:46:40]ConnectInit lk.salyk.kg [09:46:40]recv_with_timeout no data received [09:46:40]accept exits with 7 [09:46:40]New connection [09:46:40]New thread 3067620708 created [09:46:40]Thread 3067477348 joined [09:46:40]Waiting for new connection... [09:46:40] Sock 7.Parse request [09:46:40]Sock 7.Check first char [09:46:40]Sock 7.First char is OK [09:46:40]request: POST /json_proto HTTP/1.0 [09:46:40]Method: POST [09:46:40]URL: /json_proto [09:46:40]Method is POST - this is cgi request [09:46:40]url: /json_proto [09:46:40]query_string will be loaded in cgi processing [09:46:40]execute_cgi json_proto POST (null) [09:46:40]execute_cgi path=json_proto method=POST [09:46:40]POST find Content-Length [09:46:40]Host: 172.17.44.67:8080 [09:46:40]Content-Length: 678 [09:46:40]Content-Type: application/json [09:46:40] [09:46:40]POST finish read [09:46:40]Found Content-Length = 678 [09:46:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:40]execute_script... [09:46:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:40]POST & json_proto [09:46:40]process_json_proto [09:46:40]json parsed OK: [09:46:40]protocol is kg_v1.0 [09:46:40]action value=close_receipt [09:46:40]process_action close_receipt [09:46:40]cmd_close_receipt [09:46:40]MH_GetDate [09:46:40]Write to MH i2c: F0 00 00 DD 01 CD [09:46:40]Write i2c OK [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: F0 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: F0 09 00 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: F0 09 00 DD 01 00 00 DD 10 67 F1 C7 6B 64 B1 [09:46:40]GetLastDocTimeStamp 1729158360 [09:46:40]current date 1729158400 [09:46:40]FM_GetShiftState [09:46:40]SAM_PROTO_GetShiftState [09:46:40]wFMCommunicate request_size=4 [09:46:40]MH_SAM_APDU [09:46:40]CAPDU: 80 13 01 00 [09:46:40]Write to MH i2c: E2 08 00 DE 01 80 13 01 00 00 00 00 00 5C [09:46:40]Write i2c OK [09:46:40]MH_I2C_Read... [09:46:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:40]Read from MH i2c: E2 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 0E 00 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 0E 00 DE 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 64 [09:46:40]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:46:40]wFMCommunicate OK [09:46:40]SAM_PROTO_GetShiftState done [09:46:40]FM_GetShiftState done [09:46:40]opened in 1729125927 [09:46:40]opened+sec_in_day 1729212327 [09:46:40]quantity*price = 80012 [09:46:40]sum+1 = 80013 [09:46:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 36 17.10.2024 09:46 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82110 ФПД: 81629841594380 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T094641&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82110&fm=81629841594380&tin=02508201610067®Number=0000000000091680&sum=80000 [09:46:41]StoreToDocumentArchive [09:46:41]shift 525 fd 82110 [09:46:41]save to /storage/0525/doc_00082110 [09:46:41]save last doc name /storage/0525/doc_00082110 to /storage/kkm_last_doc_name [09:46:41]save OK [09:46:41]Clear old archive folders... [09:46:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:46:41]tlvbuf is 008ACC90 [09:46:41]SAM_PROTO_ClearQueue [09:46:41]wFMCommunicate request_size=4 [09:46:41]MH_SAM_APDU [09:46:41]CAPDU: 80 09 00 00 [09:46:41]Write to MH i2c: E2 08 00 EB 01 80 09 00 00 00 00 00 00 5E [09:46:41]Write i2c OK [09:46:41]MH_I2C_Read... [09:46:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:41]Read from MH i2c: E2 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: E2 03 00 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [09:46:41]RAPDU: 90 00 [09:46:41]wFMCommunicate OK [09:46:41]SAM_PROTO_ClearQueue done [09:46:41]KKMCreateOFDPacket [09:46:41]OFDProtocolAddRootSTLVToBuf [09:46:41]FM_MakeSignedData [09:46:41]FM_MakeSignedData [09:46:41]SAM_PROTO_SignData [09:46:41]wFMCommunicate request_size=4 [09:46:41]MH_SAM_APDU [09:46:41]CAPDU: 80 0D 01 02 [09:46:41]Write to MH i2c: E2 08 00 EC 01 80 0D 01 02 00 00 00 00 66 [09:46:41]Write i2c OK [09:46:41]MH_I2C_Read... [09:46:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:41]Read from MH i2c: E2 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: E2 03 00 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [09:46:41]RAPDU: 90 00 [09:46:41]wFMCommunicate OK [09:46:41]wFMCommunicate request_size=255 [09:46:41]MH_SAM_APDU [09:46:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 01 DD 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BE 40 01 00 35 04 06 00 4A [09:46:41]Write to MH i2c: E2 02 01 ED 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 01 DD 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BE 40 01 00 35 04 06 00 4A 00 00 AF [09:46:41]Write i2c OK [09:46:41]MH_I2C_Read... [09:46:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:42]Read from MH i2c: E2 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 03 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [09:46:42]RAPDU: 90 00 [09:46:42]wFMCommunicate OK [09:46:42]wFMCommunicate request_size=10 [09:46:42]MH_SAM_APDU [09:46:42]CAPDU: 80 0D 02 02 05 3D ED B6 18 0C [09:46:42]Write to MH i2c: E2 0D 00 EE 01 80 0D 02 02 05 00 3D ED B6 18 0C 00 00 77 [09:46:42]Write i2c OK [09:46:42]MH_I2C_Read... [09:46:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:42]Read from MH i2c: E2 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 03 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [09:46:42]RAPDU: 90 00 [09:46:42]wFMCommunicate OK [09:46:42]wFMCommunicate request_size=4 [09:46:42]MH_SAM_APDU [09:46:42]CAPDU: 80 0D 03 02 [09:46:42]Write to MH i2c: E2 08 00 EF 01 80 0D 03 02 00 00 00 00 6B [09:46:42]Write i2c OK [09:46:42]MH_I2C_Read... [09:46:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:42]Read from MH i2c: E2 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 0B 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 0B 00 EF 01 00 E0 11 2E 51 10 93 7F 9C 90 00 9A [09:46:42]RAPDU: E0 11 2E 51 10 93 7F 9C 90 00 [09:46:42]wFMCommunicate OK [09:46:42]SAM_PROTO_SignData done [09:46:42]FM_MakeSignedData done [09:46:42]CreateOFDProtocolMessage [09:46:42]wFMCommunicate request_size=4 [09:46:42]MH_SAM_APDU [09:46:42]CAPDU: 80 11 00 00 [09:46:42]Write to MH i2c: E2 08 00 F0 01 80 11 00 00 00 00 00 00 6B [09:46:42]Write i2c OK [09:46:42]MH_I2C_Read... [09:46:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:42]Read from MH i2c: E2 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 17 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 17 00 F0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 BD [09:46:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:46:42]wFMCommunicate OK [09:46:42]CreateOFDProtocolMessage done [09:46:42]OFDSenderStorePacket 82110 [09:46:42]StoreOFDPacket docnum=82110 [09:46:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 67 A9 07 01 1D 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 01 DD 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BE 40 01 00 35 04 06 00 4A 3D ED B6 18 0C E0 11 2E 51 10 93 7F 9C [09:46:42]CheckFolder [09:46:42]dirname=/storage/ofd_packets [09:46:42]CheckFolder done [09:46:42]ProducePacketName [09:46:42]name=ofd_packets/00082110 [09:46:42]NVStorageSaveData ofd_packets/00082110 [09:46:42]File name is /storage/ofd_packets/00082110 [09:46:42]Write 301 bytes [09:46:42]NVStorageSaveData done [09:46:42]OFDSenderStorePacket done [09:46:42]KKMCreateOFDPacket done [09:46:42]NVStorageSaveData kkm_last_timestamp [09:46:42]File name is /storage/kkm_last_timestamp [09:46:42]Write 4 bytes [09:46:42]NVStorageSaveData done [09:46:42]ExternCall_PrintAddStr [09:46:42]wPrintStart [09:46:42]Write to MH i2c: 01 00 00 F1 01 F2 [09:46:42]Write i2c OK [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: 01 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: 01 07 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: 01 07 00 F1 01 00 00 00 00 00 FF 0F 07 [09:46:42]RasterBufferAndPrint [09:46:42]line Счет N : (1)918617 [09:46:42]line ИНН: 02508201610067 [09:46:42]line Контрольно-Кассовый Чек [09:46:42]line ПРОДАЖА [09:46:42]line ТРК (МРК, ГНК) : 11 [09:46:42]line Товар: 2710124130 [09:46:42]line Аи-92-К-4 [09:46:42]line 11.960 * 66.90 [09:46:42]line = 800.12 [09:46:42]line НДС 12% НСП 1% [09:46:42]line > о реализуемом товаре [09:46:42]line ОКРУГЛЕНИЕ: -0.12 [09:46:42]line ИТОГО: 800.00 [09:46:42]line Внесено: 800.00 [09:46:42]line СДАЧА: 0.00 [09:46:42]line НСП 1% : 7.08 [09:46:42]line НДС 12% : 84.97 [09:46:42]line Наличными: 800.00 [09:46:42]line Безнал.: 0.00 [09:46:42]line Место: АЗС № 114 "Партнер Нефть" [09:46:42]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:46:42]line СНО: Общий режим [09:46:42]line Чек 36 17.10.2024 09:46 [09:46:42]line Смена: 525 ФФД: 1.0 [09:46:42]line ЗНМ: 0300000086 [09:46:42]line РНМ: 0000000000091680 [09:46:42]line Версия ККМ: 001 [09:46:42]line ФМ: 0000000000871843 [09:46:42]line ФД: 82110 [09:46:42]line ФПД: 81629841594380 [09:46:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T094641&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82110&fm=81629841594380&tin=02508201610067®Number=0000000000091680&sum=80000 [09:46:42]written 0, free lines is 4095 [09:46:42]Write to MH i2c: 01 00 00 1C 02 1E [09:46:42]Write i2c OK [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: 01 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: 01 07 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: 01 07 00 1C 02 00 00 00 00 00 D4 0C 05 [09:46:42]RasterBufferAndPrint [09:46:42]line [09:46:42]line [09:46:42]line [09:46:42]line [09:46:42]line [09:46:42]written 0, free lines is 3300 [09:46:42]MH_Cut [09:46:42]Write to MH i2c: D1 01 00 23 02 01 F7 [09:46:42]Write i2c OK [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: D1 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: D1 01 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: D1 01 00 23 02 00 F6 [09:46:42]Write to MH i2c: 01 00 00 24 02 26 [09:46:42]Write i2c OK [09:46:42]MH_I2C_Read... [09:46:43]*** Cut start [09:46:43]*** Partial cut [09:46:43]*** CUTSNS_PIN = 1 [09:46:43]*** CUTSNS_PIN = 0 [09:46:43]*** Brake cut motor [09:46:44]Read from MH i2c: 01 [09:46:44]MH_I2C_Read... [09:46:44]*** Stop cut motor [09:46:44]*** Cut end [09:46:44]Read from MH i2c: 01 07 00 [09:46:44]MH_I2C_Read... [09:46:44]Read from MH i2c: 01 07 00 24 02 00 00 00 00 00 FF 0F 3B [09:46:44]process_action close_receipt done [09:46:44]requested_data is exist [09:46:44]produce_requested_data [09:46:44]requested_item fm.sn is exist - process it [09:46:44]wFMCommunicate request_size=4 [09:46:44]MH_SAM_APDU [09:46:44]CAPDU: 80 11 00 00 [09:46:44]Write to MH i2c: E2 08 00 25 02 80 11 00 00 00 00 00 00 A1 [09:46:44]Write i2c OK [09:46:44]MH_I2C_Read... [09:46:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:44]Read from MH i2c: E2 [09:46:44]MH_I2C_Read... [09:46:44]Read from MH i2c: E2 17 00 [09:46:44]MH_I2C_Read... [09:46:44]Read from MH i2c: E2 17 00 25 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 F3 [09:46:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:46:44]wFMCommunicate OK [09:46:44]requested_item fd.num is exist - process it [09:46:44]SAM_PROTO_GetFieldsCounters [09:46:44]wFMCommunicate request_size=4 [09:46:44]MH_SAM_APDU [09:46:44]CAPDU: 80 13 00 00 [09:46:44]Write to MH i2c: E2 08 00 26 02 80 13 00 00 00 00 00 00 A4 [09:46:44]Write i2c OK [09:46:44]MH_I2C_Read... [09:46:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:44]Read from MH i2c: E2 [09:46:44]MH_I2C_Read... [09:46:44]Read from MH i2c: E2 62 00 [09:46:44]MH_I2C_Read... [09:46:44]Read from MH i2c: E2 62 00 26 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 BE 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [09:46:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 BE 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:46:44]wFMCommunicate OK [09:46:44]SAM_PROTO_GetFieldsCounters done [09:46:44]requested_item shift.num is exist - process it [09:46:44]requested_item shift.opened is exist - process it [09:46:44]req_shift_opened [09:46:44]FM_GetShiftState [09:46:44]SAM_PROTO_GetShiftState [09:46:44]wFMCommunicate request_size=4 [09:46:44]MH_SAM_APDU [09:46:44]CAPDU: 80 13 01 00 [09:46:44]Write to MH i2c: E2 08 00 27 02 80 13 01 00 00 00 00 00 A6 [09:46:44]Write i2c OK [09:46:44]MH_I2C_Read... [09:46:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:44]Read from MH i2c: E2 [09:46:44]MH_I2C_Read... [09:46:44]Read from MH i2c: E2 0E 00 [09:46:44]MH_I2C_Read... [09:46:44]Read from MH i2c: E2 0E 00 27 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 AE [09:46:44]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:46:44]wFMCommunicate OK [09:46:44]SAM_PROTO_GetShiftState done [09:46:44]FM_GetShiftState done [09:46:44]req_shift_opened done [09:46:44]requested_item shift.open_date is exist - process it [09:46:44]req_shift_open_date [09:46:44]req_shift_open_date done [09:46:44]produce_requested_data done [09:46:44]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82110,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [09:46:44]process_action_free close_receipt [09:46:44]json_value_free [09:46:44]json_value_free done [09:46:44]process_json_proto returns [09:46:44]Send response to host [09:46:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82110,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [09:46:44]free response buf [09:46:44]execute_script done [09:46:44]execute_script returns [09:46:44]free content buf [09:46:44]Sock 7.Close socket [09:46:44]Sock 7.Thread stoped [09:46:45]Connected sock=10 [09:46:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 38 F8 0D 01 62 0B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 D8 DC 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BD 40 01 00 35 04 06 00 F5 20 05 78 A6 BD 05 E0 7C 78 6F F5 56 41 [09:46:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 86 AA 47 00 0E 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BD 40 01 00 F4 03 04 00 44 82 10 67 B6 04 01 00 00 F6 80 EC 8D 19 38 29 61 [09:46:48]CommunicateWithHost err = 0 [09:46:48]CheckOFDResponse [09:46:48]1017 (14) - 77093643461234 [09:46:48]1041 (16) - 0000000000871843 [09:46:48]1040 (4) - 82109 [09:46:48]1012 (4) - 17.10.2024 03:19 [09:46:48]1206 (1) - 0 [09:46:48]OFD Sender: Remove packet 82109 [09:46:48]ProducePacketName [09:46:48]name=ofd_packets/00082109 [09:46:48]NVStorageDeleteData [09:46:49]OFD Sender: Processing packet 82110 [packets to send 254, broken 253] [09:46:49]ProducePacketName [09:46:49]name=ofd_packets/00082110 [09:46:49]OFD Sender: To server: pG, [09:46:49]CommunicateWithHost lk.salyk.kg:30040 [09:46:49]ConnectInit lk.salyk.kg [09:46:53]recv_with_timeout no data received [09:46:54]ConnectInit Can't take IP for lk.salyk.kg [09:46:54]CommunicateWithHost connect error [09:46:54]CommunicateWithHost err = -1 [09:46:54]OFD Sender: Server communicate error [09:46:54]OFD Sender: Processing packet 82110 [packets to send 254, broken 253] [09:46:54]ProducePacketName [09:46:54]name=ofd_packets/00082110 [09:46:54]OFD Sender: To server: pG, [09:46:54]CommunicateWithHost lk.salyk.kg:30040 [09:46:54]ConnectInit lk.salyk.kg [09:46:59]ConnectInit Can't take IP for lk.salyk.kg [09:46:59]CommunicateWithHost connect error [09:46:59]CommunicateWithHost err = -1 [09:46:59]OFD Sender: Server communicate error [09:47:04]OFD Sender: Processing packet 82110 [packets to send 254, broken 253] [09:47:04]ProducePacketName [09:47:04]name=ofd_packets/00082110 [09:47:04]OFD Sender: To server: pG, [09:47:04]CommunicateWithHost lk.salyk.kg:30040 [09:47:04]ConnectInit lk.salyk.kg [09:47:10]recv_with_timeout no data received [09:47:13]Connected sock=7 [09:47:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 67 A9 07 01 1D 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 01 DD 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BE 40 01 00 35 04 06 00 4A 3D ED B6 18 0C E0 11 2E 51 10 93 7F 9C [09:47:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 22 0D 47 00 F1 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BE 40 01 00 F4 03 04 00 60 82 10 67 B6 04 01 00 00 51 1E 24 C8 52 FF 74 78 [09:47:15]CommunicateWithHost err = 0 [09:47:15]CheckOFDResponse [09:47:15]1017 (14) - 77093643461234 [09:47:15]1041 (16) - 0000000000871843 [09:47:15]1040 (4) - 82110 [09:47:15]1012 (4) - 17.10.2024 03:20 [09:47:15]1206 (1) - 0 [09:47:15]OFD Sender: Remove packet 82110 [09:47:15]ProducePacketName [09:47:15]name=ofd_packets/00082110 [09:47:15]NVStorageDeleteData [09:47:16]OFD Sender: No OFD packet to send [09:47:21]OFD Sender: No OFD packet to send [09:47:26]recv_with_timeout no data received [09:47:26]OFD Sender: No OFD packet to send [09:47:31]OFD Sender: No OFD packet to send [09:47:36]OFD Sender: No OFD packet to send [09:47:37]recv_with_timeout no data received [09:47:41]OFD Sender: No OFD packet to send [09:47:46]OFD Sender: No OFD packet to send [09:47:49]recv_with_timeout no data received [09:47:51]OFD Sender: No OFD packet to send [09:47:56]OFD Sender: No OFD packet to send [09:48:01]OFD Sender: No OFD packet to send [09:48:06]OFD Sender: No OFD packet to send [09:48:09]recv_with_timeout no data received [09:48:11]OFD Sender: No OFD packet to send [09:48:16]OFD Sender: No OFD packet to send [09:48:21]OFD Sender: No OFD packet to send [09:48:26]OFD Sender: No OFD packet to send [09:48:31]OFD Sender: No OFD packet to send [09:48:36]OFD Sender: No OFD packet to send [09:48:41]OFD Sender: No OFD packet to send [09:48:46]OFD Sender: No OFD packet to send [09:48:51]OFD Sender: No OFD packet to send [09:48:56]OFD Sender: No OFD packet to send [09:48:59]accept exits with 9 [09:48:59]New connection [09:48:59]New thread 3067477348 created [09:48:59]Thread 3067620708 joined [09:48:59]Waiting for new connection... [09:48:59] Sock 9.Parse request [09:48:59]Sock 9.Check first char [09:48:59]Sock 9.First char is OK [09:48:59]request: POST /json_proto HTTP/1.0 [09:48:59]Method: POST [09:48:59]URL: /json_proto [09:48:59]Method is POST - this is cgi request [09:48:59]url: /json_proto [09:48:59]query_string will be loaded in cgi processing [09:48:59]execute_cgi json_proto POST (null) [09:48:59]execute_cgi path=json_proto method=POST [09:48:59]POST find Content-Length [09:48:59]Host: 172.17.44.67:8080 [09:48:59]Content-Length: 759 [09:48:59]Content-Type: application/json [09:48:59] [09:48:59]POST finish read [09:48:59]Found Content-Length = 759 [09:48:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 13.130, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30121604", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:59]execute_script... [09:48:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 13.130, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30121604", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:59]POST & json_proto [09:48:59]process_json_proto [09:48:59]json parsed OK: [09:48:59]protocol is kg_v1.0 [09:48:59]action value=close_receipt [09:48:59]process_action close_receipt [09:48:59]cmd_close_receipt [09:48:59]MH_GetDate [09:48:59]Write to MH i2c: F0 00 00 28 02 19 [09:48:59]Write i2c OK [09:48:59]MH_I2C_Read... [09:48:59]Read from MH i2c: F0 [09:48:59]MH_I2C_Read... [09:48:59]Read from MH i2c: F0 09 00 [09:48:59]MH_I2C_Read... [09:48:59]Read from MH i2c: F0 09 00 28 02 00 8C DD 10 67 F1 C7 6B 64 89 [09:48:59]GetLastDocTimeStamp 1729158401 [09:48:59]current date 1729158540 [09:48:59]FM_GetShiftState [09:48:59]SAM_PROTO_GetShiftState [09:48:59]wFMCommunicate request_size=4 [09:48:59]MH_SAM_APDU [09:48:59]CAPDU: 80 13 01 00 [09:48:59]Write to MH i2c: E2 08 00 29 02 80 13 01 00 00 00 00 00 A8 [09:48:59]Write i2c OK [09:48:59]MH_I2C_Read... [09:48:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:59]Read from MH i2c: E2 [09:48:59]MH_I2C_Read... [09:48:59]Read from MH i2c: E2 0E 00 [09:48:59]MH_I2C_Read... [09:48:59]Read from MH i2c: E2 0E 00 29 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 B0 [09:48:59]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:48:59]wFMCommunicate OK [09:48:59]SAM_PROTO_GetShiftState done [09:48:59]FM_GetShiftState done [09:48:59]opened in 1729125927 [09:48:59]opened+sec_in_day 1729212327 [09:48:59]quantity*price = 0 [09:48:59]sum+1 = 1 [09:48:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 37 17.10.2024 09:49 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30121604 ФМ: 0000000000871843 ФД: 82111 ФПД: 88488824609672 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T094900&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82111&fm=88488824609672&tin=02508201610067®Number=0000000000091680&sum=0 [09:49:00]StoreToDocumentArchive [09:49:00]shift 525 fd 82111 [09:49:00]save to /storage/0525/doc_00082111 [09:49:00]save last doc name /storage/0525/doc_00082111 to /storage/kkm_last_doc_name [09:49:01]save OK [09:49:01]Clear old archive folders... [09:49:01]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:49:01]tlvbuf is 0089B2C0 [09:49:01]SAM_PROTO_ClearQueue [09:49:01]wFMCommunicate request_size=4 [09:49:01]MH_SAM_APDU [09:49:01]CAPDU: 80 09 00 00 [09:49:01]Write to MH i2c: E2 08 00 36 02 80 09 00 00 00 00 00 00 AA [09:49:01]Write i2c OK [09:49:01]MH_I2C_Read... [09:49:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:01]Read from MH i2c: E2 [09:49:01]MH_I2C_Read... [09:49:01]Read from MH i2c: E2 03 00 [09:49:01]MH_I2C_Read... [09:49:01]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [09:49:01]RAPDU: 90 00 [09:49:01]wFMCommunicate OK [09:49:01]SAM_PROTO_ClearQueue done [09:49:01]KKMCreateOFDPacket [09:49:01]OFDProtocolAddRootSTLVToBuf [09:49:01]FM_MakeSignedData [09:49:01]FM_MakeSignedData [09:49:01]SAM_PROTO_SignData [09:49:01]wFMCommunicate request_size=4 [09:49:01]MH_SAM_APDU [09:49:01]CAPDU: 80 0D 01 02 [09:49:01]Write to MH i2c: E2 08 00 37 02 80 0D 01 02 00 00 00 00 B2 [09:49:01]Write i2c OK [09:49:01]MH_I2C_Read... [09:49:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:01]Read from MH i2c: E2 [09:49:01]MH_I2C_Read... [09:49:01]Read from MH i2c: E2 03 00 [09:49:01]MH_I2C_Read... [09:49:01]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [09:49:01]RAPDU: 90 00 [09:49:01]wFMCommunicate OK [09:49:01]wFMCommunicate request_size=255 [09:49:01]MH_SAM_APDU [09:49:01]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 8C DD 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BF 40 01 00 35 04 06 00 [09:49:01]Write to MH i2c: E2 02 01 38 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 8C DD 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BF 40 01 00 35 04 06 00 00 00 86 [09:49:01]Write i2c OK [09:49:01]MH_I2C_Read... [09:49:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:01]Read from MH i2c: E2 [09:49:01]MH_I2C_Read... [09:49:01]Read from MH i2c: E2 03 00 [09:49:01]MH_I2C_Read... [09:49:01]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [09:49:01]RAPDU: 90 00 [09:49:01]wFMCommunicate OK [09:49:01]wFMCommunicate request_size=11 [09:49:01]MH_SAM_APDU [09:49:01]CAPDU: 80 0D 02 02 06 50 7A E8 F5 1B 88 [09:49:01]Write to MH i2c: E2 0E 00 39 02 80 0D 02 02 06 00 50 7A E8 F5 1B 88 00 00 0B [09:49:01]Write i2c OK [09:49:01]MH_I2C_Read... [09:49:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:01]Read from MH i2c: E2 [09:49:01]MH_I2C_Read... [09:49:01]Read from MH i2c: E2 03 00 [09:49:01]MH_I2C_Read... [09:49:01]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [09:49:01]RAPDU: 90 00 [09:49:01]wFMCommunicate OK [09:49:01]wFMCommunicate request_size=4 [09:49:01]MH_SAM_APDU [09:49:01]CAPDU: 80 0D 03 02 [09:49:01]Write to MH i2c: E2 08 00 3A 02 80 0D 03 02 00 00 00 00 B7 [09:49:01]Write i2c OK [09:49:01]MH_I2C_Read... [09:49:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:01]Read from MH i2c: E2 [09:49:01]MH_I2C_Read... [09:49:01]Read from MH i2c: E2 0B 00 [09:49:01]MH_I2C_Read... [09:49:01]Read from MH i2c: E2 0B 00 3A 02 00 66 2F 0C F3 2E 92 83 78 90 00 07 [09:49:01]RAPDU: 66 2F 0C F3 2E 92 83 78 90 00 [09:49:01]wFMCommunicate OK [09:49:01]SAM_PROTO_SignData done [09:49:01]FM_MakeSignedData done [09:49:01]CreateOFDProtocolMessage [09:49:01]wFMCommunicate request_size=4 [09:49:01]MH_SAM_APDU [09:49:01]CAPDU: 80 11 00 00 [09:49:01]Write to MH i2c: E2 08 00 3B 02 80 11 00 00 00 00 00 00 B7 [09:49:01]Write i2c OK [09:49:01]MH_I2C_Read... [09:49:01]OFD Sender: No OFD packet to send [09:49:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:01]Read from MH i2c: E2 [09:49:01]MH_I2C_Read... [09:49:01]Read from MH i2c: E2 17 00 [09:49:01]MH_I2C_Read... [09:49:01]Read from MH i2c: E2 17 00 3B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 09 [09:49:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:49:01]wFMCommunicate OK [09:49:01]CreateOFDProtocolMessage done [09:49:01]OFDSenderStorePacket 82111 [09:49:01]StoreOFDPacket docnum=82111 [09:49:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 F5 81 08 01 4B 42 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 8C DD 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BF 40 01 00 35 04 06 00 50 7A E8 F5 1B 88 66 2F 0C F3 2E 92 83 78 [09:49:01]CheckFolder [09:49:01]dirname=/storage/ofd_packets [09:49:01]CheckFolder done [09:49:01]ProducePacketName [09:49:01]name=ofd_packets/00082111 [09:49:01]NVStorageSaveData ofd_packets/00082111 [09:49:01]File name is /storage/ofd_packets/00082111 [09:49:01]Write 302 bytes [09:49:01]NVStorageSaveData done [09:49:01]OFDSenderStorePacket done [09:49:01]KKMCreateOFDPacket done [09:49:01]NVStorageSaveData kkm_last_timestamp [09:49:01]File name is /storage/kkm_last_timestamp [09:49:01]Write 4 bytes [09:49:01]NVStorageSaveData done [09:49:01]ExternCall_PrintAddStr [09:49:01]wPrintStart [09:49:01]Write to MH i2c: 01 00 00 3C 02 3E [09:49:01]Write i2c OK [09:49:01]MH_I2C_Read... [09:49:01]Read from MH i2c: 01 [09:49:01]MH_I2C_Read... [09:49:01]Read from MH i2c: 01 07 00 [09:49:01]MH_I2C_Read... [09:49:01]Read from MH i2c: 01 07 00 3C 02 00 00 00 00 00 FF 0F 53 [09:49:01]RasterBufferAndPrint [09:49:01]line Счет N : (1)918618 [09:49:01]line ИНН: 02508201610067 [09:49:01]line Контрольно-Кассовый Чек [09:49:01]line ПРОДАЖА [09:49:01]line ТРК (МРК, ГНК) : 31 [09:49:01]line Товар: 2710194210 [09:49:01]line ДТ(л)-К-5 [09:49:01]line 13.130 * 0.00 [09:49:01]line = 0.00 [09:49:01]line НДС 12% НСП 1% [09:49:01]line > о реализуемом товаре [09:49:01]line ИТОГО: 0.00 [09:49:01]line НСП 1% : 0.00 [09:49:01]line НДС 12% : 0.00 [09:49:01]line Наличными: 0.00 [09:49:01]line Безнал.: 0.00 [09:49:01]line Место: АЗС № 114 "Партнер Нефть" [09:49:01]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:49:01]line СНО: Общий режим [09:49:01]line Чек 37 17.10.2024 09:49 [09:49:01]line Смена: 525 ФФД: 1.0 [09:49:01]line ЗНМ: 0300000086 [09:49:01]line РНМ: 0000000000091680 [09:49:01]line Версия ККМ: 001 [09:49:01]line Талоны: ТК ГПНА Online [09:49:01]line 30121604 [09:49:01]line ФМ: 0000000000871843 [09:49:01]line ФД: 82111 [09:49:01]line ФПД: 88488824609672 [09:49:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T094900&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82111&fm=88488824609672&tin=02508201610067®Number=0000000000091680&sum=0 [09:49:01]OFD Sender: Processing packet 82111 [packets to send 254, broken 253] [09:49:01]ProducePacketName [09:49:01]name=ofd_packets/00082111 [09:49:01]OFD Sender: To server: pG, [09:49:01]CommunicateWithHost lk.salyk.kg:30040 [09:49:01]ConnectInit lk.salyk.kg [09:49:01]written 0, free lines is 4095 [09:49:02]Write to MH i2c: 01 00 00 66 02 68 [09:49:02]Write i2c OK [09:49:02]MH_I2C_Read... [09:49:02]Read from MH i2c: 01 [09:49:02]MH_I2C_Read... [09:49:02]Read from MH i2c: 01 07 00 [09:49:02]MH_I2C_Read... [09:49:02]Read from MH i2c: 01 07 00 66 02 00 00 00 00 00 DA 0C 55 [09:49:02]RasterBufferAndPrint [09:49:02]line [09:49:02]line [09:49:02]line [09:49:02]line [09:49:02]line [09:49:02]written 0, free lines is 3296 [09:49:02]MH_Cut [09:49:02]Write to MH i2c: D1 01 00 6D 02 01 41 [09:49:02]Write i2c OK [09:49:02]MH_I2C_Read... [09:49:02]Read from MH i2c: D1 [09:49:02]MH_I2C_Read... [09:49:02]Read from MH i2c: D1 01 00 [09:49:02]MH_I2C_Read... [09:49:02]Read from MH i2c: D1 01 00 6D 02 00 40 [09:49:02]Write to MH i2c: 01 00 00 6E 02 70 [09:49:02]Write i2c OK [09:49:02]MH_I2C_Read... [09:49:02]Connected sock=10 [09:49:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 F5 81 08 01 4B 42 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 8C DD 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BF 40 01 00 35 04 06 00 50 7A E8 F5 1B 88 66 2F 0C F3 2E 92 83 78 [09:49:03]*** Cut start [09:49:03]*** Partial cut [09:49:03]*** CUTSNS_PIN = 1 [09:49:03]*** CUTSNS_PIN = 0 [09:49:03]*** Brake cut motor [09:49:03]Read from MH i2c: 01 [09:49:03]MH_I2C_Read... [09:49:03]*** Stop cut motor [09:49:03]*** Cut end [09:49:03]Read from MH i2c: 01 07 00 [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: 01 07 00 6E 02 00 00 00 00 00 FF 0F 85 [09:49:03]process_action close_receipt done [09:49:03]requested_data is exist [09:49:03]produce_requested_data [09:49:03]requested_item fm.sn is exist - process it [09:49:03]wFMCommunicate request_size=4 [09:49:03]MH_SAM_APDU [09:49:03]CAPDU: 80 11 00 00 [09:49:03]Write to MH i2c: E2 08 00 6F 02 80 11 00 00 00 00 00 00 EB [09:49:03]Write i2c OK [09:49:03]MH_I2C_Read... [09:49:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:03]Read from MH i2c: E2 [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: E2 17 00 [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: E2 17 00 6F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 3D [09:49:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:49:03]wFMCommunicate OK [09:49:03]requested_item fd.num is exist - process it [09:49:03]SAM_PROTO_GetFieldsCounters [09:49:03]wFMCommunicate request_size=4 [09:49:03]MH_SAM_APDU [09:49:03]CAPDU: 80 13 00 00 [09:49:03]Write to MH i2c: E2 08 00 70 02 80 13 00 00 00 00 00 00 EE [09:49:03]Write i2c OK [09:49:03]MH_I2C_Read... [09:49:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:03]Read from MH i2c: E2 [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: E2 62 00 [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: E2 62 00 70 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 BF 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [09:49:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 BF 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:49:03]wFMCommunicate OK [09:49:03]SAM_PROTO_GetFieldsCounters done [09:49:03]requested_item shift.num is exist - process it [09:49:03]requested_item shift.opened is exist - process it [09:49:03]req_shift_opened [09:49:03]FM_GetShiftState [09:49:03]SAM_PROTO_GetShiftState [09:49:03]wFMCommunicate request_size=4 [09:49:03]MH_SAM_APDU [09:49:03]CAPDU: 80 13 01 00 [09:49:03]Write to MH i2c: E2 08 00 71 02 80 13 01 00 00 00 00 00 F0 [09:49:03]Write i2c OK [09:49:03]MH_I2C_Read... [09:49:03]Read from MH i2c: E2 [09:49:03]MH_I2C_Read... [09:49:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:03]Read from MH i2c: E2 0E 00 [09:49:04]MH_I2C_Read... [09:49:04]Read from MH i2c: E2 0E 00 71 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 F8 [09:49:04]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:49:04]wFMCommunicate OK [09:49:04]SAM_PROTO_GetShiftState done [09:49:04]FM_GetShiftState done [09:49:04]req_shift_opened done [09:49:04]requested_item shift.open_date is exist - process it [09:49:04]req_shift_open_date [09:49:04]req_shift_open_date done [09:49:04]produce_requested_data done [09:49:04]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82111,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [09:49:04]process_action_free close_receipt [09:49:04]json_value_free [09:49:04]json_value_free done [09:49:04]process_json_proto returns [09:49:04]Send response to host [09:49:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82111,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [09:49:04]free response buf [09:49:04]execute_script done [09:49:04]execute_script returns [09:49:04]free content buf [09:49:04]Sock 9.Close socket [09:49:04]Sock 9.Thread stoped [09:49:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 A6 58 47 00 9A B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BF 40 01 00 F4 03 04 00 CB 82 10 67 B6 04 01 00 00 72 92 FA 3F E4 87 A7 9A [09:49:04]CommunicateWithHost err = 0 [09:49:04]CheckOFDResponse [09:49:04]1017 (14) - 77093643461234 [09:49:04]1041 (16) - 0000000000871843 [09:49:04]1040 (4) - 82111 [09:49:04]1012 (4) - 17.10.2024 03:21 [09:49:04]1206 (1) - 0 [09:49:04]OFD Sender: Remove packet 82111 [09:49:04]ProducePacketName [09:49:04]name=ofd_packets/00082111 [09:49:04]NVStorageDeleteData [09:49:04]OFD Sender: No OFD packet to send [09:49:09]recv_with_timeout no data received [09:49:09]OFD Sender: No OFD packet to send [09:49:14]OFD Sender: No OFD packet to send [09:49:19]OFD Sender: No OFD packet to send [09:49:20]recv_with_timeout no data received [09:49:24]OFD Sender: No OFD packet to send [09:49:30]OFD Sender: No OFD packet to send [09:49:31]recv_with_timeout no data received [09:49:33]accept exits with 7 [09:49:33]New connection [09:49:33]New thread 3067620708 created [09:49:33]Thread 3067477348 joined [09:49:33]Waiting for new connection... [09:49:33] Sock 7.Parse request [09:49:33]Sock 7.Check first char [09:49:33]Sock 7.First char is OK [09:49:33]request: POST /json_proto HTTP/1.0 [09:49:33]Method: POST [09:49:33]URL: /json_proto [09:49:33]Method is POST - this is cgi request [09:49:33]url: /json_proto [09:49:33]query_string will be loaded in cgi processing [09:49:33]execute_cgi json_proto POST (null) [09:49:33]execute_cgi path=json_proto method=POST [09:49:33]POST find Content-Length [09:49:33]Host: 172.17.44.67:8080 [09:49:33]Content-Length: 677 [09:49:33]Content-Type: application/json [09:49:33] [09:49:33]POST finish read [09:49:33]Found Content-Length = 677 [09:49:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:33]execute_script... [09:49:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:33]POST & json_proto [09:49:33]process_json_proto [09:49:33]json parsed OK: [09:49:33]protocol is kg_v1.0 [09:49:33]action value=close_receipt [09:49:33]process_action close_receipt [09:49:33]cmd_close_receipt [09:49:33]MH_GetDate [09:49:33]Write to MH i2c: F0 00 00 72 02 63 [09:49:33]Write i2c OK [09:49:33]MH_I2C_Read... [09:49:33]Read from MH i2c: F0 [09:49:33]MH_I2C_Read... [09:49:33]Read from MH i2c: F0 09 00 [09:49:33]MH_I2C_Read... [09:49:33]Read from MH i2c: F0 09 00 72 02 00 AE DD 10 67 F1 C7 6B 64 F5 [09:49:33]GetLastDocTimeStamp 1729158540 [09:49:33]current date 1729158574 [09:49:33]FM_GetShiftState [09:49:33]SAM_PROTO_GetShiftState [09:49:33]wFMCommunicate request_size=4 [09:49:33]MH_SAM_APDU [09:49:33]CAPDU: 80 13 01 00 [09:49:33]Write to MH i2c: E2 08 00 73 02 80 13 01 00 00 00 00 00 F2 [09:49:33]Write i2c OK [09:49:33]MH_I2C_Read... [09:49:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:33]Read from MH i2c: E2 [09:49:33]MH_I2C_Read... [09:49:33]Read from MH i2c: E2 0E 00 [09:49:33]MH_I2C_Read... [09:49:33]Read from MH i2c: E2 0E 00 73 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 FA [09:49:33]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:49:33]wFMCommunicate OK [09:49:33]SAM_PROTO_GetShiftState done [09:49:33]FM_GetShiftState done [09:49:33]opened in 1729125927 [09:49:33]opened+sec_in_day 1729212327 [09:49:33]quantity*price = 40006 [09:49:33]sum+1 = 40007 [09:49:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 38 17.10.2024 09:49 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82112 ФПД: 252482893691376 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T094934&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82112&fm=252482893691376&tin=02508201610067®Number=0000000000091680&sum=40000 [09:49:34]StoreToDocumentArchive [09:49:34]shift 525 fd 82112 [09:49:34]save to /storage/0525/doc_00082112 [09:49:34]save last doc name /storage/0525/doc_00082112 to /storage/kkm_last_doc_name [09:49:34]save OK [09:49:34]Clear old archive folders... [09:49:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:49:34]tlvbuf is 0088C620 [09:49:34]SAM_PROTO_ClearQueue [09:49:34]wFMCommunicate request_size=4 [09:49:34]MH_SAM_APDU [09:49:34]CAPDU: 80 09 00 00 [09:49:34]Write to MH i2c: E2 08 00 80 02 80 09 00 00 00 00 00 00 F4 [09:49:34]Write i2c OK [09:49:34]MH_I2C_Read... [09:49:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:34]Read from MH i2c: E2 [09:49:34]MH_I2C_Read... [09:49:34]Read from MH i2c: E2 03 00 [09:49:34]MH_I2C_Read... [09:49:34]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [09:49:34]RAPDU: 90 00 [09:49:34]wFMCommunicate OK [09:49:34]SAM_PROTO_ClearQueue done [09:49:34]KKMCreateOFDPacket [09:49:34]OFDProtocolAddRootSTLVToBuf [09:49:34]FM_MakeSignedData [09:49:34]FM_MakeSignedData [09:49:34]SAM_PROTO_SignData [09:49:34]wFMCommunicate request_size=4 [09:49:34]MH_SAM_APDU [09:49:34]CAPDU: 80 0D 01 02 [09:49:34]Write to MH i2c: E2 08 00 81 02 80 0D 01 02 00 00 00 00 FC [09:49:34]Write i2c OK [09:49:34]MH_I2C_Read... [09:49:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:34]Read from MH i2c: E2 [09:49:34]MH_I2C_Read... [09:49:34]Read from MH i2c: E2 03 00 [09:49:34]MH_I2C_Read... [09:49:34]Read from MH i2c: E2 03 00 81 02 00 90 00 F7 [09:49:34]RAPDU: 90 00 [09:49:34]wFMCommunicate OK [09:49:34]wFMCommunicate request_size=255 [09:49:34]MH_SAM_APDU [09:49:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 AE DD 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C0 40 01 00 35 04 06 00 E5 [09:49:34]Write to MH i2c: E2 02 01 82 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 AE DD 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C0 40 01 00 35 04 06 00 E5 00 00 74 [09:49:34]Write i2c OK [09:49:34]MH_I2C_Read... [09:49:35]OFD Sender: No OFD packet to send [09:49:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:35]Read from MH i2c: E2 [09:49:35]MH_I2C_Read... [09:49:35]Read from MH i2c: E2 03 00 [09:49:35]MH_I2C_Read... [09:49:35]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [09:49:35]RAPDU: 90 00 [09:49:35]wFMCommunicate OK [09:49:35]wFMCommunicate request_size=10 [09:49:35]MH_SAM_APDU [09:49:35]CAPDU: 80 0D 02 02 05 A1 C1 30 B9 F0 [09:49:35]Write to MH i2c: E2 0D 00 83 02 80 0D 02 02 05 00 A1 C1 30 B9 F0 00 00 44 [09:49:35]Write i2c OK [09:49:35]MH_I2C_Read... [09:49:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:35]Read from MH i2c: E2 [09:49:35]MH_I2C_Read... [09:49:35]Read from MH i2c: E2 03 00 [09:49:35]MH_I2C_Read... [09:49:35]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [09:49:35]RAPDU: 90 00 [09:49:35]wFMCommunicate OK [09:49:35]wFMCommunicate request_size=4 [09:49:35]MH_SAM_APDU [09:49:35]CAPDU: 80 0D 03 02 [09:49:35]Write to MH i2c: E2 08 00 84 02 80 0D 03 02 00 00 00 00 01 [09:49:35]Write i2c OK [09:49:35]MH_I2C_Read... [09:49:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:35]Read from MH i2c: E2 [09:49:35]MH_I2C_Read... [09:49:35]Read from MH i2c: E2 0B 00 [09:49:35]MH_I2C_Read... [09:49:35]Read from MH i2c: E2 0B 00 84 02 00 4E 3E 1D CC 74 7A 2F 11 90 00 A5 [09:49:35]RAPDU: 4E 3E 1D CC 74 7A 2F 11 90 00 [09:49:35]wFMCommunicate OK [09:49:35]SAM_PROTO_SignData done [09:49:35]FM_MakeSignedData done [09:49:35]CreateOFDProtocolMessage [09:49:35]wFMCommunicate request_size=4 [09:49:35]MH_SAM_APDU [09:49:35]CAPDU: 80 11 00 00 [09:49:35]Write to MH i2c: E2 08 00 85 02 80 11 00 00 00 00 00 00 01 [09:49:35]Write i2c OK [09:45:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82108,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [09:45:59]free response buf [09:45:59]execute_script done [09:45:59]execute_script returns [09:45:59]free content buf [09:45:59]Sock 9.Close socket [09:45:59]Sock 9.Thread stoped [09:45:59]accept exits with 10 [09:45:59]New connection [09:45:59]New thread 3067477348 created [09:45:59]Thread 3067620708 joined [09:45:59]Waiting for new connection... [09:45:59] Sock 10.Parse request [09:45:59]Sock 10.Check first char [09:45:59]Sock 10.First char is OK [09:45:59]request: POST /json_proto HTTP/1.0 [09:45:59]Method: POST [09:45:59]URL: /json_proto [09:45:59]Method is POST - this is cgi request [09:45:59]url: /json_proto [09:45:59]query_string will be loaded in cgi processing [09:45:59]execute_cgi json_proto POST (null) [09:45:59]execute_cgi path=json_proto method=POST [09:45:59]POST find Content-Length [09:45:59]Host: 172.17.44.67:8080 [09:45:59]Content-Length: 806 [09:45:59]Content-Type: application/json [09:45:59] [09:45:59]POST finish read [09:45:59]Found Content-Length = 806 [09:45:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2226628", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:59]execute_script... [09:45:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 53 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725AE (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 44373584+1684785137=1729158721 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 54 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 42 DE 10 67 F1 C7 6B 64 1D [09:52:02]Current date/time: 17.10.2024 09:52 [09:52:02]FM_Init [09:52:02]wFMConnect [09:52:02]MH_SAM_On [09:52:02]Write to MH i2c: E0 00 00 08 00 E7 [09:52:02]Write i2c OK [09:52:02]MH_I2C_Read... [09:52:02]*** iso7816_init finished! [09:52:02]*** atr: [09:52:02]*** 0F 3B D5 18 FF 81 91 FE [09:52:02]*** 1F C3 80 73 C8 21 10 0A [09:52:02]*** 00 00 00 00 00 00 00 00 [09:52:02]*** 00 00 00 00 00 00 00 00 [09:52:02]*** 00 00 00 00 00 00 00 00 [09:52:02]*** 00 00 00 00 00 00 00 00 [09:52:02]*** 00 00 00 00 00 00 00 00 [09:52:02]*** 00 00 00 00 00 00 00 00 [09:52:02]Read from MH i2c: E0 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E0 10 00 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [09:52:02]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [09:52:02]wFMCommunicate request_size=10 [09:52:02]MH_SAM_APDU [09:52:02]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [09:52:02]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [09:52:02]Write i2c OK [09:52:02]MH_I2C_Read... [09:52:02]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [09:52:02]Read from MH i2c: E2 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 03 00 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [09:52:02]RAPDU: 90 00 [09:52:02]wFMCommunicate OK [09:52:02]wFMCommunicate request_size=4 [09:52:02]MH_SAM_APDU [09:52:02]CAPDU: 80 11 00 00 [09:52:02]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [09:52:02]Write i2c OK [09:52:02]MH_I2C_Read... [09:52:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:02]Read from MH i2c: E2 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 17 00 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D6 [09:52:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:52:02]wFMCommunicate OK [09:52:02]Detected FM SN is 0000000000871843 [09:52:02]Stored FM SN is 0000000000871843 [09:52:02]wFMCommunicate request_size=9 [09:52:02]MH_SAM_APDU [09:52:02]CAPDU: 80 16 00 00 04 C3 A3 00 00 [09:52:02]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 C3 A3 00 00 00 00 F8 [09:52:02]Write i2c OK [09:52:02]MH_I2C_Read... [09:52:02]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [09:52:02]Read from MH i2c: E2 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 03 00 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [09:52:02]RAPDU: 90 00 [09:52:02]wFMCommunicate OK [09:52:02]FM PIN OK [09:52:02]wFMCommunicate request_size=8 [09:52:02]MH_SAM_APDU [09:52:02]CAPDU: 80 14 04 00 03 02 00 01 [09:52:02]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [09:52:02]Write i2c OK [09:52:02]MH_I2C_Read... [09:52:02]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [09:52:02]Read from MH i2c: E2 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 03 00 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [09:52:02]RAPDU: 90 00 [09:52:02]wFMCommunicate OK [09:52:02]wFMCommunicate request_size=13 [09:52:02]MH_SAM_APDU [09:52:02]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [09:52:02]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [09:52:02]Write i2c OK [09:52:02]MH_I2C_Read... [09:52:02]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [09:52:02]Read from MH i2c: E2 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 03 00 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [09:52:02]RAPDU: 90 00 [09:52:02]wFMCommunicate OK [09:52:02]wFMCommunicate request_size=4 [09:52:02]MH_SAM_APDU [09:52:02]CAPDU: 80 11 00 00 [09:52:02]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [09:52:02]Write i2c OK [09:52:02]MH_I2C_Read... [09:52:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:02]Read from MH i2c: E2 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 17 00 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DA [09:52:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:52:02]wFMCommunicate OK [09:52:02]DocumentArchiveInit [09:52:02]Start Httpd... [09:52:02]Httpd thread 3066908004 created [09:52:02]Write to MH i2c: 01 00 00 0F 00 0F [09:52:02]Write i2c OK [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: 01 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: 01 07 00 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [09:52:02]MH Int Process started [09:52:02]Allocated Socket 8 [09:52:02]Bind OK [09:52:02]Listen OK [09:52:02]httpd running on port 8080 [09:52:02]Waiting for new connection... [09:52:02]OFD Sender: Processing packet 82112 [packets to send 254, broken 253] [09:52:02]ProducePacketName [09:52:02]name=ofd_packets/00082112 [09:52:02]OFD Sender: To server: pG, [09:52:02]CommunicateWithHost lk.salyk.kg:30040 [09:52:02]ConnectInit lk.salyk.kg [09:52:03]Connected sock=6 [09:52:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 F5 64 07 01 87 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 AE DD 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C0 40 01 00 35 04 06 00 E5 A1 C1 30 B9 F0 4E 3E 1D CC 74 7A 2F 11 [09:52:04]accept exits with 9 [09:52:04]New connection [09:52:04]New thread 3066621284 created [09:52:04]Waiting for new connection... [09:52:04] Sock 9.Parse request [09:52:04]Sock 9.Check first char [09:52:04]Sock 9.First char is OK [09:52:04]request: POST /json_proto HTTP/1.0 [09:52:04]Method: POST [09:52:04]URL: /json_proto [09:52:04]Method is POST - this is cgi request [09:52:04]url: /json_proto [09:52:04]query_string will be loaded in cgi processing [09:52:04]execute_cgi json_proto POST (null) [09:52:04]execute_cgi path=json_proto method=POST [09:52:04]POST find Content-Length [09:52:04]Host: 172.17.44.67:8080 [09:52:04]Content-Length: 215 [09:52:04]Content-Type: application/json [09:52:04] [09:52:04]POST finish read [09:52:04]Found Content-Length = 215 [09:52: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" ] } } [09:52:04]execute_script... [09:52: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" ] } } [09:52:04]POST & json_proto [09:52:04]process_json_proto [09:52:04]json parsed OK: [09:52:04]protocol is kg_v1.0 [09:52:04]action value=get_value [09:52:04]process_action get_value [09:52:04]cmd_get_value [09:52:04]process_action get_value done [09:52:04]requested_data is exist [09:52:04]produce_requested_data [09:52:04]requested_item kkm.sn is exist - process it [09:52:04]requested_item kkm.ver is exist - process it [09:52:04]requested_item fm.sn is exist - process it [09:52:04]wFMCommunicate request_size=4 [09:52:04]MH_SAM_APDU [09:52:04]CAPDU: 80 11 00 00 [09:52:04]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [09:52:04]Write i2c OK [09:52:04]MH_I2C_Read... [09:52:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:04]Read from MH i2c: E2 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: E2 17 00 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DC [09:52:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:52:04]wFMCommunicate OK [09:52:04]requested_item fd.num is exist - process it [09:52:04]SAM_PROTO_GetFieldsCounters [09:52:04]wFMCommunicate request_size=4 [09:52:04]MH_SAM_APDU [09:52:04]CAPDU: 80 13 00 00 [09:52:04]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [09:52:04]Write i2c OK [09:52:04]MH_I2C_Read... [09:52:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:04]Read from MH i2c: E2 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: E2 62 00 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C0 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [09:52:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C0 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:52:04]wFMCommunicate OK [09:52:04]SAM_PROTO_GetFieldsCounters done [09:52:04]requested_item shift.num is exist - process it [09:52:04]requested_item shift.opened is exist - process it [09:52:04]req_shift_opened [09:52:04]FM_GetShiftState [09:52:04]SAM_PROTO_GetShiftState [09:52:04]wFMCommunicate request_size=4 [09:52:04]MH_SAM_APDU [09:52:04]CAPDU: 80 13 01 00 [09:52:04]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [09:52:04]Write i2c OK [09:52:04]MH_I2C_Read... [09:52:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:04]Read from MH i2c: E2 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: E2 0E 00 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 97 [09:52:04]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:52:04]wFMCommunicate OK [09:52:04]SAM_PROTO_GetShiftState done [09:52:04]FM_GetShiftState done [09:52:04]req_shift_opened done [09:52:04]requested_item shift.open_date is exist - process it [09:52:04]req_shift_open_date [09:52:04]req_shift_open_date done [09:52:04]produce_requested_data done [09:52:04]produce_requested_data return {"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82112,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [09:52:04]process_action_free get_value [09:52:04]json_value_free [09:52:04]json_value_free done [09:52:04]process_json_proto returns [09:52:04]Send response to host [09:52:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82112,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [09:52:04]free response buf [09:52:04]execute_script done [09:52:04]execute_script returns [09:52:04]free content buf [09:52:04]Sock 9.Close socket [09:52:04]Sock 9.Thread stoped [09:52:04]accept exits with 10 [09:52:04]New connection [09:52:04]New thread 3066477924 created [09:52:04]Thread 3066621284 joined [09:52:04]Waiting for new connection... [09:52:04] Sock 10.Parse request [09:52:04]Sock 10.Check first char [09:52:04]Sock 10.First char is OK [09:52:04]request: POST /json_proto HTTP/1.0 [09:52:04]Method: POST [09:52:04]URL: /json_proto [09:52:04]Method is POST - this is cgi request [09:52:04]url: /json_proto [09:52:04]query_string will be loaded in cgi processing [09:52:04]execute_cgi json_proto POST (null) [09:52:04]execute_cgi path=json_proto method=POST [09:52:04]POST find Content-Length [09:52:04]Host: 172.17.44.67:8080 [09:52:04]Content-Length: 331 [09:52:04]Content-Type: application/json [09:52:04] [09:52:04]POST finish read [09:52:04]Found Content-Length = 331 [09:52: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" ] } } [09:52:04]execute_script... [09:52: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" ] } } [09:52:04]POST & json_proto [09:52:04]process_json_proto [09:52:04]json parsed OK: [09:52:04]protocol is kg_v1.0 [09:52:04]action value=get_value [09:52:04]process_action get_value [09:52:04]cmd_get_value [09:52:04]process_action get_value done [09:52:04]requested_data is exist [09:52:04]produce_requested_data [09:52:04]requested_item fm.sale.total is exist - process it [09:52:04]SAM_PROTO_GetFMData [09:52:04]wFMCommunicate request_size=4 [09:52:04]MH_SAM_APDU [09:52:04]CAPDU: 80 13 03 00 [09:52:04]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [09:52:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 26 DB 47 00 67 AA Write i2c OK [09:52:04]A5 MH_I2C_Read... [09:52:04]07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C0 40 01 00 F4 03 04 00 80 83 10 67 B6 04 01 00 00 54 CA 2D 75 09 DF 4E 08 [09:52:04]CommunicateWithHost err = 0 [09:52:04]CheckOFDResponse [09:52:04]1017 (14) - 77093643461234 [09:52:04]1041 (16) - 0000000000871843 [09:52:04]1040 (4) - 82112 [09:52:04]1012 (4) - 17.10.2024 03:24 [09:52:04]1206 (1) - 0 [09:52:04]OFD Sender: Remove packet 82112 [09:52:04]ProducePacketName [09:52:04]name=ofd_packets/00082112 [09:52:04]NVStorageDeleteData [09:52:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:52:05]Read from MH i2c: E2 [09:52:05]MH_I2C_Read... [09:52:05]Read from MH i2c: E2 FD 00 [09:52:05]MH_I2C_Read... [09:52:05]Read from MH i2c: E2 FD 00 13 00 00 C7 04 85 04 C3 04 6E 04 04 00 A6 3C 01 00 69 04 A3 00 6F 04 04 00 11 3A 01 00 B1 04 05 00 8B C7 A1 7A 01 70 04 05 00 DC 09 AB 40 01 72 04 04 00 AF BD F6 39 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 09 EC 38 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 60 00 5A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 95 02 00 00 B1 04 04 00 F0 98 04 13 70 04 04 00 88 56 04 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F0 0C 05 02 EF 90 00 A5 [09:52:05]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 A6 3C 01 00 69 04 A3 00 6F 04 04 00 11 3A 01 00 B1 04 05 00 8B C7 A1 7A 01 70 04 05 00 DC 09 AB 40 01 72 04 04 00 AF BD F6 39 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 09 EC 38 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 60 00 5A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 95 02 00 00 B1 04 04 00 F0 98 04 13 70 04 04 00 88 56 04 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F0 0C 05 02 EF 90 00 [09:52:05]wFMCommunicate OK [09:52:05]wFMCommunicate request_size=4 [09:52:05]MH_SAM_APDU [09:52:05]CAPDU: 80 17 00 00 [09:52:05]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [09:52:05]Write i2c OK [09:52:05]MH_I2C_Read... [09:52:05]OFD Sender: No OFD packet to send [09:52:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:52:05]Read from MH i2c: E2 [09:52:05]MH_I2C_Read... [09:52:05]Read from MH i2c: E2 FD 00 [09:52:05]MH_I2C_Read... [09:52:05]Read from MH i2c: E2 FD 00 14 00 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 26 16 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 90 00 08 [09:52:05]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 26 16 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 90 00 [09:52:05]wFMCommunicate OK [09:52:05]wFMCommunicate request_size=4 [09:52:05]MH_SAM_APDU [09:52:05]CAPDU: 80 17 00 00 [09:52:05]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [09:52:05]Write i2c OK [09:52:05]MH_I2C_Read... [09:52:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:52:05]Read from MH i2c: E2 [09:52:05]MH_I2C_Read... [09:52:05]Read from MH i2c: E2 FD 00 [09:52:05]MH_I2C_Read... [09:52:05]Read from MH i2c: E2 FD 00 15 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 6D [09:52:05]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [09:52:05]wFMCommunicate OK [09:52:05]wFMCommunicate request_size=4 [09:52:05]MH_SAM_APDU [09:52:05]CAPDU: 80 17 00 00 [09:52:05]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [09:52:05]Write i2c OK [09:52:05]MH_I2C_Read... [09:52:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:52:05]Read from MH i2c: E2 [09:52:05]MH_I2C_Read... [09:52:05]Read from MH i2c: E2 FD 00 [09:52:05]MH_I2C_Read... [09:52:05]Read from MH i2c: E2 FD 00 16 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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 11 [09:52:05]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [09:52:05]wFMCommunicate OK [09:52:05]wFMCommunicate request_size=4 [09:52:05]MH_SAM_APDU [09:52:05]CAPDU: 80 17 00 00 [09:52:05]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [09:52:05]Write i2c OK [09:52:05]MH_I2C_Read... [09:52:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [09:52:06]Read from MH i2c: E2 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: E2 E4 00 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: E2 E4 00 17 00 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 77 [09:52:06]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:52:06]wFMCommunicate OK [09:52:06]SAM_PROTO_GetFMData done [09:52:06]requested_item fm.sale_refund.total is exist - process it [09:52:06]requested_item fm.buy.total is exist - process it [09:52:06]requested_item shift.sale.total is exist - process it [09:52:06]SAM_PROTO_GetShiftData [09:52:06]wFMCommunicate request_size=4 [09:52:06]MH_SAM_APDU [09:52:06]CAPDU: 80 13 02 00 [09:52:06]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [09:52:06]Write i2c OK [09:52:06]MH_I2C_Read... [09:52:06]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:52:06]Read from MH i2c: E2 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: E2 FD 00 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: E2 FD 00 18 00 00 AD 04 AA 04 A9 04 6E 04 04 00 26 00 00 00 69 04 9A 00 6F 04 04 00 26 00 00 00 B1 04 03 00 72 2E 17 70 04 03 00 A0 3A 16 72 04 02 00 D2 F3 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 61 76 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 86 34 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 A1 [09:52:06]RAPDU: AD 04 AA 04 A9 04 6E 04 04 00 26 00 00 00 69 04 9A 00 6F 04 04 00 26 00 00 00 B1 04 03 00 72 2E 17 70 04 03 00 A0 3A 16 72 04 02 00 D2 F3 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 61 76 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 86 34 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [09:52:06]wFMCommunicate OK [09:52:06]wFMCommunicate request_size=4 [09:52:06]MH_SAM_APDU [09:52:06]CAPDU: 80 17 00 00 [09:52:06]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [09:52:06]Write i2c OK [09:52:06]MH_I2C_Read... [09:52:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:52:06]Read from MH i2c: E2 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: E2 FD 00 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: E2 FD 00 19 00 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 AB [09:52:07]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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 [09:52:07]wFMCommunicate OK [09:52:07]wFMCommunicate request_size=4 [09:52:07]MH_SAM_APDU [09:52:07]CAPDU: 80 17 00 00 [09:52:07]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [09:52:07]Write i2c OK [09:52:07]MH_I2C_Read... [09:52:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:52:07]Read from MH i2c: E2 [09:52:07]MH_I2C_Read... [09:52:07]Read from MH i2c: E2 FD 00 [09:52:07]MH_I2C_Read... [09:52:07]Read from MH i2c: E2 FD 00 1A 00 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 90 00 5E [09:52:07]RAPDU: 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 90 00 [09:52:07]wFMCommunicate OK [09:52:07]wFMCommunicate request_size=4 [09:52:07]MH_SAM_APDU [09:52:07]CAPDU: 80 17 00 00 [09:52:07]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [09:52:07]Write i2c OK [09:52:07]MH_I2C_Read... [09:52:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:52:07]Read from MH i2c: E2 [09:52:07]MH_I2C_Read... [09:52:07]Read from MH i2c: E2 FD 00 [09:52:07]MH_I2C_Read... [09:52:07]Read from MH i2c: E2 FD 00 1B 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 10 [09:52:07]RAPDU: 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 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 [09:52:07]wFMCommunicate OK [09:52:07]wFMCommunicate request_size=4 [09:52:07]MH_SAM_APDU [09:52:07]CAPDU: 80 17 00 00 [09:52:07]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [09:52:07]Write i2c OK [09:52:07]MH_I2C_Read... [09:52:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 199! [09:52:07]Read from MH i2c: E2 [09:52:07]MH_I2C_Read... [09:52:07]Read from MH i2c: E2 CA 00 [09:52:07]MH_I2C_Read... [09:52:07]Read from MH i2c: E2 CA 00 1C 00 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [09:52: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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:52:08]wFMCommunicate OK [09:52:08]SAM_PROTO_GetShiftData done [09:52:08]requested_item shift.sale.total_cash is exist - process it [09:52:08]requested_item shift.sale_refund.total is exist - process it [09:52:08]requested_item shift.sale_refund.total_cash is exist - process it [09:52:08]requested_item shift.buy.total is exist - process it [09:52:08]requested_item shift.buy.total_cash is exist - process it [09:52:08]produce_requested_data done [09:52:08]produce_requested_data return {"fm.sale.total":63523900.27,"fm.sale_refund.total":3190684.00,"fm.buy.total":0.00,"shift.sale.total":15192.18,"shift.sale.total_cash":14568.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [09:52:08]process_action_free get_value [09:52:08]json_value_free [09:52:08]json_value_free done [09:52:08]process_json_proto returns [09:52:08]Send response to host [09:52:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":63523900.27,"fm.sale_refund.total":3190684.00,"fm.buy.total":0.00,"shift.sale.total":15192.18,"shift.sale.total_cash":14568.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [09:52:08]free response buf [09:52:08]execute_script done [09:52:08]execute_script returns [09:52:08]free content buf [09:52:08]Sock 10.Close socket [09:52:08]Sock 10.Thread stoped [09:52:08]accept exits with 9 [09:52:08]New connection [09:52:08]New thread 3066621284 created [09:52:08]Thread 3066477924 joined [09:52:08]Waiting for new connection... [09:52:08] Sock 9.Parse request [09:52:08]Sock 9.Check first char [09:52:08]Sock 9.First char is OK [09:52:08]request: POST /json_proto HTTP/1.0 [09:52:08]Method: POST [09:52:08]URL: /json_proto [09:52:08]Method is POST - this is cgi request [09:52:08]url: /json_proto [09:52:08]query_string will be loaded in cgi processing [09:52:08]execute_cgi json_proto POST (null) [09:52:08]execute_cgi path=json_proto method=POST [09:52:08]POST find Content-Length [09:52:08]Host: 172.17.44.67:8080 [09:52:08]Content-Length: 766 [09:52:08]Content-Type: application/json [09:52:08] [09:52:08]POST finish read [09:52:08]Found Content-Length = 766 [09:52:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:08]execute_script... [09:52:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:08]POST & json_proto [09:52:08]process_json_proto [09:52:08]json parsed OK: [09:52:08]protocol is kg_v1.0 [09:52:08]action value=close_receipt [09:52:08]process_action close_receipt [09:52:08]cmd_close_receipt [09:52:08]MH_GetDate [09:52:08]Write to MH i2c: F0 00 00 1D 00 0C [09:52:08]Write i2c OK [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: F0 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: F0 09 00 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: F0 09 00 1D 00 00 48 DE 10 67 F1 C7 6B 64 39 [09:52:08]GetLastDocTimeStamp 1729158574 [09:52:08]current date 1729158728 [09:52:08]FM_GetShiftState [09:52:08]SAM_PROTO_GetShiftState [09:52:08]wFMCommunicate request_size=4 [09:52:08]MH_SAM_APDU [09:52:08]CAPDU: 80 13 01 00 [09:52:08]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [09:52:08]Write i2c OK [09:52:08]MH_I2C_Read... [09:52:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:08]Read from MH i2c: E2 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: E2 0E 00 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 A3 [09:52:08]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:52:08]wFMCommunicate OK [09:52:08]SAM_PROTO_GetShiftState done [09:52:08]FM_GetShiftState done [09:52:08]opened in 1729125927 [09:52:08]opened+sec_in_day 1729212327 [09:52:08]quantity*price = 40006 [09:52:08]sum+1 = 40007 [09:52:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 39 17.10.2024 09:52 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82113 ФПД: 274559266276742 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T095209&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82113&fm=274559266276742&tin=02508201610067®Number=0000000000091680&sum=40006 [09:52:09]StoreToDocumentArchive [09:52:09]shift 525 fd 82113 [09:52:09]save to /storage/0525/doc_00082113 [09:52:09]save last doc name /storage/0525/doc_00082113 to /storage/kkm_last_doc_name [09:52:09]save OK [09:52:09]Clear old archive folders... [09:52:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:52:09]tlvbuf is 01EB6CF0 [09:52:09]SAM_PROTO_ClearQueue [09:52:09]wFMCommunicate request_size=4 [09:52:09]MH_SAM_APDU [09:52:09]CAPDU: 80 09 00 00 [09:52:09]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [09:52:09]Write i2c OK [09:52:09]MH_I2C_Read... [09:52:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:09]Read from MH i2c: E2 [09:52:09]MH_I2C_Read... [09:52:09]Read from MH i2c: E2 03 00 [09:52:09]MH_I2C_Read... [09:52:09]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [09:52:09]RAPDU: 90 00 [09:52:09]wFMCommunicate OK [09:52:09]SAM_PROTO_ClearQueue done [09:52:09]KKMCreateOFDPacket [09:52:09]OFDProtocolAddRootSTLVToBuf [09:52:09]FM_MakeSignedData [09:52:09]FM_MakeSignedData [09:52:09]SAM_PROTO_SignData [09:52:09]wFMCommunicate request_size=4 [09:52:09]MH_SAM_APDU [09:52:09]CAPDU: 80 0D 01 02 [09:52:09]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [09:52:09]Write i2c OK [09:52:09]MH_I2C_Read... [09:52:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:09]Read from MH i2c: E2 [09:52:09]MH_I2C_Read... [09:52:09]Read from MH i2c: E2 03 00 [09:52:09]MH_I2C_Read... [09:52:09]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [09:52:09]RAPDU: 90 00 [09:52:10]wFMCommunicate OK [09:52:10]wFMCommunicate request_size=255 [09:52:10]MH_SAM_APDU [09:52:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 49 DE 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C1 40 01 00 35 04 06 00 F9 [09:52:10]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 49 DE 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C1 40 01 00 35 04 06 00 F9 00 00 DB [09:52:10]Write i2c OK [09:52:10]MH_I2C_Read... [09:52:10]OFD Sender: No OFD packet to send [09:52:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:10]Read from MH i2c: E2 [09:52:10]MH_I2C_Read... [09:52:10]Read from MH i2c: E2 03 00 [09:52:10]MH_I2C_Read... [09:52:10]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [09:52:10]RAPDU: 90 00 [09:52:10]wFMCommunicate OK [09:52:10]wFMCommunicate request_size=10 [09:52:10]MH_SAM_APDU [09:52:10]CAPDU: 80 0D 02 02 05 B5 CF 89 45 86 [09:52:10]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 B5 CF 89 45 86 00 00 8A [09:52:10]Write i2c OK [09:52:10]MH_I2C_Read... [09:52:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:10]Read from MH i2c: E2 [09:52:10]MH_I2C_Read... [09:52:10]Read from MH i2c: E2 03 00 [09:52:10]MH_I2C_Read... [09:52:10]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [09:52:10]RAPDU: 90 00 [09:52:10]wFMCommunicate OK [09:52:10]wFMCommunicate request_size=4 [09:52:10]MH_SAM_APDU [09:52:10]CAPDU: 80 0D 03 02 [09:52:10]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [09:52:10]Write i2c OK [09:52:10]MH_I2C_Read... [09:52:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:10]Read from MH i2c: E2 [09:52:10]MH_I2C_Read... [09:52:10]Read from MH i2c: E2 0B 00 [09:52:10]MH_I2C_Read... [09:52:10]Read from MH i2c: E2 0B 00 2F 00 00 91 FE 1B A9 76 A2 A7 88 90 00 45 [09:52:10]RAPDU: 91 FE 1B A9 76 A2 A7 88 90 00 [09:52:10]wFMCommunicate OK [09:52:10]SAM_PROTO_SignData done [09:52:10]FM_MakeSignedData done [09:52:10]CreateOFDProtocolMessage [09:52:10]wFMCommunicate request_size=4 [09:52:10]MH_SAM_APDU [09:52:10]CAPDU: 80 11 00 00 [09:52:10]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [09:52:10]Write i2c OK [09:52:10]MH_I2C_Read... [09:52:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:10]Read from MH i2c: E2 [09:52:10]MH_I2C_Read... [09:52:10]Read from MH i2c: E2 17 00 [09:52:10]MH_I2C_Read... [09:52:10]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 FC [09:52:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:52:10]wFMCommunicate OK [09:52:10]CreateOFDProtocolMessage done [09:52:10]OFDSenderStorePacket 82113 [09:52:10]StoreOFDPacket docnum=82113 [09:52:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 34 E8 07 01 6D F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 49 DE 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C1 40 01 00 35 04 06 00 F9 B5 CF 89 45 86 91 FE 1B A9 76 A2 A7 88 [09:52:10]CheckFolder [09:52:10]dirname=/storage/ofd_packets [09:52:10]CheckFolder done [09:52:10]ProducePacketName [09:52:10]name=ofd_packets/00082113 [09:52:10]NVStorageSaveData ofd_packets/00082113 [09:52:10]File name is /storage/ofd_packets/00082113 [09:52:10]Write 301 bytes [09:52:10]NVStorageSaveData done [09:52:10]OFDSenderStorePacket done [09:52:10]KKMCreateOFDPacket done [09:52:10]NVStorageSaveData kkm_last_timestamp [09:52:10]File name is /storage/kkm_last_timestamp [09:52:10]Write 4 bytes [09:52:10]NVStorageSaveData done [09:52:10]ExternCall_PrintAddStr [09:52:10]wPrintStart [09:52:10]Write to MH i2c: 01 00 00 31 00 31 [09:52:10]Write i2c OK [09:52:10]MH_I2C_Read... [09:52:10]Read from MH i2c: 01 [09:52:10]MH_I2C_Read... [09:52:10]Read from MH i2c: 01 07 00 [09:52:10]MH_I2C_Read... [09:52:10]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [09:52:10]RasterBufferAndPrint [09:52:10]line Счет N : (1)918620 [09:52:10]line ИНН: 02508201610067 [09:52:10]line Контрольно-Кассовый Чек [09:52:10]line ПРОДАЖА [09:52:10]line ТРК (МРК, ГНК) : 22 [09:52:10]line Товар: 2710124130 [09:52:10]line Аи-92-К-4 [09:52:10]line 5.980 * 66.90 [09:52:10]line = 400.06 [09:52:10]line НДС 12% НСП 1% [09:52:10]line > о реализуемом товаре [09:52:10]line ИТОГО: 400.06 [09:52:10]line НСП 1% : 3.54 [09:52:10]line НДС 12% : 42.48 [09:52:10]line Наличными: 0.00 [09:52:10]line Безнал.: 400.06 [09:52:10]line Место: АЗС № 114 "Партнер Нефть" [09:52:10]OFD Sender: Processing packet 82113 [packets to send 254, broken 253] [09:52:10]ProducePacketName [09:52:10]name=ofd_packets/00082113 [09:52:10]OFD Sender: To server: pG, [09:52:10]CommunicateWithHost lk.salyk.kg:30040 [09:52:10]ConnectInit lk.salyk.kg [09:52:10]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:52:10]line СНО: Общий режим [09:52:10]line Чек 39 17.10.2024 09:52 [09:52:10]line Смена: 525 ФФД: 1.0 [09:52:10]line ЗНМ: 0300000086 [09:52:10]line РНМ: 0000000000091680 [09:52:10]line Версия ККМ: 001 [09:52:10]line Платежная система: Mbank [09:52:10]line ФМ: 0000000000871843 [09:52:10]line ФД: 82113 [09:52:10]line ФПД: 274559266276742 [09:52:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T095209&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82113&fm=274559266276742&tin=02508201610067®Number=0000000000091680&sum=40006 [09:52:10]written 0, free lines is 4095 [09:52:11]Write to MH i2c: 01 00 00 5A 00 5A [09:52:11]Write i2c OK [09:52:11]MH_I2C_Read... [09:52:11]Read from MH i2c: 01 [09:52:11]MH_I2C_Read... [09:52:11]Read from MH i2c: 01 07 00 [09:52:11]MH_I2C_Read... [09:52:11]Read from MH i2c: 01 07 00 5A 00 00 00 00 00 00 12 0D 80 [09:52:11]RasterBufferAndPrint [09:52:11]line [09:52:11]line [09:52:11]line [09:52:11]line [09:52:11]line [09:52:11]written 0, free lines is 3372 [09:52:11]MH_Cut [09:52:11]Write to MH i2c: D1 01 00 61 00 01 33 [09:52:11]Write i2c OK [09:52:11]MH_I2C_Read... [09:52:11]Read from MH i2c: D1 [09:52:11]MH_I2C_Read... [09:52:11]Read from MH i2c: D1 01 00 [09:52:11]MH_I2C_Read... [09:52:11]Read from MH i2c: D1 01 00 61 00 00 32 [09:52:11]Write to MH i2c: 01 00 00 62 00 62 [09:52:11]Write i2c OK [09:52:11]MH_I2C_Read... [09:52:11]Connected sock=11 [09:52:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 34 E8 07 01 6D F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 recv_with_timeout no data received [09:52:11]32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 49 DE 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C1 40 01 00 35 04 06 00 F9 B5 CF 89 45 86 91 FE 1B A9 76 A2 A7 88 [09:52:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 79 18 47 00 90 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C1 40 01 00 F4 03 04 00 88 83 10 67 B6 04 01 00 00 B2 BD FD 42 7C BC DB F8 [09:52:11]CommunicateWithHost err = 0 [09:52:11]CheckOFDResponse [09:52:11]1017 (14) - 77093643461234 [09:52:11]1041 (16) - 0000000000871843 [09:52:11]1040 (4) - 82113 [09:52:11]1012 (4) - 17.10.2024 03:24 [09:52:11]1206 (1) - 0 [09:52:11]OFD Sender: Remove packet 82113 [09:52:11]ProducePacketName [09:52:11]name=ofd_packets/00082113 [09:52:11]NVStorageDeleteData [09:52:11]*** Cut start [09:52:11]*** Partial cut [09:52:11]*** CUTSNS_PIN = 1 [09:52:12]*** CUTSNS_PIN = 0 [09:52:12]*** Brake cut motor [09:52:12]OFD Sender: No OFD packet to send [09:52:12]Read from MH i2c: 01 [09:52:12]MH_I2C_Read... [09:52:12]*** Stop cut motor [09:52:12]*** Cut end [09:52:12]Read from MH i2c: 01 07 00 [09:52:12]MH_I2C_Read... [09:52:12]Read from MH i2c: 01 07 00 62 00 00 00 00 00 00 FF 0F 77 [09:52:12]process_action close_receipt done [09:52:12]requested_data is exist [09:52:12]produce_requested_data [09:52:12]requested_item fm.sn is exist - process it [09:52:12]wFMCommunicate request_size=4 [09:52:12]MH_SAM_APDU [09:52:12]CAPDU: 80 11 00 00 [09:52:12]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [09:52:12]Write i2c OK [09:52:12]MH_I2C_Read... [09:52:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:12]Read from MH i2c: E2 [09:52:12]MH_I2C_Read... [09:52:12]Read from MH i2c: E2 17 00 [09:52:12]MH_I2C_Read... [09:52:12]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 2F [09:52:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:52:12]wFMCommunicate OK [09:52:12]requested_item fd.num is exist - process it [09:52:12]SAM_PROTO_GetFieldsCounters [09:52:12]wFMCommunicate request_size=4 [09:52:12]MH_SAM_APDU [09:52:12]CAPDU: 80 13 00 00 [09:52:12]Write to MH i2c: E2 08 00 64 00 80 13 00 00 00 00 00 00 E0 [09:52:12]Write i2c OK [09:52:12]MH_I2C_Read... [09:52:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:12]Read from MH i2c: E2 [09:52:12]MH_I2C_Read... [09:52:12]Read from MH i2c: E2 62 00 [09:52:12]MH_I2C_Read... [09:52:12]Read from MH i2c: E2 62 00 64 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C1 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [09:52:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C1 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:52:12]wFMCommunicate OK [09:52:12]SAM_PROTO_GetFieldsCounters done [09:52:12]requested_item shift.num is exist - process it [09:52:12]requested_item shift.opened is exist - process it [09:52:12]req_shift_opened [09:52:12]FM_GetShiftState [09:52:12]SAM_PROTO_GetShiftState [09:52:12]wFMCommunicate request_size=4 [09:52:12]MH_SAM_APDU [09:52:12]CAPDU: 80 13 01 00 [09:52:12]Write to MH i2c: E2 08 00 65 00 80 13 01 00 00 00 00 00 E2 [09:52:12]Write i2c OK [09:52:12]MH_I2C_Read... [09:52:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:12]Read from MH i2c: E2 [09:52:12]MH_I2C_Read... [09:52:12]Read from MH i2c: E2 0E 00 [09:52:12]MH_I2C_Read... [09:52:12]Read from MH i2c: E2 0E 00 65 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 EA [09:52:13]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:52:13]wFMCommunicate OK [09:52:13]SAM_PROTO_GetShiftState done [09:52:13]FM_GetShiftState done [09:52:13]req_shift_opened done [09:52:13]requested_item shift.open_date is exist - process it [09:52:13]req_shift_open_date [09:52:13]req_shift_open_date done [09:52:13]produce_requested_data done [09:52:13]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82113,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [09:52:13]process_action_free close_receipt [09:52:13]json_value_free [09:52:13]json_value_free done [09:52:13]process_json_proto returns [09:52:13]Send response to host [09:52:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82113,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [09:52:13]free response buf [09:52:13]execute_script done [09:52:13]execute_script returns [09:52:13]free content buf [09:52:13]Sock 9.Close socket [09:52:13]Sock 9.Thread stoped [09:52:17]OFD Sender: No OFD packet to send [09:52:22]recv_with_timeout no data received [09:52:22]OFD Sender: No OFD packet to send [09:52:27]OFD Sender: No OFD packet to send [09:52:32]OFD Sender: No OFD packet to send [09:52:37]OFD Sender: No OFD packet to send [09:52:42]OFD Sender: No OFD packet to send [09:52:47]OFD Sender: No OFD packet to send [09:52:52]OFD Sender: No OFD packet to send [09:52:57]OFD Sender: No OFD packet to send [09:53:02]OFD Sender: No OFD packet to send [09:53:07]OFD Sender: No OFD packet to send [09:53:12]OFD Sender: No OFD packet to send [09:53:17]OFD Sender: No OFD packet to send [09:53:22]OFD Sender: No OFD packet to send [09:53:27]OFD Sender: No OFD packet to send [09:53:32]OFD Sender: No OFD packet to send [09:53:37]OFD Sender: No OFD packet to send [09:53:42]OFD Sender: No OFD packet to send [09:53:47]OFD Sender: No OFD packet to send [09:53:52]OFD Sender: No OFD packet to send [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:17]OFD Sender: No OFD packet to send [09:54:22]OFD Sender: No OFD packet to send [09:54:27]OFD Sender: No OFD packet to send [09:54:32]OFD Sender: No OFD packet to send [09:54:37]OFD Sender: No OFD packet to send [09:54:42]OFD Sender: No OFD packet to send [09:54:47]OFD Sender: No OFD packet to send [09:54:52]OFD Sender: No OFD packet to send [09:54:57]OFD Sender: No OFD packet to send [09:55:02]OFD Sender: No OFD packet to send [09:55:07]OFD Sender: No OFD packet to send [09:55:12]OFD Sender: No OFD packet to send [09:55:17]OFD Sender: No OFD packet to send [09:55:22]OFD Sender: No OFD packet to send [09:55:27]OFD Sender: No OFD packet to send [09:55:32]OFD Sender: No OFD packet to send [09:55:37]OFD Sender: No OFD packet to send [09:55:42]OFD Sender: No OFD packet to send [09:55:46]accept exits with 10 [09:55:46]New connection [09:55:46]New thread 3066477924 created [09:55:46]Thread 3066621284 joined [09:55:46]Waiting for new connection... [09:55:46] Sock 10.Parse request [09:55:46]Sock 10.Check first char [09:55:46]Sock 10.First char is OK [09:55:46]request: POST /json_proto HTTP/1.0 [09:55:46]Method: POST [09:55:46]URL: /json_proto [09:55:46]Method is POST - this is cgi request [09:55:46]url: /json_proto [09:55:46]query_string will be loaded in cgi processing [09:55:46]execute_cgi json_proto POST (null) [09:55:46]execute_cgi path=json_proto method=POST [09:55:46]POST find Content-Length [09:55:46]Host: 172.17.44.67:8080 [09:55:46]Content-Length: 766 [09:55:46]Content-Type: application/json [09:55:46] [09:55:46]POST finish read [09:55:46]Found Content-Length = 766 [09:55:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:46]execute_script... [09:55:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:46]POST & json_proto [09:55:46]process_json_proto [09:55:46]json parsed OK: [09:55:46]protocol is kg_v1.0 [09:55:46]action value=close_receipt [09:55:46]process_action close_receipt [09:55:46]cmd_close_receipt [09:55:46]MH_GetDate [09:55:46]Write to MH i2c: F0 00 00 66 00 55 [09:55:46]Write i2c OK [09:55:46]MH_I2C_Read... [09:55:46]Read from MH i2c: F0 [09:55:46]MH_I2C_Read... [09:55:46]Read from MH i2c: F0 09 00 [09:55:46]MH_I2C_Read... [09:55:46]Read from MH i2c: F0 09 00 66 00 00 23 DF 10 67 F1 C7 6B 64 5E [09:55:46]GetLastDocTimeStamp 1729158729 [09:55:46]current date 1729158947 [09:55:46]FM_GetShiftState [09:55:46]SAM_PROTO_GetShiftState [09:55:46]wFMCommunicate request_size=4 [09:55:46]MH_SAM_APDU [09:55:46]CAPDU: 80 13 01 00 [09:55:46]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [09:55:46]Write i2c OK [09:55:46]MH_I2C_Read... [09:55:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:46]Read from MH i2c: E2 [09:55:46]MH_I2C_Read... [09:55:46]Read from MH i2c: E2 0E 00 [09:55:46]MH_I2C_Read... [09:55:46]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 EC [09:55:46]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:55:46]wFMCommunicate OK [09:55:46]SAM_PROTO_GetShiftState done [09:55:46]FM_GetShiftState done [09:55:46]opened in 1729125927 [09:55:46]opened+sec_in_day 1729212327 [09:55:46]quantity*price = 30038 [09:55:46]sum+1 = 30039 [09:55:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 40 17.10.2024 09:55 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82114 ФПД: 107484297411881 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T095547&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82114&fm=107484297411881&tin=02508201610067®Number=0000000000091680&sum=30038 [09:55:48]StoreToDocumentArchive [09:55:48]shift 525 fd 82114 [09:55:48]save to /storage/0525/doc_00082114 [09:55:48]save last doc name /storage/0525/doc_00082114 to /storage/kkm_last_doc_name [09:55:48]save OK [09:55:48]Clear old archive folders... [09:55:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:55:48]tlvbuf is 01EB2160 [09:55:48]SAM_PROTO_ClearQueue [09:55:48]wFMCommunicate request_size=4 [09:55:48]MH_SAM_APDU [09:55:48]CAPDU: 80 09 00 00 [09:55:48]Write to MH i2c: E2 08 00 74 00 80 09 00 00 00 00 00 00 E6 [09:55:48]Write i2c OK [09:55:48]MH_I2C_Read... [09:55:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:48]Read from MH i2c: E2 [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: E2 03 00 [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [09:55:48]RAPDU: 90 00 [09:55:48]wFMCommunicate OK [09:55:48]SAM_PROTO_ClearQueue done [09:55:48]KKMCreateOFDPacket [09:55:48]OFDProtocolAddRootSTLVToBuf [09:55:48]FM_MakeSignedData [09:55:48]FM_MakeSignedData [09:55:48]SAM_PROTO_SignData [09:55:48]wFMCommunicate request_size=4 [09:55:48]MH_SAM_APDU [09:55:48]CAPDU: 80 0D 01 02 [09:55:48]Write to MH i2c: E2 08 00 75 00 80 0D 01 02 00 00 00 00 EE [09:55:48]Write i2c OK [09:55:48]MH_I2C_Read... [09:55:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:48]Read from MH i2c: E2 [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: E2 03 00 [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [09:55:48]RAPDU: 90 00 [09:55:48]wFMCommunicate OK [09:55:48]wFMCommunicate request_size=255 [09:55:48]MH_SAM_APDU [09:55: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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 23 DF 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C2 40 01 00 35 04 06 00 61 [09:55:48]Write to MH i2c: E2 02 01 76 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 23 DF 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C2 40 01 00 35 04 06 00 61 00 00 CE [09:55:48]Write i2c OK [09:55:48]MH_I2C_Read... [09:55:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:48]Read from MH i2c: E2 [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: E2 03 00 [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [09:55:48]RAPDU: 90 00 [09:55:48]wFMCommunicate OK [09:55:48]wFMCommunicate request_size=10 [09:55:48]MH_SAM_APDU [09:55:48]CAPDU: 80 0D 02 02 05 C1 A3 5D BD 29 [09:55:48]Write to MH i2c: E2 0D 00 77 00 80 0D 02 02 05 00 C1 A3 5D BD 29 00 00 A2 [09:55:48]Write i2c OK [09:55:48]MH_I2C_Read... [09:55:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:48]Read from MH i2c: E2 [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: E2 03 00 [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [09:55:48]RAPDU: 90 00 [09:55:48]wFMCommunicate OK [09:55:48]wFMCommunicate request_size=4 [09:55:48]MH_SAM_APDU [09:55:48]CAPDU: 80 0D 03 02 [09:55:48]Write to MH i2c: E2 08 00 78 00 80 0D 03 02 00 00 00 00 F3 [09:55:48]Write i2c OK [09:55:48]MH_I2C_Read... [09:55:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:48]Read from MH i2c: E2 [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: E2 0B 00 [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: E2 0B 00 78 00 00 85 72 F8 83 76 58 C6 9D 90 00 97 [09:55:48]RAPDU: 85 72 F8 83 76 58 C6 9D 90 00 [09:55:48]wFMCommunicate OK [09:55:48]SAM_PROTO_SignData done [09:55:48]FM_MakeSignedData done [09:55:48]CreateOFDProtocolMessage [09:55:48]wFMCommunicate request_size=4 [09:55:48]MH_SAM_APDU [09:55:48]CAPDU: 80 11 00 00 [09:55:48]Write to MH i2c: E2 08 00 79 00 80 11 00 00 00 00 00 00 F3 [09:55:48]Write i2c OK [09:55:48]MH_I2C_Read... [09:55:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:48]Read from MH i2c: E2 [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: E2 17 00 [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: E2 17 00 79 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 45 [09:55:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:55:48]wFMCommunicate OK [09:55:48]CreateOFDProtocolMessage done [09:55:48]OFDSenderStorePacket 82114 [09:55:48]StoreOFDPacket docnum=82114 [09:55:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 AD 88 07 01 E5 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 23 DF 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C2 40 01 00 35 04 06 00 61 C1 A3 5D BD 29 85 72 F8 83 76 58 C6 9D [09:55:48]CheckFolder [09:55:48]dirname=/storage/ofd_packets [09:55:48]CheckFolder done [09:55:48]ProducePacketName [09:55:48]name=ofd_packets/00082114 [09:55:48]NVStorageSaveData ofd_packets/00082114 [09:55:48]File name is /storage/ofd_packets/00082114 [09:55:48]Write 301 bytes [09:55:48]NVStorageSaveData done [09:55:48]OFDSenderStorePacket done [09:55:48]KKMCreateOFDPacket done [09:55:48]NVStorageSaveData kkm_last_timestamp [09:55:48]File name is /storage/kkm_last_timestamp [09:55:48]Write 4 bytes [09:55:48]NVStorageSaveData done [09:55:48]ExternCall_PrintAddStr [09:55:48]wPrintStart [09:55:48]Write to MH i2c: 01 00 00 7A 00 7A [09:55:48]Write i2c OK [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: 01 [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: 01 07 00 [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: 01 07 00 7A 00 00 00 00 00 00 FF 0F 8F [09:55:48]RasterBufferAndPrint [09:55:48]line Счет N : (1)918622 [09:55:48]line ИНН: 02508201610067 [09:55:48]line Контрольно-Кассовый Чек [09:55:48]line ПРОДАЖА [09:55:48]line ТРК (МРК, ГНК) : 11 [09:55:48]line Товар: 2710124130 [09:55:48]line Аи-92-К-4 [09:55:48]line 4.490 * 66.90 [09:55:48]line = 300.38 [09:55:48]line НДС 12% НСП 1% [09:55:48]line > о реализуемом товаре [09:55:48]line ИТОГО: 300.38 [09:55:48]line НСП 1% : 2.66 [09:55:48]line НДС 12% : 31.90 [09:55:48]line Наличными: 0.00 [09:55:48]line Безнал.: 300.38 [09:55:48]line Место: АЗС № 114 "Партнер Нефть" [09:55:48]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:55:48]line СНО: Общий режим [09:55:48]line Чек 40 17.10.2024 09:55 [09:55:48]line Смена: 525 ФФД: 1.0 [09:55:48]line ЗНМ: 0300000086 [09:55:48]line РНМ: 0000000000091680 [09:55:48]line Версия ККМ: 001 [09:55:48]line Платежная система: Mbank [09:55:48]line ФМ: 0000000000871843 [09:55:48]line ФД: 82114 [09:55:48]line ФПД: 107484297411881 [09:55:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T095547&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82114&fm=107484297411881&tin=02508201610067®Number=0000000000091680&sum=30038 [09:55:48]OFD Sender: Processing packet 82114 [packets to send 254, broken 253] [09:55:48]ProducePacketName [09:55:48]name=ofd_packets/00082114 [09:55:48]OFD Sender: To server: pG, [09:55:48]CommunicateWithHost lk.salyk.kg:30040 [09:55:48]ConnectInit lk.salyk.kg [09:55:48]written 0, free lines is 4095 [09:55:49]Write to MH i2c: 01 00 00 A3 00 A3 [09:55:49]Write i2c OK [09:55:49]MH_I2C_Read... [09:55:49]Read from MH i2c: 01 [09:55:49]MH_I2C_Read... [09:55:49]Read from MH i2c: 01 07 00 [09:55:49]MH_I2C_Read... [09:55:49]Read from MH i2c: 01 07 00 A3 00 00 00 00 00 00 FB 0C B1 [09:55:49]RasterBufferAndPrint [09:55:49]line [09:55:49]line [09:55:49]line [09:55:49]line [09:55:49]line [09:55:49]written 0, free lines is 3330 [09:55:49]MH_Cut [09:55:49]Write to MH i2c: D1 01 00 AA 00 01 7C [09:55:49]Write i2c OK [09:55:49]MH_I2C_Read... [09:55:49]Read from MH i2c: D1 [09:55:49]MH_I2C_Read... [09:55:49]Read from MH i2c: D1 01 00 [09:55:49]MH_I2C_Read... [09:55:49]Read from MH i2c: D1 01 00 AA 00 00 7B [09:55:49]Write to MH i2c: 01 00 00 AB 00 AB [09:55:49]Connected sock=11 [09:55:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 AD 88 07 01 E5 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 23 DF 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C2 40 01 00 35 04 06 00 61 C1 A3 5D BD 29 85 72 F8 83 76 58 C6 9D [09:55:49]Write i2c OK [09:55:49]MH_I2C_Read... [09:55:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 00 D9 47 00 02 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C2 40 01 00 F4 03 04 00 62 84 10 67 B6 04 01 00 00 E0 99 12 23 BE 6F FC 01 [09:55:49]CommunicateWithHost err = 0 [09:55:49]CheckOFDResponse [09:55:49]1017 (14) - 77093643461234 [09:55:49]1041 (16) - 0000000000871843 [09:55:49]1040 (4) - 82114 [09:55:49]1012 (4) - 17.10.2024 03:28 [09:55:49]1206 (1) - 0 [09:55:49]OFD Sender: Remove packet 82114 [09:55:49]ProducePacketName [09:55:49]name=ofd_packets/00082114 [09:55:49]NVStorageDeleteData [09:55:50]*** Cut start [09:55:50]*** Partial cut [09:55:50]*** CUTSNS_PIN = 1 [09:55:50]*** CUTSNS_PIN = 0 [09:55:50]OFD Sender: No OFD packet to send [09:55:50]*** Brake cut motor [09:55:50]Read from MH i2c: 01 [09:55:50]MH_I2C_Read... [09:55:50]*** Stop cut motor [09:55:50]*** Cut end [09:55:50]Read from MH i2c: 01 07 00 [09:55:50]MH_I2C_Read... [09:55:50]Read from MH i2c: 01 07 00 AB 00 00 00 00 00 00 FF 0F C0 [09:55:50]process_action close_receipt done [09:55:50]requested_data is exist [09:55:50]produce_requested_data [09:55:50]requested_item fm.sn is exist - process it [09:55:50]wFMCommunicate request_size=4 [09:55:50]MH_SAM_APDU [09:55:50]CAPDU: 80 11 00 00 [09:55:50]Write to MH i2c: E2 08 00 AC 00 80 11 00 00 00 00 00 00 26 [09:55:50]Write i2c OK [09:55:50]MH_I2C_Read... [09:55:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:50]Read from MH i2c: E2 [09:55:50]MH_I2C_Read... [09:55:50]Read from MH i2c: E2 17 00 [09:55:50]MH_I2C_Read... [09:55:50]Read from MH i2c: E2 17 00 AC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 78 [09:55:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:55:50]wFMCommunicate OK [09:55:50]requested_item fd.num is exist - process it [09:55:50]SAM_PROTO_GetFieldsCounters [09:55:50]wFMCommunicate request_size=4 [09:55:50]MH_SAM_APDU [09:55:50]CAPDU: 80 13 00 00 [09:55:50]Write to MH i2c: E2 08 00 AD 00 80 13 00 00 00 00 00 00 29 [09:55:50]Write i2c OK [09:55:50]MH_I2C_Read... [09:55:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:50]Read from MH i2c: E2 [09:55:50]MH_I2C_Read... [09:55:50]Read from MH i2c: E2 62 00 [09:55:50]MH_I2C_Read... [09:55:50]Read from MH i2c: E2 62 00 AD 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C2 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [09:55:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C2 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:55:50]wFMCommunicate OK [09:55:50]SAM_PROTO_GetFieldsCounters done [09:55:50]requested_item shift.num is exist - process it [09:55:50]requested_item shift.opened is exist - process it [09:55:50]req_shift_opened [09:55:50]FM_GetShiftState [09:55:50]SAM_PROTO_GetShiftState [09:55:50]wFMCommunicate request_size=4 [09:55:50]MH_SAM_APDU [09:55:50]CAPDU: 80 13 01 00 [09:55:50]Write to MH i2c: E2 08 00 AE 00 80 13 01 00 00 00 00 00 2B [09:55:50]Write i2c OK [09:55:50]MH_I2C_Read... [09:55:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:51]Read from MH i2c: E2 [09:55:51]MH_I2C_Read... [09:55:51]Read from MH i2c: E2 0E 00 [09:55:51]MH_I2C_Read... [09:55:51]Read from MH i2c: E2 0E 00 AE 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 33 [09:55:51]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:55:51]wFMCommunicate OK [09:55:51]SAM_PROTO_GetShiftState done [09:55:51]FM_GetShiftState done [09:55:51]req_shift_opened done [09:55:51]requested_item shift.open_date is exist - process it [09:55:51]req_shift_open_date [09:55:51]req_shift_open_date done [09:55:51]produce_requested_data done [09:55:51]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82114,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [09:55:51]process_action_free close_receipt [09:55:51]json_value_free [09:55:51]json_value_free done [09:55:51]process_json_proto returns [09:55:51]Send response to host [09:55:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82114,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [09:55:51]free response buf [09:55:51]execute_script done [09:55:51]execute_script returns [09:55:51]free content buf [09:55:51]Sock 10.Close socket [09:55:51]Sock 10.Thread stoped [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:31]accept exits with 7 [09:56:31]New connection [09:56:31]New thread 3066621284 created [09:56:31]Thread 3066477924 joined [09:56:31]Waiting for new connection... [09:56:31] Sock 7.Parse request [09:56:31]Sock 7.Check first char [09:56:31]Sock 7.First char is OK [09:56:31]request: POST /json_proto HTTP/1.0 [09:56:31]Method: POST [09:56:31]URL: /json_proto [09:56:31]Method is POST - this is cgi request [09:56:31]url: /json_proto [09:56:31]query_string will be loaded in cgi processing [09:56:31]execute_cgi json_proto POST (null) [09:56:31]execute_cgi path=json_proto method=POST [09:56:31]POST find Content-Length [09:56:31]Host: 172.17.44.67:8080 [09:56:31]Content-Length: 759 [09:56:31]Content-Type: application/json [09:56:31] [09:56:31]POST finish read [09:56:31]Found Content-Length = 759 [09:56:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 90.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100608", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:31]execute_script... [09:56:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 90.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100608", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:31]POST & json_proto [09:56:31]process_json_proto [09:56:31]json parsed OK: [09:56:31]protocol is kg_v1.0 [09:56:31]action value=close_receipt [09:56:31]process_action close_receipt [09:56:31]cmd_close_receipt [09:56:31]MH_GetDate [09:56:31]Write to MH i2c: F0 00 00 AF 00 9E [09:56:31]Write i2c OK [09:56:31]MH_I2C_Read... [09:56:31]Read from MH i2c: F0 [09:56:31]MH_I2C_Read... [09:56:31]Read from MH i2c: F0 09 00 [09:56:31]MH_I2C_Read... [09:56:31]Read from MH i2c: F0 09 00 AF 00 00 50 DF 10 67 F1 C7 6B 64 D4 [09:56:31]GetLastDocTimeStamp 1729158947 [09:56:31]current date 1729158992 [09:56:31]FM_GetShiftState [09:56:31]SAM_PROTO_GetShiftState [09:56:31]wFMCommunicate request_size=4 [09:56:31]MH_SAM_APDU [09:56:31]CAPDU: 80 13 01 00 [09:56:31]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [09:56:31]Write i2c OK [09:56:31]MH_I2C_Read... [09:56:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:32]Read from MH i2c: E2 [09:56:32]MH_I2C_Read... [09:56:32]Read from MH i2c: E2 0E 00 [09:56:32]MH_I2C_Read... [09:56:32]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 35 [09:56:32]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:56:32]wFMCommunicate OK [09:56:32]SAM_PROTO_GetShiftState done [09:56:32]FM_GetShiftState done [09:56:32]opened in 1729125927 [09:56:32]opened+sec_in_day 1729212327 [09:56:32]quantity*price = 0 [09:56:32]sum+1 = 1 [09:56:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 41 17.10.2024 09:56 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30100608 ФМ: 0000000000871843 ФД: 82115 ФПД: 102790671505492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T095632&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82115&fm=102790671505492&tin=02508201610067®Number=0000000000091680&sum=0 [09:56:33]StoreToDocumentArchive [09:56:33]shift 525 fd 82115 [09:56:33]save to /storage/0525/doc_00082115 [09:56:33]save last doc name /storage/0525/doc_00082115 to /storage/kkm_last_doc_name [09:56:33]save OK [09:56:33]Clear old archive folders... [09:56:33]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:56:33]tlvbuf is 01EAFA50 [09:56:33]SAM_PROTO_ClearQueue [09:56:33]wFMCommunicate request_size=4 [09:56:33]MH_SAM_APDU [09:56:33]CAPDU: 80 09 00 00 [09:56:33]Write to MH i2c: E2 08 00 BD 00 80 09 00 00 00 00 00 00 2F [09:56:33]Write i2c OK [09:56:33]MH_I2C_Read... [09:56:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:56:33]Read from MH i2c: E2 [09:56:33]MH_I2C_Read... [09:56:33]Read from MH i2c: E2 03 00 [09:56:33]MH_I2C_Read... [09:56:33]Read from MH i2c: E2 03 00 BD 00 00 90 00 31 [09:56:33]RAPDU: 90 00 [09:56:33]wFMCommunicate OK [09:56:33]SAM_PROTO_ClearQueue done [09:56:33]KKMCreateOFDPacket [09:56:33]OFDProtocolAddRootSTLVToBuf [09:56:33]FM_MakeSignedData [09:56:33]FM_MakeSignedData [09:56:33]SAM_PROTO_SignData [09:56:33]wFMCommunicate request_size=4 [09:56:33]MH_SAM_APDU [09:56:33]CAPDU: 80 0D 01 02 [09:56:33]Write to MH i2c: E2 08 00 BE 00 80 0D 01 02 00 00 00 00 37 [09:56:33]Write i2c OK [09:56:33]MH_I2C_Read... [09:56:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:56:33]Read from MH i2c: E2 [09:56:33]MH_I2C_Read... [09:56:33]Read from MH i2c: E2 03 00 [09:56:33]MH_I2C_Read... [09:56:33]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [09:56:33]RAPDU: 90 00 [09:56:33]wFMCommunicate OK [09:56:33]wFMCommunicate request_size=255 [09:56:33]MH_SAM_APDU [09:56:33]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 90 5F 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 50 DF 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C3 40 01 00 35 04 06 00 [09:56:33]Write to MH i2c: E2 02 01 BF 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 90 5F 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 50 DF 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C3 40 01 00 35 04 06 00 00 00 4C [09:56:33]Write i2c OK [09:56:33]MH_I2C_Read... [09:56:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:33]Read from MH i2c: E2 [09:56:33]MH_I2C_Read... [09:56:33]Read from MH i2c: E2 03 00 [09:56:33]MH_I2C_Read... [09:56:33]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [09:56:33]RAPDU: 90 00 [09:56:33]wFMCommunicate OK [09:56:33]wFMCommunicate request_size=11 [09:56:33]MH_SAM_APDU [09:56:33]CAPDU: 80 0D 02 02 06 5D 7C D1 76 18 54 [09:56:33]Write to MH i2c: E2 0E 00 C0 00 80 0D 02 02 06 00 5D 7C D1 76 18 54 00 00 D2 [09:56:33]Write i2c OK [09:56:33]MH_I2C_Read... [09:56:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:33]Read from MH i2c: E2 [09:56:33]MH_I2C_Read... [09:56:33]Read from MH i2c: E2 03 00 [09:56:33]MH_I2C_Read... [09:56:33]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [09:56:33]RAPDU: 90 00 [09:56:33]wFMCommunicate OK [09:56:33]wFMCommunicate request_size=4 [09:56:33]MH_SAM_APDU [09:56:33]CAPDU: 80 0D 03 02 [09:56:33]Write to MH i2c: E2 08 00 C1 00 80 0D 03 02 00 00 00 00 3C [09:56:33]Write i2c OK [09:56:33]MH_I2C_Read... [09:56:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:56:33]Read from MH i2c: E2 [09:56:33]MH_I2C_Read... [09:56:33]Read from MH i2c: E2 0B 00 [09:56:33]MH_I2C_Read... [09:56:33]Read from MH i2c: E2 0B 00 C1 00 00 2F F2 92 10 60 78 02 1D 90 00 F7 [09:56:33]RAPDU: 2F F2 92 10 60 78 02 1D 90 00 [09:56:33]wFMCommunicate OK [09:56:33]SAM_PROTO_SignData done [09:56:33]FM_MakeSignedData done [09:56:33]CreateOFDProtocolMessage [09:56:33]wFMCommunicate request_size=4 [09:56:33]MH_SAM_APDU [09:56:33]CAPDU: 80 11 00 00 [09:56:33]Write to MH i2c: E2 08 00 C2 00 80 11 00 00 00 00 00 00 3C [09:56:33]Write i2c OK [09:56:33]MH_I2C_Read... [09:56:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:33]Read from MH i2c: E2 [09:56:33]MH_I2C_Read... [09:56:33]Read from MH i2c: E2 17 00 [09:56:33]MH_I2C_Read... [09:56:33]Read from MH i2c: E2 17 00 C2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 8E [09:56:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:56:33]wFMCommunicate OK [09:56:33]CreateOFDProtocolMessage done [09:56:33]OFDSenderStorePacket 82115 [09:56:33]StoreOFDPacket docnum=82115 [09:56:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 51 61 08 01 9E C1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 90 5F 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 50 DF 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C3 40 01 00 35 04 06 00 5D 7C D1 76 18 54 2F F2 92 10 60 78 02 1D [09:56:33]CheckFolder [09:56:33]dirname=/storage/ofd_packets [09:56:33]CheckFolder done [09:56:33]ProducePacketName [09:56:33]name=ofd_packets/00082115 [09:56:33]NVStorageSaveData ofd_packets/00082115 [09:56:33]File name is /storage/ofd_packets/00082115 [09:56:33]Write 302 bytes [09:56:33]NVStorageSaveData done [09:56:33]OFDSenderStorePacket done [09:56:33]KKMCreateOFDPacket done [09:56:33]NVStorageSaveData kkm_last_timestamp [09:56:33]File name is /storage/kkm_last_timestamp [09:56:33]Write 4 bytes [09:56:33]NVStorageSaveData done [09:56:33]ExternCall_PrintAddStr [09:56:33]wPrintStart [09:56:33]Write to MH i2c: 01 00 00 C3 00 C3 [09:56:33]Write i2c OK [09:56:33]MH_I2C_Read... [09:56:33]Read from MH i2c: 01 [09:56:33]MH_I2C_Read... [09:56:33]Read from MH i2c: 01 07 00 [09:56:33]MH_I2C_Read... [09:56:33]Read from MH i2c: 01 07 00 C3 00 00 00 00 00 00 FF 0F D8 [09:56:33]RasterBufferAndPrint [09:56:33]line Счет N : (1)918621 [09:56:33]line ИНН: 02508201610067 [09:56:33]line Контрольно-Кассовый Чек [09:56:33]line ПРОДАЖА [09:56:33]line ТРК (МРК, ГНК) : 31 [09:56:33]line Товар: 2710194210 [09:56:33]line ДТ(л)-К-5 [09:56:33]line 90.000 * 0.00 [09:56:33]line = 0.00 [09:56:33]line НДС 12% НСП 1% [09:56:33]line > о реализуемом товаре [09:56:33]line ИТОГО: 0.00 [09:56:33]line НСП 1% : 0.00 [09:56:33]line НДС 12% : 0.00 [09:56:33]line Наличными: 0.00 [09:56:33]line Безнал.: 0.00 [09:56:33]line Место: АЗС № 114 "Партнер Нефть" [09:56:33]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:56:33]line СНО: Общий режим [09:56:33]line Чек 41 17.10.2024 09:56 [09:56:33]line Смена: 525 ФФД: 1.0 [09:56:33]line ЗНМ: 0300000086 [09:56:33]line РНМ: 0000000000091680 [09:56:33]line Версия ККМ: 001 [09:56:33]line Талоны: ТК ГПНА Online [09:56:33]line 30100608 [09:56:33]line ФМ: 0000000000871843 [09:56:33]line ФД: 82115 [09:56:33]line ФПД: 102790671505492 [09:56:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T095632&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82115&fm=102790671505492&tin=02508201610067®Number=0000000000091680&sum=0 [09:56:34]written 0, free lines is 4095 [09:56:34]OFD Sender: Processing packet 82115 [packets to send 254, broken 253] [09:56:34]ProducePacketName [09:56:34]name=ofd_packets/00082115 [09:56:34]OFD Sender: To server: pG, [09:56:34]CommunicateWithHost lk.salyk.kg:30040 [09:56:34]ConnectInit lk.salyk.kg [09:56:34]Write to MH i2c: 01 00 00 ED 00 ED [09:56:34]Write i2c OK [09:56:34]MH_I2C_Read... [09:56:34]Read from MH i2c: 01 [09:56:34]MH_I2C_Read... [09:56:34]Read from MH i2c: 01 07 00 [09:56:34]MH_I2C_Read... [09:56:34]Read from MH i2c: 01 07 00 ED 00 00 00 00 00 00 DA 0C DA [09:56:34]RasterBufferAndPrint [09:56:34]line [09:56:34]line [09:56:34]line [09:56:34]line [09:56:34]line [09:56:34]written 0, free lines is 3293 [09:56:34]MH_Cut [09:56:34]Write to MH i2c: D1 01 00 F4 00 01 C6 [09:56:34]Write i2c OK [09:56:34]MH_I2C_Read... [09:56:34]Read from MH i2c: D1 [09:56:34]MH_I2C_Read... [09:56:34]Read from MH i2c: D1 01 00 [09:56:34]MH_I2C_Read... [09:56:34]Read from MH i2c: D1 01 00 F4 00 00 C5 [09:56:34]Write to MH i2c: 01 00 00 F5 00 F5 [09:56:34]Write i2c OK [09:56:34]MH_I2C_Read... [09:56:34]Connected sock=11 [09:56:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 51 61 08 01 9E C1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 90 5F 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 50 DF 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C3 40 01 00 35 04 06 00 5D 7C D1 76 18 54 2F F2 92 10 60 78 02 1D [09:56:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 BA D2 47 00 2F BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C3 40 01 00 F4 03 04 00 8F 84 10 67 B6 04 01 00 00 6A 68 4B 2E 6B D0 F1 11 [09:56:34]CommunicateWithHost err = 0 [09:56:34]CheckOFDResponse [09:56:34]1017 (14) - 77093643461234 [09:56:34]1041 (16) - 0000000000871843 [09:56:34]1040 (4) - 82115 [09:56:34]1012 (4) - 17.10.2024 03:29 [09:56:34]1206 (1) - 0 [09:56:34]OFD Sender: Remove packet 82115 [09:56:34]ProducePacketName [09:56:34]name=ofd_packets/00082115 [09:56:34]NVStorageDeleteData [09:56:35]*** Cut start [09:56:35]*** Partial cut [09:56:35]*** CUTSNS_PIN = 1 [09:56:35]*** CUTSNS_PIN = 0 [09:56:35]OFD Sender: No OFD packet to send [09:56:35]*** Brake cut motor [09:56:35]Read from MH i2c: 01 [09:56:35]MH_I2C_Read... [09:56:35]*** Stop cut motor [09:56:35]*** Cut end [09:56:35]Read from MH i2c: 01 07 00 [09:56:35]MH_I2C_Read... [09:56:35]Read from MH i2c: 01 07 00 F5 00 00 00 00 00 00 FF 0F 0A [09:56:35]process_action close_receipt done [09:56:35]requested_data is exist [09:56:35]produce_requested_data [09:56:35]requested_item fm.sn is exist - process it [09:56:35]wFMCommunicate request_size=4 [09:56:35]MH_SAM_APDU [09:56:35]CAPDU: 80 11 00 00 [09:56:35]Write to MH i2c: E2 08 00 F6 00 80 11 00 00 00 00 00 00 70 [09:56:35]Write i2c OK [09:56:35]MH_I2C_Read... [09:56:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:35]Read from MH i2c: E2 [09:56:35]MH_I2C_Read... [09:56:35]Read from MH i2c: E2 17 00 [09:56:35]MH_I2C_Read... [09:56:35]Read from MH i2c: E2 17 00 F6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C2 [09:56:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:56:35]wFMCommunicate OK [09:56:35]requested_item fd.num is exist - process it [09:56:35]SAM_PROTO_GetFieldsCounters [09:56:35]wFMCommunicate request_size=4 [09:56:35]MH_SAM_APDU [09:56:35]CAPDU: 80 13 00 00 [09:56:35]Write to MH i2c: E2 08 00 F7 00 80 13 00 00 00 00 00 00 73 [09:56:35]Write i2c OK [09:56:35]MH_I2C_Read... [09:56:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:36]Read from MH i2c: E2 [09:56:36]MH_I2C_Read... [09:56:36]Read from MH i2c: E2 62 00 [09:56:36]MH_I2C_Read... [09:56:36]Read from MH i2c: E2 62 00 F7 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C3 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [09:56:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C3 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:56:36]wFMCommunicate OK [09:56:36]SAM_PROTO_GetFieldsCounters done [09:56:36]requested_item shift.num is exist - process it [09:56:36]requested_item shift.opened is exist - process it [09:56:36]req_shift_opened [09:56:36]FM_GetShiftState [09:56:36]SAM_PROTO_GetShiftState [09:56:36]wFMCommunicate request_size=4 [09:56:36]MH_SAM_APDU [09:56:36]CAPDU: 80 13 01 00 [09:56:36]Write to MH i2c: E2 08 00 F8 00 80 13 01 00 00 00 00 00 75 [09:56:36]Write i2c OK [09:56:36]MH_I2C_Read... [09:56:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:36]Read from MH i2c: E2 [09:56:36]MH_I2C_Read... [09:56:36]Read from MH i2c: E2 0E 00 [09:56:36]MH_I2C_Read... [09:56:36]Read from MH i2c: E2 0E 00 F8 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 7D [09:56:36]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:56:36]wFMCommunicate OK [09:56:36]SAM_PROTO_GetShiftState done [09:56:36]FM_GetShiftState done [09:56:36]req_shift_opened done [09:56:36]requested_item shift.open_date is exist - process it [09:56:36]req_shift_open_date [09:56:36]req_shift_open_date done [09:56:36]produce_requested_data done [09:56:36]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82115,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [09:56:36]process_action_free close_receipt [09:56:36]json_value_free [09:56:36]json_value_free done [09:56:36]process_json_proto returns [09:56:36]Send response to host [09:56:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82115,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [09:56:36]free response buf [09:56:36]execute_script done [09:56:36]execute_script returns [09:56:36]free content buf [09:56:36]Sock 7.Close socket [09:56:36]Sock 7.Thread stoped [09:56:40]OFD Sender: No OFD packet to send [09:56:45]OFD Sender: No OFD packet to send [09:56:46]recv_with_timeout no data received [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:23]recv_with_timeout no data received [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]recv_with_timeout no data received [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:45]OFD Sender: No OFD packet to send [09:58:50]OFD Sender: No OFD packet to send [09:58:55]OFD Sender: No OFD packet to send [09:59:00]accept exits with 9 [09:59:00]New connection [09:59:00]New thread 3066477924 created [09:59:00]Thread 3066621284 joined [09:59:00]Waiting for new connection... [09:59:00] Sock 9.Parse request [09:59:00]Sock 9.Check first char [09:59:00]Sock 9.First char is OK [09:59:00]request: POST /json_proto HTTP/1.0 [09:59:00]Method: POST [09:59:00]URL: /json_proto [09:59:00]Method is POST - this is cgi request [09:59:00]url: /json_proto [09:59:00]query_string will be loaded in cgi processing [09:59:00]execute_cgi json_proto POST (null) [09:59:00]execute_cgi path=json_proto method=POST [09:59:00]POST find Content-Length [09:59:00]Host: 172.17.44.67:8080 [09:59:00]Content-Length: 759 [09:59:00]Content-Type: application/json [09:59:00] [09:59:00]POST finish read [09:59:00]Found Content-Length = 759 [09:59:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100418", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:00]execute_script... [09:59: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)918623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100418", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:00]POST & json_proto [09:59:00]process_json_proto [09:59:00]json parsed OK: [09:59:00]protocol is kg_v1.0 [09:59:00]action value=close_receipt [09:59:00]process_action close_receipt [09:59:00]cmd_close_receipt [09:59:00]MH_GetDate [09:59:00]Write to MH i2c: F0 00 00 F9 00 E8 [09:59:00]Write i2c OK [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: F0 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: F0 09 00 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: F0 09 00 F9 00 00 E4 DF 10 67 F1 C7 6B 64 B2 [09:59:00]GetLastDocTimeStamp 1729158992 [09:59:00]current date 1729159140 [09:59:00]FM_GetShiftState [09:59:00]SAM_PROTO_GetShiftState [09:59:00]wFMCommunicate request_size=4 [09:59:00]MH_SAM_APDU [09:59:00]CAPDU: 80 13 01 00 [09:59:00]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [09:59:00]Write i2c OK [09:59:00]MH_I2C_Read... [09:59:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:00]Read from MH i2c: E2 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: E2 0E 00 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 7F [09:59:00]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:59:00]wFMCommunicate OK [09:59:00]SAM_PROTO_GetShiftState done [09:59:00]FM_GetShiftState done [09:59:00]opened in 1729125927 [09:59:00]opened+sec_in_day 1729212327 [09:59:00]quantity*price = 0 [09:59:00]sum+1 = 1 [09:59:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 42 17.10.2024 09:59 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30100418 ФМ: 0000000000871843 ФД: 82116 ФПД: 245210731507764 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T095900&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82116&fm=245210731507764&tin=02508201610067®Number=0000000000091680&sum=0 [09:59:01]StoreToDocumentArchive [09:59:01]shift 525 fd 82116 [09:59:01]save to /storage/0525/doc_00082116 [09:59:01]save last doc name /storage/0525/doc_00082116 to /storage/kkm_last_doc_name [09:59:01]save OK [09:59:01]Clear old archive folders... [09:59:01]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:59:01]tlvbuf is 01E594A0 [09:59:01]SAM_PROTO_ClearQueue [09:59:01]wFMCommunicate request_size=4 [09:59:01]MH_SAM_APDU [09:59:01]CAPDU: 80 09 00 00 [09:59:01]Write to MH i2c: E2 08 00 07 01 80 09 00 00 00 00 00 00 7A [09:59:01]Write i2c OK [09:59:01]MH_I2C_Read... [09:59:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:01]Read from MH i2c: E2 [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: E2 03 00 [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: E2 03 00 07 01 00 90 00 7C [09:59:01]RAPDU: 90 00 [09:59:01]wFMCommunicate OK [09:59:01]SAM_PROTO_ClearQueue done [09:59:01]KKMCreateOFDPacket [09:59:01]OFDProtocolAddRootSTLVToBuf [09:59:01]FM_MakeSignedData [09:59:01]FM_MakeSignedData [09:59:01]SAM_PROTO_SignData [09:59:01]wFMCommunicate request_size=4 [09:59:01]MH_SAM_APDU [09:59:01]CAPDU: 80 0D 01 02 [09:59:01]Write to MH i2c: E2 08 00 08 01 80 0D 01 02 00 00 00 00 82 [09:59:01]Write i2c OK [09:59:01]MH_I2C_Read... [09:59:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:01]Read from MH i2c: E2 [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: E2 03 00 [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [09:59:01]RAPDU: 90 00 [09:59:01]wFMCommunicate OK [09:59:01]wFMCommunicate request_size=255 [09:59:01]MH_SAM_APDU [09:59:01]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 E4 DF 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C4 40 01 00 35 04 06 00 [09:59:01]Write to MH i2c: E2 02 01 09 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 E4 DF 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C4 40 01 00 35 04 06 00 00 00 74 [09:59:01]Write i2c OK [09:59:01]MH_I2C_Read... [09:59:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:01]Read from MH i2c: E2 [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: E2 03 00 [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [09:59:01]RAPDU: 90 00 [09:59:01]wFMCommunicate OK [09:59:01]wFMCommunicate request_size=11 [09:59:01]MH_SAM_APDU [09:59:01]CAPDU: 80 0D 02 02 06 DF 04 92 8B F0 34 [09:59:01]Write to MH i2c: E2 0E 00 0A 01 80 0D 02 02 06 00 DF 04 92 8B F0 34 00 00 B5 [09:59:01]Write i2c OK [09:59:01]MH_I2C_Read... [09:59:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:01]Read from MH i2c: E2 [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: E2 03 00 [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [09:59:01]RAPDU: 90 00 [09:59:01]wFMCommunicate OK [09:59:01]wFMCommunicate request_size=4 [09:59:01]MH_SAM_APDU [09:59:01]CAPDU: 80 0D 03 02 [09:59:01]Write to MH i2c: E2 08 00 0B 01 80 0D 03 02 00 00 00 00 87 [09:59:01]Write i2c OK [09:59:01]MH_I2C_Read... [09:59:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:01]Read from MH i2c: E2 [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: E2 0B 00 [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: E2 0B 00 0B 01 00 7E 09 AD 2B 3B 95 D6 4C 90 00 D9 [09:59:01]RAPDU: 7E 09 AD 2B 3B 95 D6 4C 90 00 [09:59:01]wFMCommunicate OK [09:59:01]SAM_PROTO_SignData done [09:59:01]FM_MakeSignedData done [09:59:01]CreateOFDProtocolMessage [09:59:01]wFMCommunicate request_size=4 [09:59:01]MH_SAM_APDU [09:59:01]CAPDU: 80 11 00 00 [09:59:01]Write to MH i2c: E2 08 00 0C 01 80 11 00 00 00 00 00 00 87 [09:59:01]Write i2c OK [09:59:01]MH_I2C_Read... [09:59:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:01]Read from MH i2c: E2 [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: E2 17 00 [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: E2 17 00 0C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D9 [09:59:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:59:01]wFMCommunicate OK [09:59:01]CreateOFDProtocolMessage done [09:59:01]OFDSenderStorePacket 82116 [09:59:01]StoreOFDPacket docnum=82116 [09:59:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 AC 44 08 01 FA 6F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 E4 DF 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C4 40 01 00 35 04 06 00 DF 04 92 8B F0 34 7E 09 AD 2B 3B 95 D6 4C [09:59:01]CheckFolder [09:59:01]dirname=/storage/ofd_packets [09:59:01]CheckFolder done [09:59:01]ProducePacketName [09:59:01]name=ofd_packets/00082116 [09:59:01]NVStorageSaveData ofd_packets/00082116 [09:59:01]File name is /storage/ofd_packets/00082116 [09:59:01]Write 302 bytes [09:59:01]NVStorageSaveData done [09:59:01]OFDSenderStorePacket done [09:59:01]KKMCreateOFDPacket done [09:59:01]NVStorageSaveData kkm_last_timestamp [09:59:01]File name is /storage/kkm_last_timestamp [09:59:01]Write 4 bytes [09:59:01]NVStorageSaveData done [09:59:01]ExternCall_PrintAddStr [09:59:01]wPrintStart [09:59:01]Write to MH i2c: 01 00 00 0D 01 0E [09:59:01]Write i2c OK [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: 01 [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: 01 07 00 [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: 01 07 00 0D 01 00 00 00 00 00 FF 0F 23 [09:59:01]RasterBufferAndPrint [09:59:01]line Счет N : (1)918623 [09:59:01]line ИНН: 02508201610067 [09:59:01]line Контрольно-Кассовый Чек [09:59:01]line ПРОДАЖА [09:59:01]line ТРК (МРК, ГНК) : 31 [09:59:01]line Товар: 2710194210 [09:59:01]line ДТ(л)-К-5 [09:59:01]line 10.000 * 0.00 [09:59:01]line = 0.00 [09:59:01]line НДС 12% НСП 1% [09:59:01]line > о реализуемом товаре [09:59:01]line ИТОГО: 0.00 [09:59:01]line НСП 1% : 0.00 [09:59:01]line НДС 12% : 0.00 [09:59:01]line Наличными: 0.00 [09:59:01]line Безнал.: 0.00 [09:59:01]line Место: АЗС № 114 "Партнер Нефть" [09:59:01]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:59:01]line СНО: Общий режим [09:59:01]line Чек 42 17.10.2024 09:59 [09:59:01]line Смена: 525 ФФД: 1.0 [09:59:01]line ЗНМ: 0300000086 [09:59:01]line РНМ: 0000000000091680 [09:59:01]line Версия ККМ: 001 [09:59:01]line Талоны: ТК ГПНА Online [09:59:01]line 30100418 [09:59:01]line ФМ: 0000000000871843 [09:59:01]line ФД: 82116 [09:59:01]line ФПД: 245210731507764 [09:59:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T095900&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82116&fm=245210731507764&tin=02508201610067®Number=0000000000091680&sum=0 [09:59:02]written 0, free lines is 4095 [09:59:02]OFD Sender: Processing packet 82116 [packets to send 254, broken 253] [09:59:02]ProducePacketName [09:59:02]name=ofd_packets/00082116 [09:59:02]OFD Sender: To server: pG, [09:59:02]CommunicateWithHost lk.salyk.kg:30040 [09:59:02]ConnectInit lk.salyk.kg [09:59:02]Write to MH i2c: 01 00 00 37 01 38 [09:59:02]Write i2c OK [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: 01 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: 01 07 00 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: 01 07 00 37 01 00 00 00 00 00 D7 0C 22 [09:59:02]RasterBufferAndPrint [09:59:02]line [09:59:02]line [09:59:02]line [09:59:02]line [09:59:02]line [09:59:02]written 0, free lines is 3293 [09:59:02]MH_Cut [09:59:02]Write to MH i2c: D1 01 00 3E 01 01 11 [09:59:02]Write i2c OK [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: D1 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: D1 01 00 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: D1 01 00 3E 01 00 10 [09:59:02]Write to MH i2c: 01 00 00 3F 01 40 [09:59:02]Write i2c OK [09:59:02]MH_I2C_Read... [09:59:02]Connected sock=10 [09:59:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 AC 44 08 01 FA 6F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 E4 DF 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C4 40 01 00 35 04 06 00 DF 04 92 8B F0 34 7E 09 AD 2B 3B 95 D6 4C [09:59:03]*** Cut start [09:59:03]*** Partial cut [09:59:03]*** CUTSNS_PIN = 1 [09:59:03]*** CUTSNS_PIN = 0 [09:59:03]*** Brake cut motor [09:59:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 FB F5 47 00 CE 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C4 40 01 00 F4 03 04 00 23 85 10 67 B6 04 01 00 00 44 C3 15 E1 D1 C5 98 D3 [09:59:03]CommunicateWithHost err = 0 [09:59:03]CheckOFDResponse [09:59:03]1017 (14) - 77093643461234 [09:59:03]1041 (16) - 0000000000871843 [09:59:03]1040 (4) - 82116 [09:59:03]1012 (4) - 17.10.2024 03:31 [09:59:03]1206 (1) - 0 [09:59:03]OFD Sender: Remove packet 82116 [09:59:03]ProducePacketName [09:59:03]name=ofd_packets/00082116 [09:59:03]NVStorageDeleteData [09:59:03]Read from MH i2c: 01 [09:59:03]MH_I2C_Read... [09:59:03]*** Stop cut motor [09:59:03]*** Cut end [09:59:03]Read from MH i2c: 01 07 00 [09:59:03]MH_I2C_Read... [09:59:03]Read from MH i2c: 01 07 00 3F 01 00 00 00 00 00 FF 0F 55 [09:59:03]process_action close_receipt done [09:59:03]requested_data is exist [09:59:03]produce_requested_data [09:59:03]requested_item fm.sn is exist - process it [09:59:03]wFMCommunicate request_size=4 [09:59:03]MH_SAM_APDU [09:59:03]CAPDU: 80 11 00 00 [09:59:03]Write to MH i2c: E2 08 00 40 01 80 11 00 00 00 00 00 00 BB [09:59:03]Write i2c OK [09:59:03]MH_I2C_Read... [09:59:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:03]Read from MH i2c: E2 [09:59:03]MH_I2C_Read... [09:59:03]Read from MH i2c: E2 17 00 [09:59:03]MH_I2C_Read... [09:59:03]Read from MH i2c: E2 17 00 40 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 0D [09:59:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:59:03]wFMCommunicate OK [09:59:03]requested_item fd.num is exist - process it [09:59:03]SAM_PROTO_GetFieldsCounters [09:59:03]wFMCommunicate request_size=4 [09:59:03]MH_SAM_APDU [09:59:03]CAPDU: 80 13 00 00 [09:59:03]Write to MH i2c: E2 08 00 41 01 80 13 00 00 00 00 00 00 BE [09:59:03]Write i2c OK [09:59:03]MH_I2C_Read... [09:59:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:04]Read from MH i2c: E2 [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: E2 62 00 [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: E2 62 00 41 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C4 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [09:59:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C4 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:59:04]wFMCommunicate OK [09:59:04]SAM_PROTO_GetFieldsCounters done [09:59:04]requested_item shift.num is exist - process it [09:59:04]requested_item shift.opened is exist - process it [09:59:04]req_shift_opened [09:59:04]FM_GetShiftState [09:59:04]SAM_PROTO_GetShiftState [09:59:04]wFMCommunicate request_size=4 [09:59:04]MH_SAM_APDU [09:59:04]CAPDU: 80 13 01 00 [09:59:04]Write to MH i2c: E2 08 00 42 01 80 13 01 00 00 00 00 00 C0 [09:59:04]Write i2c OK [09:59:04]MH_I2C_Read... [09:59:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:04]Read from MH i2c: E2 [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: E2 0E 00 [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: E2 0E 00 42 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 C8 [09:59:04]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:59:04]wFMCommunicate OK [09:59:04]SAM_PROTO_GetShiftState done [09:59:04]FM_GetShiftState done [09:59:04]req_shift_opened done [09:59:04]requested_item shift.open_date is exist - process it [09:59:04]req_shift_open_date [09:59:04]req_shift_open_date done [09:59:04]produce_requested_data done [09:59:04]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82116,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [09:59:04]process_action_free close_receipt [09:59:04]json_value_free [09:59:04]json_value_free done [09:59:04]process_json_proto returns [09:59:04]Send response to host [09:59:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82116,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [09:59:04]free response buf [09:59:04]execute_script done [09:59:04]execute_script returns [09:59:04]free content buf [09:59:04]Sock 9.Close socket [09:59:04]Sock 9.Thread stoped [09:59:04]OFD Sender: No OFD packet to send [09:59:09]OFD Sender: No OFD packet to send [09:59:14]OFD Sender: No OFD packet to send [09:59:19]OFD Sender: No OFD packet to send [09:59:20]accept exits with 7 [09:59:20]New connection [09:59:20]New thread 3066621284 created [09:59:20]Thread 3066477924 joined [09:59:20]Waiting for new connection... [09:59:20] Sock 7.Parse request [09:59:20]Sock 7.Check first char [09:59:20]Sock 7.First char is OK [09:59:20]request: POST /json_proto HTTP/1.0 [09:59:20]Method: POST [09:59:20]URL: /json_proto [09:59:20]Method is POST - this is cgi request [09:59:20]url: /json_proto [09:59:20]query_string will be loaded in cgi processing [09:59:20]execute_cgi json_proto POST (null) [09:59:20]execute_cgi path=json_proto method=POST [09:59:20]POST find Content-Length [09:59:20]Host: 172.17.44.67:8080 [09:59:20]Content-Length: 753 [09:59:20]Content-Type: application/json [09:59:20] [09:59:20]POST finish read [09:59:20]Found Content-Length = 753 [09:59:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 7.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100657", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:20]execute_script... [09:59:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 7.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100657", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:20]POST & json_proto [09:59:20]process_json_proto [09:59:20]json parsed OK: [09:59:20]protocol is kg_v1.0 [09:59:20]action value=close_receipt [09:59:20]process_action close_receipt [09:59:20]cmd_close_receipt [09:59:20]MH_GetDate [09:59:20]Write to MH i2c: F0 00 00 43 01 33 [09:59:20]Write i2c OK [09:59:20]MH_I2C_Read... [09:59:20]Read from MH i2c: F0 [09:59:20]MH_I2C_Read... [09:59:20]Read from MH i2c: F0 09 00 [09:59:20]MH_I2C_Read... [09:59:20]Read from MH i2c: F0 09 00 43 01 00 F8 DF 10 67 F1 C7 6B 64 11 [09:59:20]GetLastDocTimeStamp 1729159140 [09:59:20]current date 1729159160 [09:59:20]FM_GetShiftState [09:59:20]SAM_PROTO_GetShiftState [09:59:20]wFMCommunicate request_size=4 [09:59:20]MH_SAM_APDU [09:59:20]CAPDU: 80 13 01 00 [09:59:20]Write to MH i2c: E2 08 00 44 01 80 13 01 00 00 00 00 00 C2 [09:59:20]Write i2c OK [09:59:20]MH_I2C_Read... [09:59:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:20]Read from MH i2c: E2 [09:59:20]MH_I2C_Read... [09:59:20]Read from MH i2c: E2 0E 00 [09:59:20]MH_I2C_Read... [09:59:20]Read from MH i2c: E2 0E 00 44 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 CA [09:59:20]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:59:20]wFMCommunicate OK [09:59:20]SAM_PROTO_GetShiftState done [09:59:20]FM_GetShiftState done [09:59:20]opened in 1729125927 [09:59:20]opened+sec_in_day 1729212327 [09:59:20]quantity*price = 0 [09:59:20]sum+1 = 1 [09:59:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 43 17.10.2024 09:59 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30100657 ФМ: 0000000000871843 ФД: 82117 ФПД: 33765776741780 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T095920&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82117&fm=33765776741780&tin=02508201610067®Number=0000000000091680&sum=0 [09:59:21]StoreToDocumentArchive [09:59:21]shift 525 fd 82117 [09:59:21]save to /storage/0525/doc_00082117 [09:59:21]save last doc name /storage/0525/doc_00082117 to /storage/kkm_last_doc_name [09:59:21]save OK [09:59:21]Clear old archive folders... [09:59:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:59:21]tlvbuf is 01E52960 [09:59:21]SAM_PROTO_ClearQueue [09:59:21]wFMCommunicate request_size=4 [09:59:21]MH_SAM_APDU [09:59:21]CAPDU: 80 09 00 00 [09:59:21]Write to MH i2c: E2 08 00 51 01 80 09 00 00 00 00 00 00 C4 [09:59:21]Write i2c OK [09:59:21]MH_I2C_Read... [09:59:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:21]Read from MH i2c: E2 [09:59:21]MH_I2C_Read... [09:59:21]Read from MH i2c: E2 03 00 [09:59:21]MH_I2C_Read... [09:59:21]Read from MH i2c: E2 03 00 51 01 00 90 00 C6 [09:59:21]RAPDU: 90 00 [09:59:21]wFMCommunicate OK [09:59:21]SAM_PROTO_ClearQueue done [09:59:21]KKMCreateOFDPacket [09:59:21]OFDProtocolAddRootSTLVToBuf [09:59:21]FM_MakeSignedData [09:59:21]FM_MakeSignedData [09:59:21]SAM_PROTO_SignData [09:59:21]wFMCommunicate request_size=4 [09:59:21]MH_SAM_APDU [09:59:21]CAPDU: 80 0D 01 02 [09:59:21]Write to MH i2c: E2 08 00 52 01 80 0D 01 02 00 00 00 00 CC [09:59:21]Write i2c OK [09:59:21]MH_I2C_Read... [09:59:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:21]Read from MH i2c: E2 [09:59:21]MH_I2C_Read... [09:59:21]Read from MH i2c: E2 03 00 [09:59:21]MH_I2C_Read... [09:59:21]Read from MH i2c: E2 03 00 52 01 00 90 00 C7 [09:59:21]RAPDU: 90 00 [09:59:21]wFMCommunicate OK [09:59:21]wFMCommunicate request_size=255 [09:59:21]MH_SAM_APDU [09:59:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 58 1B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 F8 DF 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C5 40 01 00 35 04 06 00 1E [09:59:21]Write to MH i2c: E2 02 01 53 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 58 1B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 F8 DF 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C5 40 01 00 35 04 06 00 1E 00 00 F2 [09:59:21]Write i2c OK [09:59:21]MH_I2C_Read... [09:59:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:21]Read from MH i2c: E2 [09:59:21]MH_I2C_Read... [09:59:21]Read from MH i2c: E2 03 00 [09:59:21]MH_I2C_Read... [09:59:21]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [09:59:21]RAPDU: 90 00 [09:59:21]wFMCommunicate OK [09:59:21]wFMCommunicate request_size=10 [09:59:21]MH_SAM_APDU [09:59:21]CAPDU: 80 0D 02 02 05 B5 B5 20 D5 94 [09:59:21]Write to MH i2c: E2 0D 00 54 01 80 0D 02 02 05 00 B5 B5 20 D5 94 00 00 CC [09:59:21]Write i2c OK [09:59:21]MH_I2C_Read... [09:59:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:21]Read from MH i2c: E2 [09:59:21]MH_I2C_Read... [09:59:21]Read from MH i2c: E2 03 00 [09:59:21]MH_I2C_Read... [09:59:21]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [09:59:21]RAPDU: 90 00 [09:59:21]wFMCommunicate OK [09:59:21]wFMCommunicate request_size=4 [09:59:21]MH_SAM_APDU [09:59:21]CAPDU: 80 0D 03 02 [09:59:21]Write to MH i2c: E2 08 00 55 01 80 0D 03 02 00 00 00 00 D1 [09:59:21]Write i2c OK [09:59:21]MH_I2C_Read... [09:59:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:22]Read from MH i2c: E2 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: E2 0B 00 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: E2 0B 00 55 01 00 FE 8D BC 10 D7 E4 B8 5D 90 00 F9 [09:59:22]RAPDU: FE 8D BC 10 D7 E4 B8 5D 90 00 [09:59:22]wFMCommunicate OK [09:59:22]SAM_PROTO_SignData done [09:59:22]FM_MakeSignedData done [09:59:22]CreateOFDProtocolMessage [09:59:22]wFMCommunicate request_size=4 [09:59:22]MH_SAM_APDU [09:59:22]CAPDU: 80 11 00 00 [09:59:22]Write to MH i2c: E2 08 00 56 01 80 11 00 00 00 00 00 00 D1 [09:59:22]Write i2c OK [09:59:22]MH_I2C_Read... [09:59:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:22]Read from MH i2c: E2 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: E2 17 00 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: E2 17 00 56 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 23 [09:59:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:59:22]wFMCommunicate OK [09:59:22]CreateOFDProtocolMessage done [09:59:22]OFDSenderStorePacket 82117 [09:59:22]StoreOFDPacket docnum=82117 [09:59:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 95 F1 07 01 84 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 58 1B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 F8 DF 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C5 40 01 00 35 04 06 00 1E B5 B5 20 D5 94 FE 8D BC 10 D7 E4 B8 5D [09:59:22]CheckFolder [09:59:22]dirname=/storage/ofd_packets [09:59:22]CheckFolder done [09:59:22]ProducePacketName [09:59:22]name=ofd_packets/00082117 [09:59:22]NVStorageSaveData ofd_packets/00082117 [09:59:22]File name is /storage/ofd_packets/00082117 [09:59:22]Write 301 bytes [09:59:22]NVStorageSaveData done [09:59:22]OFDSenderStorePacket done [09:59:22]KKMCreateOFDPacket done [09:59:22]NVStorageSaveData kkm_last_timestamp [09:59:22]File name is /storage/kkm_last_timestamp [09:59:22]Write 4 bytes [09:59:22]NVStorageSaveData done [09:59:22]OFD Sender: Processing packet 82117 [packets to send 254, broken 253] [09:59:22]ProducePacketName [09:59:22]name=ofd_packets/00082117 [09:59:22]OFD Sender: To server: pG, [09:59:22]CommunicateWithHost lk.salyk.kg:30040 [09:59:22]ConnectInit lk.salyk.kg [09:59:22]ExternCall_PrintAddStr [09:59:22]wPrintStart [09:59:22]Write to MH i2c: 01 00 00 57 01 58 [09:59:22]Write i2c OK [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: 01 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: 01 07 00 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: 01 07 00 57 01 00 00 00 00 00 FF 0F 6D [09:59:22]RasterBufferAndPrint [09:59:22]line Счет N : (1)918624 [09:59:22]line ИНН: 02508201610067 [09:59:22]line Контрольно-Кассовый Чек [09:59:22]line ПРОДАЖА [09:59:22]line ТРК (МРК, ГНК) : 11 [09:59:22]line Товар: 2710124130 [09:59:22]line Аи-92-К-4 [09:59:22]line 7.000 * 0.00 [09:59:22]line = 0.00 [09:59:22]line НДС 12% НСП 1% [09:59:22]line > о реализуемом товаре [09:59:22]line ИТОГО: 0.00 [09:59:22]line НСП 1% : 0.00 [09:59:22]line НДС 12% : 0.00 [09:59:22]line Наличными: 0.00 [09:59:22]line Безнал.: 0.00 [09:59:22]line Место: АЗС № 114 "Партнер Нефть" [09:59:22]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:59:22]line СНО: Общий режим [09:59:22]line Чек 43 17.10.2024 09:59 [09:59:22]line Смена: 525 ФФД: 1.0 [09:59:22]line ЗНМ: 0300000086 [09:59:22]line РНМ: 0000000000091680 [09:59:22]line Версия ККМ: 001 [09:59:22]line Талоны: ТК ГПНА Online [09:59:22]line 30100657 [09:59:22]line ФМ: 0000000000871843 [09:59:22]line ФД: 82117 [09:59:22]line ФПД: 33765776741780 [09:59:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T095920&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82117&fm=33765776741780&tin=02508201610067®Number=0000000000091680&sum=0 [09:59:22]written 0, free lines is 4095 [09:59:22]Connected sock=12 [09:59:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 95 F1 07 01 84 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 58 1B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 F8 DF 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C5 40 01 00 35 04 06 00 1E B5 B5 20 D5 94 FE 8D BC 10 D7 E4 B8 5D [09:59:22]Write to MH i2c: 01 00 00 81 01 82 [09:59:22]Write i2c OK [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: 01 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: 01 07 00 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: 01 07 00 81 01 00 00 00 00 00 E1 0C 76 [09:59:22]RasterBufferAndPrint [09:59:22]line [09:59:22]line [09:59:22]line [09:59:22]line [09:59:22]line [09:59:22]written 0, free lines is 3303 [09:59:22]MH_Cut [09:59:22]Write to MH i2c: D1 01 00 88 01 01 5B [09:59:22]Write i2c OK [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: D1 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: D1 01 00 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: D1 01 00 88 01 00 5A [09:59:22]Write to MH i2c: 01 00 00 89 01 8A [09:59:22]Write i2c OK [09:59:22]MH_I2C_Read... [09:59:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 F5 85 47 00 01 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C5 40 01 00 F4 03 04 00 37 85 10 67 B6 04 01 00 00 C3 78 1F A4 99 61 00 13 [09:59:23]CommunicateWithHost err = 0 [09:59:23]CheckOFDResponse [09:59:23]1017 (14) - 77093643461234 [09:59:23]1041 (16) - 0000000000871843 [09:59:23]1040 (4) - 82117 [09:59:23]1012 (4) - 17.10.2024 03:32 [09:59:23]1206 (1) - 0 [09:59:23]OFD Sender: Remove packet 82117 [09:59:23]ProducePacketName [09:59:23]name=ofd_packets/00082117 [09:59:23]NVStorageDeleteData [09:59:23]OFD Sender: No OFD packet to send [09:59:23]*** Cut start [09:59:23]*** Partial cut [09:59:23]*** CUTSNS_PIN = 1 [09:59:23]*** CUTSNS_PIN = 0 [09:59:23]*** Brake cut motor [09:59:24]Read from MH i2c: 01 [09:59:24]MH_I2C_Read... [09:59:24]*** Stop cut motor [09:59:24]*** Cut end [09:59:24]Read from MH i2c: 01 07 00 [09:59:24]MH_I2C_Read... [09:59:24]Read from MH i2c: 01 07 00 89 01 00 00 00 00 00 FF 0F 9F [09:59:24]process_action close_receipt done [09:59:24]requested_data is exist [09:59:24]produce_requested_data [09:59:24]requested_item fm.sn is exist - process it [09:59:24]wFMCommunicate request_size=4 [09:59:24]MH_SAM_APDU [09:59:24]CAPDU: 80 11 00 00 [09:59:24]Write to MH i2c: E2 08 00 8A 01 80 11 00 00 00 00 00 00 05 [09:59:24]Write i2c OK [09:59:24]MH_I2C_Read... [09:59:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:24]Read from MH i2c: E2 [09:59:24]MH_I2C_Read... [09:59:24]Read from MH i2c: E2 17 00 [09:59:24]MH_I2C_Read... [09:59:24]Read from MH i2c: E2 17 00 8A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 57 [09:59:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:59:24]wFMCommunicate OK [09:59:24]requested_item fd.num is exist - process it [09:59:24]SAM_PROTO_GetFieldsCounters [09:59:24]wFMCommunicate request_size=4 [09:59:24]MH_SAM_APDU [09:59:24]CAPDU: 80 13 00 00 [09:59:24]Write to MH i2c: E2 08 00 8B 01 80 13 00 00 00 00 00 00 08 [09:59:24]Write i2c OK [09:59:24]MH_I2C_Read... [09:59:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:24]Read from MH i2c: E2 [09:59:24]MH_I2C_Read... [09:59:24]Read from MH i2c: E2 62 00 [09:59:24]MH_I2C_Read... [09:59:24]Read from MH i2c: E2 62 00 8B 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C5 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [09:59:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C5 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:59:24]wFMCommunicate OK [09:59:24]SAM_PROTO_GetFieldsCounters done [09:59:24]requested_item shift.num is exist - process it [09:59:24]requested_item shift.opened is exist - process it [09:59:24]req_shift_opened [09:59:24]FM_GetShiftState [09:59:24]SAM_PROTO_GetShiftState [09:59:24]wFMCommunicate request_size=4 [09:59:24]MH_SAM_APDU [09:59:24]CAPDU: 80 13 01 00 [09:59:24]Write to MH i2c: E2 08 00 8C 01 80 13 01 00 00 00 00 00 0A [09:59:24]Write i2c OK [09:59:24]MH_I2C_Read... [09:59:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:24]Read from MH i2c: E2 [09:59:24]MH_I2C_Read... [09:59:24]Read from MH i2c: E2 0E 00 [09:59:24]MH_I2C_Read... [09:59:24]Read from MH i2c: E2 0E 00 8C 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 12 [09:59:24]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [09:59:24]wFMCommunicate OK [09:59:24]SAM_PROTO_GetShiftState done [09:59:24]FM_GetShiftState done [09:59:24]req_shift_opened done [09:59:24]requested_item shift.open_date is exist - process it [09:59:24]req_shift_open_date [09:59:24]req_shift_open_date done [09:59:24]produce_requested_data done [09:59:24]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82117,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [09:59:24]process_action_free close_receipt [09:59:24]json_value_free [09:59:24]json_value_free done [09:59:24]process_json_proto returns [09:59:24]Send response to host [09:59:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82117,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [09:59:24]free response buf [09:59:24]execute_script done [09:59:24]execute_script returns [09:59:24]free content buf [09:59:24]Sock 7.Close socket [09:59:24]Sock 7.Thread stoped [09:59:28]OFD Sender: No OFD packet to send [09:59:33]OFD Sender: No OFD packet to send [09:59:38]OFD Sender: No OFD packet to send [09:59:43]OFD Sender: No OFD packet to send [09:59:48]OFD Sender: No OFD packet to send [09:59:53]OFD Sender: No OFD packet to send [09:59:58]OFD Sender: No OFD packet to send [10:00:03]OFD Sender: No OFD packet to send [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 53 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725AE (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 44374106+1684785137=1729159243 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 54 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 4B E0 10 67 F1 C7 6B 64 28 [10:00:43]Current date/time: 17.10.2024 10:00 [10:00:43]FM_Init [10:00:43]wFMConnect [10:00:43]MH_SAM_On [10:00:43]Write to MH i2c: E0 00 00 08 00 E7 [10:00:43]Write i2c OK [10:00:43]MH_I2C_Read... [10:00:43]*** iso7816_init finished! [10:00:43]*** atr: [10:00:43]*** 0F 3B D5 18 FF 81 91 FE [10:00:43]*** 1F C3 80 73 C8 21 10 0A [10:00:43]*** 00 00 00 00 00 00 00 00 [10:00:43]*** 00 00 00 00 00 00 00 00 [10:00:43]*** 00 00 00 00 00 00 00 00 [10:00:43]*** 00 00 00 00 00 00 00 00 [10:00:43]*** 00 00 00 00 00 00 00 00 [10:00:43]*** 00 00 00 00 00 00 00 00 [10:00:43]Read from MH i2c: E0 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: E0 10 00 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [10:00:43]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [10:00:43]wFMCommunicate request_size=10 [10:00:43]MH_SAM_APDU [10:00:43]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [10:00:43]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [10:00:43]Write i2c OK [10:00:43]MH_I2C_Read... [10:00:43]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [10:00:43]Read from MH i2c: E2 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: E2 03 00 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [10:00:43]RAPDU: 90 00 [10:00:43]wFMCommunicate OK [10:00:43]wFMCommunicate request_size=4 [10:00:43]MH_SAM_APDU [10:00:43]CAPDU: 80 11 00 00 [10:00:43]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [10:00:43]Write i2c OK [10:00:43]MH_I2C_Read... [10:00:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:43]Read from MH i2c: E2 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: E2 17 00 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D6 [10:00:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:00:43]wFMCommunicate OK [10:00:43]Detected FM SN is 0000000000871843 [10:00:43]Stored FM SN is 0000000000871843 [10:00:43]wFMCommunicate request_size=9 [10:00:43]MH_SAM_APDU [10:00:43]CAPDU: 80 16 00 00 04 C3 A3 00 00 [10:00:43]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 C3 A3 00 00 00 00 F8 [10:00:43]Write i2c OK [10:00:43]MH_I2C_Read... [10:00:43]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [10:00:43]Read from MH i2c: E2 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: E2 03 00 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [10:00:43]RAPDU: 90 00 [10:00:43]wFMCommunicate OK [10:00:43]FM PIN OK [10:00:43]wFMCommunicate request_size=8 [10:00:43]MH_SAM_APDU [10:00:43]CAPDU: 80 14 04 00 03 02 00 01 [10:00:43]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [10:00:43]Write i2c OK [10:00:43]MH_I2C_Read... [10:00:43]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [10:00:43]Read from MH i2c: E2 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: E2 03 00 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [10:00:43]RAPDU: 90 00 [10:00:43]wFMCommunicate OK [10:00:43]wFMCommunicate request_size=13 [10:00:43]MH_SAM_APDU [10:00:43]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [10:00:43]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [10:00:43]Write i2c OK [10:00:43]MH_I2C_Read... [10:00:43]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [10:00:43]Read from MH i2c: E2 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: E2 03 00 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [10:00:43]RAPDU: 90 00 [10:00:43]wFMCommunicate OK [10:00:43]wFMCommunicate request_size=4 [10:00:43]MH_SAM_APDU [10:00:43]CAPDU: 80 11 00 00 [10:00:43]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [10:00:43]Write i2c OK [10:00:43]MH_I2C_Read... [10:00:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:43]Read from MH i2c: E2 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: E2 17 00 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DA [10:00:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:00:43]wFMCommunicate OK [10:00:43]DocumentArchiveInit [10:00:43]Start Httpd... [10:00:43]Httpd thread 3066944868 created [10:00:43]Write to MH i2c: 01 00 00 0F 00 0F [10:00:43]Write i2c OK [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: 01 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: 01 07 00 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [10:00:43]MH Int Process started [10:00:43]Allocated Socket 7 [10:00:43]Bind OK [10:00:43]Listen OK [10:00:43]httpd running on port 8080 [10:00:43]Waiting for new connection... [10:00:43]OFD Sender: No OFD packet to send [10:00:45]int [10:00:45]Write to MH i2c: 01 00 00 10 00 10 [10:00:45]*** FLAG_PRN_KEY set [10:00:45]Write i2c OK [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: 01 [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: 01 07 00 [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: 01 07 00 10 00 00 08 00 00 00 FF 0F 2D [10:00:45]state=0 [10:00:45]Key pressed [10:00:45]Feed [10:00:45]Write to MH i2c: D8 00 00 11 00 E8 [10:00:45]Write i2c OK [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: D8 [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: D8 01 00 [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: D8 01 00 11 00 00 E9 [10:00:45]int [10:00:45]Write to MH i2c: 01 00 00 12 00 12 [10:00:45]*** FLAG_PRN_KEY reset [10:00:45]Write i2c OK [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: 01 [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: 01 07 00 [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: 01 07 00 12 00 00 00 00 00 00 FF 0F 27 [10:00:45]state=2 [10:00:45]Stop feed [10:00:46]int [10:00:46]Write to MH i2c: 01 00 00 13 00 13 [10:00:46]*** FLAG_PRN_KEY set [10:00:46]Write i2c OK [10:00:46]MH_I2C_Read... [10:00:46]Read from MH i2c: 01 [10:00:46]MH_I2C_Read... [10:00:46]Read from MH i2c: 01 07 00 [10:00:46]MH_I2C_Read... [10:00:46]Read from MH i2c: 01 07 00 13 00 00 08 00 00 00 FF 0F 30 [10:00:46]state=0 [10:00:46]Key pressed [10:00:46]Feed [10:00:46]Write to MH i2c: D8 00 00 14 00 EB [10:00:46]Write i2c OK [10:00:46]MH_I2C_Read... [10:00:46]Read from MH i2c: D8 [10:00:46]MH_I2C_Read... [10:00:46]Read from MH i2c: D8 01 00 [10:00:46]MH_I2C_Read... [10:00:46]Read from MH i2c: D8 01 00 14 00 00 EC [10:00:46]int [10:00:46]Write to MH i2c: 01 00 00 15 00 15 [10:00:46]Write i2c OK [10:00:46]MH_I2C_Read... [10:00:46]Read from MH i2c: 01 [10:00:46]MH_I2C_Read... [10:00:46]Read from MH i2c: 01 07 00 [10:00:46]MH_I2C_Read... [10:00:46]Read from MH i2c: 01 07 00 15 00 00 48 00 00 00 3C 00 A0 [10:00:46]state=2 [10:00:46]Key pressed [10:00:47]int [10:00:47]Write to MH i2c: 01 00 00 16 00 16 [10:00:47]*** FLAG_PRN_KEY reset [10:00:47]Write i2c OK [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: 01 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: 01 07 00 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: 01 07 00 16 00 00 00 00 00 00 F6 0F 22 [10:00:47]state=2 [10:00:47]Stop feed [10:00:47]int [10:00:47]Write to MH i2c: 01 00 00 17 00 17 [10:00:47]*** FLAG_PRN_KEY set [10:00:47]Write i2c OK [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: 01 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: 01 07 00 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: 01 07 00 17 00 00 08 00 00 00 FF 0F 34 [10:00:47]state=0 [10:00:47]Key pressed [10:00:47]Feed [10:00:47]Write to MH i2c: D8 00 00 18 00 EF [10:00:47]Write i2c OK [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: D8 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: D8 01 00 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: D8 01 00 18 00 00 F0 [10:00:47]int [10:00:47]Write to MH i2c: 01 00 00 19 00 19 [10:00:47]Write i2c OK [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: 01 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: 01 07 00 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: 01 07 00 19 00 00 48 00 00 00 3C 00 A4 [10:00:47]state=2 [10:00:47]Key pressed [10:00:48]int [10:00:48]Write to MH i2c: 01 00 00 1A 00 1A [10:00:48]*** FLAG_PRN_KEY reset [10:00:48]Write i2c OK [10:00:48]MH_I2C_Read... [10:00:48]Read from MH i2c: 01 [10:00:48]MH_I2C_Read... [10:00:48]Read from MH i2c: 01 07 00 [10:00:48]MH_I2C_Read... [10:00:48]Read from MH i2c: 01 07 00 1A 00 00 00 00 00 00 F6 0F 26 [10:00:48]state=2 [10:00:48]Stop feed [10:00:48]OFD Sender: No OFD packet to send [10:00:51]accept exits with 8 [10:00:51]New connection [10:00:51]New thread 3066658148 created [10:00:51]Waiting for new connection... [10:00:51] Sock 8.Parse request [10:00:51]Sock 8.Check first char [10:00:51]Sock 8.First char is OK [10:00:51]request: POST /json_proto HTTP/1.0 [10:00:51]Method: POST [10:00:51]URL: /json_proto [10:00:51]Method is POST - this is cgi request [10:00:51]url: /json_proto [10:00:51]query_string will be loaded in cgi processing [10:00:51]execute_cgi json_proto POST (null) [10:00:51]execute_cgi path=json_proto method=POST [10:00:51]POST find Content-Length [10:00:51]Host: 172.17.44.67:8080 [10:00:51]Content-Length: 215 [10:00:51]Content-Type: application/json [10:00:51] [10:00:51]POST finish read [10:00:51]Found Content-Length = 215 [10:00: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" ] } } [10:00:51]execute_script... [10:00: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" ] } } [10:00:51]POST & json_proto [10:00:51]process_json_proto [10:00:51]json parsed OK: [10:00:51]protocol is kg_v1.0 [10:00:51]action value=get_value [10:00:51]process_action get_value [10:00:51]cmd_get_value [10:00:51]process_action get_value done [10:00:51]requested_data is exist [10:00:51]produce_requested_data [10:00:51]requested_item kkm.sn is exist - process it [10:00:51]requested_item kkm.ver is exist - process it [10:00:51]requested_item fm.sn is exist - process it [10:00:51]wFMCommunicate request_size=4 [10:00:51]MH_SAM_APDU [10:00:51]CAPDU: 80 11 00 00 [10:00:51]Write to MH i2c: E2 08 00 1B 00 80 11 00 00 00 00 00 00 95 [10:00:51]Write i2c OK [10:00:51]MH_I2C_Read... [10:00:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:51]Read from MH i2c: E2 [10:00:51]MH_I2C_Read... [10:00:51]Read from MH i2c: E2 17 00 [10:00:51]MH_I2C_Read... [10:00:51]Read from MH i2c: E2 17 00 1B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 E7 [10:00:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:00:51]wFMCommunicate OK [10:00:51]requested_item fd.num is exist - process it [10:00:51]SAM_PROTO_GetFieldsCounters [10:00:51]wFMCommunicate request_size=4 [10:00:51]MH_SAM_APDU [10:00:51]CAPDU: 80 13 00 00 [10:00:51]Write to MH i2c: E2 08 00 1C 00 80 13 00 00 00 00 00 00 98 [10:00:51]Write i2c OK [10:00:51]MH_I2C_Read... [10:00:51]Read from MH i2c: E2 [10:00:51]MH_I2C_Read... [10:00:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:51]Read from MH i2c: E2 62 00 [10:00:51]MH_I2C_Read... [10:00:51]Read from MH i2c: E2 62 00 1C 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C5 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [10:00:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C5 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:00:51]wFMCommunicate OK [10:00:51]SAM_PROTO_GetFieldsCounters done [10:00:51]requested_item shift.num is exist - process it [10:00:51]requested_item shift.opened is exist - process it [10:00:51]req_shift_opened [10:00:51]FM_GetShiftState [10:00:51]SAM_PROTO_GetShiftState [10:00:51]wFMCommunicate request_size=4 [10:00:51]MH_SAM_APDU [10:00:51]CAPDU: 80 13 01 00 [10:00:51]Write to MH i2c: E2 08 00 1D 00 80 13 01 00 00 00 00 00 9A [10:00:51]Write i2c OK [10:00:51]MH_I2C_Read... [10:00:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:51]Read from MH i2c: E2 [10:00:51]MH_I2C_Read... [10:00:51]Read from MH i2c: E2 0E 00 [10:00:51]MH_I2C_Read... [10:00:51]Read from MH i2c: E2 0E 00 1D 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 A2 [10:00:51]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:00:51]wFMCommunicate OK [10:00:51]SAM_PROTO_GetShiftState done [10:00:51]FM_GetShiftState done [10:00:51]req_shift_opened done [10:00:51]requested_item shift.open_date is exist - process it [10:00:51]req_shift_open_date [10:00:51]req_shift_open_date done [10:00:51]produce_requested_data done [10:00:51]produce_requested_data return {"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82117,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [10:00:51]process_action_free get_value [10:00:51]json_value_free [10:00:51]json_value_free done [10:00:51]process_json_proto returns [10:00:51]Send response to host [10:00:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82117,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [10:00:51]free response buf [10:00:51]execute_script done [10:00:51]execute_script returns [10:00:51]free content buf [10:00:51]Sock 8.Close socket [10:00:51]Sock 8.Thread stoped [10:00:51]accept exits with 9 [10:00:51]New connection [10:00:51]New thread 3066514788 created [10:00:51]Thread 3066658148 joined [10:00:51]Waiting for new connection... [10:00:51] Sock 9.Parse request [10:00:51]Sock 9.Check first char [10:00:51]Sock 9.First char is OK [10:00:51]request: POST /json_proto HTTP/1.0 [10:00:51]Method: POST [10:00:51]URL: /json_proto [10:00:51]Method is POST - this is cgi request [10:00:51]url: /json_proto [10:00:51]query_string will be loaded in cgi processing [10:00:51]execute_cgi json_proto POST (null) [10:00:51]execute_cgi path=json_proto method=POST [10:00:51]POST find Content-Length [10:00:51]Host: 172.17.44.67:8080 [10:00:51]Content-Length: 331 [10:00:51]Content-Type: application/json [10:00:51] [10:00:51]POST finish read [10:00:51]Found Content-Length = 331 [10:00:51]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" ] } } [10:00:51]execute_script... [10:00:51]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" ] } } [10:00:51]POST & json_proto [10:00:51]process_json_proto [10:00:51]json parsed OK: [10:00:51]protocol is kg_v1.0 [10:00:51]action value=get_value [10:00:51]process_action get_value [10:00:51]cmd_get_value [10:00:51]process_action get_value done [10:00:51]requested_data is exist [10:00:51]produce_requested_data [10:00:52]requested_item fm.sale.total is exist - process it [10:00:52]SAM_PROTO_GetFMData [10:00:52]wFMCommunicate request_size=4 [10:00:52]MH_SAM_APDU [10:00:52]CAPDU: 80 13 03 00 [10:00:52]Write to MH i2c: E2 08 00 1E 00 80 13 03 00 00 00 00 00 9D [10:00:52]Write i2c OK [10:00:52]MH_I2C_Read... [10:00:52]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:00:52]Read from MH i2c: E2 [10:00:52]MH_I2C_Read... [10:00:52]Read from MH i2c: E2 FD 00 [10:00:52]MH_I2C_Read... [10:00:52]Read from MH i2c: E2 FD 00 1E 00 00 C7 04 85 04 C3 04 6E 04 04 00 AB 3C 01 00 69 04 A3 00 6F 04 04 00 16 3A 01 00 B1 04 05 00 27 D9 A2 7A 01 70 04 05 00 DC 09 AB 40 01 72 04 04 00 4B CF F7 39 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 09 39 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 CC 02 5A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 95 02 00 00 B1 04 04 00 F0 98 04 13 70 04 04 00 88 56 04 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F0 0C 05 02 EF 90 00 B2 [10:00:52]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 AB 3C 01 00 69 04 A3 00 6F 04 04 00 16 3A 01 00 B1 04 05 00 27 D9 A2 7A 01 70 04 05 00 DC 09 AB 40 01 72 04 04 00 4B CF F7 39 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 09 39 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 CC 02 5A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 95 02 00 00 B1 04 04 00 F0 98 04 13 70 04 04 00 88 56 04 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F0 0C 05 02 EF 90 00 [10:00:52]wFMCommunicate OK [10:00:52]wFMCommunicate request_size=4 [10:00:52]MH_SAM_APDU [10:00:52]CAPDU: 80 17 00 00 [10:00:52]Write to MH i2c: E2 08 00 1F 00 80 17 00 00 00 00 00 00 9F [10:00:52]Write i2c OK [10:00:52]MH_I2C_Read... [10:00:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:00:52]Read from MH i2c: E2 [10:00:52]MH_I2C_Read... [10:00:52]Read from MH i2c: E2 FD 00 [10:00:52]MH_I2C_Read... [10:00:52]Read from MH i2c: E2 FD 00 1F 00 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 26 16 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 90 00 13 [10:00:52]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 26 16 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 90 00 [10:00:52]wFMCommunicate OK [10:00:52]wFMCommunicate request_size=4 [10:00:52]MH_SAM_APDU [10:00:52]CAPDU: 80 17 00 00 [10:00:52]Write to MH i2c: E2 08 00 20 00 80 17 00 00 00 00 00 00 A0 [10:00:52]Write i2c OK [10:00:52]MH_I2C_Read... [10:00:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:00:53]Read from MH i2c: E2 [10:00:53]MH_I2C_Read... [10:00:53]Read from MH i2c: E2 FD 00 [10:00:53]MH_I2C_Read... [10:00:53]Read from MH i2c: E2 FD 00 20 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 78 [10:00:53]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [10:00:53]wFMCommunicate OK [10:00:53]wFMCommunicate request_size=4 [10:00:53]MH_SAM_APDU [10:00:53]CAPDU: 80 17 00 00 [10:00:53]Write to MH i2c: E2 08 00 21 00 80 17 00 00 00 00 00 00 A1 [10:00:53]Write i2c OK [10:00:53]MH_I2C_Read... [10:00:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:00:53]Read from MH i2c: E2 [10:00:53]MH_I2C_Read... [10:00:53]Read from MH i2c: E2 FD 00 [10:00:53]MH_I2C_Read... [10:00:53]Read from MH i2c: E2 FD 00 21 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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 1C [10:00:53]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [10:00:53]wFMCommunicate OK [10:00:53]wFMCommunicate request_size=4 [10:00:53]MH_SAM_APDU [10:00:53]CAPDU: 80 17 00 00 [10:00:53]Write to MH i2c: E2 08 00 22 00 80 17 00 00 00 00 00 00 A2 [10:00:53]Write i2c OK [10:00:53]MH_I2C_Read... [10:00:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [10:00:53]Read from MH i2c: E2 [10:00:53]MH_I2C_Read... [10:00:53]Read from MH i2c: E2 E4 00 [10:00:53]MH_I2C_Read... [10:00:53]Read from MH i2c: E2 E4 00 22 00 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 82 [10:00:53]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:00:53]wFMCommunicate OK [10:00:53]SAM_PROTO_GetFMData done [10:00:53]requested_item fm.sale_refund.total is exist - process it [10:00:53]requested_item fm.buy.total is exist - process it [10:00:53]requested_item shift.sale.total is exist - process it [10:00:53]SAM_PROTO_GetShiftData [10:00:53]wFMCommunicate request_size=4 [10:00:53]MH_SAM_APDU [10:00:53]CAPDU: 80 13 02 00 [10:00:53]Write to MH i2c: E2 08 00 23 00 80 13 02 00 00 00 00 00 A1 [10:00:53]Write i2c OK [10:00:53]MH_I2C_Read... [10:00:53]OFD Sender: No OFD packet to send [10:00:54]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:00:54]Read from MH i2c: E2 [10:00:54]MH_I2C_Read... [10:00:54]Read from MH i2c: E2 FD 00 [10:00:54]MH_I2C_Read... [10:00:54]Read from MH i2c: E2 FD 00 23 00 00 AE 04 AA 04 AA 04 6E 04 04 00 2B 00 00 00 69 04 9B 00 6F 04 04 00 2B 00 00 00 B1 04 03 00 0E 40 18 70 04 03 00 A0 3A 16 72 04 03 00 6E 05 02 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 6F 93 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 F2 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 AF [10:00:54]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 2B 00 00 00 69 04 9B 00 6F 04 04 00 2B 00 00 00 B1 04 03 00 0E 40 18 70 04 03 00 A0 3A 16 72 04 03 00 6E 05 02 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 6F 93 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 F2 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [10:00:54]wFMCommunicate OK [10:00:54]wFMCommunicate request_size=4 [10:00:54]MH_SAM_APDU [10:00:54]CAPDU: 80 17 00 00 [10:00:54]Write to MH i2c: E2 08 00 24 00 80 17 00 00 00 00 00 00 A4 [10:00:54]Write i2c OK [10:00:54]MH_I2C_Read... [10:00:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:00:54]Read from MH i2c: E2 [10:00:54]MH_I2C_Read... [10:00:54]Read from MH i2c: E2 FD 00 [10:00:54]MH_I2C_Read... [10:00:54]Read from MH i2c: E2 FD 00 24 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 C6 [10:00:54]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [10:00:54]wFMCommunicate OK [10:00:54]wFMCommunicate request_size=4 [10:00:54]MH_SAM_APDU [10:00:54]CAPDU: 80 17 00 00 [10:00:54]Write to MH i2c: E2 08 00 25 00 80 17 00 00 00 00 00 00 A5 [10:00:54]Write i2c OK [10:00:54]MH_I2C_Read... [10:00:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:00:54]Read from MH i2c: E2 [10:00:54]MH_I2C_Read... [10:00:54]Read from MH i2c: E2 FD 00 [10:00:54]MH_I2C_Read... [10:00:54]Read from MH i2c: E2 FD 00 25 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 5C [10:00:54]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [10:00:54]wFMCommunicate OK [10:00:54]wFMCommunicate request_size=4 [10:00:54]MH_SAM_APDU [10:00:54]CAPDU: 80 17 00 00 [10:00:54]Write to MH i2c: E2 08 00 26 00 80 17 00 00 00 00 00 00 A6 [10:00:54]Write i2c OK [10:00:54]MH_I2C_Read... [10:00:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:00:55]Read from MH i2c: E2 [10:00:55]MH_I2C_Read... [10:00:55]Read from MH i2c: E2 FD 00 [10:00:55]MH_I2C_Read... [10:00:55]Read from MH i2c: E2 FD 00 26 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 18 [10:00:55]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [10:00:55]wFMCommunicate OK [10:00:55]wFMCommunicate request_size=4 [10:00:55]MH_SAM_APDU [10:00:55]CAPDU: 80 17 00 00 [10:00:55]Write to MH i2c: E2 08 00 27 00 80 17 00 00 00 00 00 00 A7 [10:00:55]Write i2c OK [10:00:55]MH_I2C_Read... [10:00:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [10:00:55]Read from MH i2c: E2 [10:00:55]MH_I2C_Read... [10:00:55]Read from MH i2c: E2 CB 00 [10:00:55]MH_I2C_Read... [10:00:55]Read from MH i2c: E2 CB 00 27 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 90 [10:00:55]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:00:55]wFMCommunicate OK [10:00:55]SAM_PROTO_GetShiftData done [10:00:55]requested_item shift.sale.total_cash is exist - process it [10:00:55]requested_item shift.sale_refund.total is exist - process it [10:00:55]requested_item shift.sale_refund.total_cash is exist - process it [10:00:55]requested_item shift.buy.total is exist - process it [10:00:55]requested_item shift.buy.total_cash is exist - process it [10:00:55]produce_requested_data done [10:00:55]produce_requested_data return {"fm.sale.total":63524600.71,"fm.sale_refund.total":3190684.00,"fm.buy.total":0.00,"shift.sale.total":15892.62,"shift.sale.total_cash":14568.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} [10:00:55]process_action_free get_value [10:00:55]json_value_free [10:00:55]json_value_free done [10:00:55]process_json_proto returns [10:00:55]Send response to host [10:00:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":63524600.71,"fm.sale_refund.total":3190684.00,"fm.buy.total":0.00,"shift.sale.total":15892.62,"shift.sale.total_cash":14568.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}}} [10:00:55]free response buf [10:00:55]execute_script done [10:00:55]execute_script returns [10:00:55]free content buf [10:00:55]Sock 9.Close socket [10:00:55]Sock 9.Thread stoped [10:00:58]OFD Sender: No OFD packet to send [10:01:03]OFD Sender: No OFD packet to send [10:01:08]OFD Sender: No OFD packet to send [10:01:13]OFD Sender: No OFD packet to send [10:01:18]OFD Sender: No OFD packet to send [10:01:23]OFD Sender: No OFD packet to send [10:01:28]OFD Sender: No OFD packet to send [10:01:33]OFD Sender: No OFD packet to send [10:01:38]OFD Sender: No OFD packet to send [10:01:43]OFD Sender: No OFD packet to send [10:01:48]OFD Sender: No OFD packet to send [10:01:53]OFD Sender: No OFD packet to send [10:01:58]OFD Sender: No OFD packet to send [10:02:03]OFD Sender: No OFD packet to send [10:02:08]OFD Sender: No OFD packet to send [10:02:13]OFD Sender: No OFD packet to send [10:02: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:59]OFD Sender: No OFD packet to send [10:03:04]OFD Sender: No OFD packet to send [10:03:09]OFD Sender: No OFD packet to send [10:03:14]OFD Sender: No OFD packet to send [10:03:19]OFD Sender: No OFD packet to send [10:03:24]OFD Sender: No OFD packet to send [10:03:29]OFD Sender: No OFD packet to send [10:03:34]OFD Sender: No OFD packet to send [10:03:39]OFD Sender: No OFD packet to send [10:03:44]OFD Sender: No OFD packet to send [10:03:49]OFD Sender: No OFD packet to send [10:03:54]OFD Sender: No OFD packet to send [10:03:59]OFD Sender: No OFD packet to send [10:04:04]OFD Sender: No OFD packet to send [10:04:09]OFD Sender: No OFD packet to send [10:04:14]OFD Sender: No OFD packet to send [10:04:19]OFD Sender: No OFD packet to send [10:04:24]OFD Sender: No OFD packet to send [10:04:29]OFD Sender: No OFD packet to send [10:04:34]OFD Sender: No OFD packet to send [10:04:39]OFD Sender: No OFD packet to send [10:04:44]OFD Sender: No OFD packet to send [10:04:49]OFD Sender: No OFD packet to send [10:04:54]OFD Sender: No OFD packet to send [10:04:59]OFD Sender: No OFD packet to send [10:05:04]OFD Sender: No OFD packet to send [10:05:09]OFD Sender: No OFD packet to send [10:05:14]OFD Sender: No OFD packet to send [10:05:19]OFD Sender: No OFD packet to send [10:05:24]OFD Sender: No OFD packet to send [10:05:29]OFD Sender: No OFD packet to send [10:05:34]OFD Sender: No OFD packet to send [10:05:39]OFD Sender: No OFD packet to send [10:05:44]OFD Sender: No OFD packet to send [10:05:49]OFD Sender: No OFD packet to send [10:05:54]OFD Sender: No OFD packet to send [10:05:58]recv_with_timeout no data received [10:05:59]OFD Sender: No OFD packet to send [10:06:04]OFD Sender: No OFD packet to send [10:06:09]OFD Sender: No OFD packet to send [10:06:14]OFD Sender: No OFD packet to send [10:06:19]OFD Sender: No OFD packet to send [10:06:24]OFD Sender: No OFD packet to send [10:06:29]OFD Sender: No OFD packet to send [10:06:34]OFD Sender: No OFD packet to send [10:06:39]OFD Sender: No OFD packet to send [10:06:44]OFD Sender: No OFD packet to send [10:06:49]OFD Sender: No OFD packet to send [10:06:54]OFD Sender: No OFD packet to send [10:06:59]OFD Sender: No OFD packet to send [10:07:04]OFD Sender: No OFD packet to send [10:07:09]OFD Sender: No OFD packet to send [10:07:14]OFD Sender: No OFD packet to send [10:07:19]OFD Sender: No OFD packet to send [10:07:24]OFD Sender: No OFD packet to send [10:07:29]OFD Sender: No OFD packet to send [10:07:34]OFD Sender: No OFD packet to send [10:07:39]OFD Sender: No OFD packet to send [10:07:44]OFD Sender: No OFD packet to send [10:07:49]OFD Sender: No OFD packet to send [10:07:54]OFD Sender: No OFD packet to send [10:07:59]OFD Sender: No OFD packet to send [10:08:04]OFD Sender: No OFD packet to send [10:08:07]recv_with_timeout no data received [10:08:09]OFD Sender: No OFD packet to send [10:08:14]OFD Sender: No OFD packet to send [10:08:19]OFD Sender: No OFD packet to send [10:08:24]OFD Sender: No OFD packet to send [10:08:29]OFD Sender: No OFD packet to send [10:08:34]OFD Sender: No OFD packet to send [10:08:35]recv_with_timeout no data received [10:08:39]OFD Sender: No OFD packet to send [10:08:39]accept exits with 8 [10:08:39]New connection [10:08:39]New thread 3066658148 created [10:08:39]Thread 3066514788 joined [10:08:39]Waiting for new connection... [10:08:39] Sock 8.Parse request [10:08:39]Sock 8.Check first char [10:08:39]Sock 8.First char is OK [10:08:39]request: POST /json_proto HTTP/1.0 [10:08:39]Method: POST [10:08:39]URL: /json_proto [10:08:39]Method is POST - this is cgi request [10:08:39]url: /json_proto [10:08:39]query_string will be loaded in cgi processing [10:08:39]execute_cgi json_proto POST (null) [10:08:39]execute_cgi path=json_proto method=POST [10:08:39]POST find Content-Length [10:08:39]Host: 172.17.44.67:8080 [10:08:39]Content-Length: 759 [10:08:39]Content-Type: application/json [10:08:39] [10:08:39]POST finish read [10:08:39]Found Content-Length = 759 [10:08:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 60.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30121604", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:39]execute_script... [10:08:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 60.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30121604", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:39]POST & json_proto [10:08:39]process_json_proto [10:08:39]json parsed OK: [10:08:39]protocol is kg_v1.0 [10:08:39]action value=close_receipt [10:08:39]process_action close_receipt [10:08:39]cmd_close_receipt [10:08:39]MH_GetDate [10:08:39]Write to MH i2c: F0 00 00 28 00 17 [10:08:39]Write i2c OK [10:08:39]MH_I2C_Read... [10:08:39]Read from MH i2c: F0 [10:08:39]MH_I2C_Read... [10:08:39]Read from MH i2c: F0 09 00 [10:08:39]MH_I2C_Read... [10:08:39]Read from MH i2c: F0 09 00 28 00 00 28 E2 10 67 F1 C7 6B 64 28 [10:08:39]GetLastDocTimeStamp 1729159160 [10:08:39]current date 1729159720 [10:08:39]FM_GetShiftState [10:08:39]SAM_PROTO_GetShiftState [10:08:39]wFMCommunicate request_size=4 [10:08:39]MH_SAM_APDU [10:08:39]CAPDU: 80 13 01 00 [10:08:39]Write to MH i2c: E2 08 00 29 00 80 13 01 00 00 00 00 00 A6 [10:08:39]Write i2c OK [10:08:39]MH_I2C_Read... [10:08:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:39]Read from MH i2c: E2 [10:08:39]MH_I2C_Read... [10:08:39]Read from MH i2c: E2 0E 00 [10:08:39]MH_I2C_Read... [10:08:39]Read from MH i2c: E2 0E 00 29 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 AE [10:08:39]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:08:39]wFMCommunicate OK [10:08:39]SAM_PROTO_GetShiftState done [10:08:39]FM_GetShiftState done [10:08:39]opened in 1729125927 [10:08:39]opened+sec_in_day 1729212327 [10:08:39]quantity*price = 0 [10:08:39]sum+1 = 1 [10:08:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 44 17.10.2024 10:08 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30121604 ФМ: 0000000000871843 ФД: 82118 ФПД: 38483822455706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T100840&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82118&fm=38483822455706&tin=02508201610067®Number=0000000000091680&sum=0 [10:08:40]StoreToDocumentArchive [10:08:40]shift 525 fd 82118 [10:08:40]save to /storage/0525/doc_00082118 [10:08:40]save last doc name /storage/0525/doc_00082118 to /storage/kkm_last_doc_name [10:08:40]save OK [10:08:40]Clear old archive folders... [10:08:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:08:40]tlvbuf is 00ADCE70 [10:08:40]SAM_PROTO_ClearQueue [10:08:40]wFMCommunicate request_size=4 [10:08:40]MH_SAM_APDU [10:08:40]CAPDU: 80 09 00 00 [10:08:40]Write to MH i2c: E2 08 00 36 00 80 09 00 00 00 00 00 00 A8 [10:08:40]Write i2c OK [10:08:40]MH_I2C_Read... [10:08:41]Read from MH i2c: E2 [10:08:41]MH_I2C_Read... [10:08:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:41]Read from MH i2c: E2 03 00 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: E2 03 00 36 00 00 90 00 AA [10:08:41]RAPDU: 90 00 [10:08:41]wFMCommunicate OK [10:08:41]SAM_PROTO_ClearQueue done [10:08:41]KKMCreateOFDPacket [10:08:41]OFDProtocolAddRootSTLVToBuf [10:08:41]FM_MakeSignedData [10:08:41]FM_MakeSignedData [10:08:41]SAM_PROTO_SignData [10:08:41]wFMCommunicate request_size=4 [10:08:41]MH_SAM_APDU [10:08:41]CAPDU: 80 0D 01 02 [10:08:41]Write to MH i2c: E2 08 00 37 00 80 0D 01 02 00 00 00 00 B0 [10:08:41]Write i2c OK [10:08:41]MH_I2C_Read... [10:08:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:41]Read from MH i2c: E2 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: E2 03 00 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: E2 03 00 37 00 00 90 00 AB [10:08:41]RAPDU: 90 00 [10:08:41]wFMCommunicate OK [10:08:41]wFMCommunicate request_size=255 [10:08:41]MH_SAM_APDU [10:08:41]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 28 E2 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C6 40 01 00 35 04 06 00 [10:08:41]Write to MH i2c: E2 02 01 38 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 28 E2 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C6 40 01 00 35 04 06 00 00 00 00 [10:08:41]Write i2c OK [10:08:41]MH_I2C_Read... [10:08:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:41]Read from MH i2c: E2 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: E2 03 00 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: E2 03 00 38 00 00 90 00 AC [10:08:41]RAPDU: 90 00 [10:08:41]wFMCommunicate OK [10:08:41]wFMCommunicate request_size=11 [10:08:41]MH_SAM_APDU [10:08:41]CAPDU: 80 0D 02 02 06 23 00 36 91 2B 9A [10:08:41]Write to MH i2c: E2 0E 00 39 00 80 0D 02 02 06 00 23 00 36 91 2B 9A 00 00 6E [10:08:41]Write i2c OK [10:08:41]MH_I2C_Read... [10:08:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:41]Read from MH i2c: E2 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: E2 03 00 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: E2 03 00 39 00 00 90 00 AD [10:08:41]RAPDU: 90 00 [10:08:41]wFMCommunicate OK [10:08:41]wFMCommunicate request_size=4 [10:08:41]MH_SAM_APDU [10:08:41]CAPDU: 80 0D 03 02 [10:08:41]Write to MH i2c: E2 08 00 3A 00 80 0D 03 02 00 00 00 00 B5 [10:08:41]Write i2c OK [10:08:41]MH_I2C_Read... [10:08:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:41]Read from MH i2c: E2 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: E2 0B 00 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: E2 0B 00 3A 00 00 1F EB 8E A4 18 4A 65 F4 90 00 AD [10:08:41]RAPDU: 1F EB 8E A4 18 4A 65 F4 90 00 [10:08:41]wFMCommunicate OK [10:08:41]SAM_PROTO_SignData done [10:08:41]FM_MakeSignedData done [10:08:41]CreateOFDProtocolMessage [10:08:41]wFMCommunicate request_size=4 [10:08:41]MH_SAM_APDU [10:08:41]CAPDU: 80 11 00 00 [10:08:41]Write to MH i2c: E2 08 00 3B 00 80 11 00 00 00 00 00 00 B5 [10:08:41]Write i2c OK [10:08:41]MH_I2C_Read... [10:08:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:41]Read from MH i2c: E2 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: E2 17 00 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: E2 17 00 3B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 07 [10:08:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:08:41]wFMCommunicate OK [10:08:41]CreateOFDProtocolMessage done [10:08:41]OFDSenderStorePacket 82118 [10:08:41]StoreOFDPacket docnum=82118 [10:08:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 6D CB 08 01 49 61 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 28 E2 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C6 40 01 00 35 04 06 00 23 00 36 91 2B 9A 1F EB 8E A4 18 4A 65 F4 [10:08:41]CheckFolder [10:08:41]dirname=/storage/ofd_packets [10:08:41]CheckFolder done [10:08:41]ProducePacketName [10:08:41]name=ofd_packets/00082118 [10:08:41]NVStorageSaveData ofd_packets/00082118 [10:08:41]File name is /storage/ofd_packets/00082118 [10:08:41]Write 302 bytes [10:08:41]NVStorageSaveData done [10:08:41]OFDSenderStorePacket done [10:08:41]KKMCreateOFDPacket done [10:08:41]NVStorageSaveData kkm_last_timestamp [10:08:41]File name is /storage/kkm_last_timestamp [10:08:41]Write 4 bytes [10:08:41]NVStorageSaveData done [10:08:41]ExternCall_PrintAddStr [10:08:41]wPrintStart [10:08:41]Write to MH i2c: 01 00 00 3C 00 3C [10:08:41]Write i2c OK [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: 01 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: 01 07 00 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: 01 07 00 3C 00 00 00 00 00 00 FF 0F 51 [10:08:41]RasterBufferAndPrint [10:08:41]line Счет N : (1)918625 [10:08:41]line ИНН: 02508201610067 [10:08:41]line Контрольно-Кассовый Чек [10:08:41]line ПРОДАЖА [10:08:41]line ТРК (МРК, ГНК) : 31 [10:08:41]line Товар: 2710194210 [10:08:41]line ДТ(л)-К-5 [10:08:41]line 60.000 * 0.00 [10:08:41]line = 0.00 [10:08:41]line НДС 12% НСП 1% [10:08:41]line > о реализуемом товаре [10:08:41]line ИТОГО: 0.00 [10:08:41]line НСП 1% : 0.00 [10:08:41]line НДС 12% : 0.00 [10:08:41]line Наличными: 0.00 [10:08:41]line Безнал.: 0.00 [10:08:41]line Место: АЗС № 114 "Партнер Нефть" [10:08:41]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:08:41]line СНО: Общий режим [10:08:41]line Чек 44 17.10.2024 10:08 [10:08:41]line Смена: 525 ФФД: 1.0 [10:08:41]line ЗНМ: 0300000086 [10:08:41]line РНМ: 0000000000091680 [10:08:41]line Версия ККМ: 001 [10:08:41]line Талоны: ТК ГПНА Online [10:08:41]line 30121604 [10:08:41]line ФМ: 0000000000871843 [10:08:41]line ФД: 82118 [10:08:41]line ФПД: 38483822455706 [10:08:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T100840&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82118&fm=38483822455706&tin=02508201610067®Number=0000000000091680&sum=0 [10:08:41]OFD Sender: Processing packet 82118 [packets to send 254, broken 253] [10:08:41]ProducePacketName [10:08:41]name=ofd_packets/00082118 [10:08:41]OFD Sender: To server: pG, [10:08:41]CommunicateWithHost lk.salyk.kg:30040 [10:08:41]ConnectInit lk.salyk.kg [10:08:41]written 0, free lines is 4095 [10:08:42]Write to MH i2c: 01 00 00 66 00 66 [10:08:42]Write i2c OK [10:08:42]MH_I2C_Read... [10:08:42]Read from MH i2c: 01 [10:08:42]MH_I2C_Read... [10:08:42]Read from MH i2c: 01 07 00 [10:08:42]MH_I2C_Read... [10:08:42]Read from MH i2c: 01 07 00 66 00 00 00 00 00 00 E4 0C 5D [10:08:42]RasterBufferAndPrint [10:08:42]line [10:08:42]line [10:08:42]line [10:08:42]line [10:08:42]line [10:08:42]written 0, free lines is 3306 [10:08:42]MH_Cut [10:08:42]Write to MH i2c: D1 01 00 6D 00 01 3F [10:08:42]Write i2c OK [10:08:42]MH_I2C_Read... [10:08:42]Read from MH i2c: D1 [10:08:42]MH_I2C_Read... [10:08:42]Read from MH i2c: D1 01 00 [10:08:42]MH_I2C_Read... [10:08:42]Read from MH i2c: D1 01 00 6D 00 00 3E [10:08:42]Write to MH i2c: 01 00 00 6E 00 6E [10:08:42]Write i2c OK [10:08:42]MH_I2C_Read... [10:08:42]*** Cut start [10:08:42]*** Partial cut [10:08:42]*** CUTSNS_PIN = 1 [10:08:42]*** CUTSNS_PIN = 0 [10:08:43]*** Brake cut motor [10:08:43]Read from MH i2c: 01 [10:08:43]MH_I2C_Read... [10:08:43]*** Stop cut motor [10:08:43]*** Cut end [10:08:43]Read from MH i2c: 01 07 00 [10:08:43]MH_I2C_Read... [10:08:43]Read from MH i2c: 01 07 00 6E 00 00 00 00 00 00 FF 0F 83 [10:08:43]process_action close_receipt done [10:08:43]requested_data is exist [10:08:43]produce_requested_data [10:08:43]requested_item fm.sn is exist - process it [10:08:43]wFMCommunicate request_size=4 [10:08:43]MH_SAM_APDU [10:08:43]CAPDU: 80 11 00 00 [10:08:43]Write to MH i2c: E2 08 00 6F 00 80 11 00 00 00 00 00 00 E9 [10:08:43]Write i2c OK [10:08:43]MH_I2C_Read... [10:08:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:43]Read from MH i2c: E2 [10:08:43]MH_I2C_Read... [10:08:43]Read from MH i2c: E2 17 00 [10:08:43]MH_I2C_Read... [10:08:43]Read from MH i2c: E2 17 00 6F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 3B [10:08:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:08:43]wFMCommunicate OK [10:08:43]requested_item fd.num is exist - process it [10:08:43]SAM_PROTO_GetFieldsCounters [10:08:43]wFMCommunicate request_size=4 [10:08:43]MH_SAM_APDU [10:08:43]CAPDU: 80 13 00 00 [10:08:43]Write to MH i2c: E2 08 00 70 00 80 13 00 00 00 00 00 00 EC [10:08:43]Write i2c OK [10:08:43]MH_I2C_Read... [10:08:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:43]Read from MH i2c: E2 [10:08:43]MH_I2C_Read... [10:08:43]Read from MH i2c: E2 62 00 [10:08:43]MH_I2C_Read... [10:08:43]Read from MH i2c: E2 62 00 70 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C6 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [10:08:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C6 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:08:43]wFMCommunicate OK [10:08:43]SAM_PROTO_GetFieldsCounters done [10:08:43]requested_item shift.num is exist - process it [10:08:43]requested_item shift.opened is exist - process it [10:08:43]req_shift_opened [10:08:43]FM_GetShiftState [10:08:43]SAM_PROTO_GetShiftState [10:08:43]wFMCommunicate request_size=4 [10:08:43]MH_SAM_APDU [10:08:43]CAPDU: 80 13 01 00 [10:08:43]Write to MH i2c: E2 08 00 71 00 80 13 01 00 00 00 00 00 EE [10:08:43]Write i2c OK [10:08:43]MH_I2C_Read... [10:08:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:43]Read from MH i2c: E2 [10:08:43]MH_I2C_Read... [10:08:43]Read from MH i2c: E2 0E 00 [10:08:43]MH_I2C_Read... [10:08:43]Read from MH i2c: E2 0E 00 71 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 F6 [10:08:43]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:08:43]wFMCommunicate OK [10:08:43]SAM_PROTO_GetShiftState done [10:08:43]FM_GetShiftState done [10:08:43]req_shift_opened done [10:08:43]requested_item shift.open_date is exist - process it [10:08:43]req_shift_open_date [10:08:43]req_shift_open_date done [10:08:43]produce_requested_data done [10:08:43]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82118,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [10:08:43]process_action_free close_receipt [10:08:43]json_value_free [10:08:43]json_value_free done [10:08:43]process_json_proto returns [10:08:43]Send response to host [10:08:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82118,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [10:08:43]free response buf [10:08:43]execute_script done [10:08:43]execute_script returns [10:08:43]free content buf [10:08:43]Sock 8.Close socket [10:08:43]Sock 8.Thread stoped [10:08:44]Connected sock=11 [10:08:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 6D CB 08 01 49 61 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 28 E2 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C6 40 01 00 35 04 06 00 23 00 36 91 2B 9A 1F EB 8E A4 18 4A 65 F4 [10:08:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 AF F1 47 00 88 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C6 40 01 00 F4 03 04 00 69 87 10 67 B6 04 01 00 00 2D 47 57 77 52 2F 4E 6B [10:08:44]CommunicateWithHost err = 0 [10:08:44]CheckOFDResponse [10:08:44]1017 (14) - 77093643461234 [10:08:44]1041 (16) - 0000000000871843 [10:08:44]1040 (4) - 82118 [10:08:44]1012 (4) - 17.10.2024 03:41 [10:08:44]1206 (1) - 0 [10:08:44]OFD Sender: Remove packet 82118 [10:08:44]ProducePacketName [10:08:44]name=ofd_packets/00082118 [10:08:44]NVStorageDeleteData [10:08:45]OFD Sender: No OFD packet to send [10:08:47]recv_with_timeout no data received [10:08:50]OFD Sender: No OFD packet to send [10:08:55]OFD Sender: No OFD packet to send [10:08:58]recv_with_timeout no data received [10:09:00]OFD Sender: No OFD packet to send [10:09:05]OFD Sender: No OFD packet to send [10:09:10]OFD Sender: No OFD packet to send [10:09:15]OFD Sender: No OFD packet to send [10:09:20]OFD Sender: No OFD packet to send [10:09:25]OFD Sender: No OFD packet to send [10:09:30]OFD Sender: No OFD packet to send [10:09:35]OFD Sender: No OFD packet to send [10:09:40]OFD Sender: No OFD packet to send [10:09:45]OFD Sender: No OFD packet to send [10:09:45]accept exits with 9 [10:09:45]New connection [10:09:45]New thread 3066514788 created [10:09:45]Thread 3066658148 joined [10:09:45]Waiting for new connection... [10:09:45] Sock 9.Parse request [10:09:45]Sock 9.Check first char [10:09:45]Sock 9.First char is OK [10:09:45]request: POST /json_proto HTTP/1.0 [10:09:45]Method: POST [10:09:45]URL: /json_proto [10:09:45]Method is POST - this is cgi request [10:09:45]url: /json_proto [10:09:45]query_string will be loaded in cgi processing [10:09:45]execute_cgi json_proto POST (null) [10:09:45]execute_cgi path=json_proto method=POST [10:09:45]POST find Content-Length [10:09:45]Host: 172.17.44.67:8080 [10:09:45]Content-Length: 682 [10:09:45]Content-Type: application/json [10:09:45] [10:09:45]POST finish read [10:09:45]Found Content-Length = 682 [10:09:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:45]execute_script... [10:09: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)918626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:45]POST & json_proto [10:09:45]process_json_proto [10:09:45]json parsed OK: [10:09:45]protocol is kg_v1.0 [10:09:45]action value=close_receipt [10:09:45]process_action close_receipt [10:09:45]cmd_close_receipt [10:09:45]MH_GetDate [10:09:45]Write to MH i2c: F0 00 00 72 00 61 [10:09:45]Write i2c OK [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: F0 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: F0 09 00 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: F0 09 00 72 00 00 6A E2 10 67 F1 C7 6B 64 B4 [10:09:45]GetLastDocTimeStamp 1729159720 [10:09:45]current date 1729159786 [10:09:45]FM_GetShiftState [10:09:45]SAM_PROTO_GetShiftState [10:09:45]wFMCommunicate request_size=4 [10:09:45]MH_SAM_APDU [10:09:45]CAPDU: 80 13 01 00 [10:09:45]Write to MH i2c: E2 08 00 73 00 80 13 01 00 00 00 00 00 F0 [10:09:45]Write i2c OK [10:09:45]MH_I2C_Read... [10:09:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:45]Read from MH i2c: E2 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 0E 00 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 0E 00 73 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 F8 [10:09:45]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:09:45]wFMCommunicate OK [10:09:45]SAM_PROTO_GetShiftState done [10:09:45]FM_GetShiftState done [10:09:45]opened in 1729125927 [10:09:45]opened+sec_in_day 1729212327 [10:09:45]quantity*price = 120018 [10:09:45]sum+1 = 120020 [10:09:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 45 17.10.2024 10:09 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82119 ФПД: 225748858207016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T100946&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82119&fm=225748858207016&tin=02508201610067®Number=0000000000091680&sum=120000 [10:09:47]StoreToDocumentArchive [10:09:47]shift 525 fd 82119 [10:09:47]save to /storage/0525/doc_00082119 [10:09:47]save last doc name /storage/0525/doc_00082119 to /storage/kkm_last_doc_name [10:09:47]save OK [10:09:47]Clear old archive folders... [10:09:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:47]tlvbuf is B6F10950 [10:09:47]SAM_PROTO_ClearQueue [10:09:47]wFMCommunicate request_size=4 [10:09:47]MH_SAM_APDU [10:09:47]CAPDU: 80 09 00 00 [10:09:47]Write to MH i2c: E2 08 00 80 00 80 09 00 00 00 00 00 00 F2 [10:09:47]Write i2c OK [10:09:47]MH_I2C_Read... [10:09:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:47]Read from MH i2c: E2 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: E2 03 00 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: E2 03 00 80 00 00 90 00 F4 [10:09:47]RAPDU: 90 00 [10:09:47]wFMCommunicate OK [10:09:47]SAM_PROTO_ClearQueue done [10:09:47]KKMCreateOFDPacket [10:09:47]OFDProtocolAddRootSTLVToBuf [10:09:47]FM_MakeSignedData [10:09:47]FM_MakeSignedData [10:09:47]SAM_PROTO_SignData [10:09:47]wFMCommunicate request_size=4 [10:09:47]MH_SAM_APDU [10:09:47]CAPDU: 80 0D 01 02 [10:09:47]Write to MH i2c: E2 08 00 81 00 80 0D 01 02 00 00 00 00 FA [10:09:47]Write i2c OK [10:09:47]MH_I2C_Read... [10:09:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:47]Read from MH i2c: E2 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: E2 03 00 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: E2 03 00 81 00 00 90 00 F5 [10:09:47]RAPDU: 90 00 [10:09:47]wFMCommunicate OK [10:09:47]wFMCommunicate request_size=255 [10:09:47]MH_SAM_APDU [10:09:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 6A E2 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C7 40 01 00 35 04 06 00 CD [10:09:47]Write to MH i2c: E2 02 01 82 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 6A E2 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C7 40 01 00 35 04 06 00 CD 00 00 61 [10:09:47]Write i2c OK [10:09:47]MH_I2C_Read... [10:09:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:47]Read from MH i2c: E2 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: E2 03 00 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: E2 03 00 82 00 00 90 00 F6 [10:09:47]RAPDU: 90 00 [10:09:47]wFMCommunicate OK [10:09:47]wFMCommunicate request_size=10 [10:09:47]MH_SAM_APDU [10:09:47]CAPDU: 80 0D 02 02 05 51 40 80 7B 28 [10:09:47]Write to MH i2c: E2 0D 00 83 00 80 0D 02 02 05 00 51 40 80 7B 28 00 00 BB [10:09:47]Write i2c OK [10:09:47]MH_I2C_Read... [10:09:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:47]Read from MH i2c: E2 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: E2 03 00 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: E2 03 00 83 00 00 90 00 F7 [10:09:47]RAPDU: 90 00 [10:09:47]wFMCommunicate OK [10:09:47]wFMCommunicate request_size=4 [10:09:47]MH_SAM_APDU [10:09:47]CAPDU: 80 0D 03 02 [10:09:47]Write to MH i2c: E2 08 00 84 00 80 0D 03 02 00 00 00 00 FF [10:09:47]Write i2c OK [10:09:47]MH_I2C_Read... [10:09:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:47]Read from MH i2c: E2 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: E2 0B 00 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: E2 0B 00 84 00 00 58 93 68 DD A1 3E 24 BF 90 00 F2 [10:09:47]RAPDU: 58 93 68 DD A1 3E 24 BF 90 00 [10:09:47]wFMCommunicate OK [10:09:47]SAM_PROTO_SignData done [10:09:47]FM_MakeSignedData done [10:09:47]CreateOFDProtocolMessage [10:09:47]wFMCommunicate request_size=4 [10:09:47]MH_SAM_APDU [10:09:47]CAPDU: 80 11 00 00 [10:09:47]Write to MH i2c: E2 08 00 85 00 80 11 00 00 00 00 00 00 FF [10:09:47]Write i2c OK [10:09:47]MH_I2C_Read... [10:09:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:47]Read from MH i2c: E2 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: E2 17 00 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: E2 17 00 85 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 51 [10:09:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:09:47]wFMCommunicate OK [10:09:47]CreateOFDProtocolMessage done [10:09:47]OFDSenderStorePacket 82119 [10:09:47]StoreOFDPacket docnum=82119 [10:09:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 14 AB 07 01 63 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 6A E2 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C7 40 01 00 35 04 06 00 CD 51 40 80 7B 28 58 93 68 DD A1 3E 24 BF [10:09:47]CheckFolder [10:09:47]dirname=/storage/ofd_packets [10:09:47]CheckFolder done [10:09:47]ProducePacketName [10:09:47]name=ofd_packets/00082119 [10:09:47]NVStorageSaveData ofd_packets/00082119 [10:09:47]File name is /storage/ofd_packets/00082119 [10:09:47]Write 301 bytes [10:09:47]NVStorageSaveData done [10:09:47]OFDSenderStorePacket done [10:09:47]KKMCreateOFDPacket done [10:09:47]NVStorageSaveData kkm_last_timestamp [10:09:47]File name is /storage/kkm_last_timestamp [10:09:47]Write 4 bytes [10:09:47]NVStorageSaveData done [10:09:47]ExternCall_PrintAddStr [10:09:47]wPrintStart [10:09:47]Write to MH i2c: 01 00 00 86 00 86 [10:09:47]Write i2c OK [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: 01 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: 01 07 00 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: 01 07 00 86 00 00 00 00 00 00 FF 0F 9B [10:09:47]RasterBufferAndPrint [10:09:47]line Счет N : (1)918626 [10:09:47]line ИНН: 02508201610067 [10:09:47]line Контрольно-Кассовый Чек [10:09:47]line ПРОДАЖА [10:09:47]line ТРК (МРК, ГНК) : 22 [10:09:47]line Товар: 2710124130 [10:09:47]line Аи-92-К-4 [10:09:47]line 17.940 * 66.90 [10:09:47]line = 1200.19 [10:09:47]line НДС 12% НСП 1% [10:09:47]line > о реализуемом товаре [10:09:47]line ОКРУГЛЕНИЕ: -0.19 [10:09:47]line ИТОГО: 1200.00 [10:09:47]line Внесено: 1200.00 [10:09:47]line СДАЧА: 0.00 [10:09:47]line НСП 1% : 10.62 [10:09:47]line НДС 12% : 127.45 [10:09:47]line Наличными: 1200.00 [10:09:47]line Безнал.: 0.00 [10:09:47]line Место: АЗС № 114 "Партнер Нефть" [10:09:47]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:09:47]line СНО: Общий режим [10:09:47]line Чек 45 17.10.2024 10:09 [10:09:47]line Смена: 525 ФФД: 1.0 [10:09:47]line ЗНМ: 0300000086 [10:09:47]line РНМ: 0000000000091680 [10:09:47]line Версия ККМ: 001 [10:09:47]line ФМ: 0000000000871843 [10:09:47]line ФД: 82119 [10:09:47]line ФПД: 225748858207016 [10:09:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T100946&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82119&fm=225748858207016&tin=02508201610067®Number=0000000000091680&sum=120000 [10:09:47]OFD Sender: Processing packet 82119 [packets to send 254, broken 253] [10:09:47]ProducePacketName [10:09:47]name=ofd_packets/00082119 [10:09:47]OFD Sender: To server: pG, [10:09:47]CommunicateWithHost lk.salyk.kg:30040 [10:09:47]ConnectInit lk.salyk.kg [10:09:47]written 0, free lines is 4095 [10:09:48]Connected sock=10 [10:09:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 14 AB 07 01 63 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 6A E2 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C7 40 01 00 35 04 06 00 CD 51 40 80 7B 28 58 93 68 DD A1 3E 24 BF [10:09:48]Write to MH i2c: 01 00 00 B1 00 B1 [10:09:48]Write i2c OK [10:09:48]MH_I2C_Read... [10:09:48]Read from MH i2c: 01 [10:09:48]MH_I2C_Read... [10:09:48]Read from MH i2c: 01 07 00 [10:09:48]MH_I2C_Read... [10:09:48]Read from MH i2c: 01 07 00 B1 00 00 00 00 00 00 E7 0C AB [10:09:48]RasterBufferAndPrint [10:09:48]line [10:09:48]line [10:09:48]line [10:09:48]line [10:09:48]line [10:09:48]written 0, free lines is 3310 [10:09:48]MH_Cut [10:09:48]Write to MH i2c: D1 01 00 B8 00 01 8A [10:09:48]Write i2c OK [10:09:48]MH_I2C_Read... [10:09:48]Read from MH i2c: D1 [10:09:48]MH_I2C_Read... [10:09:48]Read from MH i2c: D1 01 00 [10:09:48]MH_I2C_Read... [10:09:48]Read from MH i2c: D1 01 00 B8 00 00 89 [10:09:48]Write to MH i2c: 01 00 00 B9 00 B9 [10:09:48]Write i2c OK [10:09:48]MH_I2C_Read... [10:09:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 59 23 47 00 F5 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C7 40 01 00 F4 03 04 00 A9 87 10 67 B6 04 01 00 00 A4 7F AE B7 85 B9 E6 E8 [10:09:48]CommunicateWithHost err = 0 [10:09:48]CheckOFDResponse [10:09:48]1017 (14) - 77093643461234 [10:09:48]1041 (16) - 0000000000871843 [10:09:48]1040 (4) - 82119 [10:09:48]1012 (4) - 17.10.2024 03:42 [10:09:48]1206 (1) - 0 [10:09:48]OFD Sender: Remove packet 82119 [10:09:48]ProducePacketName [10:09:48]name=ofd_packets/00082119 [10:09:48]NVStorageDeleteData [10:09:49]*** Cut start [10:09:49]*** Partial cut [10:09:49]*** CUTSNS_PIN = 1 [10:09:49]*** CUTSNS_PIN = 0 [10:09:49]OFD Sender: No OFD packet to send [10:09:49]*** Brake cut motor [10:09:49]Read from MH i2c: 01 [10:09:49]MH_I2C_Read... [10:09:49]*** Stop cut motor [10:09:49]*** Cut end [10:09:49]Read from MH i2c: 01 07 00 [10:09:49]MH_I2C_Read... [10:09:49]Read from MH i2c: 01 07 00 B9 00 00 00 00 00 00 FF 0F CE [10:09:49]process_action close_receipt done [10:09:49]requested_data is exist [10:09:49]produce_requested_data [10:09:49]requested_item fm.sn is exist - process it [10:09:49]wFMCommunicate request_size=4 [10:09:49]MH_SAM_APDU [10:09:49]CAPDU: 80 11 00 00 [10:09:49]Write to MH i2c: E2 08 00 BA 00 80 11 00 00 00 00 00 00 34 [10:09:49]Write i2c OK [10:09:49]MH_I2C_Read... [10:09:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:49]Read from MH i2c: E2 [10:09:49]MH_I2C_Read... [10:09:49]Read from MH i2c: E2 17 00 [10:09:49]MH_I2C_Read... [10:09:49]Read from MH i2c: E2 17 00 BA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 86 [10:09:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:09:49]wFMCommunicate OK [10:09:49]requested_item fd.num is exist - process it [10:09:49]SAM_PROTO_GetFieldsCounters [10:09:49]wFMCommunicate request_size=4 [10:09:49]MH_SAM_APDU [10:09:49]CAPDU: 80 13 00 00 [10:09:49]Write to MH i2c: E2 08 00 BB 00 80 13 00 00 00 00 00 00 37 [10:09:49]Write i2c OK [10:09:49]MH_I2C_Read... [10:09:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:50]Read from MH i2c: E2 [10:09:50]MH_I2C_Read... [10:09:50]Read from MH i2c: E2 62 00 [10:09:50]MH_I2C_Read... [10:09:50]Read from MH i2c: E2 62 00 BB 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C7 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [10:09:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C7 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:09:50]wFMCommunicate OK [10:09:50]SAM_PROTO_GetFieldsCounters done [10:09:50]requested_item shift.num is exist - process it [10:09:50]requested_item shift.opened is exist - process it [10:09:50]req_shift_opened [10:09:50]FM_GetShiftState [10:09:50]SAM_PROTO_GetShiftState [10:09:50]wFMCommunicate request_size=4 [10:09:50]MH_SAM_APDU [10:09:50]CAPDU: 80 13 01 00 [10:09:50]Write to MH i2c: E2 08 00 BC 00 80 13 01 00 00 00 00 00 39 [10:09:50]Write i2c OK [10:09:50]MH_I2C_Read... [10:09:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:50]Read from MH i2c: E2 [10:09:50]MH_I2C_Read... [10:09:50]Read from MH i2c: E2 0E 00 [10:09:50]MH_I2C_Read... [10:09:50]Read from MH i2c: E2 0E 00 BC 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 41 [10:09:50]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:09:50]wFMCommunicate OK [10:09:50]SAM_PROTO_GetShiftState done [10:09:50]FM_GetShiftState done [10:09:50]req_shift_opened done [10:09:50]requested_item shift.open_date is exist - process it [10:09:50]req_shift_open_date [10:09:50]req_shift_open_date done [10:09:50]produce_requested_data done [10:09:50]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82119,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [10:09:50]process_action_free close_receipt [10:09:50]json_value_free [10:09:50]json_value_free done [10:09:50]process_json_proto returns [10:09:50]Send response to host [10:09:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82119,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [10:09:50]free response buf [10:09:50]execute_script done [10:09:50]execute_script returns [10:09:50]free content buf [10:09:50]Sock 9.Close socket [10:09:50]Sock 9.Thread stoped [10:09:54]OFD Sender: No OFD packet to send [10:09:59]OFD Sender: No OFD packet to send [10:10:04]OFD Sender: No OFD packet to send [10:10:09]recv_with_timeout no data received [10:10:09]OFD Sender: No OFD packet to send [10:10:14]OFD Sender: No OFD packet to send [10:10:19]OFD Sender: No OFD packet to send [10:10:24]OFD Sender: No OFD packet to send [10:10:29]OFD Sender: No OFD packet to send [10:10:34]OFD Sender: No OFD packet to send [10:10:39]OFD Sender: No OFD packet to send [10:10:44]accept exits with 8 [10:10:44]New connection [10:10:44]New thread 3066658148 created [10:10:44]Thread 3066514788 joined [10:10:44]Waiting for new connection... [10:10:44] Sock 8.Parse request [10:10:44]Sock 8.Check first char [10:10:44]Sock 8.First char is OK [10:10:44]request: POST /json_proto HTTP/1.0 [10:10:44]Method: POST [10:10:44]URL: /json_proto [10:10:44]Method is POST - this is cgi request [10:10:44]url: /json_proto [10:10:44]query_string will be loaded in cgi processing [10:10:44]execute_cgi json_proto POST (null) [10:10:44]execute_cgi path=json_proto method=POST [10:10:44]POST find Content-Length [10:10:44]Host: 172.17.44.67:8080 [10:10:44]Content-Length: 769 [10:10:44]Content-Type: application/json [10:10:44] [10:10:44]POST finish read [10:10:44]Found Content-Length = 769 [10:10:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:44]execute_script... [10:10:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:44]POST & json_proto [10:10:44]process_json_proto [10:10:44]json parsed OK: [10:10:44]protocol is kg_v1.0 [10:10:44]action value=close_receipt [10:10:44]process_action close_receipt [10:10:44]cmd_close_receipt [10:10:44]MH_GetDate [10:10:44]Write to MH i2c: F0 00 00 BD 00 AC [10:10:44]Write i2c OK [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: F0 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: F0 09 00 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: F0 09 00 BD 00 00 A5 E2 10 67 F1 C7 6B 64 3A [10:10:44]GetLastDocTimeStamp 1729159786 [10:10:44]current date 1729159845 [10:10:44]FM_GetShiftState [10:10:44]SAM_PROTO_GetShiftState [10:10:44]wFMCommunicate request_size=4 [10:10:44]MH_SAM_APDU [10:10:44]CAPDU: 80 13 01 00 [10:10:44]Write to MH i2c: E2 08 00 BE 00 80 13 01 00 00 00 00 00 3B [10:10:44]Write i2c OK [10:10:44]MH_I2C_Read... [10:10:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:44]Read from MH i2c: E2 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: E2 0E 00 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: E2 0E 00 BE 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 43 [10:10:44]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:10:44]wFMCommunicate OK [10:10:44]SAM_PROTO_GetShiftState done [10:10:44]FM_GetShiftState done [10:10:44]opened in 1729125927 [10:10:44]opened+sec_in_day 1729212327 [10:10:44]quantity*price = 100015 [10:10:44]sum+1 = 100017 [10:10:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 46 17.10.2024 10:10 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82120 ФПД: 39515655938309 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T101045&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82120&fm=39515655938309&tin=02508201610067®Number=0000000000091680&sum=100016 [10:10:45]StoreToDocumentArchive [10:10:45]shift 525 fd 82120 [10:10:45]save to /storage/0525/doc_00082120 [10:10:45]save last doc name /storage/0525/doc_00082120 to /storage/kkm_last_doc_name [10:10:45]save OK [10:10:45]Clear old archive folders... [10:10:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:10:45]tlvbuf is B6D60560 [10:10:45]SAM_PROTO_ClearQueue [10:10:45]wFMCommunicate request_size=4 [10:10:45]MH_SAM_APDU [10:10:45]CAPDU: 80 09 00 00 [10:10:45]Write to MH i2c: E2 08 00 CB 00 80 09 00 00 00 00 00 00 3D [10:10:45]Write i2c OK [10:10:45]MH_I2C_Read... [10:10:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:45]Read from MH i2c: E2 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: E2 03 00 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: E2 03 00 CB 00 00 90 00 3F [10:10:45]RAPDU: 90 00 [10:10:45]wFMCommunicate OK [10:10:45]SAM_PROTO_ClearQueue done [10:10:45]KKMCreateOFDPacket [10:10:45]OFDProtocolAddRootSTLVToBuf [10:10:45]FM_MakeSignedData [10:10:45]FM_MakeSignedData [10:10:45]SAM_PROTO_SignData [10:10:45]wFMCommunicate request_size=4 [10:10:45]MH_SAM_APDU [10:10:45]CAPDU: 80 0D 01 02 [10:10:45]Write to MH i2c: E2 08 00 CC 00 80 0D 01 02 00 00 00 00 45 [10:10:45]Write i2c OK [10:10:45]MH_I2C_Read... [10:10:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:45]Read from MH i2c: E2 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: E2 03 00 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: E2 03 00 CC 00 00 90 00 40 [10:10:45]RAPDU: 90 00 [10:10:45]wFMCommunicate OK [10:10:45]wFMCommunicate request_size=255 [10:10:45]MH_SAM_APDU [10:10:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 A5 E2 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C8 40 01 00 35 04 06 00 23 [10:10:45]Write to MH i2c: E2 02 01 CD 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 A5 E2 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C8 40 01 00 35 04 06 00 23 00 00 52 [10:10:45]Write i2c OK [10:10:45]MH_I2C_Read... [10:10:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:45]Read from MH i2c: E2 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: E2 03 00 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: E2 03 00 CD 00 00 90 00 41 [10:10:45]RAPDU: 90 00 [10:10:45]wFMCommunicate OK [10:10:45]wFMCommunicate request_size=10 [10:10:45]MH_SAM_APDU [10:10:45]CAPDU: 80 0D 02 02 05 F0 74 A2 A1 05 [10:10:45]Write to MH i2c: E2 0D 00 CE 00 80 0D 02 02 05 00 F0 74 A2 A1 05 00 00 FE [10:10:45]Write i2c OK [10:10:45]MH_I2C_Read... [10:10:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:45]Read from MH i2c: E2 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: E2 03 00 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: E2 03 00 CE 00 00 90 00 42 [10:10:45]RAPDU: 90 00 [10:10:45]wFMCommunicate OK [10:10:45]wFMCommunicate request_size=4 [10:10:45]MH_SAM_APDU [10:10:45]CAPDU: 80 0D 03 02 [10:10:45]Write to MH i2c: E2 08 00 CF 00 80 0D 03 02 00 00 00 00 4A [10:10:45]Write i2c OK [10:10:45]MH_I2C_Read... [10:10:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:45]Read from MH i2c: E2 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: E2 0B 00 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: E2 0B 00 CF 00 00 58 E4 52 6B 5E 71 4A DA 90 00 37 [10:10:45]RAPDU: 58 E4 52 6B 5E 71 4A DA 90 00 [10:10:45]wFMCommunicate OK [10:10:45]SAM_PROTO_SignData done [10:10:45]FM_MakeSignedData done [10:10:45]CreateOFDProtocolMessage [10:10:45]wFMCommunicate request_size=4 [10:10:45]MH_SAM_APDU [10:10:45]CAPDU: 80 11 00 00 [10:10:45]Write to MH i2c: E2 08 00 D0 00 80 11 00 00 00 00 00 00 4A [10:10:45]Write i2c OK [10:10:45]MH_I2C_Read... [10:10:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:45]Read from MH i2c: E2 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: E2 17 00 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: E2 17 00 D0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 9C [10:10:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:10:45]wFMCommunicate OK [10:10:45]CreateOFDProtocolMessage done [10:10:45]OFDSenderStorePacket 82120 [10:10:45]StoreOFDPacket docnum=82120 [10:10:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 B5 9F 07 01 F5 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 A5 E2 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C8 40 01 00 35 04 06 00 23 F0 74 A2 A1 05 58 E4 52 6B 5E 71 4A DA [10:10:45]CheckFolder [10:10:45]dirname=/storage/ofd_packets [10:10:45]CheckFolder done [10:10:45]ProducePacketName [10:10:45]name=ofd_packets/00082120 [10:10:45]NVStorageSaveData ofd_packets/00082120 [10:10:45]File name is /storage/ofd_packets/00082120 [10:10:45]Write 301 bytes [10:10:45]NVStorageSaveData done [10:10:45]OFDSenderStorePacket done [10:10:45]KKMCreateOFDPacket done [10:10:45]NVStorageSaveData kkm_last_timestamp [10:10:45]File name is /storage/kkm_last_timestamp [10:10:45]Write 4 bytes [10:10:45]NVStorageSaveData done [10:10:45]ExternCall_PrintAddStr [10:10:45]wPrintStart [10:10:45]Write to MH i2c: 01 00 00 D1 00 D1 [10:10:45]Write i2c OK [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: 01 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: 01 07 00 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: 01 07 00 D1 00 00 00 00 00 00 FF 0F E6 [10:10:45]RasterBufferAndPrint [10:10:45]line Счет N : (1)918627 [10:10:45]line ИНН: 02508201610067 [10:10:45]line Контрольно-Кассовый Чек [10:10:45]line ПРОДАЖА [10:10:45]line ТРК (МРК, ГНК) : 11 [10:10:45]line Товар: 2710124130 [10:10:45]line Аи-92-К-4 [10:10:45]line 14.950 * 66.90 [10:10:45]line = 1000.16 [10:10:45]line НДС 12% НСП 1% [10:10:45]line > о реализуемом товаре [10:10:45]line ИТОГО: 1000.16 [10:10:45]line НСП 1% : 8.85 [10:10:45]line НДС 12% : 106.21 [10:10:45]line Наличными: 0.00 [10:10:45]line Безнал.: 1000.16 [10:10:45]line Место: АЗС № 114 "Партнер Нефть" [10:10:45]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:10:45]line СНО: Общий режим [10:10:45]line Чек 46 17.10.2024 10:10 [10:10:45]line Смена: 525 ФФД: 1.0 [10:10:45]line ЗНМ: 0300000086 [10:10:45]line РНМ: 0000000000091680 [10:10:45]line Версия ККМ: 001 [10:10:45]line Платежная система: Mbank [10:10:45]line ФМ: 0000000000871843 [10:10:45]line ФД: 82120 [10:10:45]line ФПД: 39515655938309 [10:10:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T101045&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82120&fm=39515655938309&tin=02508201610067®Number=0000000000091680&sum=100016 [10:10:46]written 0, free lines is 4095 [10:10:46]OFD Sender: Processing packet 82120 [packets to send 254, broken 253] [10:10:46]ProducePacketName [10:10:46]name=ofd_packets/00082120 [10:10:46]OFD Sender: To server: pG, [10:10:46]CommunicateWithHost lk.salyk.kg:30040 [10:10:46]ConnectInit lk.salyk.kg [10:10:46]Connected sock=11 [10:10:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 B5 9F 07 01 F5 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 A5 E2 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C8 40 01 00 35 04 06 00 23 F0 74 A2 A1 05 58 E4 52 6B 5E 71 4A DA [10:10:46]Write to MH i2c: 01 00 00 FA 00 FA [10:10:46]Write i2c OK [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: 01 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: 01 07 00 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 06 0D 14 [10:10:46]RasterBufferAndPrint [10:10:46]line [10:10:46]line [10:10:46]line [10:10:46]line [10:10:46]line [10:10:46]written 0, free lines is 3341 [10:10:46]MH_Cut [10:10:46]Write to MH i2c: D1 01 00 01 01 01 D4 [10:10:46]Write i2c OK [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: D1 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: D1 01 00 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: D1 01 00 01 01 00 D3 [10:10:46]Write to MH i2c: 01 00 00 02 01 03 [10:10:46]Write i2c OK [10:10:46]MH_I2C_Read... [10:10:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 5E 47 47 00 0F D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C8 40 01 00 F4 03 04 00 E3 87 10 67 B6 04 01 00 00 F4 00 4E 82 39 DF 73 91 [10:10:47]CommunicateWithHost err = 0 [10:10:47]CheckOFDResponse [10:10:47]1017 (14) - 77093643461234 [10:10:47]1041 (16) - 0000000000871843 [10:10:47]1040 (4) - 82120 [10:10:47]1012 (4) - 17.10.2024 03:43 [10:10:47]1206 (1) - 0 [10:10:47]OFD Sender: Remove packet 82120 [10:10:47]ProducePacketName [10:10:47]name=ofd_packets/00082120 [10:10:47]NVStorageDeleteData [10:10:47]OFD Sender: No OFD packet to send [10:10:47]*** Cut start [10:10:47]*** Partial cut [10:10:47]*** CUTSNS_PIN = 1 [10:10:47]*** CUTSNS_PIN = 0 [10:10:47]*** Brake cut motor [10:10:48]Read from MH i2c: 01 [10:10:48]MH_I2C_Read... [10:10:48]*** Stop cut motor [10:10:48]*** Cut end [10:10:48]Read from MH i2c: 01 07 00 [10:10:48]MH_I2C_Read... [10:10:48]Read from MH i2c: 01 07 00 02 01 00 00 00 00 00 FF 0F 18 [10:10:48]process_action close_receipt done [10:10:48]requested_data is exist [10:10:48]produce_requested_data [10:10:48]requested_item fm.sn is exist - process it [10:10:48]wFMCommunicate request_size=4 [10:10:48]MH_SAM_APDU [10:10:48]CAPDU: 80 11 00 00 [10:10:48]Write to MH i2c: E2 08 00 03 01 80 11 00 00 00 00 00 00 7E [10:10:48]Write i2c OK [10:10:48]MH_I2C_Read... [10:10:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:48]Read from MH i2c: E2 [10:10:48]MH_I2C_Read... [10:10:48]Read from MH i2c: E2 17 00 [10:10:48]MH_I2C_Read... [10:10:48]Read from MH i2c: E2 17 00 03 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D0 [10:10:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:10:48]wFMCommunicate OK [10:10:48]requested_item fd.num is exist - process it [10:10:48]SAM_PROTO_GetFieldsCounters [10:10:48]wFMCommunicate request_size=4 [10:10:48]MH_SAM_APDU [10:10:48]CAPDU: 80 13 00 00 [10:10:48]Write to MH i2c: E2 08 00 04 01 80 13 00 00 00 00 00 00 81 [10:10:48]Write i2c OK [10:10:48]MH_I2C_Read... [10:10:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:48]Read from MH i2c: E2 [10:10:48]MH_I2C_Read... [10:10:48]Read from MH i2c: E2 62 00 [10:10:48]MH_I2C_Read... [10:10:48]Read from MH i2c: E2 62 00 04 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C8 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [10:10:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C8 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:10:48]wFMCommunicate OK [10:10:48]SAM_PROTO_GetFieldsCounters done [10:10:48]requested_item shift.num is exist - process it [10:10:48]requested_item shift.opened is exist - process it [10:10:48]req_shift_opened [10:10:48]FM_GetShiftState [10:10:48]SAM_PROTO_GetShiftState [10:10:48]wFMCommunicate request_size=4 [10:10:48]MH_SAM_APDU [10:10:48]CAPDU: 80 13 01 00 [10:10:48]Write to MH i2c: E2 08 00 05 01 80 13 01 00 00 00 00 00 83 [10:10:48]Write i2c OK [10:10:48]MH_I2C_Read... [10:10:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:48]Read from MH i2c: E2 [10:10:48]MH_I2C_Read... [10:10:48]Read from MH i2c: E2 0E 00 [10:10:48]MH_I2C_Read... [10:10:48]Read from MH i2c: E2 0E 00 05 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 8B [10:10:48]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:10:48]wFMCommunicate OK [10:10:48]SAM_PROTO_GetShiftState done [10:10:48]FM_GetShiftState done [10:10:48]req_shift_opened done [10:10:48]requested_item shift.open_date is exist - process it [10:10:48]req_shift_open_date [10:10:48]req_shift_open_date done [10:10:48]produce_requested_data done [10:10:48]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82120,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [10:10:48]process_action_free close_receipt [10:10:48]json_value_free [10:10:48]json_value_free done [10:10:48]process_json_proto returns [10:10:48]Send response to host [10:10:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82120,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [10:10:48]free response buf [10:10:48]execute_script done [10:10:48]execute_script returns [10:10:48]free content buf [10:10:48]Sock 8.Close socket [10:10:48]Sock 8.Thread stoped [10:10:52]OFD Sender: No OFD packet to send [10:10:57]OFD Sender: No OFD packet to send [10:11:02]OFD Sender: No OFD packet to send [10:11:07]OFD Sender: No OFD packet to send [10:11:12]OFD Sender: No OFD packet to send [10:11:17]OFD Sender: No OFD packet to send [10:11:18]accept exits with 9 [10:11:18]New connection [10:11:18]New thread 3066514788 created [10:11:18]Thread 3066658148 joined [10:11:18]Waiting for new connection... [10:11:18] Sock 9.Parse request [10:11:18]Sock 9.Check first char [10:11:18]Sock 9.First char is OK [10:11:18]request: POST /json_proto HTTP/1.0 [10:11:18]Method: POST [10:11:18]URL: /json_proto [10:11:18]Method is POST - this is cgi request [10:11:18]url: /json_proto [10:11:18]query_string will be loaded in cgi processing [10:11:18]execute_cgi json_proto POST (null) [10:11:18]execute_cgi path=json_proto method=POST [10:11:18]POST find Content-Length [10:11:18]Host: 172.17.44.67:8080 [10:11:18]Content-Length: 677 [10:11:18]Content-Type: application/json [10:11:18] [10:11:18]POST finish read [10:11:18]Found Content-Length = 677 [10:11:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:18]execute_script... [10:11:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:18]POST & json_proto [10:11:18]process_json_proto [10:11:18]json parsed OK: [10:11:18]protocol is kg_v1.0 [10:11:18]action value=close_receipt [10:11:18]process_action close_receipt [10:11:18]cmd_close_receipt [10:11:18]MH_GetDate [10:11:18]Write to MH i2c: F0 00 00 06 01 F6 [10:11:18]Write i2c OK [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: F0 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: F0 09 00 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: F0 09 00 06 01 00 C7 E2 10 67 F1 C7 6B 64 A6 [10:11:18]GetLastDocTimeStamp 1729159845 [10:11:18]current date 1729159879 [10:11:18]FM_GetShiftState [10:11:18]SAM_PROTO_GetShiftState [10:11:18]wFMCommunicate request_size=4 [10:11:18]MH_SAM_APDU [10:11:18]CAPDU: 80 13 01 00 [10:11:18]Write to MH i2c: E2 08 00 07 01 80 13 01 00 00 00 00 00 85 [10:11:18]Write i2c OK [10:11:18]MH_I2C_Read... [10:11:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:18]Read from MH i2c: E2 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: E2 0E 00 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: E2 0E 00 07 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 8D [10:11:18]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:11:18]wFMCommunicate OK [10:11:18]SAM_PROTO_GetShiftState done [10:11:18]FM_GetShiftState done [10:11:18]opened in 1729125927 [10:11:18]opened+sec_in_day 1729212327 [10:11:18]quantity*price = 30038 [10:11:18]sum+1 = 30039 [10:11:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 47 17.10.2024 10:11 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82121 ФПД: 182143248530754 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T101119&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82121&fm=182143248530754&tin=02508201610067®Number=0000000000091680&sum=30000 [10:11:19]StoreToDocumentArchive [10:11:19]shift 525 fd 82121 [10:11:19]save to /storage/0525/doc_00082121 [10:11:19]save last doc name /storage/0525/doc_00082121 to /storage/kkm_last_doc_name [10:11:19]save OK [10:11:19]Clear old archive folders... [10:11:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:11:19]tlvbuf is 00AD80C0 [10:11:19]SAM_PROTO_ClearQueue [10:11:19]wFMCommunicate request_size=4 [10:11:19]MH_SAM_APDU [10:11:19]CAPDU: 80 09 00 00 [10:11:19]Write to MH i2c: E2 08 00 14 01 80 09 00 00 00 00 00 00 87 [10:11:19]Write i2c OK [10:11:19]MH_I2C_Read... [10:11:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:19]Read from MH i2c: E2 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: E2 03 00 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: E2 03 00 14 01 00 90 00 89 [10:11:19]RAPDU: 90 00 [10:11:19]wFMCommunicate OK [10:11:19]SAM_PROTO_ClearQueue done [10:11:19]KKMCreateOFDPacket [10:11:19]OFDProtocolAddRootSTLVToBuf [10:11:19]FM_MakeSignedData [10:11:19]FM_MakeSignedData [10:11:19]SAM_PROTO_SignData [10:11:19]wFMCommunicate request_size=4 [10:11:19]MH_SAM_APDU [10:11:19]CAPDU: 80 0D 01 02 [10:11:19]Write to MH i2c: E2 08 00 15 01 80 0D 01 02 00 00 00 00 8F [10:11:19]Write i2c OK [10:11:19]MH_I2C_Read... [10:11:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:19]Read from MH i2c: E2 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: E2 03 00 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: E2 03 00 15 01 00 90 00 8A [10:11:19]RAPDU: 90 00 [10:11:19]wFMCommunicate OK [10:11:19]wFMCommunicate request_size=255 [10:11:19]MH_SAM_APDU [10:11:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 C7 E2 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C9 40 01 00 35 04 06 00 A5 [10:11:19]Write to MH i2c: E2 02 01 16 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 C7 E2 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C9 40 01 00 35 04 06 00 A5 00 00 1C [10:11:20]Write i2c OK [10:11:20]MH_I2C_Read... [10:11:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:20]Read from MH i2c: E2 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 03 00 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 03 00 16 01 00 90 00 8B [10:11:20]RAPDU: 90 00 [10:11:20]wFMCommunicate OK [10:11:20]wFMCommunicate request_size=10 [10:11:20]MH_SAM_APDU [10:11:20]CAPDU: 80 0D 02 02 05 A8 87 A0 7D 42 [10:11:20]Write to MH i2c: E2 0D 00 17 01 80 0D 02 02 05 00 A8 87 A0 7D 42 00 00 2A [10:11:20]Write i2c OK [10:11:20]MH_I2C_Read... [10:11:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:20]Read from MH i2c: E2 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 03 00 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 03 00 17 01 00 90 00 8C [10:11:20]RAPDU: 90 00 [10:11:20]wFMCommunicate OK [10:11:20]wFMCommunicate request_size=4 [10:11:20]MH_SAM_APDU [10:11:20]CAPDU: 80 0D 03 02 [10:11:20]Write to MH i2c: E2 08 00 18 01 80 0D 03 02 00 00 00 00 94 [10:11:20]Write i2c OK [10:11:20]MH_I2C_Read... [10:11:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:20]Read from MH i2c: E2 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 0B 00 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 0B 00 18 01 00 19 C0 C5 6D AF FE B4 96 90 00 97 [10:11:20]RAPDU: 19 C0 C5 6D AF FE B4 96 90 00 [10:11:20]wFMCommunicate OK [10:11:20]SAM_PROTO_SignData done [10:11:20]FM_MakeSignedData done [10:11:20]CreateOFDProtocolMessage [10:11:20]wFMCommunicate request_size=4 [10:11:20]MH_SAM_APDU [10:11:20]CAPDU: 80 11 00 00 [10:11:20]Write to MH i2c: E2 08 00 19 01 80 11 00 00 00 00 00 00 94 [10:11:20]Write i2c OK [10:11:20]MH_I2C_Read... [10:11:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:20]Read from MH i2c: E2 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 17 00 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 17 00 19 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 E6 [10:11:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:11:20]wFMCommunicate OK [10:11:20]CreateOFDProtocolMessage done [10:11:20]OFDSenderStorePacket 82121 [10:11:20]StoreOFDPacket docnum=82121 [10:11:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 5E A6 07 01 EB CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 C7 E2 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C9 40 01 00 35 04 06 00 A5 A8 87 A0 7D 42 19 C0 C5 6D AF FE B4 96 [10:11:20]CheckFolder [10:11:20]dirname=/storage/ofd_packets [10:11:20]CheckFolder done [10:11:20]ProducePacketName [10:11:20]name=ofd_packets/00082121 [10:11:20]NVStorageSaveData ofd_packets/00082121 [10:11:20]File name is /storage/ofd_packets/00082121 [10:11:20]Write 301 bytes [10:11:20]NVStorageSaveData done [10:11:20]OFDSenderStorePacket done [10:11:20]KKMCreateOFDPacket done [10:11:20]NVStorageSaveData kkm_last_timestamp [10:11:20]File name is /storage/kkm_last_timestamp [10:11:20]Write 4 bytes [10:11:20]NVStorageSaveData done [10:11:20]ExternCall_PrintAddStr [10:11:20]wPrintStart [10:11:20]Write to MH i2c: 01 00 00 1A 01 1B [10:11:20]Write i2c OK [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: 01 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: 01 07 00 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: 01 07 00 1A 01 00 00 00 00 00 FF 0F 30 [10:11:20]RasterBufferAndPrint [10:11:20]line Счет N : (1)918629 [10:11:20]line ИНН: 02508201610067 [10:11:20]line Контрольно-Кассовый Чек [10:11:20]line ПРОДАЖА [10:11:20]line ТРК (МРК, ГНК) : 22 [10:11:20]line Товар: 2710124130 [10:11:20]line Аи-92-К-4 [10:11:20]line 4.490 * 66.90 [10:11:20]line = 300.38 [10:11:20]line НДС 12% НСП 1% [10:11:20]line > о реализуемом товаре [10:11:20]line ОКРУГЛЕНИЕ: -0.38 [10:11:20]line ИТОГО: 300.00 [10:11:20]line Внесено: 300.00 [10:11:20]line СДАЧА: 0.00 [10:11:20]line НСП 1% : 2.66 [10:11:20]line НДС 12% : 31.90 [10:11:20]line Наличными: 300.00 [10:11:20]line Безнал.: 0.00 [10:11:20]line Место: АЗС № 114 "Партнер Нефть" [10:11:20]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:11:20]line СНО: Общий режим [10:11:20]line Чек 47 17.10.2024 10:11 [10:11:20]line Смена: 525 ФФД: 1.0 [10:11:20]line ЗНМ: 0300000086 [10:11:20]line РНМ: 0000000000091680 [10:11:20]line Версия ККМ: 001 [10:11:20]line ФМ: 0000000000871843 [10:11:20]line ФД: 82121 [10:11:20]line ФПД: 182143248530754 [10:11:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T101119&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82121&fm=182143248530754&tin=02508201610067®Number=0000000000091680&sum=30000 [10:11:20]OFD Sender: Processing packet 82121 [packets to send 254, broken 253] [10:11:20]ProducePacketName [10:11:20]name=ofd_packets/00082121 [10:11:20]OFD Sender: To server: pG, [10:11:20]CommunicateWithHost lk.salyk.kg:30040 [10:11:20]ConnectInit lk.salyk.kg [10:11:20]written 0, free lines is 4095 [10:11:21]Connected sock=8 [10:11:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 5E A6 07 01 EB CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 C7 E2 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C9 40 01 00 35 04 06 00 A5 A8 87 A0 7D 42 19 C0 C5 6D AF FE B4 96 [10:11:21]Write to MH i2c: 01 00 00 45 01 46 [10:11:21]Write i2c OK [10:11:21]MH_I2C_Read... [10:11:21]Read from MH i2c: 01 [10:11:21]MH_I2C_Read... [10:11:21]Read from MH i2c: 01 07 00 [10:11:21]MH_I2C_Read... [10:11:21]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 E1 0C 3A [10:11:21]RasterBufferAndPrint [10:11:21]line [10:11:21]line [10:11:21]line [10:11:21]line [10:11:21]line [10:11:21]written 0, free lines is 3302 [10:11:21]MH_Cut [10:11:21]Write to MH i2c: D1 01 00 4C 01 01 1F [10:11:21]Write i2c OK [10:11:21]MH_I2C_Read... [10:11:21]Read from MH i2c: D1 [10:11:21]MH_I2C_Read... [10:11:21]Read from MH i2c: D1 01 00 [10:11:21]MH_I2C_Read... [10:11:21]Read from MH i2c: D1 01 00 4C 01 00 1E [10:11:21]Write to MH i2c: 01 00 00 4D 01 4E [10:11:21]Write i2c OK [10:11:21]MH_I2C_Read... [10:11:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 1B 6B 47 00 87 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C9 40 01 00 F4 03 04 00 06 88 10 67 B6 04 01 00 00 DB 4D E9 EF E4 A6 32 B3 [10:11:21]CommunicateWithHost err = 0 [10:11:21]CheckOFDResponse [10:11:21]1017 (14) - 77093643461234 [10:11:21]1041 (16) - 0000000000871843 [10:11:21]1040 (4) - 82121 [10:11:21]1012 (4) - 17.10.2024 03:44 [10:11:21]1206 (1) - 0 [10:11:21]OFD Sender: Remove packet 82121 [10:11:21]ProducePacketName [10:11:21]name=ofd_packets/00082121 [10:11:21]NVStorageDeleteData [10:11:21]OFD Sender: No OFD packet to send [10:11:22]*** Cut start [10:11:22]*** Partial cut [10:11:22]*** CUTSNS_PIN = 1 [10:11:22]*** CUTSNS_PIN = 0 [10:11:22]*** Brake cut motor [10:11:22]Read from MH i2c: 01 [10:11:22]MH_I2C_Read... [10:11:22]*** Stop cut motor [10:11:22]*** Cut end [10:11:22]Read from MH i2c: 01 07 00 [10:11:22]MH_I2C_Read... [10:11:22]Read from MH i2c: 01 07 00 4D 01 00 00 00 00 00 FF 0F 63 [10:11:22]process_action close_receipt done [10:11:22]requested_data is exist [10:11:22]produce_requested_data [10:11:22]requested_item fm.sn is exist - process it [10:11:22]wFMCommunicate request_size=4 [10:11:22]MH_SAM_APDU [10:11:22]CAPDU: 80 11 00 00 [10:11:22]Write to MH i2c: E2 08 00 4E 01 80 11 00 00 00 00 00 00 C9 [10:11:22]Write i2c OK [10:11:22]MH_I2C_Read... [10:11:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:22]Read from MH i2c: E2 [10:11:22]MH_I2C_Read... [10:11:22]Read from MH i2c: E2 17 00 [10:11:22]MH_I2C_Read... [10:11:22]Read from MH i2c: E2 17 00 4E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 1B [10:11:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:11:22]wFMCommunicate OK [10:11:22]requested_item fd.num is exist - process it [10:11:22]SAM_PROTO_GetFieldsCounters [10:11:22]wFMCommunicate request_size=4 [10:11:22]MH_SAM_APDU [10:11:22]CAPDU: 80 13 00 00 [10:11:22]Write to MH i2c: E2 08 00 4F 01 80 13 00 00 00 00 00 00 CC [10:11:22]Write i2c OK [10:11:22]MH_I2C_Read... [10:11:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:22]Read from MH i2c: E2 [10:11:22]MH_I2C_Read... [10:11:22]Read from MH i2c: E2 62 00 [10:11:22]MH_I2C_Read... [10:11:22]Read from MH i2c: E2 62 00 4F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C9 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [10:11:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C9 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:11:22]wFMCommunicate OK [10:11:22]SAM_PROTO_GetFieldsCounters done [10:11:22]requested_item shift.num is exist - process it [10:11:22]requested_item shift.opened is exist - process it [10:11:22]req_shift_opened [10:11:22]FM_GetShiftState [10:11:22]SAM_PROTO_GetShiftState [10:11:22]wFMCommunicate request_size=4 [10:11:22]MH_SAM_APDU [10:11:22]CAPDU: 80 13 01 00 [10:11:22]Write to MH i2c: E2 08 00 50 01 80 13 01 00 00 00 00 00 CE [10:11:22]Write i2c OK [10:11:22]MH_I2C_Read... [10:11:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:22]Read from MH i2c: E2 [10:11:22]MH_I2C_Read... [10:11:22]Read from MH i2c: E2 0E 00 [10:11:22]MH_I2C_Read... [10:11:22]Read from MH i2c: E2 0E 00 50 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 D6 [10:11:22]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:11:22]wFMCommunicate OK [10:11:22]SAM_PROTO_GetShiftState done [10:11:22]FM_GetShiftState done [10:11:22]req_shift_opened done [10:11:22]requested_item shift.open_date is exist - process it [10:11:22]req_shift_open_date [10:11:22]req_shift_open_date done [10:11:22]produce_requested_data done [10:11:22]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82121,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [10:11:22]process_action_free close_receipt [10:11:22]json_value_free [10:11:22]json_value_free done [10:11:22]process_json_proto returns [10:11:22]Send response to host [10:11:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82121,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [10:11:22]free response buf [10:11:22]execute_script done [10:11:22]execute_script returns [10:11:22]free content buf [10:11:22]Sock 9.Close socket [10:11:22]Sock 9.Thread stoped [10:11:26]OFD Sender: No OFD packet to send [10:11:32]OFD Sender: No OFD packet to send [10:11:37]OFD Sender: No OFD packet to send [10:11:42]OFD Sender: No OFD packet to send [10:11:45]recv_with_timeout no data received [10:11:47]OFD Sender: No OFD packet to send [10:11:52]OFD Sender: No OFD packet to send [10:11:57]OFD Sender: No OFD packet to send [10:12:02]OFD Sender: No OFD packet to send [10:12:07]OFD Sender: No OFD packet to send [10:12:12]OFD Sender: No OFD packet to send [10:12:17]OFD Sender: No OFD packet to send [10:12:22]OFD Sender: No OFD packet to send [10:12:27]OFD Sender: No OFD packet to send [10:12:32]OFD Sender: No OFD packet to send [10:12:37]OFD Sender: No OFD packet to send [10:12:42]OFD Sender: No OFD packet to send [10:12:47]OFD Sender: No OFD packet to send [10:12:52]OFD Sender: No OFD packet to send [10:12:57]OFD Sender: No OFD packet to send [10:12:57]accept exits with 10 [10:12:57]New connection [10:12:57]New thread 3066658148 created [10:12:57]Thread 3066514788 joined [10:12:57]Waiting for new connection... [10:12:57] Sock 10.Parse request [10:12:57]Sock 10.Check first char [10:12:57]Sock 10.First char is OK [10:12:57]request: POST /json_proto HTTP/1.0 [10:12:57]Method: POST [10:12:57]URL: /json_proto [10:12:57]Method is POST - this is cgi request [10:12:57]url: /json_proto [10:12:57]query_string will be loaded in cgi processing [10:12:57]execute_cgi json_proto POST (null) [10:12:57]execute_cgi path=json_proto method=POST [10:12:57]POST find Content-Length [10:12:57]Host: 172.17.44.67:8080 [10:12:57]Content-Length: 759 [10:12:57]Content-Type: application/json [10:12:57] [10:12:57]POST finish read [10:12:57]Found Content-Length = 759 [10:12:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 60.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30033189", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:57]execute_script... [10:12:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 60.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30033189", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:57]POST & json_proto [10:12:57]process_json_proto [10:12:57]json parsed OK: [10:12:57]protocol is kg_v1.0 [10:12:57]action value=close_receipt [10:12:57]process_action close_receipt [10:12:57]cmd_close_receipt [10:12:57]MH_GetDate [10:12:57]Write to MH i2c: F0 00 00 51 01 41 [10:12:57]Write i2c OK [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: F0 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: F0 09 00 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: F0 09 00 51 01 00 2A E3 10 67 F1 C7 6B 64 55 [10:12:57]GetLastDocTimeStamp 1729159879 [10:12:57]current date 1729159978 [10:12:57]FM_GetShiftState [10:12:57]SAM_PROTO_GetShiftState [10:12:57]wFMCommunicate request_size=4 [10:12:57]MH_SAM_APDU [10:12:57]CAPDU: 80 13 01 00 [10:12:57]Write to MH i2c: E2 08 00 52 01 80 13 01 00 00 00 00 00 D0 [10:12:57]Write i2c OK [10:12:57]MH_I2C_Read... [10:12:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:57]Read from MH i2c: E2 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: E2 0E 00 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: E2 0E 00 52 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 D8 [10:12:57]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:12:57]wFMCommunicate OK [10:12:57]SAM_PROTO_GetShiftState done [10:12:57]FM_GetShiftState done [10:12:57]opened in 1729125927 [10:12:57]opened+sec_in_day 1729212327 [10:12:57]quantity*price = 0 [10:12:57]sum+1 = 1 [10:12:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 48 17.10.2024 10:12 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30033189 ФМ: 0000000000871843 ФД: 82122 ФПД: 86875875977425 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T101258&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82122&fm=86875875977425&tin=02508201610067®Number=0000000000091680&sum=0 [10:12:58]StoreToDocumentArchive [10:12:58]shift 525 fd 82122 [10:12:58]save to /storage/0525/doc_00082122 [10:12:58]save last doc name /storage/0525/doc_00082122 to /storage/kkm_last_doc_name [10:12:58]save OK [10:12:58]Clear old archive folders... [10:12:58]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:12:58]tlvbuf is 00ADDB80 [10:12:58]SAM_PROTO_ClearQueue [10:12:58]wFMCommunicate request_size=4 [10:12:58]MH_SAM_APDU [10:12:58]CAPDU: 80 09 00 00 [10:12:58]Write to MH i2c: E2 08 00 5F 01 80 09 00 00 00 00 00 00 D2 [10:12:58]Write i2c OK [10:12:58]MH_I2C_Read... [10:12:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:58]Read from MH i2c: E2 [10:12:58]MH_I2C_Read... [10:12:58]Read from MH i2c: E2 03 00 [10:12:58]MH_I2C_Read... [10:12:58]Read from MH i2c: E2 03 00 5F 01 00 90 00 D4 [10:12:58]RAPDU: 90 00 [10:12:58]wFMCommunicate OK [10:12:58]SAM_PROTO_ClearQueue done [10:12:58]KKMCreateOFDPacket [10:12:58]OFDProtocolAddRootSTLVToBuf [10:12:58]FM_MakeSignedData [10:12:58]FM_MakeSignedData [10:12:58]SAM_PROTO_SignData [10:12:58]wFMCommunicate request_size=4 [10:12:58]MH_SAM_APDU [10:12:58]CAPDU: 80 0D 01 02 [10:12:58]Write to MH i2c: E2 08 00 60 01 80 0D 01 02 00 00 00 00 DA [10:12:58]Write i2c OK [10:12:58]MH_I2C_Read... [10:12:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:58]Read from MH i2c: E2 [10:12:58]MH_I2C_Read... [10:12:58]Read from MH i2c: E2 03 00 [10:12:58]MH_I2C_Read... [10:12:58]Read from MH i2c: E2 03 00 60 01 00 90 00 D5 [10:12:58]RAPDU: 90 00 [10:12:58]wFMCommunicate OK [10:12:58]wFMCommunicate request_size=255 [10:12:58]MH_SAM_APDU [10:12:58]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 2A E3 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CA 40 01 00 35 04 06 00 [10:12:58]Write to MH i2c: E2 02 01 61 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 2A E3 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CA 40 01 00 35 04 06 00 00 00 35 [10:12:58]Write i2c OK [10:12:58]MH_I2C_Read... [10:12:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:59]Read from MH i2c: E2 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: E2 03 00 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: E2 03 00 61 01 00 90 00 D6 [10:12:59]RAPDU: 90 00 [10:12:59]wFMCommunicate OK [10:12:59]wFMCommunicate request_size=11 [10:12:59]MH_SAM_APDU [10:12:59]CAPDU: 80 0D 02 02 06 4F 03 5D BA 28 D1 [10:12:59]Write to MH i2c: E2 0E 00 62 01 80 0D 02 02 06 00 4F 03 5D BA 28 D1 00 00 4B [10:12:59]Write i2c OK [10:12:59]MH_I2C_Read... [10:12:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:59]Read from MH i2c: E2 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: E2 03 00 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: E2 03 00 62 01 00 90 00 D7 [10:12:59]RAPDU: 90 00 [10:12:59]wFMCommunicate OK [10:12:59]wFMCommunicate request_size=4 [10:12:59]MH_SAM_APDU [10:12:59]CAPDU: 80 0D 03 02 [10:12:59]Write to MH i2c: E2 08 00 63 01 80 0D 03 02 00 00 00 00 DF [10:12:59]Write i2c OK [10:12:59]MH_I2C_Read... [10:12:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:59]Read from MH i2c: E2 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: E2 0B 00 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: E2 0B 00 63 01 00 82 0C 9B FE 14 FA 03 34 90 00 4C [10:12:59]RAPDU: 82 0C 9B FE 14 FA 03 34 90 00 [10:12:59]wFMCommunicate OK [10:12:59]SAM_PROTO_SignData done [10:12:59]FM_MakeSignedData done [10:12:59]CreateOFDProtocolMessage [10:12:59]wFMCommunicate request_size=4 [10:12:59]MH_SAM_APDU [10:12:59]CAPDU: 80 11 00 00 [10:12:59]Write to MH i2c: E2 08 00 64 01 80 11 00 00 00 00 00 00 DF [10:12:59]Write i2c OK [10:12:59]MH_I2C_Read... [10:12:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:59]Read from MH i2c: E2 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: E2 17 00 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: E2 17 00 64 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 31 [10:12:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:12:59]wFMCommunicate OK [10:12:59]CreateOFDProtocolMessage done [10:12:59]OFDSenderStorePacket 82122 [10:12:59]StoreOFDPacket docnum=82122 [10:12:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 23 F4 08 01 33 79 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 2A E3 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CA 40 01 00 35 04 06 00 4F 03 5D BA 28 D1 82 0C 9B FE 14 FA 03 34 [10:12:59]CheckFolder [10:12:59]dirname=/storage/ofd_packets [10:12:59]CheckFolder done [10:12:59]ProducePacketName [10:12:59]name=ofd_packets/00082122 [10:12:59]NVStorageSaveData ofd_packets/00082122 [10:12:59]File name is /storage/ofd_packets/00082122 [10:12:59]Write 302 bytes [10:12:59]NVStorageSaveData done [10:12:59]OFDSenderStorePacket done [10:12:59]KKMCreateOFDPacket done [10:12:59]NVStorageSaveData kkm_last_timestamp [10:12:59]File name is /storage/kkm_last_timestamp [10:12:59]Write 4 bytes [10:12:59]NVStorageSaveData done [10:12:59]ExternCall_PrintAddStr [10:12:59]wPrintStart [10:12:59]Write to MH i2c: 01 00 00 65 01 66 [10:12:59]Write i2c OK [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: 01 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: 01 07 00 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: 01 07 00 65 01 00 00 00 00 00 FF 0F 7B [10:12:59]RasterBufferAndPrint [10:12:59]line Счет N : (1)918628 [10:12:59]line ИНН: 02508201610067 [10:12:59]line Контрольно-Кассовый Чек [10:12:59]line ПРОДАЖА [10:12:59]line ТРК (МРК, ГНК) : 31 [10:12:59]line Товар: 2710194210 [10:12:59]line ДТ(л)-К-5 [10:12:59]line 60.000 * 0.00 [10:12:59]line = 0.00 [10:12:59]line НДС 12% НСП 1% [10:12:59]line > о реализуемом товаре [10:12:59]line ИТОГО: 0.00 [10:12:59]line НСП 1% : 0.00 [10:12:59]line НДС 12% : 0.00 [10:12:59]line Наличными: 0.00 [10:12:59]line Безнал.: 0.00 [10:12:59]line Место: АЗС № 114 "Партнер Нефть" [10:12:59]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:12:59]line СНО: Общий режим [10:12:59]line Чек 48 17.10.2024 10:12 [10:12:59]line Смена: 525 ФФД: 1.0 [10:12:59]line ЗНМ: 0300000086 [10:12:59]line РНМ: 0000000000091680 [10:12:59]line Версия ККМ: 001 [10:12:59]line Талоны: ТК ГПНА Online [10:12:59]line 30033189 [10:12:59]line ФМ: 0000000000871843 [10:12:59]line ФД: 82122 [10:12:59]line ФПД: 86875875977425 [10:12:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T101258&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82122&fm=86875875977425&tin=02508201610067®Number=0000000000091680&sum=0 [10:12:59]written 0, free lines is 4095 [10:12:59]OFD Sender: Processing packet 82122 [packets to send 254, broken 253] [10:12:59]ProducePacketName [10:12:59]name=ofd_packets/00082122 [10:12:59]OFD Sender: To server: pG, [10:12:59]CommunicateWithHost lk.salyk.kg:30040 [10:12:59]ConnectInit lk.salyk.kg [10:12:59]Write to MH i2c: 01 00 00 8F 01 90 [10:12:59]Write i2c OK [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: 01 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: 01 07 00 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 E9 0C 8C [10:12:59]RasterBufferAndPrint [10:12:59]line [10:12:59]line [10:12:59]line [10:12:59]line [10:12:59]line [10:12:59]written 0, free lines is 3313 [10:12:59]MH_Cut [10:12:59]Write to MH i2c: D1 01 00 96 01 01 69 [10:12:59]Write i2c OK [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: D1 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: D1 01 00 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: D1 01 00 96 01 00 68 [10:12:59]Write to MH i2c: 01 00 00 97 01 98 [10:12:59]Write i2c OK [10:12:59]MH_I2C_Read... [10:13:00]Connected sock=9 [10:13:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 23 F4 08 01 33 79 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 2A E3 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CA 40 01 00 35 04 06 00 4F 03 5D BA 28 D1 82 0C 9B FE 14 FA 03 34 [10:13:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 F3 C7 47 00 38 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CA 40 01 00 F4 03 04 00 69 88 10 67 B6 04 01 00 00 9B F5 6E 7D BD 42 5E F7 [10:13:00]CommunicateWithHost err = 0 [10:13:00]CheckOFDResponse [10:13:00]1017 (14) - 77093643461234 [10:13:00]1041 (16) - 0000000000871843 [10:13:00]1040 (4) - 82122 [10:13:00]1012 (4) - 17.10.2024 03:45 [10:13:00]1206 (1) - 0 [10:13:00]OFD Sender: Remove packet 82122 [10:13:00]ProducePacketName [10:13:00]name=ofd_packets/00082122 [10:13:00]NVStorageDeleteData [10:13:00]*** Cut start [10:13:00]*** Partial cut [10:13:00]*** CUTSNS_PIN = 1 [10:13:00]*** CUTSNS_PIN = 0 [10:13:00]*** Brake cut motor [10:13:00]OFD Sender: No OFD packet to send [10:13:01]Read from MH i2c: 01 [10:13:01]MH_I2C_Read... [10:13:01]*** Stop cut motor [10:13:01]*** Cut end [10:13:01]Read from MH i2c: 01 07 00 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: 01 07 00 97 01 00 00 00 00 00 FF 0F AD [10:13:01]process_action close_receipt done [10:13:01]requested_data is exist [10:13:01]produce_requested_data [10:13:01]requested_item fm.sn is exist - process it [10:13:01]wFMCommunicate request_size=4 [10:13:01]MH_SAM_APDU [10:13:01]CAPDU: 80 11 00 00 [10:13:01]Write to MH i2c: E2 08 00 98 01 80 11 00 00 00 00 00 00 13 [10:13:01]Write i2c OK [10:13:01]MH_I2C_Read... [10:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:01]Read from MH i2c: E2 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 17 00 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 17 00 98 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 65 [10:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:13:01]wFMCommunicate OK [10:13:01]requested_item fd.num is exist - process it [10:13:01]SAM_PROTO_GetFieldsCounters [10:13:01]wFMCommunicate request_size=4 [10:13:01]MH_SAM_APDU [10:13:01]CAPDU: 80 13 00 00 [10:13:01]Write to MH i2c: E2 08 00 99 01 80 13 00 00 00 00 00 00 16 [10:13:01]Write i2c OK [10:13:01]MH_I2C_Read... [10:13:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:01]Read from MH i2c: E2 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 62 00 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 62 00 99 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 CA 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [10:13:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 CA 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:13:01]wFMCommunicate OK [10:13:01]SAM_PROTO_GetFieldsCounters done [10:13:01]requested_item shift.num is exist - process it [10:13:01]requested_item shift.opened is exist - process it [10:13:01]req_shift_opened [10:13:01]FM_GetShiftState [10:13:01]SAM_PROTO_GetShiftState [10:13:01]wFMCommunicate request_size=4 [10:13:01]MH_SAM_APDU [10:13:01]CAPDU: 80 13 01 00 [10:13:01]Write to MH i2c: E2 08 00 9A 01 80 13 01 00 00 00 00 00 18 [10:13:01]Write i2c OK [10:13:01]MH_I2C_Read... [10:13:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:01]Read from MH i2c: E2 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 0E 00 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 0E 00 9A 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 20 [10:13:01]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:13:01]wFMCommunicate OK [10:13:01]SAM_PROTO_GetShiftState done [10:13:01]FM_GetShiftState done [10:13:01]req_shift_opened done [10:13:01]requested_item shift.open_date is exist - process it [10:13:01]req_shift_open_date [10:13:01]req_shift_open_date done [10:13:01]produce_requested_data done [10:13:01]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82122,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [10:13:01]process_action_free close_receipt [10:13:01]json_value_free [10:13:01]json_value_free done [10:13:01]process_json_proto returns [10:13:01]Send response to host [10:13:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82122,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [10:13:01]free response buf [10:13:01]execute_script done [10:13:01]execute_script returns [10:13:01]free content buf [10:13:01]Sock 10.Close socket [10:13:01]Sock 10.Thread stoped [10:13:06]OFD Sender: No OFD packet to send [10:13:11]OFD Sender: No OFD packet to send [10:13:14]recv_with_timeout no data received [10:13:16]OFD Sender: No OFD packet to send [10:13:18]accept exits with 8 [10:13:18]New connection [10:13:18]New thread 3066514788 created [10:13:18]Thread 3066658148 joined [10:13:18]Waiting for new connection... [10:13:18] Sock 8.Parse request [10:13:18]Sock 8.Check first char [10:13:18]Sock 8.First char is OK [10:13:18]request: POST /json_proto HTTP/1.0 [10:13:18]Method: POST [10:13:18]URL: /json_proto [10:13:18]Method is POST - this is cgi request [10:13:18]url: /json_proto [10:13:18]query_string will be loaded in cgi processing [10:13:18]execute_cgi json_proto POST (null) [10:13:18]execute_cgi path=json_proto method=POST [10:13:18]POST find Content-Length [10:13:18]Host: 172.17.44.67:8080 [10:13:18]Content-Length: 623 [10:13:18]Content-Type: application/json [10:13:18] [10:13:18]POST finish read [10:13:18]Found Content-Length = 623 [10:13:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10587", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:18]execute_script... [10:13:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10587", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:18]POST & json_proto [10:13:18]process_json_proto [10:13:18]json parsed OK: [10:13:18]protocol is kg_v1.0 [10:13:18]action value=close_receipt [10:13:18]process_action close_receipt [10:13:18]cmd_close_receipt [10:13:18]MH_GetDate [10:13:18]Write to MH i2c: F0 00 00 9B 01 8B [10:13:18]Write i2c OK [10:13:18]MH_I2C_Read... [10:13:18]Read from MH i2c: F0 [10:13:18]MH_I2C_Read... [10:13:18]Read from MH i2c: F0 09 00 [10:13:18]MH_I2C_Read... [10:13:18]Read from MH i2c: F0 09 00 9B 01 00 3F E3 10 67 F1 C7 6B 64 B4 [10:13:18]GetLastDocTimeStamp 1729159978 [10:13:18]current date 1729159999 [10:13:18]FM_GetShiftState [10:13:18]SAM_PROTO_GetShiftState [10:13:18]wFMCommunicate request_size=4 [10:13:18]MH_SAM_APDU [10:13:18]CAPDU: 80 13 01 00 [10:13:18]Write to MH i2c: E2 08 00 9C 01 80 13 01 00 00 00 00 00 1A [10:13:18]Write i2c OK [10:13:18]MH_I2C_Read... [10:13:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:18]Read from MH i2c: E2 [10:13:18]MH_I2C_Read... [10:13:18]Read from MH i2c: E2 0E 00 [10:13:18]MH_I2C_Read... [10:13:18]Read from MH i2c: E2 0E 00 9C 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 22 [10:13:18]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:13:18]wFMCommunicate OK [10:13:18]SAM_PROTO_GetShiftState done [10:13:18]FM_GetShiftState done [10:13:18]opened in 1729125927 [10:13:18]opened+sec_in_day 1729212327 [10:13:18]quantity*price = 16000 [10:13:18]sum+1 = 16001 [10:13:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 49 17.10.2024 10:13 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82123 ФПД: 105796833218565 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T101319&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82123&fm=105796833218565&tin=02508201610067®Number=0000000000091680&sum=16000 0 [10:13:19]StoreToDocumentArchive [10:13:19]shift 525 fd 82123 [10:13:19]save to /storage/0525/doc_00082123 [10:13:19]save last doc name /storage/0525/doc_00082123 to /storage/kkm_last_doc_name [10:13:19]save OK [10:13:19]Clear old archive folders... [10:13:19]ProcessDocumentItem done err = 0, tmpTLVsize=276 [10:13:19]tlvbuf is 00AF1B30 [10:13:19]SAM_PROTO_ClearQueue [10:13:19]wFMCommunicate request_size=4 [10:13:19]MH_SAM_APDU [10:13:19]CAPDU: 80 09 00 00 [10:13:19]Write to MH i2c: E2 08 00 A9 01 80 09 00 00 00 00 00 00 1C [10:13:19]Write i2c OK [10:13:19]MH_I2C_Read... [10:13:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:19]Read from MH i2c: E2 [10:13:19]MH_I2C_Read... [10:13:19]Read from MH i2c: E2 03 00 [10:13:19]MH_I2C_Read... [10:13:19]Read from MH i2c: E2 03 00 A9 01 00 90 00 1E [10:13:19]RAPDU: 90 00 [10:13:19]wFMCommunicate OK [10:13:19]SAM_PROTO_ClearQueue done [10:13:19]KKMCreateOFDPacket [10:13:19]OFDProtocolAddRootSTLVToBuf [10:13:19]FM_MakeSignedData [10:13:19]FM_MakeSignedData [10:13:19]SAM_PROTO_SignData [10:13:19]wFMCommunicate request_size=4 [10:13:19]MH_SAM_APDU [10:13:19]CAPDU: 80 0D 01 02 [10:13:19]Write to MH i2c: E2 08 00 AA 01 80 0D 01 02 00 00 00 00 24 [10:13:19]Write i2c OK [10:13:19]MH_I2C_Read... [10:13:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:19]Read from MH i2c: E2 [10:13:19]MH_I2C_Read... [10:13:19]Read from MH i2c: E2 03 00 [10:13:19]MH_I2C_Read... [10:13:19]Read from MH i2c: E2 03 00 AA 01 00 90 00 1F [10:13:19]RAPDU: 90 00 [10:13:19]wFMCommunicate OK [10:13:19]wFMCommunicate request_size=255 [10:13:19]MH_SAM_APDU [10:13:19]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 3F E3 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 [10:13:19]Write to MH i2c: E2 02 01 AB 01 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 3F E3 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 00 00 D6 [10:13:19]Write i2c OK [10:13:19]MH_I2C_Read... [10:13:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:19]Read from MH i2c: E2 [10:13:19]MH_I2C_Read... [10:13:19]Read from MH i2c: E2 03 00 [10:13:19]MH_I2C_Read... [10:13:19]Read from MH i2c: E2 03 00 AB 01 00 90 00 20 [10:13:19]RAPDU: 90 00 [10:13:19]wFMCommunicate OK [10:13:19]wFMCommunicate request_size=35 [10:13:19]MH_SAM_APDU [10:13:19]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CB 40 01 00 35 04 06 00 60 38 BE A9 90 05 [10:13:19]Write to MH i2c: E2 26 00 AC 01 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CB 40 01 00 35 04 06 00 60 38 BE A9 90 05 00 00 B9 [10:13:19]Write i2c OK [10:13:19]MH_I2C_Read... [10:13:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:19]Read from MH i2c: E2 [10:13:19]MH_I2C_Read... [10:13:19]Read from MH i2c: E2 03 00 [10:13:19]MH_I2C_Read... [10:13:19]Read from MH i2c: E2 03 00 AC 01 00 90 00 21 [10:13:19]RAPDU: 90 00 [10:13:19]wFMCommunicate OK [10:13:19]wFMCommunicate request_size=4 [10:13:19]MH_SAM_APDU [10:13:19]CAPDU: 80 0D 03 02 [10:13:19]Write to MH i2c: E2 08 00 AD 01 80 0D 03 02 00 00 00 00 29 [10:13:19]Write i2c OK [10:13:19]MH_I2C_Read... [10:13:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:19]Read from MH i2c: E2 [10:13:19]MH_I2C_Read... [10:13:19]Read from MH i2c: E2 0B 00 [10:13:19]MH_I2C_Read... [10:13:19]Read from MH i2c: E2 0B 00 AD 01 00 0D 28 0F 17 A2 CF AE F4 90 00 98 [10:13:19]RAPDU: 0D 28 0F 17 A2 CF AE F4 90 00 [10:13:19]wFMCommunicate OK [10:13:19]SAM_PROTO_SignData done [10:13:19]FM_MakeSignedData done [10:13:19]CreateOFDProtocolMessage [10:13:19]wFMCommunicate request_size=4 [10:13:19]MH_SAM_APDU [10:13:19]CAPDU: 80 11 00 00 [10:13:19]Write to MH i2c: E2 08 00 AE 01 80 11 00 00 00 00 00 00 29 [10:13:19]Write i2c OK [10:13:19]MH_I2C_Read... [10:13:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:19]Read from MH i2c: E2 [10:13:19]MH_I2C_Read... [10:13:19]Read from MH i2c: E2 17 00 [10:13:19]MH_I2C_Read... [10:13:19]Read from MH i2c: E2 17 00 AE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 7B [10:13:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:13:19]wFMCommunicate OK [10:13:19]CreateOFDProtocolMessage done [10:13:19]OFDSenderStorePacket 82123 [10:13:19]StoreOFDPacket docnum=82123 [10:13:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 28 01 00 00 E3 0A 20 01 00 E0 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 3F E3 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CB 40 01 00 35 04 06 00 60 38 BE A9 90 05 0D 28 0F 17 A2 CF AE F4 [10:13:19]CheckFolder [10:13:19]dirname=/storage/ofd_packets [10:13:19]CheckFolder done [10:13:19]ProducePacketName [10:13:19]name=ofd_packets/00082123 [10:13:19]NVStorageSaveData ofd_packets/00082123 [10:13:19]File name is /storage/ofd_packets/00082123 [10:13:19]Write 326 bytes [10:13:19]NVStorageSaveData done [10:13:19]OFDSenderStorePacket done [10:13:19]KKMCreateOFDPacket done [10:13:19]NVStorageSaveData kkm_last_timestamp [10:13:19]File name is /storage/kkm_last_timestamp [10:13:19]Write 4 bytes [10:13:19]NVStorageSaveData done [10:13:19]ExternCall_PrintAddStr [10:13:19]wPrintStart [10:13:19]Write to MH i2c: 01 00 00 AF 01 B0 [10:13:19]Write i2c OK [10:13:19]MH_I2C_Read... [10:13:19]Read from MH i2c: 01 [10:13:19]MH_I2C_Read... [10:13:19]Read from MH i2c: 01 07 00 [10:13:19]MH_I2C_Read... [10:13:19]Read from MH i2c: 01 07 00 AF 01 00 00 00 00 00 FF 0F C5 [10:13:19]RasterBufferAndPrint [10:13:19]line Счет N : (3)10587 [10:13:19]line ИНН: 02508201610067 [10:13:19]line Контрольно-Кассовый Чек [10:13:19]line ПРОДАЖА [10:13:19]line Товар: 48742245 [10:13:19]line Сигареты Parliament Silver Blue [10:13:19]line 1.000 * 160.00 [10:13:19]line = 160.00 [10:13:19]line НДС 12% НСП 1% [10:13:19]line > о реализуемом товаре [10:13:19]line ИТОГО: 160.00 [10:13:19]line НСП 1% : 1.42 [10:13:19]line НДС 12% : 16.99 [10:13:19]line Наличными: 160.00 [10:13:19]line Безнал.: 0.00 [10:13:19]line Место: АЗС № 114 "Партнер Нефть" [10:13:19]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:13:19]line СНО: Общий режим [10:13:19]line Чек 49 17.10.2024 10:13 [10:13:19]line Смена: 525 ФФД: 1.0 [10:13:19]line ЗНМ: 0300000086 [10:13:19]line РНМ: 0000000000091680 [10:13:19]line Версия ККМ: 001 [10:13:19]line ФМ: 0000000000871843 [10:13:19]line ФД: 82123 [10:13:19]line ФПД: 105796833218565 [10:13:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T101319&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82123&fm=105796833218565&tin=02508201610067®Number=0000000000091680&sum=16000 [10:13:19]line 0 [10:13:19]written 0, free lines is 4095 [10:13:19]OFD Sender: Processing packet 82123 [packets to send 254, broken 253] [10:13:19]ProducePacketName [10:13:19]name=ofd_packets/00082123 [10:13:19]OFD Sender: To server: pG, [10:13:19]CommunicateWithHost lk.salyk.kg:30040 [10:13:19]ConnectInit lk.salyk.kg [10:13:20]Write to MH i2c: 01 00 00 D8 01 D9 [10:13:20]Write i2c OK [10:13:20]MH_I2C_Read... [10:13:20]Read from MH i2c: 01 [10:13:20]MH_I2C_Read... [10:13:20]Read from MH i2c: 01 07 00 [10:13:20]MH_I2C_Read... [10:13:20]Read from MH i2c: 01 07 00 D8 01 00 00 00 00 00 D6 0C C2 [10:13:20]RasterBufferAndPrint [10:13:20]line [10:13:20]line [10:13:20]line [10:13:20]line [10:13:20]line [10:13:20]written 0, free lines is 3292 [10:13:20]MH_Cut [10:13:20]Write to MH i2c: D1 01 00 DF 01 01 B2 [10:13:20]Write i2c OK [10:13:20]MH_I2C_Read... [10:13:20]Read from MH i2c: D1 [10:13:20]MH_I2C_Read... [10:13:20]Read from MH i2c: D1 01 00 [10:13:20]MH_I2C_Read... [10:13:20]Read from MH i2c: D1 01 00 DF 01 00 B1 [10:13:20]Write to MH i2c: 01 00 00 E0 01 E1 [10:13:20]Write i2c OK [10:13:20]MH_I2C_Read... [10:13:21]*** Cut start [10:13:21]*** Partial cut [10:13:21]*** CUTSNS_PIN = 1 [10:13:21]*** CUTSNS_PIN = 0 [10:13:21]*** Brake cut motor [10:13:21]Read from MH i2c: 01 [10:13:21]MH_I2C_Read... [10:13:21]*** Stop cut motor [10:13:21]*** Cut end [10:13:21]Read from MH i2c: 01 07 00 [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: 01 07 00 E0 01 00 00 00 00 00 FF 0F F6 [10:13:21]process_action close_receipt done [10:13:21]requested_data is exist [10:13:21]produce_requested_data [10:13:21]requested_item fm.sn is exist - process it [10:13:21]wFMCommunicate request_size=4 [10:13:21]MH_SAM_APDU [10:13:21]CAPDU: 80 11 00 00 [10:13:21]Write to MH i2c: E2 08 00 E1 01 80 11 00 00 00 00 00 00 5C [10:13:21]Write i2c OK [10:13:21]MH_I2C_Read... [10:13:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:21]Read from MH i2c: E2 [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: E2 17 00 [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: E2 17 00 E1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 AE [10:13:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:13:21]wFMCommunicate OK [10:13:21]requested_item fd.num is exist - process it [10:13:21]SAM_PROTO_GetFieldsCounters [10:13:21]wFMCommunicate request_size=4 [10:13:21]MH_SAM_APDU [10:13:21]CAPDU: 80 13 00 00 [10:13:21]Write to MH i2c: E2 08 00 E2 01 80 13 00 00 00 00 00 00 5F [10:13:21]Write i2c OK [10:13:21]MH_I2C_Read... [10:13:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:21]Read from MH i2c: E2 [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: E2 62 00 [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: E2 62 00 E2 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 CB 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [10:13:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 CB 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:13:22]wFMCommunicate OK [10:13:22]SAM_PROTO_GetFieldsCounters done [10:13:22]requested_item shift.num is exist - process it [10:13:22]requested_item shift.opened is exist - process it [10:13:22]req_shift_opened [10:13:22]FM_GetShiftState [10:13:22]SAM_PROTO_GetShiftState [10:13:22]wFMCommunicate request_size=4 [10:13:22]MH_SAM_APDU [10:13:22]CAPDU: 80 13 01 00 [10:13:22]Write to MH i2c: E2 08 00 E3 01 80 13 01 00 00 00 00 00 61 [10:13:22]Write i2c OK [10:13:22]MH_I2C_Read... [10:13:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:22]Read from MH i2c: E2 [10:13:22]MH_I2C_Read... [10:13:22]Read from MH i2c: E2 0E 00 [10:13:22]MH_I2C_Read... [10:13:22]Read from MH i2c: E2 0E 00 E3 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 69 [10:13:22]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:13:22]wFMCommunicate OK [10:13:22]SAM_PROTO_GetShiftState done [10:13:22]FM_GetShiftState done [10:13:22]req_shift_opened done [10:13:22]requested_item shift.open_date is exist - process it [10:13:22]req_shift_open_date [10:13:22]req_shift_open_date done [10:13:22]produce_requested_data done [10:13:22]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82123,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [10:13:22]process_action_free close_receipt [10:13:22]json_value_free [10:13:22]json_value_free done [10:13:22]process_json_proto returns [10:13:22]Send response to host [10:13:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82123,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [10:13:22]free response buf [10:13:22]execute_script done [10:13:22]execute_script returns [10:13:22]free content buf [10:13:22]Sock 8.Close socket [10:13:22]Sock 8.Thread stoped [10:13:22]Connected sock=11 [10:13:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 28 01 00 00 E3 0A 20 01 00 E0 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 3F E3 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CB 40 01 00 35 04 06 00 60 38 BE A9 90 05 0D 28 0F 17 A2 CF AE F4 [10:13:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 5B 21 47 00 95 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CB 40 01 00 F4 03 04 00 7F 88 10 67 B6 04 01 00 00 20 0A 86 5B C1 25 DC 64 [10:13:22]CommunicateWithHost err = 0 [10:13:22]CheckOFDResponse [10:13:22]1017 (14) - 77093643461234 [10:13:22]1041 (16) - 0000000000871843 [10:13:22]1040 (4) - 82123 [10:13:22]1012 (4) - 17.10.2024 03:46 [10:13:22]1206 (1) - 0 [10:13:22]OFD Sender: Remove packet 82123 [10:13:22]ProducePacketName [10:13:22]name=ofd_packets/00082123 [10:13:22]NVStorageDeleteData [10:13:23]OFD Sender: No OFD packet to send [10:13:28]OFD Sender: No OFD packet to send [10:13:33]OFD Sender: No OFD packet to send [10:13:38]OFD Sender: No OFD packet to send [10:13:43]OFD Sender: No OFD packet to send [10:13:48]OFD Sender: No OFD packet to send [10:13:50]recv_with_timeout no data received [10:13:53]OFD Sender: No OFD packet to send [10:13:58]OFD Sender: No OFD packet to send [10:14:03]OFD Sender: No OFD packet to send [10:14:08]OFD Sender: No OFD packet to send [10:14:13]OFD Sender: No OFD packet to send [10:14:18]OFD Sender: No OFD packet to send [10:14:23]OFD Sender: No OFD packet to send [10:14:28]OFD Sender: No OFD packet to send [10:14:33]OFD Sender: No OFD packet to send [10:14:38]OFD Sender: No OFD packet to send [10:14:43]OFD Sender: No OFD packet to send [10:14:48]OFD Sender: No OFD packet to send [10:14:53]OFD Sender: No OFD packet to send [10:14:58]OFD Sender: No OFD packet to send [10:15:03]OFD Sender: No OFD packet to send [10:15:08]OFD Sender: No OFD packet to send [10:15:13]OFD Sender: No OFD packet to send [10:15:18]OFD Sender: No OFD packet to send [10:15:23]OFD Sender: No OFD packet to send [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:38]OFD Sender: No OFD packet to send [10:15:43]OFD Sender: No OFD packet to send [10:15:48]OFD Sender: No OFD packet to send [10:15:53]OFD Sender: No OFD packet to send [10:15:58]OFD Sender: No OFD packet to send [10:16:03]OFD Sender: No OFD packet to send [10:16:08]OFD Sender: No OFD packet to send [10:16:13]OFD Sender: No OFD packet to send [10:16:18]OFD Sender: No OFD packet to send [10:16:23]OFD Sender: No OFD packet to send [10:16:28]OFD Sender: No OFD packet to send [10:16:33]OFD Sender: No OFD packet to send [10:16:38]OFD Sender: No OFD packet to send [10:16:43]OFD Sender: No OFD packet to send [10:16:46]accept exits with 9 [10:16:46]New connection [10:16:46]New thread 3066658148 created [10:16:46]Thread 3066514788 joined [10:16:46]Waiting for new connection... [10:16:46] Sock 9.Parse request [10:16:46]Sock 9.Check first char [10:16:46]Sock 9.First char is OK [10:16:46]request: POST /json_proto HTTP/1.0 [10:16:46]Method: POST [10:16:46]URL: /json_proto [10:16:46]Method is POST - this is cgi request [10:16:46]url: /json_proto [10:16:46]query_string will be loaded in cgi processing [10:16:46]execute_cgi json_proto POST (null) [10:16:46]execute_cgi path=json_proto method=POST [10:16:46]POST find Content-Length [10:16:46]Host: 172.17.44.67:8080 [10:16:46]Content-Length: 754 [10:16:46]Content-Type: application/json [10:16:46] [10:16:46]POST finish read [10:16:46]Found Content-Length = 754 [10:16:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100780", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:46]execute_script... [10:16:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100780", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:46]POST & json_proto [10:16:46]process_json_proto [10:16:46]json parsed OK: [10:16:46]protocol is kg_v1.0 [10:16:46]action value=close_receipt [10:16:46]process_action close_receipt [10:16:46]cmd_close_receipt [10:16:46]MH_GetDate [10:16:46]Write to MH i2c: F0 00 00 E4 01 D4 [10:16:46]Write i2c OK [10:16:46]MH_I2C_Read... [10:16:46]Read from MH i2c: F0 [10:16:46]MH_I2C_Read... [10:16:46]Read from MH i2c: F0 09 00 [10:16:46]MH_I2C_Read... [10:16:46]Read from MH i2c: F0 09 00 E4 01 00 0E E4 10 67 F1 C7 6B 64 CD [10:16:46]GetLastDocTimeStamp 1729159999 [10:16:46]current date 1729160206 [10:16:46]FM_GetShiftState [10:16:46]SAM_PROTO_GetShiftState [10:16:46]wFMCommunicate request_size=4 [10:16:46]MH_SAM_APDU [10:16:46]CAPDU: 80 13 01 00 [10:16:46]Write to MH i2c: E2 08 00 E5 01 80 13 01 00 00 00 00 00 63 [10:16:46]Write i2c OK [10:16:46]MH_I2C_Read... [10:16:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:46]Read from MH i2c: E2 [10:16:46]MH_I2C_Read... [10:16:46]Read from MH i2c: E2 0E 00 [10:16:46]MH_I2C_Read... [10:16:46]Read from MH i2c: E2 0E 00 E5 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 6B [10:16:46]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:16:46]wFMCommunicate OK [10:16:46]SAM_PROTO_GetShiftState done [10:16:46]FM_GetShiftState done [10:16:46]opened in 1729125927 [10:16:46]opened+sec_in_day 1729212327 [10:16:46]quantity*price = 0 [10:16:46]sum+1 = 1 [10:16:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 50 17.10.2024 10:16 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30100780 ФМ: 0000000000871843 ФД: 82124 ФПД: 128621870940976 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T101646&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82124&fm=128621870940976&tin=02508201610067®Number=0000000000091680&sum=0 [10:16:47]StoreToDocumentArchive [10:16:47]shift 525 fd 82124 [10:16:47]save to /storage/0525/doc_00082124 [10:16:47]save last doc name /storage/0525/doc_00082124 to /storage/kkm_last_doc_name [10:16:47]save OK [10:16:47]Clear old archive folders... [10:16:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:16:47]tlvbuf is 00AE5EF0 [10:16:47]SAM_PROTO_ClearQueue [10:16:47]wFMCommunicate request_size=4 [10:16:47]MH_SAM_APDU [10:16:47]CAPDU: 80 09 00 00 [10:16:47]Write to MH i2c: E2 08 00 F2 01 80 09 00 00 00 00 00 00 65 [10:16:47]Write i2c OK [10:16:47]MH_I2C_Read... [10:16:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:47]Read from MH i2c: E2 [10:16:47]MH_I2C_Read... [10:16:47]Read from MH i2c: E2 03 00 [10:16:47]MH_I2C_Read... [10:16:47]Read from MH i2c: E2 03 00 F2 01 00 90 00 67 [10:16:47]RAPDU: 90 00 [10:16:47]wFMCommunicate OK [10:16:47]SAM_PROTO_ClearQueue done [10:16:47]KKMCreateOFDPacket [10:16:47]OFDProtocolAddRootSTLVToBuf [10:16:47]FM_MakeSignedData [10:16:47]FM_MakeSignedData [10:16:47]SAM_PROTO_SignData [10:16:47]wFMCommunicate request_size=4 [10:16:47]MH_SAM_APDU [10:16:47]CAPDU: 80 0D 01 02 [10:16:47]Write to MH i2c: E2 08 00 F3 01 80 0D 01 02 00 00 00 00 6D [10:16:47]Write i2c OK [10:16:47]MH_I2C_Read... [10:16:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:47]Read from MH i2c: E2 [10:16:47]MH_I2C_Read... [10:16:47]Read from MH i2c: E2 03 00 [10:16:47]MH_I2C_Read... [10:16:47]Read from MH i2c: E2 03 00 F3 01 00 90 00 68 [10:16:47]RAPDU: 90 00 [10:16:47]wFMCommunicate OK [10:16:47]wFMCommunicate request_size=255 [10:16:47]MH_SAM_APDU [10:16:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 0E E4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CC 40 01 00 35 04 06 00 74 [10:16:47]Write to MH i2c: E2 02 01 F4 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 0E E4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CC 40 01 00 35 04 06 00 74 00 00 0D [10:16:47]Write i2c OK [10:16:47]MH_I2C_Read... [10:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:47]Read from MH i2c: E2 [10:16:47]MH_I2C_Read... [10:16:47]Read from MH i2c: E2 03 00 [10:16:47]MH_I2C_Read... [10:16:47]Read from MH i2c: E2 03 00 F4 01 00 90 00 69 [10:16:47]RAPDU: 90 00 [10:16:47]wFMCommunicate OK [10:16:47]wFMCommunicate request_size=10 [10:16:47]MH_SAM_APDU [10:16:47]CAPDU: 80 0D 02 02 05 FB 1C ED 83 30 [10:16:47]Write to MH i2c: E2 0D 00 F5 01 80 0D 02 02 05 00 FB 1C ED 83 30 00 00 31 [10:16:47]Write i2c OK [10:16:47]MH_I2C_Read... [10:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:47]Read from MH i2c: E2 [10:16:47]MH_I2C_Read... [10:16:47]Read from MH i2c: E2 03 00 [10:16:47]MH_I2C_Read... [10:16:47]Read from MH i2c: E2 03 00 F5 01 00 90 00 6A [10:16:47]RAPDU: 90 00 [10:16:47]wFMCommunicate OK [10:16:47]wFMCommunicate request_size=4 [10:16:47]MH_SAM_APDU [10:16:47]CAPDU: 80 0D 03 02 [10:16:47]Write to MH i2c: E2 08 00 F6 01 80 0D 03 02 00 00 00 00 72 [10:16:47]Write i2c OK [10:16:47]MH_I2C_Read... [10:16:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:47]Read from MH i2c: E2 [10:16:47]MH_I2C_Read... [10:16:47]Read from MH i2c: E2 0B 00 [10:16:47]MH_I2C_Read... [10:16:47]Read from MH i2c: E2 0B 00 F6 01 00 20 B6 7A 72 88 33 E0 B7 90 00 87 [10:16:47]RAPDU: 20 B6 7A 72 88 33 E0 B7 90 00 [10:16:47]wFMCommunicate OK [10:16:47]SAM_PROTO_SignData done [10:16:47]FM_MakeSignedData done [10:16:47]CreateOFDProtocolMessage [10:16:47]wFMCommunicate request_size=4 [10:16:47]MH_SAM_APDU [10:16:47]CAPDU: 80 11 00 00 [10:16:47]Write to MH i2c: E2 08 00 F7 01 80 11 00 00 00 00 00 00 72 [10:16:47]Write i2c OK [10:16:47]MH_I2C_Read... [10:16:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:47]Read from MH i2c: E2 [10:16:47]MH_I2C_Read... [10:16:47]Read from MH i2c: E2 17 00 [10:16:47]MH_I2C_Read... [10:16:47]Read from MH i2c: E2 17 00 F7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C4 [10:16:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:16:47]wFMCommunicate OK [10:16:47]CreateOFDProtocolMessage done [10:16:47]OFDSenderStorePacket 82124 [10:16:47]StoreOFDPacket docnum=82124 [10:16:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 AC 51 07 01 C5 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 0E E4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CC 40 01 00 35 04 06 00 74 FB 1C ED 83 30 20 B6 7A 72 88 33 E0 B7 [10:16:47]CheckFolder [10:16:47]dirname=/storage/ofd_packets [10:16:47]CheckFolder done [10:16:47]ProducePacketName [10:16:47]name=ofd_packets/00082124 [10:16:47]NVStorageSaveData ofd_packets/00082124 [10:16:47]File name is /storage/ofd_packets/00082124 [10:16:47]Write 301 bytes [10:16:47]NVStorageSaveData done [10:16:47]OFDSenderStorePacket done [10:16:47]KKMCreateOFDPacket done [10:16:47]NVStorageSaveData kkm_last_timestamp [10:16:47]File name is /storage/kkm_last_timestamp [10:16:47]Write 4 bytes [10:16:47]NVStorageSaveData done [10:16:47]ExternCall_PrintAddStr [10:16:47]wPrintStart [10:16:47]Write to MH i2c: 01 00 00 F8 01 F9 [10:16:47]Write i2c OK [10:16:47]MH_I2C_Read... [10:16:47]Read from MH i2c: 01 [10:16:47]MH_I2C_Read... [10:16:47]Read from MH i2c: 01 07 00 [10:16:47]MH_I2C_Read... [10:16:47]Read from MH i2c: 01 07 00 F8 01 00 00 00 00 00 FF 0F 0E [10:16:47]RasterBufferAndPrint [10:16:47]line Счет N : (1)918630 [10:16:47]line ИНН: 02508201610067 [10:16:47]line Контрольно-Кассовый Чек [10:16:47]line ПРОДАЖА [10:16:47]line ТРК (МРК, ГНК) : 11 [10:16:47]line Товар: 2710124130 [10:16:47]line Аи-92-К-4 [10:16:47]line 20.000 * 0.00 [10:16:47]line = 0.00 [10:16:47]line НДС 12% НСП 1% [10:16:47]line > о реализуемом товаре [10:16:47]line ИТОГО: 0.00 [10:16:47]line НСП 1% : 0.00 [10:16:47]line НДС 12% : 0.00 [10:16:47]line Наличными: 0.00 [10:16:47]line Безнал.: 0.00 [10:16:47]line Место: АЗС № 114 "Партнер Нефть" [10:16:47]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:16:47]line СНО: Общий режим [10:16:47]line Чек 50 17.10.2024 10:16 [10:16:47]line Смена: 525 ФФД: 1.0 [10:16:47]line ЗНМ: 0300000086 [10:16:47]line РНМ: 0000000000091680 [10:16:47]line Версия ККМ: 001 [10:16:47]line Талоны: ТК ГПНА Online [10:16:47]line 30100780 [10:16:47]line ФМ: 0000000000871843 [10:16:47]line ФД: 82124 [10:16:47]line ФПД: 128621870940976 [10:16:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T101646&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82124&fm=128621870940976&tin=02508201610067®Number=0000000000091680&sum=0 [10:16:47]written 0, free lines is 4095 [10:16:47]OFD Sender: Processing packet 82124 [packets to send 254, broken 253] [10:16:47]ProducePacketName [10:16:47]name=ofd_packets/00082124 [10:16:47]OFD Sender: To server: pG, [10:16:47]CommunicateWithHost lk.salyk.kg:30040 [10:16:47]ConnectInit lk.salyk.kg [10:16:48]Write to MH i2c: 01 00 00 22 02 24 [10:16:48]Write i2c OK [10:16:48]MH_I2C_Read... [10:16:48]Read from MH i2c: 01 [10:16:48]MH_I2C_Read... [10:16:48]Read from MH i2c: 01 07 00 [10:16:48]MH_I2C_Read... [10:16:48]Read from MH i2c: 01 07 00 22 02 00 00 00 00 00 E0 0C 17 [10:16:48]RasterBufferAndPrint [10:16:48]line [10:16:48]line [10:16:48]line [10:16:48]line [10:16:48]line [10:16:48]written 0, free lines is 3302 [10:16:48]MH_Cut [10:16:48]Write to MH i2c: D1 01 00 29 02 01 FD [10:16:48]Write i2c OK [10:16:48]MH_I2C_Read... [10:16:48]Read from MH i2c: D1 [10:16:48]MH_I2C_Read... [10:16:48]Read from MH i2c: D1 01 00 [10:16:48]MH_I2C_Read... [10:16:48]Read from MH i2c: D1 01 00 29 02 00 FC [10:16:48]Write to MH i2c: 01 00 00 2A 02 2C [10:16:48]Write i2c OK [10:16:48]MH_I2C_Read... [10:16:48]Connected sock=11 [10:16:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 AC 51 07 01 C5 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 0E E4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CC 40 01 00 35 04 06 00 74 FB 1C ED 83 30 20 B6 7A 72 88 33 E0 B7 [10:16:49]*** Cut start [10:16:49]*** Partial cut [10:16:49]*** CUTSNS_PIN = 1 [10:16:49]*** CUTSNS_PIN = 0 [10:16:49]*** Brake cut motor [10:16:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 ED 92 47 00 12 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CC 40 01 00 F4 03 04 00 4D 89 10 67 B6 04 01 00 00 A0 DB 3F DA FC 19 11 A3 [10:16:49]CommunicateWithHost err = 0 [10:16:49]CheckOFDResponse [10:16:49]1017 (14) - 77093643461234 [10:16:49]1041 (16) - 0000000000871843 [10:16:49]1040 (4) - 82124 [10:16:49]1012 (4) - 17.10.2024 03:49 [10:16:49]1206 (1) - 0 [10:16:49]OFD Sender: Remove packet 82124 [10:16:49]ProducePacketName [10:16:49]name=ofd_packets/00082124 [10:16:49]NVStorageDeleteData [10:16:49]Read from MH i2c: 01 [10:16:49]MH_I2C_Read... [10:16:49]*** Stop cut motor [10:16:49]*** Cut end [10:16:49]Read from MH i2c: 01 07 00 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: 01 07 00 2A 02 00 00 00 00 00 FF 0F 41 [10:16:49]process_action close_receipt done [10:16:49]requested_data is exist [10:16:49]produce_requested_data [10:16:49]requested_item fm.sn is exist - process it [10:16:49]wFMCommunicate request_size=4 [10:16:49]MH_SAM_APDU [10:16:49]CAPDU: 80 11 00 00 [10:16:49]Write to MH i2c: E2 08 00 2B 02 80 11 00 00 00 00 00 00 A7 [10:16:49]Write i2c OK [10:16:49]MH_I2C_Read... [10:16:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:49]Read from MH i2c: E2 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 17 00 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 17 00 2B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 F9 [10:16:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:16:49]wFMCommunicate OK [10:16:49]requested_item fd.num is exist - process it [10:16:49]SAM_PROTO_GetFieldsCounters [10:16:49]wFMCommunicate request_size=4 [10:16:49]MH_SAM_APDU [10:16:49]CAPDU: 80 13 00 00 [10:16:49]Write to MH i2c: E2 08 00 2C 02 80 13 00 00 00 00 00 00 AA [10:16:49]Write i2c OK [10:16:49]MH_I2C_Read... [10:16:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:49]Read from MH i2c: E2 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 62 00 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 62 00 2C 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 CC 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [10:16:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 CC 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:16:49]wFMCommunicate OK [10:16:49]SAM_PROTO_GetFieldsCounters done [10:16:49]requested_item shift.num is exist - process it [10:16:49]requested_item shift.opened is exist - process it [10:16:49]req_shift_opened [10:16:49]FM_GetShiftState [10:16:49]SAM_PROTO_GetShiftState [10:16:49]wFMCommunicate request_size=4 [10:16:49]MH_SAM_APDU [10:16:49]CAPDU: 80 13 01 00 [10:16:49]Write to MH i2c: E2 08 00 2D 02 80 13 01 00 00 00 00 00 AC [10:16:49]Write i2c OK [10:16:49]MH_I2C_Read... [10:16:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:49]Read from MH i2c: E2 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 0E 00 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 0E 00 2D 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 B4 [10:16:49]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:16:49]wFMCommunicate OK [10:16:49]SAM_PROTO_GetShiftState done [10:16:49]FM_GetShiftState done [10:16:49]req_shift_opened done [10:16:49]requested_item shift.open_date is exist - process it [10:16:49]req_shift_open_date [10:16:49]req_shift_open_date done [10:16:49]produce_requested_data done [10:16:49]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82124,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [10:16:49]process_action_free close_receipt [10:16:49]json_value_free [10:16:49]json_value_free done [10:16:49]process_json_proto returns [10:16:49]Send response to host [10:16:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82124,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [10:16:49]free response buf [10:16:49]execute_script done [10:16:49]execute_script returns [10:16:49]free content buf [10:16:49]Sock 9.Close socket [10:16:49]Sock 9.Thread stoped [10:16:49]OFD Sender: No OFD packet to send [10:16:54]OFD Sender: No OFD packet to send [10:16:58]recv_with_timeout no data received [10:17:00]OFD Sender: No OFD packet to send [10:17:03]accept exits with 10 [10:17:03]New connection [10:17:03]New thread 3066514788 created [10:17:03]Thread 3066658148 joined [10:17:03]Waiting for new connection... [10:17:03] Sock 10.Parse request [10:17:03]Sock 10.Check first char [10:17:03]Sock 10.First char is OK [10:17:03]request: POST /json_proto HTTP/1.0 [10:17:03]Method: POST [10:17:03]URL: /json_proto [10:17:03]Method is POST - this is cgi request [10:17:03]url: /json_proto [10:17:03]query_string will be loaded in cgi processing [10:17:03]execute_cgi json_proto POST (null) [10:17:03]execute_cgi path=json_proto method=POST [10:17:03]POST find Content-Length [10:17:03]Host: 172.17.44.67:8080 [10:17:03]Content-Length: 677 [10:17:03]Content-Type: application/json [10:17:03] [10:17:03]POST finish read [10:17:03]Found Content-Length = 677 [10:17:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 3.440, "sum" : 230.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 230.00, "total" : 230.00, "payments": [ { "type": 0, "sum" : 230.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:03]execute_script... [10:17:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 3.440, "sum" : 230.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 230.00, "total" : 230.00, "payments": [ { "type": 0, "sum" : 230.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:03]POST & json_proto [10:17:03]process_json_proto [10:17:03]json parsed OK: [10:17:03]protocol is kg_v1.0 [10:17:03]action value=close_receipt [10:17:03]process_action close_receipt [10:17:03]cmd_close_receipt [10:17:03]MH_GetDate [10:17:03]Write to MH i2c: F0 00 00 2E 02 1F [10:17:03]Write i2c OK [10:17:03]MH_I2C_Read... [10:17:03]Read from MH i2c: F0 [10:17:03]MH_I2C_Read... [10:17:03]Read from MH i2c: F0 09 00 [10:17:03]MH_I2C_Read... [10:17:03]Read from MH i2c: F0 09 00 2E 02 00 20 E4 10 67 F1 C7 6B 64 2A [10:17:03]GetLastDocTimeStamp 1729160206 [10:17:03]current date 1729160224 [10:17:03]FM_GetShiftState [10:17:03]SAM_PROTO_GetShiftState [10:17:03]wFMCommunicate request_size=4 [10:17:03]MH_SAM_APDU [10:17:03]CAPDU: 80 13 01 00 [10:17:03]Write to MH i2c: E2 08 00 2F 02 80 13 01 00 00 00 00 00 AE [10:17:03]Write i2c OK [10:17:03]MH_I2C_Read... [10:17:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:03]Read from MH i2c: E2 [10:17:03]MH_I2C_Read... [10:17:03]Read from MH i2c: E2 0E 00 [10:17:03]MH_I2C_Read... [10:17:03]Read from MH i2c: E2 0E 00 2F 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 B6 [10:17:03]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:17:03]wFMCommunicate OK [10:17:03]SAM_PROTO_GetShiftState done [10:17:03]FM_GetShiftState done [10:17:03]opened in 1729125927 [10:17:03]opened+sec_in_day 1729212327 [10:17:03]quantity*price = 23013 [10:17:03]sum+1 = 23015 [10:17:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 230.00 Внесено: 230.00 СДАЧА: 0.00 НСП 1% : 2.04 НДС 12% : 24.44 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 51 17.10.2024 10:17 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82125 ФПД: 19156019537204 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T101704&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82125&fm=19156019537204&tin=02508201610067®Number=0000000000091680&sum=23000 [10:17:04]StoreToDocumentArchive [10:17:04]shift 525 fd 82125 [10:17:04]save to /storage/0525/doc_00082125 [10:17:04]save last doc name /storage/0525/doc_00082125 to /storage/kkm_last_doc_name [10:17:04]save OK [10:17:04]Clear old archive folders... [10:17:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:17:04]tlvbuf is 00AFC910 [10:17:04]SAM_PROTO_ClearQueue [10:17:04]wFMCommunicate request_size=4 [10:17:04]MH_SAM_APDU [10:17:04]CAPDU: 80 09 00 00 [10:17:04]Write to MH i2c: E2 08 00 3C 02 80 09 00 00 00 00 00 00 B0 [10:17:04]Write i2c OK [10:17:04]MH_I2C_Read... [10:17:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:17:04]Read from MH i2c: E2 [10:17:04]MH_I2C_Read... [10:17:04]Read from MH i2c: E2 03 00 [10:17:04]MH_I2C_Read... [10:17:04]Read from MH i2c: E2 03 00 3C 02 00 90 00 B2 [10:17:04]RAPDU: 90 00 [10:17:04]wFMCommunicate OK [10:17:04]SAM_PROTO_ClearQueue done [10:17:04]KKMCreateOFDPacket [10:17:04]OFDProtocolAddRootSTLVToBuf [10:17:04]FM_MakeSignedData [10:17:04]FM_MakeSignedData [10:17:04]SAM_PROTO_SignData [10:17:04]wFMCommunicate request_size=4 [10:17:04]MH_SAM_APDU [10:17:04]CAPDU: 80 0D 01 02 [10:17:04]Write to MH i2c: E2 08 00 3D 02 80 0D 01 02 00 00 00 00 B8 [10:17:04]Write i2c OK [10:17:04]MH_I2C_Read... [10:17:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:17:04]Read from MH i2c: E2 [10:17:04]MH_I2C_Read... [10:17:04]Read from MH i2c: E2 03 00 [10:17:04]MH_I2C_Read... [10:17:04]Read from MH i2c: E2 03 00 3D 02 00 90 00 B3 [10:17:04]RAPDU: 90 00 [10:17:04]wFMCommunicate OK [10:17:04]wFMCommunicate request_size=255 [10:17:04]MH_SAM_APDU [10:17:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 70 0D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 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 33 00 00 00 F4 03 04 00 20 E4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CD 40 01 00 35 04 06 00 11 [10:17:04]Write to MH i2c: E2 02 01 3E 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 70 0D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 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 33 00 00 00 F4 03 04 00 20 E4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CD 40 01 00 35 04 06 00 11 00 00 56 [10:17:04]Write i2c OK [10:17:04]MH_I2C_Read... [10:17:05]OFD Sender: No OFD packet to send [10:17:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:05]Read from MH i2c: E2 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 03 00 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 03 00 3E 02 00 90 00 B4 [10:17:05]RAPDU: 90 00 [10:17:05]wFMCommunicate OK [10:17:05]wFMCommunicate request_size=10 [10:17:05]MH_SAM_APDU [10:17:05]CAPDU: 80 0D 02 02 05 6C 1B BD 65 34 [10:17:05]Write to MH i2c: E2 0D 00 3F 02 80 0D 02 02 05 00 6C 1B BD 65 34 00 00 A2 [10:17:05]Write i2c OK [10:17:05]MH_I2C_Read... [10:17:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:05]Read from MH i2c: E2 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 03 00 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 03 00 3F 02 00 90 00 B5 [10:17:05]RAPDU: 90 00 [10:17:05]wFMCommunicate OK [10:17:05]wFMCommunicate request_size=4 [10:17:05]MH_SAM_APDU [10:17:05]CAPDU: 80 0D 03 02 [10:17:05]Write to MH i2c: E2 08 00 40 02 80 0D 03 02 00 00 00 00 BD [10:17:05]Write i2c OK [10:17:05]MH_I2C_Read... [10:17:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:17:05]Read from MH i2c: E2 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 0B 00 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 0B 00 40 02 00 59 8A 50 D7 A3 29 69 4F 90 00 4C [10:17:05]RAPDU: 59 8A 50 D7 A3 29 69 4F 90 00 [10:17:05]wFMCommunicate OK [10:17:05]SAM_PROTO_SignData done [10:17:05]FM_MakeSignedData done [10:17:05]CreateOFDProtocolMessage [10:17:05]wFMCommunicate request_size=4 [10:17:05]MH_SAM_APDU [10:17:05]CAPDU: 80 11 00 00 [10:17:05]Write to MH i2c: E2 08 00 41 02 80 11 00 00 00 00 00 00 BD [10:17:05]Write i2c OK [10:17:05]MH_I2C_Read... [10:17:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:05]Read from MH i2c: E2 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 17 00 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 17 00 41 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 0F [10:17:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:17:05]wFMCommunicate OK [10:17:05]CreateOFDProtocolMessage done [10:17:05]OFDSenderStorePacket 82125 [10:17:05]StoreOFDPacket docnum=82125 [10:17:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 39 B6 07 01 59 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 70 0D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 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 33 00 00 00 F4 03 04 00 20 E4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CD 40 01 00 35 04 06 00 11 6C 1B BD 65 34 59 8A 50 D7 A3 29 69 4F [10:17:05]CheckFolder [10:17:05]dirname=/storage/ofd_packets [10:17:05]CheckFolder done [10:17:05]ProducePacketName [10:17:05]name=ofd_packets/00082125 [10:17:05]NVStorageSaveData ofd_packets/00082125 [10:17:05]File name is /storage/ofd_packets/00082125 [10:17:05]Write 301 bytes [10:17:05]NVStorageSaveData done [10:17:05]OFDSenderStorePacket done [10:17:05]KKMCreateOFDPacket done [10:17:05]NVStorageSaveData kkm_last_timestamp [10:17:05]File name is /storage/kkm_last_timestamp [10:17:05]Write 4 bytes [10:17:05]NVStorageSaveData done [10:17:05]ExternCall_PrintAddStr [10:17:05]wPrintStart [10:17:05]Write to MH i2c: 01 00 00 42 02 44 [10:17:05]Write i2c OK [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: 01 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: 01 07 00 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: 01 07 00 42 02 00 00 00 00 00 FF 0F 59 [10:17:05]RasterBufferAndPrint [10:17:05]line Счет N : (1)918631 [10:17:05]line ИНН: 02508201610067 [10:17:05]line Контрольно-Кассовый Чек [10:17:05]line ПРОДАЖА [10:17:05]line ТРК (МРК, ГНК) : 22 [10:17:05]line Товар: 2710124130 [10:17:05]line Аи-92-К-4 [10:17:05]line 3.440 * 66.90 [10:17:05]line = 230.14 [10:17:05]line НДС 12% НСП 1% [10:17:05]line > о реализуемом товаре [10:17:05]line ОКРУГЛЕНИЕ: -0.14 [10:17:05]line ИТОГО: 230.00 [10:17:05]line Внесено: 230.00 [10:17:05]line СДАЧА: 0.00 [10:17:05]line НСП 1% : 2.04 [10:17:05]line НДС 12% : 24.44 [10:17:05]line Наличными: 230.00 [10:17:05]line Безнал.: 0.00 [10:17:05]line Место: АЗС № 114 "Партнер Нефть" [10:17:05]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:17:05]line СНО: Общий режим [10:17:05]line Чек 51 17.10.2024 10:17 [10:17:05]line Смена: 525 ФФД: 1.0 [10:17:05]line ЗНМ: 0300000086 [10:17:05]line РНМ: 0000000000091680 [10:17:05]line Версия ККМ: 001 [10:17:05]line ФМ: 0000000000871843 [10:17:05]line ФД: 82125 [10:17:05]line ФПД: 19156019537204 [10:17:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T101704&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82125&fm=19156019537204&tin=02508201610067®Number=0000000000091680&sum=23000 [10:17:05]OFD Sender: Processing packet 82125 [packets to send 254, broken 253] [10:17:05]ProducePacketName [10:17:05]name=ofd_packets/00082125 [10:17:05]OFD Sender: To server: pG, [10:17:05]CommunicateWithHost lk.salyk.kg:30040 [10:17:05]ConnectInit lk.salyk.kg [10:17:05]written 0, free lines is 4095 [10:17:05]Write to MH i2c: 01 00 00 6D 02 6F [10:17:05]Write i2c OK [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: 01 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: 01 07 00 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: 01 07 00 6D 02 00 00 00 00 00 D6 0C 58 [10:17:05]RasterBufferAndPrint [10:17:05]line [10:17:05]line [10:17:05]line [10:17:05]line [10:17:05]line [10:17:05]written 0, free lines is 3293 [10:17:05]MH_Cut [10:17:05]Write to MH i2c: D1 01 00 74 02 01 48 [10:17:05]Write i2c OK [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: D1 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: D1 01 00 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: D1 01 00 74 02 00 47 [10:17:05]Write to MH i2c: 01 00 00 75 02 77 [10:17:05]Write i2c OK [10:17:05]MH_I2C_Read... [10:17:06]*** Cut start [10:17:06]*** Partial cut [10:17:06]*** CUTSNS_PIN = 1 [10:17:06]*** CUTSNS_PIN = 0 [10:17:06]*** Brake cut motor [10:17:07]Read from MH i2c: 01 [10:17:07]MH_I2C_Read... [10:17:07]*** Stop cut motor [10:17:07]*** Cut end [10:17:07]Read from MH i2c: 01 07 00 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: 01 07 00 75 02 00 00 00 00 00 FF 0F 8C [10:17:07]process_action close_receipt done [10:17:07]requested_data is exist [10:17:07]produce_requested_data [10:17:07]requested_item fm.sn is exist - process it [10:17:07]wFMCommunicate request_size=4 [10:17:07]MH_SAM_APDU [10:17:07]CAPDU: 80 11 00 00 [10:17:07]Write to MH i2c: E2 08 00 76 02 80 11 00 00 00 00 00 00 F2 [10:17:07]Write i2c OK [10:17:07]MH_I2C_Read... [10:17:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:07]Read from MH i2c: E2 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: E2 17 00 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: E2 17 00 76 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 44 [10:17:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:17:07]wFMCommunicate OK [10:17:07]requested_item fd.num is exist - process it [10:17:07]SAM_PROTO_GetFieldsCounters [10:17:07]wFMCommunicate request_size=4 [10:17:07]MH_SAM_APDU [10:17:07]CAPDU: 80 13 00 00 [10:17:07]Write to MH i2c: E2 08 00 77 02 80 13 00 00 00 00 00 00 F5 [10:17:07]Write i2c OK [10:17:07]MH_I2C_Read... [10:17:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:07]Read from MH i2c: E2 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: E2 62 00 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: E2 62 00 77 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 CD 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [10:17:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 CD 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:17:07]wFMCommunicate OK [10:17:07]SAM_PROTO_GetFieldsCounters done [10:17:07]requested_item shift.num is exist - process it [10:17:07]requested_item shift.opened is exist - process it [10:17:07]req_shift_opened [10:17:07]FM_GetShiftState [10:17:07]SAM_PROTO_GetShiftState [10:17:07]wFMCommunicate request_size=4 [10:17:07]MH_SAM_APDU [10:17:07]CAPDU: 80 13 01 00 [10:17:07]Write to MH i2c: E2 08 00 78 02 80 13 01 00 00 00 00 00 F7 [10:17:07]Write i2c OK [10:17:07]MH_I2C_Read... [10:17:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:07]Read from MH i2c: E2 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: E2 0E 00 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: E2 0E 00 78 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 FF [10:17:07]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:17:07]wFMCommunicate OK [10:17:07]SAM_PROTO_GetShiftState done [10:17:07]FM_GetShiftState done [10:17:07]req_shift_opened done [10:17:07]requested_item shift.open_date is exist - process it [10:17:07]req_shift_open_date [10:17:07]req_shift_open_date done [10:17:07]produce_requested_data done [10:17:07]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82125,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [10:17:07]process_action_free close_receipt [10:17:07]json_value_free [10:17:07]json_value_free done [10:17:07]process_json_proto returns [10:17:07]Send response to host [10:17:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82125,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [10:17:07]free response buf [10:17:07]execute_script done [10:17:07]execute_script returns [10:17:07]free content buf [10:17:07]Sock 10.Close socket [10:17:07]Sock 10.Thread stoped [10:17:10]ConnectInit Can't take IP for lk.salyk.kg [10:17:10]CommunicateWithHost connect error [10:17:10]CommunicateWithHost err = -1 [10:17:10]OFD Sender: Server communicate error [10:17:11]recv_with_timeout no data received [10:17:15]OFD Sender: Processing packet 82125 [packets to send 254, broken 253] [10:17:15]ProducePacketName [10:17:15]name=ofd_packets/00082125 [10:17:15]OFD Sender: To server: pG, [10:17:15]CommunicateWithHost lk.salyk.kg:30040 [10:17:15]ConnectInit lk.salyk.kg [10:17:20]ConnectInit Can't take IP for lk.salyk.kg [10:17:20]CommunicateWithHost connect error [10:17:20]CommunicateWithHost err = -1 [10:17:20]OFD Sender: Server communicate error [10:17:25]OFD Sender: Processing packet 82125 [packets to send 254, broken 253] [10:17:25]ProducePacketName [10:17:25]name=ofd_packets/00082125 [10:17:25]OFD Sender: To server: pG, [10:17:25]CommunicateWithHost lk.salyk.kg:30040 [10:17:25]ConnectInit lk.salyk.kg [10:17:25]Connected sock=9 [10:17:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 39 B6 07 01 59 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 70 0D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 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 33 00 00 00 F4 03 04 00 20 E4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CD 40 01 00 35 04 06 00 11 6C 1B BD 65 34 59 8A 50 D7 A3 29 69 4F [10:17:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 4B DA 47 00 3D 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CD 40 01 00 F4 03 04 00 72 89 10 67 B6 04 01 00 00 E8 A9 8D DA F8 DB 52 75 [10:17:26]CommunicateWithHost err = 0 [10:17:26]CheckOFDResponse [10:17:26]1017 (14) - 77093643461234 [10:17:26]1041 (16) - 0000000000871843 [10:17:26]1040 (4) - 82125 [10:17:26]1012 (4) - 17.10.2024 03:50 [10:17:26]1206 (1) - 0 [10:17:26]OFD Sender: Remove packet 82125 [10:17:26]ProducePacketName [10:17:26]name=ofd_packets/00082125 [10:17:26]NVStorageDeleteData [10:17:26]OFD Sender: No OFD packet to send [10:17:26]recv_with_timeout no data received [10:17:31]OFD Sender: No OFD packet to send [10:17:36]OFD Sender: No OFD packet to send [10:17:41]OFD Sender: No OFD packet to send [10:17:46]OFD Sender: No OFD packet to send [10:17:47]recv_with_timeout no data received [10:17:51]OFD Sender: No OFD packet to send [10:17:56]OFD Sender: No OFD packet to send [10:17:59]recv_with_timeout no data received [10:18:02]OFD Sender: No OFD packet to send [10:18:07]OFD Sender: No OFD packet to send [10:18:12]OFD Sender: No OFD packet to send [10:18:17]OFD Sender: No OFD packet to send [10:18:22]OFD Sender: No OFD packet to send [10:18:27]OFD Sender: No OFD packet to send [10:18:32]OFD Sender: No OFD packet to send [10:18:35]accept exits with 8 [10:18:35]New connection [10:18:35]New thread 3066658148 created [10:18:35]Thread 3066514788 joined [10:18:35]Waiting for new connection... [10:18:35] Sock 8.Parse request [10:18:35]Sock 8.Check first char [10:18:35]Sock 8.First char is OK [10:18:35]request: POST /json_proto HTTP/1.0 [10:18:35]Method: POST [10:18:35]URL: /json_proto [10:18:35]Method is POST - this is cgi request [10:18:35]url: /json_proto [10:18:35]query_string will be loaded in cgi processing [10:18:35]execute_cgi json_proto POST (null) [10:18:35]execute_cgi path=json_proto method=POST [10:18:35]POST find Content-Length [10:18:35]Host: 172.17.44.67:8080 [10:18:35]Content-Length: 806 [10:18:35]Content-Type: application/json [10:18:35] [10:18:35]POST finish read [10:18:35]Found Content-Length = 806 [10:18:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2202732", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:35]execute_script... [10:18:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2202732", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:35]POST & json_proto [10:18:35]process_json_proto [10:18:35]json parsed OK: [10:18:35]protocol is kg_v1.0 [10:18:35]action value=close_receipt [10:18:35]process_action close_receipt [10:18:35]cmd_close_receipt [10:18:35]MH_GetDate [10:18:35]Write to MH i2c: F0 00 00 79 02 6A [10:18:35]Write i2c OK [10:18:35]MH_I2C_Read... [10:18:35]Read from MH i2c: F0 [10:18:35]MH_I2C_Read... [10:18:35]Read from MH i2c: F0 09 00 [10:18:35]MH_I2C_Read... [10:18:35]Read from MH i2c: F0 09 00 79 02 00 7C E4 10 67 F1 C7 6B 64 D1 [10:18:35]GetLastDocTimeStamp 1729160224 [10:18:35]current date 1729160316 [10:18:35]FM_GetShiftState [10:18:35]SAM_PROTO_GetShiftState [10:18:35]wFMCommunicate request_size=4 [10:18:35]MH_SAM_APDU [10:18:35]CAPDU: 80 13 01 00 [10:18:35]Write to MH i2c: E2 08 00 7A 02 80 13 01 00 00 00 00 00 F9 [10:18:35]Write i2c OK [10:18:35]MH_I2C_Read... [10:18:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:35]Read from MH i2c: E2 [10:18:35]MH_I2C_Read... [10:18:35]Read from MH i2c: E2 0E 00 [10:18:35]MH_I2C_Read... [10:18:35]Read from MH i2c: E2 0E 00 7A 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 01 [10:18:35]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:18:35]wFMCommunicate OK [10:18:35]SAM_PROTO_GetShiftState done [10:18:35]FM_GetShiftState done [10:18:35]opened in 1729125927 [10:18:35]opened+sec_in_day 1729212327 [10:18:35]quantity*price = 0 [10:18:35]sum+1 = 1 [10:18:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 52 17.10.2024 10:18 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 2202732 ФМ: 0000000000871843 ФД: 82126 ФПД: 129330782210397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T101836&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82126&fm=129330782210397&tin=02508201610067®Number=0000000000091680&sum=0 [10:18:37]StoreToDocumentArchive [10:18:37]shift 525 fd 82126 [10:18:37]save to /storage/0525/doc_00082126 [10:18:37]save last doc name /storage/0525/doc_00082126 to /storage/kkm_last_doc_name [10:18:37]save OK [10:18:37]Clear old archive folders... [10:18:37]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:18:37]tlvbuf is 00AD5A80 [10:18:37]SAM_PROTO_ClearQueue [10:18:37]wFMCommunicate request_size=4 [10:18:37]MH_SAM_APDU [10:18:37]CAPDU: 80 09 00 00 [10:18:37]Write to MH i2c: E2 08 00 87 02 80 09 00 00 00 00 00 00 FB [10:18:37]Write i2c OK [10:18:37]MH_I2C_Read... [10:18:37]OFD Sender: No OFD packet to send [10:18:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:37]Read from MH i2c: E2 [10:18:37]MH_I2C_Read... [10:18:37]Read from MH i2c: E2 03 00 [10:18:37]MH_I2C_Read... [10:18:37]Read from MH i2c: E2 03 00 87 02 00 90 00 FD [10:18:37]RAPDU: 90 00 [10:18:37]wFMCommunicate OK [10:18:37]SAM_PROTO_ClearQueue done [10:18:37]KKMCreateOFDPacket [10:18:37]OFDProtocolAddRootSTLVToBuf [10:18:37]FM_MakeSignedData [10:18:37]FM_MakeSignedData [10:18:37]SAM_PROTO_SignData [10:18:37]wFMCommunicate request_size=4 [10:18:37]MH_SAM_APDU [10:18:37]CAPDU: 80 0D 01 02 [10:18:37]Write to MH i2c: E2 08 00 88 02 80 0D 01 02 00 00 00 00 03 [10:18:37]Write i2c OK [10:18:37]MH_I2C_Read... [10:18:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:37]Read from MH i2c: E2 [10:18:37]MH_I2C_Read... [10:18:37]Read from MH i2c: E2 03 00 [10:18:37]MH_I2C_Read... [10:18:37]Read from MH i2c: E2 03 00 88 02 00 90 00 FE [10:18:37]RAPDU: 90 00 [10:18:37]wFMCommunicate OK [10:18:37]wFMCommunicate request_size=255 [10:18:37]MH_SAM_APDU [10:18:37]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 7C E4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CE 40 01 [10:18:37]Write to MH i2c: E2 02 01 89 02 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 7C E4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CE 40 01 00 00 06 [10:18:37]Write i2c OK [10:18:37]MH_I2C_Read... [10:18:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:37]Read from MH i2c: E2 [10:18:37]MH_I2C_Read... [10:18:37]Read from MH i2c: E2 03 00 [10:18:37]MH_I2C_Read... [10:18:37]Read from MH i2c: E2 03 00 89 02 00 90 00 FF [10:18:37]RAPDU: 90 00 [10:18:37]wFMCommunicate OK [10:18:37]wFMCommunicate request_size=16 [10:18:37]MH_SAM_APDU [10:18:37]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 75 A0 2B 55 09 5D [10:18:37]Write to MH i2c: E2 13 00 8A 02 80 0D 02 02 0B 00 00 35 04 06 00 75 A0 2B 55 09 5D 00 00 56 [10:18:37]Write i2c OK [10:18:37]MH_I2C_Read... [10:18:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:37]Read from MH i2c: E2 [10:18:37]MH_I2C_Read... [10:18:37]Read from MH i2c: E2 03 00 [10:18:37]MH_I2C_Read... [10:18:37]Read from MH i2c: E2 03 00 8A 02 00 90 00 00 [10:18:37]RAPDU: 90 00 [10:18:37]wFMCommunicate OK [10:18:37]wFMCommunicate request_size=4 [10:18:37]MH_SAM_APDU [10:18:37]CAPDU: 80 0D 03 02 [10:18:37]Write to MH i2c: E2 08 00 8B 02 80 0D 03 02 00 00 00 00 08 [10:18:37]Write i2c OK [10:18:37]MH_I2C_Read... [10:18:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:37]Read from MH i2c: E2 [10:18:37]MH_I2C_Read... [10:18:37]Read from MH i2c: E2 0B 00 [10:18:37]MH_I2C_Read... [10:18:37]Read from MH i2c: E2 0B 00 8B 02 00 27 FD 6E E6 09 B5 37 08 90 00 7E [10:18:37]RAPDU: 27 FD 6E E6 09 B5 37 08 90 00 [10:18:37]wFMCommunicate OK [10:18:37]SAM_PROTO_SignData done [10:18:37]FM_MakeSignedData done [10:18:37]CreateOFDProtocolMessage [10:18:37]wFMCommunicate request_size=4 [10:18:37]MH_SAM_APDU [10:18:37]CAPDU: 80 11 00 00 [10:18:37]Write to MH i2c: E2 08 00 8C 02 80 11 00 00 00 00 00 00 08 [10:18:37]Write i2c OK [10:18:37]MH_I2C_Read... [10:18:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:37]Read from MH i2c: E2 [10:18:37]MH_I2C_Read... [10:18:37]Read from MH i2c: E2 17 00 [10:18:37]MH_I2C_Read... [10:18:37]Read from MH i2c: E2 17 00 8C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 5A [10:18:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:18:37]wFMCommunicate OK [10:18:37]CreateOFDProtocolMessage done [10:18:37]OFDSenderStorePacket 82126 [10:18:37]StoreOFDPacket docnum=82126 [10:18:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 23 B9 0D 01 55 5C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 7C E4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CE 40 01 00 35 04 06 00 75 A0 2B 55 09 5D 27 FD 6E E6 09 B5 37 08 [10:18:37]CheckFolder [10:18:37]dirname=/storage/ofd_packets [10:18:37]CheckFolder done [10:18:37]ProducePacketName [10:18:37]name=ofd_packets/00082126 [10:18:37]NVStorageSaveData ofd_packets/00082126 [10:18:37]File name is /storage/ofd_packets/00082126 [10:18:37]Write 307 bytes [10:18:37]NVStorageSaveData done [10:18:37]OFDSenderStorePacket done [10:18:37]KKMCreateOFDPacket done [10:18:37]NVStorageSaveData kkm_last_timestamp [10:18:37]File name is /storage/kkm_last_timestamp [10:18:37]Write 4 bytes [10:18:37]NVStorageSaveData done [10:18:37]ExternCall_PrintAddStr [10:18:37]wPrintStart [10:18:37]Write to MH i2c: 01 00 00 8D 02 8F [10:18:37]Write i2c OK [10:18:37]MH_I2C_Read... [10:18:37]Read from MH i2c: 01 [10:18:37]MH_I2C_Read... [10:18:37]Read from MH i2c: 01 07 00 [10:18:37]MH_I2C_Read... [10:18:37]Read from MH i2c: 01 07 00 8D 02 00 00 00 00 00 FF 0F A4 [10:18:37]RasterBufferAndPrint [10:18:37]line Счет N : (1)918633 [10:18:37]line ИНН: 02508201610067 [10:18:37]line Контрольно-Кассовый Чек [10:18:37]line ПРОДАЖА [10:18:37]line ТРК (МРК, ГНК) : 21 [10:18:37]line Товар: 2710194800 [10:18:37]line D-Energy ДТ-К-2 [10:18:37]line 30.000 * 0.00 [10:18:37]line = 0.00 [10:18:37]line НДС 12% НСП 1% [10:18:37]line > о реализуемом товаре [10:18:37]line ИТОГО: 0.00 [10:18:37]line НСП 1% : 0.00 [10:18:37]line НДС 12% : 0.00 [10:18:37]line Наличными: 0.00 [10:18:37]line Безнал.: 0.00 [10:18:37]line Место: АЗС № 114 "Партнер Нефть" [10:18:37]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:18:37]line СНО: Общий режим [10:18:37]line Чек 52 17.10.2024 10:18 [10:18:37]line Смена: 525 ФФД: 1.0 [10:18:37]line ЗНМ: 0300000086 [10:18:37]line РНМ: 0000000000091680 [10:18:37]line Версия ККМ: 001 [10:18:37]line Талоны: Топливные Талоны [10:18:37]line 2202732 [10:18:37]line ФМ: 0000000000871843 [10:18:37]line ФД: 82126 [10:18:37]line ФПД: 129330782210397 [10:18:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T101836&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82126&fm=129330782210397&tin=02508201610067®Number=0000000000091680&sum=0 [10:18:37]written 0, free lines is 4095 [10:18:37]OFD Sender: Processing packet 82126 [packets to send 254, broken 253] [10:18:37]ProducePacketName [10:18:37]name=ofd_packets/00082126 [10:18:37]OFD Sender: To server: pG, [10:18:37]CommunicateWithHost lk.salyk.kg:30040 [10:18:37]ConnectInit lk.salyk.kg [10:18:38]Write to MH i2c: 01 00 00 B7 02 B9 [10:18:38]Write i2c OK [10:18:38]MH_I2C_Read... [10:18:38]Read from MH i2c: 01 [10:18:38]MH_I2C_Read... [10:18:38]Read from MH i2c: 01 07 00 [10:18:38]MH_I2C_Read... [10:18:38]Read from MH i2c: 01 07 00 B7 02 00 00 00 00 00 F6 0C C2 [10:18:38]RasterBufferAndPrint [10:18:38]line [10:18:38]line [10:18:38]line [10:18:38]line [10:18:38]line [10:18:38]written 0, free lines is 3324 [10:18:38]MH_Cut [10:18:38]Write to MH i2c: D1 01 00 BE 02 01 92 [10:18:38]Write i2c OK [10:18:38]MH_I2C_Read... [10:18:38]Read from MH i2c: D1 [10:18:38]MH_I2C_Read... [10:18:38]Read from MH i2c: D1 01 00 [10:18:38]MH_I2C_Read... [10:18:38]Read from MH i2c: D1 01 00 BE 02 00 91 [10:18:38]Write to MH i2c: 01 00 00 BF 02 C1 [10:18:38]Write i2c OK [10:18:38]MH_I2C_Read... [10:18:38]Connected sock=9 [10:18:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 23 B9 0D 01 55 5C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 7C E4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CE 40 01 00 35 04 06 00 75 A0 2B 55 09 5D 27 FD 6E E6 09 B5 37 08 [10:18:38]*** Cut start [10:18:38]*** Partial cut [10:18:38]*** CUTSNS_PIN = 1 [10:18:38]*** CUTSNS_PIN = 0 [10:18:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 87 B3 47 00 6D DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CE 40 01 00 F4 03 04 00 BB 89 10 67 B6 04 01 00 00 8E B6 52 3B 79 33 F4 69 [10:18:38]CommunicateWithHost err = 0 [10:18:38]CheckOFDResponse [10:18:38]1017 (14) - 77093643461234 [10:18:38]1041 (16) - 0000000000871843 [10:18:38]1040 (4) - 82126 [10:18:38]1012 (4) - 17.10.2024 03:51 [10:18:38]1206 (1) - 0 [10:18:38]OFD Sender: Remove packet 82126 [10:18:38]ProducePacketName [10:18:38]name=ofd_packets/00082126 [10:18:38]NVStorageDeleteData [10:18:39]*** Brake cut motor [10:18:39]Read from MH i2c: 01 [10:18:39]MH_I2C_Read... [10:18:39]*** Stop cut motor [10:18:39]*** Cut end [10:18:39]Read from MH i2c: 01 07 00 [10:18:39]MH_I2C_Read... [10:18:39]Read from MH i2c: 01 07 00 BF 02 00 00 00 00 00 FF 0F D6 [10:18:39]process_action close_receipt done [10:18:39]requested_data is exist [10:18:39]produce_requested_data [10:18:39]requested_item fm.sn is exist - process it [10:18:39]wFMCommunicate request_size=4 [10:18:39]MH_SAM_APDU [10:18:39]CAPDU: 80 11 00 00 [10:18:39]Write to MH i2c: E2 08 00 C0 02 80 11 00 00 00 00 00 00 3C [10:18:39]Write i2c OK [10:18:39]MH_I2C_Read... [10:18:39]OFD Sender: No OFD packet to send [10:18:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:39]Read from MH i2c: E2 [10:18:39]MH_I2C_Read... [10:18:39]Read from MH i2c: E2 17 00 [10:18:39]MH_I2C_Read... [10:18:39]Read from MH i2c: E2 17 00 C0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 8E [10:18:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:18:39]wFMCommunicate OK [10:18:39]requested_item fd.num is exist - process it [10:18:39]SAM_PROTO_GetFieldsCounters [10:18:39]wFMCommunicate request_size=4 [10:18:39]MH_SAM_APDU [10:18:39]CAPDU: 80 13 00 00 [10:18:39]Write to MH i2c: E2 08 00 C1 02 80 13 00 00 00 00 00 00 3F [10:18:39]Write i2c OK [10:18:39]MH_I2C_Read... [10:18:39]Read from MH i2c: E2 [10:18:39]MH_I2C_Read... [10:18:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:39]Read from MH i2c: E2 62 00 [10:18:39]MH_I2C_Read... [10:18:39]Read from MH i2c: E2 62 00 C1 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 CE 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [10:18:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 CE 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:18:39]wFMCommunicate OK [10:18:39]SAM_PROTO_GetFieldsCounters done [10:18:39]requested_item shift.num is exist - process it [10:18:39]requested_item shift.opened is exist - process it [10:18:39]req_shift_opened [10:18:39]FM_GetShiftState [10:18:39]SAM_PROTO_GetShiftState [10:18:39]wFMCommunicate request_size=4 [10:18:39]MH_SAM_APDU [10:18:39]CAPDU: 80 13 01 00 [10:18:39]Write to MH i2c: E2 08 00 C2 02 80 13 01 00 00 00 00 00 41 [10:18:39]Write i2c OK [10:18:39]MH_I2C_Read... [10:18:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:39]Read from MH i2c: E2 [10:18:39]MH_I2C_Read... [10:18:39]Read from MH i2c: E2 0E 00 [10:18:39]MH_I2C_Read... [10:18:39]Read from MH i2c: E2 0E 00 C2 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 49 [10:18:39]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:18:39]wFMCommunicate OK [10:18:39]SAM_PROTO_GetShiftState done [10:18:39]FM_GetShiftState done [10:18:39]req_shift_opened done [10:18:39]requested_item shift.open_date is exist - process it [10:18:39]req_shift_open_date [10:18:39]req_shift_open_date done [10:18:39]produce_requested_data done [10:18:39]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82126,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [10:18:39]process_action_free close_receipt [10:18:39]json_value_free [10:18:39]json_value_free done [10:18:39]process_json_proto returns [10:18:39]Send response to host [10:18:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82126,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [10:18:39]free response buf [10:18:39]execute_script done [10:18:39]execute_script returns [10:18:39]free content buf [10:18:39]Sock 8.Close socket [10:18:39]Sock 8.Thread stoped [10:18:44]OFD Sender: No OFD packet to send [10:18:47]accept exits with 10 [10:18:47]New connection [10:18:47]New thread 3066514788 created [10:18:47]Thread 3066658148 joined [10:18:47]Waiting for new connection... [10:18:47] Sock 10.Parse request [10:18:47]Sock 10.Check first char [10:18:47]Sock 10.First char is OK [10:18:47]request: POST /json_proto HTTP/1.0 [10:18:47]Method: POST [10:18:47]URL: /json_proto [10:18:47]Method is POST - this is cgi request [10:18:47]url: /json_proto [10:18:47]query_string will be loaded in cgi processing [10:18:47]execute_cgi json_proto POST (null) [10:18:47]execute_cgi path=json_proto method=POST [10:18:47]POST find Content-Length [10:18:47]Host: 172.17.44.67:8080 [10:18:47]Content-Length: 688 [10:18:47]Content-Type: application/json [10:18:47] [10:18:47]POST finish read [10:18:47]Found Content-Length = 688 [10:18:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:47]execute_script... [10:18: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)918634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:47]POST & json_proto [10:18:47]process_json_proto [10:18:47]json parsed OK: [10:18:47]protocol is kg_v1.0 [10:18:47]action value=close_receipt [10:18:47]process_action close_receipt [10:18:47]cmd_close_receipt [10:18:47]MH_GetDate [10:18:47]Write to MH i2c: F0 00 00 C3 02 B4 [10:18:47]Write i2c OK [10:18:47]MH_I2C_Read... [10:18:47]Read from MH i2c: F0 [10:18:47]MH_I2C_Read... [10:18:47]Read from MH i2c: F0 09 00 [10:18:47]MH_I2C_Read... [10:18:47]Read from MH i2c: F0 09 00 C3 02 00 88 E4 10 67 F1 C7 6B 64 27 [10:18:47]GetLastDocTimeStamp 1729160316 [10:18:47]current date 1729160328 [10:18:47]FM_GetShiftState [10:18:47]SAM_PROTO_GetShiftState [10:18:47]wFMCommunicate request_size=4 [10:18:47]MH_SAM_APDU [10:18:47]CAPDU: 80 13 01 00 [10:18:47]Write to MH i2c: E2 08 00 C4 02 80 13 01 00 00 00 00 00 43 [10:18:47]Write i2c OK [10:18:47]MH_I2C_Read... [10:18:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:47]Read from MH i2c: E2 [10:18:47]MH_I2C_Read... [10:18:47]Read from MH i2c: E2 0E 00 [10:18:47]MH_I2C_Read... [10:18:47]Read from MH i2c: E2 0E 00 C4 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 4B [10:18:47]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:18:47]wFMCommunicate OK [10:18:47]SAM_PROTO_GetShiftState done [10:18:47]FM_GetShiftState done [10:18:47]opened in 1729125927 [10:18:47]opened+sec_in_day 1729212327 [10:18:47]quantity*price = 300076 [10:18:47]sum+1 = 300077 [10:18:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 53 17.10.2024 10:18 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82127 ФПД: 51269651614750 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T101848&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82127&fm=51269651614750&tin=02508201610067®Number=0000000000091680&sum=300000 [10:18:48]StoreToDocumentArchive [10:18:48]shift 525 fd 82127 [10:18:48]save to /storage/0525/doc_00082127 [10:18:48]save last doc name /storage/0525/doc_00082127 to /storage/kkm_last_doc_name [10:18:48]save OK [10:18:48]Clear old archive folders... [10:18:48]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:18:48]tlvbuf is 00B2B4E0 [10:18:48]SAM_PROTO_ClearQueue [10:18:48]wFMCommunicate request_size=4 [10:18:48]MH_SAM_APDU [10:18:48]CAPDU: 80 09 00 00 [10:18:48]Write to MH i2c: E2 08 00 D1 02 80 09 00 00 00 00 00 00 45 [10:18:48]Write i2c OK [10:18:48]MH_I2C_Read... [10:18:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:48]Read from MH i2c: E2 [10:18:48]MH_I2C_Read... [10:18:48]Read from MH i2c: E2 03 00 [10:18:48]MH_I2C_Read... [10:18:48]Read from MH i2c: E2 03 00 D1 02 00 90 00 47 [10:18:48]RAPDU: 90 00 [10:18:48]wFMCommunicate OK [10:18:48]SAM_PROTO_ClearQueue done [10:18:48]KKMCreateOFDPacket [10:18:48]OFDProtocolAddRootSTLVToBuf [10:18:48]FM_MakeSignedData [10:18:48]FM_MakeSignedData [10:18:48]SAM_PROTO_SignData [10:18:48]wFMCommunicate request_size=4 [10:18:48]MH_SAM_APDU [10:18:48]CAPDU: 80 0D 01 02 [10:18:48]Write to MH i2c: E2 08 00 D2 02 80 0D 01 02 00 00 00 00 4D [10:18:48]Write i2c OK [10:18:48]MH_I2C_Read... [10:18:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:49]Read from MH i2c: E2 [10:18:49]MH_I2C_Read... [10:18:49]Read from MH i2c: E2 03 00 [10:18:49]MH_I2C_Read... [10:18:49]Read from MH i2c: E2 03 00 D2 02 00 90 00 48 [10:18:49]RAPDU: 90 00 [10:18:49]wFMCommunicate OK [10:18:49]wFMCommunicate request_size=255 [10:18:49]MH_SAM_APDU [10:18:49]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 88 E4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CF 40 01 [10:18:49]Write to MH i2c: E2 02 01 D3 02 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 88 E4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CF 40 01 00 00 7D [10:18:49]Write i2c OK [10:18:49]MH_I2C_Read... [10:18:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:49]Read from MH i2c: E2 [10:18:49]MH_I2C_Read... [10:18:49]Read from MH i2c: E2 03 00 [10:18:49]MH_I2C_Read... [10:18:49]Read from MH i2c: E2 03 00 D3 02 00 90 00 49 [10:18:49]RAPDU: 90 00 [10:18:49]wFMCommunicate OK [10:18:49]wFMCommunicate request_size=16 [10:18:49]MH_SAM_APDU [10:18:49]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 2E A1 25 5F 4C 1E [10:18:49]Write to MH i2c: E2 13 00 D4 02 80 0D 02 02 0B 00 00 35 04 06 00 2E A1 25 5F 4C 1E 00 00 62 [10:18:49]Write i2c OK [10:18:49]MH_I2C_Read... [10:18:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:49]Read from MH i2c: E2 [10:18:49]MH_I2C_Read... [10:18:49]Read from MH i2c: E2 03 00 [10:18:49]MH_I2C_Read... [10:18:49]Read from MH i2c: E2 03 00 D4 02 00 90 00 4A [10:18:49]RAPDU: 90 00 [10:18:49]wFMCommunicate OK [10:18:49]wFMCommunicate request_size=4 [10:18:49]MH_SAM_APDU [10:18:49]CAPDU: 80 0D 03 02 [10:18:49]Write to MH i2c: E2 08 00 D5 02 80 0D 03 02 00 00 00 00 52 [10:18:49]Write i2c OK [10:18:49]MH_I2C_Read... [10:18:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:49]Read from MH i2c: E2 [10:18:49]MH_I2C_Read... [10:18:49]Read from MH i2c: E2 0B 00 [10:18:49]MH_I2C_Read... [10:18:49]Read from MH i2c: E2 0B 00 D5 02 00 36 74 21 17 AB 37 BA E6 90 00 B7 [10:18:49]RAPDU: 36 74 21 17 AB 37 BA E6 90 00 [10:18:49]wFMCommunicate OK [10:18:49]SAM_PROTO_SignData done [10:18:49]FM_MakeSignedData done [10:18:49]CreateOFDProtocolMessage [10:18:49]wFMCommunicate request_size=4 [10:18:49]MH_SAM_APDU [10:18:49]CAPDU: 80 11 00 00 [10:18:49]Write to MH i2c: E2 08 00 D6 02 80 11 00 00 00 00 00 00 52 [10:18:49]Write i2c OK [10:18:49]MH_I2C_Read... [10:18:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:49]Read from MH i2c: E2 [10:18:49]MH_I2C_Read... [10:18:49]Read from MH i2c: E2 17 00 [10:18:49]MH_I2C_Read... [10:18:49]Read from MH i2c: E2 17 00 D6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 A4 [10:18:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:18:49]wFMCommunicate OK [10:18:49]CreateOFDProtocolMessage done [10:18:49]OFDSenderStorePacket 82127 [10:18:49]StoreOFDPacket docnum=82127 [10:18:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 38 FE 0D 01 6B BA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 88 E4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CF 40 01 00 35 04 06 00 2E A1 25 5F 4C 1E 36 74 21 17 AB 37 BA E6 [10:18:49]CheckFolder [10:18:49]dirname=/storage/ofd_packets [10:18:49]CheckFolder done [10:18:49]ProducePacketName [10:18:49]name=ofd_packets/00082127 [10:18:49]NVStorageSaveData ofd_packets/00082127 [10:18:49]File name is /storage/ofd_packets/00082127 [10:18:49]Write 307 bytes [10:18:49]NVStorageSaveData done [10:18:49]OFDSenderStorePacket done [10:18:49]KKMCreateOFDPacket done [10:18:49]NVStorageSaveData kkm_last_timestamp [10:18:49]File name is /storage/kkm_last_timestamp [10:18:49]Write 4 bytes [10:18:49]NVStorageSaveData done [10:18:49]ExternCall_PrintAddStr [10:18:49]wPrintStart [10:18:49]Write to MH i2c: 01 00 00 D7 02 D9 [10:18:49]Write i2c OK [10:18:49]MH_I2C_Read... [10:18:49]Read from MH i2c: 01 [10:18:49]MH_I2C_Read... [10:18:49]Read from MH i2c: 01 07 00 [10:18:49]MH_I2C_Read... [10:18:49]Read from MH i2c: 01 07 00 D7 02 00 00 00 00 00 FF 0F EE [10:18:49]RasterBufferAndPrint [10:18:49]line Счет N : (1)918634 [10:18:49]line ИНН: 02508201610067 [10:18:49]line Контрольно-Кассовый Чек [10:18:49]line ПРОДАЖА [10:18:49]line ТРК (МРК, ГНК) : 21 [10:18:49]line Товар: 2710194800 [10:18:49]line D-Energy ДТ-К-2 [10:18:49]line 38.870 * 77.20 [10:18:49]line = 3000.76 [10:18:49]line НДС 12% НСП 1% [10:18:49]line > о реализуемом товаре [10:18:49]line ОКРУГЛЕНИЕ: -0.76 [10:18:49]line ИТОГО: 3000.00 [10:18:49]line Внесено: 3000.00 [10:18:49]line СДАЧА: 0.00 [10:18:49]line НСП 1% : 26.55 [10:18:49]line НДС 12% : 318.66 [10:18:49]line Наличными: 3000.00 [10:18:49]line Безнал.: 0.00 [10:18:49]line Место: АЗС № 114 "Партнер Нефть" [10:18:49]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:18:49]line СНО: Общий режим [10:18:49]line Чек 53 17.10.2024 10:18 [10:18:49]line Смена: 525 ФФД: 1.0 [10:18:49]line ЗНМ: 0300000086 [10:18:49]line РНМ: 0000000000091680 [10:18:49]line Версия ККМ: 001 [10:18:49]line ФМ: 0000000000871843 [10:18:49]line ФД: 82127 [10:18:49]line ФПД: 51269651614750 [10:18:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T101848&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82127&fm=51269651614750&tin=02508201610067®Number=0000000000091680&sum=300000 [10:18:49]written 0, free lines is 4095 [10:18:49]OFD Sender: Processing packet 82127 [packets to send 254, broken 253] [10:18:49]ProducePacketName [10:18:49]name=ofd_packets/00082127 [10:18:49]OFD Sender: To server: pG, [10:18:49]CommunicateWithHost lk.salyk.kg:30040 [10:18:49]ConnectInit lk.salyk.kg [10:18:49]Write to MH i2c: 01 00 00 02 03 05 [10:18:49]Write i2c OK [10:18:49]MH_I2C_Read... [10:18:49]Read from MH i2c: 01 [10:18:49]MH_I2C_Read... [10:18:49]Read from MH i2c: 01 07 00 [10:18:49]MH_I2C_Read... [10:18:49]Read from MH i2c: 01 07 00 02 03 00 00 00 00 00 F3 0C 0B [10:18:49]RasterBufferAndPrint [10:18:49]line [10:18:49]line [10:18:49]line [10:18:49]line [10:18:49]line [10:18:49]written 0, free lines is 3331 [10:18:50]MH_Cut [10:18:50]Write to MH i2c: D1 01 00 09 03 01 DE [10:18:50]Write i2c OK [10:18:50]MH_I2C_Read... [10:18:50]Read from MH i2c: D1 [10:18:50]MH_I2C_Read... [10:18:50]Read from MH i2c: D1 01 00 [10:18:50]MH_I2C_Read... [10:18:50]Read from MH i2c: D1 01 00 09 03 00 DD [10:18:50]Write to MH i2c: 01 00 00 0A 03 0D [10:18:50]Write i2c OK [10:18:50]MH_I2C_Read... [10:18:50]Connected sock=8 [10:18:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 38 FE 0D 01 6B BA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 88 E4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CF 40 01 00 35 04 06 00 2E A1 25 5F 4C 1E 36 74 21 17 AB 37 BA E6 [10:18:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 B6 35 47 00 BB 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CF 40 01 00 F4 03 04 00 C7 89 10 67 B6 04 01 00 00 07 C8 93 35 27 B3 52 C4 [10:18:50]CommunicateWithHost err = 0 [10:18:50]CheckOFDResponse [10:18:50]1017 (14) - 77093643461234 [10:18:50]1041 (16) - 0000000000871843 [10:18:50]*** Cut start [10:18:50]1040 (4) - 82127 [10:18:50]1012 (4) - 17.10.2024 03:51 [10:18:50]1206 (1) - 0 [10:18:50]*** Partial cut [10:18:50]OFD Sender: Remove packet 82127 [10:18:50]ProducePacketName [10:18:50]name=ofd_packets/00082127 [10:18:50]NVStorageDeleteData [10:18:50]*** CUTSNS_PIN = 1 [10:18:50]*** CUTSNS_PIN = 0 [10:18:51]*** Brake cut motor [10:18:51]OFD Sender: No OFD packet to send [10:18:51]Read from MH i2c: 01 [10:18:51]MH_I2C_Read... [10:18:51]*** Stop cut motor [10:18:51]*** Cut end [10:18:51]Read from MH i2c: 01 07 00 [10:18:51]MH_I2C_Read... [10:18:51]Read from MH i2c: 01 07 00 0A 03 00 00 00 00 00 FF 0F 22 [10:18:51]process_action close_receipt done [10:18:51]requested_data is exist [10:18:51]produce_requested_data [10:18:51]requested_item fm.sn is exist - process it [10:18:51]wFMCommunicate request_size=4 [10:18:51]MH_SAM_APDU [10:18:51]CAPDU: 80 11 00 00 [10:18:51]Write to MH i2c: E2 08 00 0B 03 80 11 00 00 00 00 00 00 88 [10:18:51]Write i2c OK [10:18:51]MH_I2C_Read... [10:18:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:51]Read from MH i2c: E2 [10:18:51]MH_I2C_Read... [10:18:51]Read from MH i2c: E2 17 00 [10:18:51]MH_I2C_Read... [10:18:51]Read from MH i2c: E2 17 00 0B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DA [10:18:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:18:51]wFMCommunicate OK [10:18:51]requested_item fd.num is exist - process it [10:18:51]SAM_PROTO_GetFieldsCounters [10:18:51]wFMCommunicate request_size=4 [10:18:51]MH_SAM_APDU [10:18:51]CAPDU: 80 13 00 00 [10:18:51]Write to MH i2c: E2 08 00 0C 03 80 13 00 00 00 00 00 00 8B [10:18:51]Write i2c OK [10:18:51]MH_I2C_Read... [10:18:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:51]Read from MH i2c: E2 [10:18:51]MH_I2C_Read... [10:18:51]Read from MH i2c: E2 62 00 [10:18:51]MH_I2C_Read... [10:18:51]Read from MH i2c: E2 62 00 0C 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 CF 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [10:18:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 CF 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:18:51]wFMCommunicate OK [10:18:51]SAM_PROTO_GetFieldsCounters done [10:18:51]requested_item shift.num is exist - process it [10:18:51]requested_item shift.opened is exist - process it [10:18:51]req_shift_opened [10:18:51]FM_GetShiftState [10:18:51]SAM_PROTO_GetShiftState [10:18:51]wFMCommunicate request_size=4 [10:18:51]MH_SAM_APDU [10:18:51]CAPDU: 80 13 01 00 [10:18:51]Write to MH i2c: E2 08 00 0D 03 80 13 01 00 00 00 00 00 8D [10:18:51]Write i2c OK [10:18:51]MH_I2C_Read... [10:18:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:51]Read from MH i2c: E2 [10:18:51]MH_I2C_Read... [10:18:51]Read from MH i2c: E2 0E 00 [10:18:51]MH_I2C_Read... [10:18:51]Read from MH i2c: E2 0E 00 0D 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 95 [10:18:51]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:18:51]wFMCommunicate OK [10:18:51]SAM_PROTO_GetShiftState done [10:18:51]FM_GetShiftState done [10:18:51]req_shift_opened done [10:18:51]requested_item shift.open_date is exist - process it [10:18:51]req_shift_open_date [10:18:51]req_shift_open_date done [10:18:51]produce_requested_data done [10:18:51]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82127,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [10:18:51]process_action_free close_receipt [10:18:51]json_value_free [10:18:51]json_value_free done [10:18:51]process_json_proto returns [10:18:51]Send response to host [10:18:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82127,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [10:18:51]free response buf [10:18:51]execute_script done [10:18:51]execute_script returns [10:18:51]free content buf [10:18:51]Sock 10.Close socket [10:18:51]Sock 10.Thread stoped [10:18:53]accept exits with 9 [10:18:53]New connection [10:18:53]New thread 3066658148 created [10:18:53]Thread 3066514788 joined [10:18:53]Waiting for new connection... [10:18:53] Sock 9.Parse request [10:18:53]Sock 9.Check first char [10:18:53]Sock 9.First char is OK [10:18:53]request: POST /json_proto HTTP/1.0 [10:18:53]Method: POST [10:18:53]URL: /json_proto [10:18:53]Method is POST - this is cgi request [10:18:53]url: /json_proto [10:18:53]query_string will be loaded in cgi processing [10:18:53]execute_cgi json_proto POST (null) [10:18:53]execute_cgi path=json_proto method=POST [10:18:53]POST find Content-Length [10:18:53]Host: 172.17.44.67:8080 [10:18:53]Content-Length: 744 [10:18:53]Content-Type: application/json [10:18:53] [10:18:53]POST finish read [10:18:53]Found Content-Length = 744 [10:18:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 82127, "base_FM": "0000000000871843", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:53]execute_script... [10:18:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 82127, "base_FM": "0000000000871843", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:53]POST & json_proto [10:18:53]process_json_proto [10:18:53]json parsed OK: [10:18:53]protocol is kg_v1.0 [10:18:53]action value=close_receipt [10:18:53]process_action close_receipt [10:18:53]cmd_close_receipt [10:18:53]MH_GetDate [10:18:53]Write to MH i2c: F0 00 00 0E 03 00 [10:18:53]Write i2c OK [10:18:53]MH_I2C_Read... [10:18:53]Read from MH i2c: F0 [10:18:53]MH_I2C_Read... [10:18:53]Read from MH i2c: F0 09 00 [10:18:53]MH_I2C_Read... [10:18:53]Read from MH i2c: F0 09 00 0E 03 00 8E E4 10 67 F1 C7 6B 64 79 [10:18:53]GetLastDocTimeStamp 1729160328 [10:18:53]current date 1729160334 [10:18:53]FM_GetShiftState [10:18:53]SAM_PROTO_GetShiftState [10:18:53]wFMCommunicate request_size=4 [10:18:53]MH_SAM_APDU [10:18:53]CAPDU: 80 13 01 00 [10:18:53]Write to MH i2c: E2 08 00 0F 03 80 13 01 00 00 00 00 00 8F [10:18:53]Write i2c OK [10:18:53]MH_I2C_Read... [10:18:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:54]Read from MH i2c: E2 [10:18:54]MH_I2C_Read... [10:18:54]Read from MH i2c: E2 0E 00 [10:18:54]MH_I2C_Read... [10:18:54]Read from MH i2c: E2 0E 00 0F 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 97 [10:18:54]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:18:54]wFMCommunicate OK [10:18:54]SAM_PROTO_GetShiftState done [10:18:54]FM_GetShiftState done [10:18:54]opened in 1729125927 [10:18:54]opened+sec_in_day 1729212327 [10:18:54]quantity*price = 300076 [10:18:54]sum+1 = 300077 [10:18:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 54 17.10.2024 10:18 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФД осн.: 82127 ФМ осн.: 0000000000871843 ФМ: 0000000000871843 ФД: 82128 ФПД: 27826806489079 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T101854&type=2&operation_type=1&fn_number=0000000000871843&fd_number=82128&fm=27826806489079&tin=02508201610067®Number=0000000000091680&sum=300000 [10:18:55]StoreToDocumentArchive [10:18:55]shift 525 fd 82128 [10:18:55]save to /storage/0525/doc_00082128 [10:18:55]save last doc name /storage/0525/doc_00082128 to /storage/kkm_last_doc_name [10:18:55]save OK [10:18:55]Clear old archive folders... [10:18:55]ProcessDocumentItem done err = 0, tmpTLVsize=285 [10:18:55]tlvbuf is 00B4BEA0 [10:18:55]SAM_PROTO_ClearQueue [10:18:55]wFMCommunicate request_size=4 [10:18:55]MH_SAM_APDU [10:18:55]CAPDU: 80 09 00 00 [10:18:55]Write to MH i2c: E2 08 00 1E 03 80 09 00 00 00 00 00 00 93 [10:18:55]Write i2c OK [10:18:55]MH_I2C_Read... [10:18:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:55]Read from MH i2c: E2 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: E2 03 00 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: E2 03 00 1E 03 00 90 00 95 [10:18:55]RAPDU: 90 00 [10:18:55]wFMCommunicate OK [10:18:55]SAM_PROTO_ClearQueue done [10:18:55]KKMCreateOFDPacket [10:18:55]OFDProtocolAddRootSTLVToBuf [10:18:55]FM_MakeSignedData [10:18:55]FM_MakeSignedData [10:18:55]SAM_PROTO_SignData [10:18:55]wFMCommunicate request_size=4 [10:18:55]MH_SAM_APDU [10:18:55]CAPDU: 80 0D 01 02 [10:18:55]Write to MH i2c: E2 08 00 1F 03 80 0D 01 02 00 00 00 00 9B [10:18:55]Write i2c OK [10:18:55]MH_I2C_Read... [10:18:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:55]Read from MH i2c: E2 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: E2 03 00 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: E2 03 00 1F 03 00 90 00 96 [10:18:55]RAPDU: 90 00 [10:18:55]wFMCommunicate OK [10:18:55]wFMCommunicate request_size=255 [10:18:55]MH_SAM_APDU [10:18:55]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 02 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 8E E4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 27 04 04 00 CF 40 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 [10:18:55]Write to MH i2c: E2 02 01 20 03 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 02 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 8E E4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 27 04 04 00 CF 40 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 00 00 EA [10:18:55]Write i2c OK [10:18:55]MH_I2C_Read... [10:18:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:55]Read from MH i2c: E2 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: E2 03 00 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: E2 03 00 20 03 00 90 00 97 [10:18:55]RAPDU: 90 00 [10:18:55]wFMCommunicate OK [10:18:55]wFMCommunicate request_size=44 [10:18:55]MH_SAM_APDU [10:18:55]CAPDU: 80 0D 02 02 27 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D0 40 01 00 35 04 06 00 19 4E EE EA 7F F7 [10:18:55]Write to MH i2c: E2 2F 00 21 03 80 0D 02 02 27 00 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D0 40 01 00 35 04 06 00 19 4E EE EA 7F F7 00 00 80 [10:18:55]Write i2c OK [10:18:55]MH_I2C_Read... [10:18:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:55]Read from MH i2c: E2 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: E2 03 00 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: E2 03 00 21 03 00 90 00 98 [10:18:55]RAPDU: 90 00 [10:18:55]wFMCommunicate OK [10:18:55]wFMCommunicate request_size=4 [10:18:55]MH_SAM_APDU [10:18:55]CAPDU: 80 0D 03 02 [10:18:55]Write to MH i2c: E2 08 00 22 03 80 0D 03 02 00 00 00 00 A0 [10:18:55]Write i2c OK [10:18:55]MH_I2C_Read... [10:18:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:55]Read from MH i2c: E2 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: E2 0B 00 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: E2 0B 00 22 03 00 85 39 C3 CE 8B 0F D0 31 90 00 8B [10:18:55]RAPDU: 85 39 C3 CE 8B 0F D0 31 90 00 [10:18:55]wFMCommunicate OK [10:18:55]SAM_PROTO_SignData done [10:18:55]FM_MakeSignedData done [10:18:55]CreateOFDProtocolMessage [10:18:55]wFMCommunicate request_size=4 [10:18:55]MH_SAM_APDU [10:18:55]CAPDU: 80 11 00 00 [10:18:55]Write to MH i2c: E2 08 00 23 03 80 11 00 00 00 00 00 00 A0 [10:18:55]Write i2c OK [10:18:55]MH_I2C_Read... [10:18:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:55]Read from MH i2c: E2 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: E2 17 00 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: E2 17 00 23 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 F2 [10:18:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:18:55]wFMCommunicate OK [10:18:55]CreateOFDProtocolMessage done [10:18:55]OFDSenderStorePacket 82128 [10:18:55]StoreOFDPacket docnum=82128 [10:18:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 31 01 00 00 C8 A2 29 01 3B A1 5A 03 01 00 03 00 1D 01 1E 04 01 00 02 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 8E E4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 27 04 04 00 CF 40 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D0 40 01 00 35 04 06 00 19 4E EE EA 7F F7 85 39 C3 CE 8B 0F D0 31 [10:18:55]CheckFolder [10:18:55]dirname=/storage/ofd_packets [10:18:55]CheckFolder done [10:18:55]ProducePacketName [10:18:55]name=ofd_packets/00082128 [10:18:55]NVStorageSaveData ofd_packets/00082128 [10:18:55]File name is /storage/ofd_packets/00082128 [10:18:55]Write 335 bytes [10:18:55]NVStorageSaveData done [10:18:55]OFDSenderStorePacket done [10:18:55]KKMCreateOFDPacket done [10:18:55]NVStorageSaveData kkm_last_timestamp [10:18:55]File name is /storage/kkm_last_timestamp [10:18:55]Write 4 bytes [10:18:55]NVStorageSaveData done [10:18:55]ExternCall_PrintAddStr [10:18:55]wPrintStart [10:18:55]Write to MH i2c: 01 00 00 24 03 27 [10:18:55]Write i2c OK [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: 01 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: 01 07 00 [10:18:55]MH_I2C_Read... [10:18:55]Read from MH i2c: 01 07 00 24 03 00 00 00 00 00 FF 0F 3C [10:18:55]RasterBufferAndPrint [10:18:55]line Счет N : (1)918634 [10:18:55]line ИНН: 02508201610067 [10:18:55]line Контрольно-Кассовый Чек [10:18:55]line ВОЗВРАТ ПРОДАЖИ [10:18:55]line ТРК (МРК, ГНК) : 21 [10:18:55]line Товар: 2710194800 [10:18:55]line D-Energy ДТ-К-2 [10:18:55]line 38.870 * 77.20 [10:18:55]line = 3000.76 [10:18:55]line НДС 12% НСП 1% [10:18:55]line > о реализуемом товаре [10:18:55]line ОКРУГЛЕНИЕ: -0.76 [10:18:55]line ИТОГО: 3000.00 [10:18:55]line НСП 1% : 26.55 [10:18:55]line НДС 12% : 318.66 [10:18:55]line Наличными: 3000.00 [10:18:55]line Безнал.: 0.00 [10:18:55]line Место: АЗС № 114 "Партнер Нефть" [10:18:55]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:18:55]line СНО: Общий режим [10:18:55]line Чек 54 17.10.2024 10:18 [10:18:55]line Смена: 525 ФФД: 1.0 [10:18:55]line ЗНМ: 0300000086 [10:18:55]line РНМ: 0000000000091680 [10:18:55]line Версия ККМ: 001 [10:18:55]line ФД осн.: 82127 [10:18:55]line ФМ осн.: 0000000000871843 [10:18:55]line ФМ: 0000000000871843 [10:18:55]line ФД: 82128 [10:18:55]line ФПД: 27826806489079 [10:18:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T101854&type=2&operation_type=1&fn_number=0000000000871843&fd_number=82128&fm=27826806489079&tin=02508201610067®Number=0000000000091680&sum=300000 [10:18:55]written 0, free lines is 4095 [10:18:55]OFD Sender: Processing packet 82128 [packets to send 254, broken 253] [10:18:55]ProducePacketName [10:18:55]name=ofd_packets/00082128 [10:18:55]OFD Sender: To server: pG, [10:18:55]CommunicateWithHost lk.salyk.kg:30040 [10:18:55]ConnectInit lk.salyk.kg [10:18:56]Write to MH i2c: 01 00 00 4F 03 52 [10:18:56]Write i2c OK [10:18:56]MH_I2C_Read... [10:18:56]Read from MH i2c: 01 [10:18:56]MH_I2C_Read... [10:18:56]Read from MH i2c: 01 07 00 [10:18:56]MH_I2C_Read... [10:18:56]Read from MH i2c: 01 07 00 4F 03 00 00 00 00 00 04 0D 6A [10:18:56]RasterBufferAndPrint [10:18:56]line [10:18:56]line [10:18:56]line [10:18:56]line [10:18:56]line [10:18:56]written 0, free lines is 3354 [10:18:56]MH_Cut [10:18:56]Write to MH i2c: D1 01 00 56 03 01 2B [10:18:56]Write i2c OK [10:18:56]MH_I2C_Read... [10:18:56]Read from MH i2c: D1 [10:18:56]MH_I2C_Read... [10:18:56]Read from MH i2c: D1 01 00 [10:18:56]MH_I2C_Read... [10:18:56]Read from MH i2c: D1 01 00 56 03 00 2A [10:18:56]Write to MH i2c: 01 00 00 57 03 5A [10:18:56]Write i2c OK [10:18:56]MH_I2C_Read... [10:18:57]Connected sock=11 [10:18:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 31 01 00 00 C8 A2 29 01 3B A1 5A 03 01 00 03 00 1D 01 1E 04 01 00 02 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 *** Cut start [10:18:57]01 BC 04 01 *** Partial cut [10:18:57]00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 *** CUTSNS_PIN = 1 [10:18:57]0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 *** CUTSNS_PIN = 0 [10:18:57]00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 8E E4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 27 04 04 00 CF 40 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D0 40 01 00 35 04 06 00 19 4E EE EA 7F F7 85 39 C3 CE 8B 0F D0 31 [10:18:57]*** Brake cut motor [10:18:57]Read from MH i2c: 01 [10:18:57]MH_I2C_Read... [10:18:57]*** Stop cut motor [10:18:57]*** Cut end [10:18:57]Read from MH i2c: 01 07 00 [10:18:57]MH_I2C_Read... [10:18:57]Read from MH i2c: 01 07 00 57 03 00 00 00 00 00 FF 0F 6F [10:18:57]process_action close_receipt done [10:18:57]requested_data is exist [10:18:57]produce_requested_data [10:18:57]requested_item fm.sn is exist - process it [10:18:57]wFMCommunicate request_size=4 [10:18:57]MH_SAM_APDU [10:18:57]CAPDU: 80 11 00 00 [10:18:57]Write to MH i2c: E2 08 00 58 03 80 11 00 00 00 00 00 00 D5 [10:18:57]Write i2c OK [10:18:57]MH_I2C_Read... [10:18:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:57]Read from MH i2c: E2 [10:18:57]MH_I2C_Read... [10:18:57]Read from MH i2c: E2 17 00 [10:18:57]MH_I2C_Read... [10:18:57]Read from MH i2c: E2 17 00 58 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 27 [10:18:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:18:57]wFMCommunicate OK [10:18:57]requested_item fd.num is exist - process it [10:18:57]SAM_PROTO_GetFieldsCounters [10:18:57]wFMCommunicate request_size=4 [10:18:57]MH_SAM_APDU [10:18:57]CAPDU: 80 13 00 00 [10:18:57]Write to MH i2c: E2 08 00 59 03 80 13 00 00 00 00 00 00 D8 [10:18:57]Write i2c OK [10:18:57]MH_I2C_Read... [10:18:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 0F 0D 47 00 EC DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D0 40 01 00 F4 03 04 00 CE 89 10 67 B6 04 01 00 00 FE 1F 6F 55 B7 E0 84 A1 [10:18:57]CommunicateWithHost err = 0 [10:18:57]CheckOFDResponse [10:18:57]1017 (14) - 77093643461234 [10:18:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:57]1041 (16) - 0000000000871843 [10:18:57]1040 (4) - 82128 [10:18:57]1012 (4) - 17.10.2024 03:51 [10:18:57]1206 (1) - 0 [10:18:57]OFD Sender: Remove packet 82128 [10:18:57]ProducePacketName [10:18:57]name=ofd_packets/00082128 [10:18:57]NVStorageDeleteData [10:18:58]Read from MH i2c: E2 [10:18:58]MH_I2C_Read... [10:18:58]Read from MH i2c: E2 62 00 [10:18:58]MH_I2C_Read... [10:18:58]Read from MH i2c: E2 62 00 59 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D0 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [10:18:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D0 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:18:58]wFMCommunicate OK [10:18:58]SAM_PROTO_GetFieldsCounters done [10:18:58]requested_item shift.num is exist - process it [10:18:58]requested_item shift.opened is exist - process it [10:18:58]req_shift_opened [10:18:58]FM_GetShiftState [10:18:58]SAM_PROTO_GetShiftState [10:18:58]wFMCommunicate request_size=4 [10:18:58]MH_SAM_APDU [10:18:58]CAPDU: 80 13 01 00 [10:18:58]Write to MH i2c: E2 08 00 5A 03 80 13 01 00 00 00 00 00 DA [10:18:58]Write i2c OK [10:18:58]MH_I2C_Read... [10:18:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:58]Read from MH i2c: E2 [10:18:58]MH_I2C_Read... [10:18:58]Read from MH i2c: E2 0E 00 [10:18:58]MH_I2C_Read... [10:18:58]Read from MH i2c: E2 0E 00 5A 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 E2 [10:18:58]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:18:58]wFMCommunicate OK [10:18:58]SAM_PROTO_GetShiftState done [10:18:58]FM_GetShiftState done [10:18:58]req_shift_opened done [10:18:58]requested_item shift.open_date is exist - process it [10:18:58]req_shift_open_date [10:18:58]req_shift_open_date done [10:18:58]produce_requested_data done [10:18:58]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82128,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [10:18:58]process_action_free close_receipt [10:18:58]json_value_free [10:18:58]json_value_free done [10:18:58]process_json_proto returns [10:18:58]Send response to host [10:18:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82128,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [10:18:58]free response buf [10:18:58]execute_script done [10:18:58]execute_script returns [10:18:58]free content buf [10:18:58]Sock 9.Close socket [10:18:58]Sock 9.Thread stoped [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:07]recv_with_timeout no data received [10:19:08]OFD Sender: No OFD packet to send [10:19:13]OFD Sender: No OFD packet to send [10:19:18]OFD Sender: No OFD packet to send [10:19:21]recv_with_timeout no data received [10:19:23]OFD Sender: No OFD packet to send [10:19:28]OFD Sender: No OFD packet to send [10:19:33]OFD Sender: No OFD packet to send [10:19:34]recv_with_timeout no data received [10:19:38]OFD Sender: No OFD packet to send [10:19:43]OFD Sender: No OFD packet to send [10:19:44]recv_with_timeout no data received [10:19:48]OFD Sender: No OFD packet to send [10:19:53]OFD Sender: No OFD packet to send [10:19:58]OFD Sender: No OFD packet to send [10:20:03]OFD Sender: No OFD packet to send [10:20:06]recv_with_timeout no data received [10:20:08]OFD Sender: No OFD packet to send [10:20:13]OFD Sender: No OFD packet to send [10:20:17]recv_with_timeout no data received [10:20:18]OFD Sender: No OFD packet to send [10:20:23]OFD Sender: No OFD packet to send [10:20:28]OFD Sender: No OFD packet to send [10:20:33]OFD Sender: No OFD packet to send [10:20:38]OFD Sender: No OFD packet to send [10:20:43]OFD Sender: No OFD packet to send [10:20:48]OFD Sender: No OFD packet to send [10:20:53]OFD Sender: No OFD packet to send [10:20:58]OFD Sender: No OFD packet to send [10:21:03]OFD Sender: No OFD packet to send [10:21:08]OFD Sender: No OFD packet to send [10:21:13]OFD Sender: No OFD packet to send [10:21:18]OFD Sender: No OFD packet to send [10:21:23]OFD Sender: No OFD packet to send [10:21:28]OFD Sender: No OFD packet to send [10:21:33]OFD Sender: No OFD packet to send [10:21:38]OFD Sender: No OFD packet to send [10:21:43]OFD Sender: No OFD packet to send [10:21:48]OFD Sender: No OFD packet to send [10:21:53]OFD Sender: No OFD packet to send [10:21:58]OFD Sender: No OFD packet to send [10:22:03]OFD Sender: No OFD packet to send [10:22:08]OFD Sender: No OFD packet to send [10:22:13]OFD Sender: No OFD packet to send [10:22:16]recv_with_timeout no data received [10:22:18]OFD Sender: No OFD packet to send [10:22:23]OFD Sender: No OFD packet to send [10:22:28]OFD Sender: No OFD packet to send [10:22:33]OFD Sender: No OFD packet to send [10:22:38]OFD Sender: No OFD packet to send [10:22:43]OFD Sender: No OFD packet to send [10:22:48]OFD Sender: No OFD packet to send [10:22:53]OFD Sender: No OFD packet to send [10:22:58]OFD Sender: No OFD packet to send [10:23:03]OFD Sender: No OFD packet to send [10:23:08]OFD Sender: No OFD packet to send [10:23:13]OFD Sender: No OFD packet to send [10:23:18]OFD Sender: No OFD packet to send [10:23:23]OFD Sender: No OFD packet to send [10:23:28]OFD Sender: No OFD packet to send [10:23:33]OFD Sender: No OFD packet to send [10:23:38]OFD Sender: No OFD packet to send [10:23:43]OFD Sender: No OFD packet to send [10:23:48]OFD Sender: No OFD packet to send [10:23:53]OFD Sender: No OFD packet to send [10:23:58]OFD Sender: No OFD packet to send [10:24:04]OFD Sender: No OFD packet to send [10:24:09]OFD Sender: No OFD packet to send [10:24:14]OFD Sender: No OFD packet to send [10:24:19]OFD Sender: No OFD packet to send [10:24:24]OFD Sender: No OFD packet to send [10:24:29]OFD Sender: No OFD packet to send [10:24:34]OFD Sender: No OFD packet to send [10:24:39]OFD Sender: No OFD packet to send [10:24:44]OFD Sender: No OFD packet to send [10:24:49]OFD Sender: No OFD packet to send [10:24:54]OFD Sender: No OFD packet to send [10:24:59]OFD Sender: No OFD packet to send [10:25:04]OFD Sender: No OFD packet to send [10:25:09]OFD Sender: No OFD packet to send [10:25:14]OFD Sender: No OFD packet to send [10:25:19]OFD Sender: No OFD packet to send [10:25:24]OFD Sender: No OFD packet to send [10:25:29]OFD Sender: No OFD packet to send [10:25:34]OFD Sender: No OFD packet to send [10:25:39]OFD Sender: No OFD packet to send [10:25:40]accept exits with 10 [10:25:40]New connection [10:25:40]New thread 3066514788 created [10:25:40]Thread 3066658148 joined [10:25:40]Waiting for new connection... [10:25:40] Sock 10.Parse request [10:25:40]Sock 10.Check first char [10:25:40]Sock 10.First char is OK [10:25:40]request: POST /json_proto HTTP/1.0 [10:25:40]Method: POST [10:25:40]URL: /json_proto [10:25:40]Method is POST - this is cgi request [10:25:40]url: /json_proto [10:25:40]query_string will be loaded in cgi processing [10:25:40]execute_cgi json_proto POST (null) [10:25:40]execute_cgi path=json_proto method=POST [10:25:40]POST find Content-Length [10:25:40]Host: 172.17.44.67:8080 [10:25:40]Content-Length: 759 [10:25:40]Content-Type: application/json [10:25:40] [10:25:40]POST finish read [10:25:40]Found Content-Length = 759 [10:25:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 16.870, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30121604", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:40]execute_script... [10:25:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 16.870, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30121604", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:40]POST & json_proto [10:25:40]process_json_proto [10:25:40]json parsed OK: [10:25:40]protocol is kg_v1.0 [10:25:40]action value=close_receipt [10:25:40]process_action close_receipt [10:25:40]cmd_close_receipt [10:25:40]MH_GetDate [10:25:40]Write to MH i2c: F0 00 00 5B 03 4D [10:25:40]Write i2c OK [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: F0 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: F0 09 00 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: F0 09 00 5B 03 00 25 E6 10 67 F1 C7 6B 64 5F [10:25:40]GetLastDocTimeStamp 1729160334 [10:25:40]current date 1729160741 [10:25:40]FM_GetShiftState [10:25:40]SAM_PROTO_GetShiftState [10:25:40]wFMCommunicate request_size=4 [10:25:40]MH_SAM_APDU [10:25:40]CAPDU: 80 13 01 00 [10:25:40]Write to MH i2c: E2 08 00 5C 03 80 13 01 00 00 00 00 00 DC [10:25:40]Write i2c OK [10:25:40]MH_I2C_Read... [10:25:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:40]Read from MH i2c: E2 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: E2 0E 00 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: E2 0E 00 5C 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 E4 [10:25:40]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:25:40]wFMCommunicate OK [10:25:40]SAM_PROTO_GetShiftState done [10:25:40]FM_GetShiftState done [10:25:40]opened in 1729125927 [10:25:40]opened+sec_in_day 1729212327 [10:25:40]quantity*price = 0 [10:25:40]sum+1 = 1 [10:25:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 55 17.10.2024 10:25 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30121604 ФМ: 0000000000871843 ФД: 82129 ФПД: 82170831410664 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T102541&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82129&fm=82170831410664&tin=02508201610067®Number=0000000000091680&sum=0 [10:25:42]StoreToDocumentArchive [10:25:42]shift 525 fd 82129 [10:25:42]save to /storage/0525/doc_00082129 [10:25:42]save last doc name /storage/0525/doc_00082129 to /storage/kkm_last_doc_name [10:25:42]save OK [10:25:42]Clear old archive folders... [10:25:42]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:25:42]tlvbuf is 00AD9E80 [10:25:42]SAM_PROTO_ClearQueue [10:25:42]wFMCommunicate request_size=4 [10:25:42]MH_SAM_APDU [10:25:42]CAPDU: 80 09 00 00 [10:25:42]Write to MH i2c: E2 08 00 69 03 80 09 00 00 00 00 00 00 DE [10:25:42]Write i2c OK [10:25:42]MH_I2C_Read... [10:25:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:42]Read from MH i2c: E2 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 03 00 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 03 00 69 03 00 90 00 E0 [10:25:42]RAPDU: 90 00 [10:25:42]wFMCommunicate OK [10:25:42]SAM_PROTO_ClearQueue done [10:25:42]KKMCreateOFDPacket [10:25:42]OFDProtocolAddRootSTLVToBuf [10:25:42]FM_MakeSignedData [10:25:42]FM_MakeSignedData [10:25:42]SAM_PROTO_SignData [10:25:42]wFMCommunicate request_size=4 [10:25:42]MH_SAM_APDU [10:25:42]CAPDU: 80 0D 01 02 [10:25:42]Write to MH i2c: E2 08 00 6A 03 80 0D 01 02 00 00 00 00 E6 [10:25:42]Write i2c OK [10:25:42]MH_I2C_Read... [10:25:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:42]Read from MH i2c: E2 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 03 00 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 03 00 6A 03 00 90 00 E1 [10:25:42]RAPDU: 90 00 [10:25:42]wFMCommunicate OK [10:25:42]wFMCommunicate request_size=255 [10:25:42]MH_SAM_APDU [10:25:42]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E6 41 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 25 E6 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D1 40 01 00 35 04 06 00 [10:25:42]Write to MH i2c: E2 02 01 6B 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E6 41 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 25 E6 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D1 40 01 00 35 04 06 00 00 00 2A [10:25:42]Write i2c OK [10:25:42]MH_I2C_Read... [10:25:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:42]Read from MH i2c: E2 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 03 00 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 03 00 6B 03 00 90 00 E2 [10:25:42]RAPDU: 90 00 [10:25:42]wFMCommunicate OK [10:25:42]wFMCommunicate request_size=11 [10:25:42]MH_SAM_APDU [10:25:42]CAPDU: 80 0D 02 02 06 4A BB E3 37 95 E8 [10:25:42]Write to MH i2c: E2 0E 00 6C 03 80 0D 02 02 06 00 4A BB E3 37 95 E8 00 00 91 [10:25:42]Write i2c OK [10:25:42]MH_I2C_Read... [10:25:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:42]Read from MH i2c: E2 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 03 00 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 03 00 6C 03 00 90 00 E3 [10:25:42]RAPDU: 90 00 [10:25:42]wFMCommunicate OK [10:25:42]wFMCommunicate request_size=4 [10:25:42]MH_SAM_APDU [10:25:42]CAPDU: 80 0D 03 02 [10:25:42]Write to MH i2c: E2 08 00 6D 03 80 0D 03 02 00 00 00 00 EB [10:25:42]Write i2c OK [10:25:42]MH_I2C_Read... [10:25:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:42]Read from MH i2c: E2 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 0B 00 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 0B 00 6D 03 00 2E E4 60 88 53 12 5F 34 90 00 DE [10:25:42]RAPDU: 2E E4 60 88 53 12 5F 34 90 00 [10:25:42]wFMCommunicate OK [10:25:42]SAM_PROTO_SignData done [10:25:42]FM_MakeSignedData done [10:25:42]CreateOFDProtocolMessage [10:25:42]wFMCommunicate request_size=4 [10:25:42]MH_SAM_APDU [10:25:42]CAPDU: 80 11 00 00 [10:25:42]Write to MH i2c: E2 08 00 6E 03 80 11 00 00 00 00 00 00 EB [10:25:42]Write i2c OK [10:25:42]MH_I2C_Read... [10:25:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:42]Read from MH i2c: E2 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 17 00 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 17 00 6E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 3D [10:25:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:25:42]wFMCommunicate OK [10:25:42]CreateOFDProtocolMessage done [10:25:42]OFDSenderStorePacket 82129 [10:25:42]StoreOFDPacket docnum=82129 [10:25:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 B6 BA 08 01 95 22 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E6 41 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 25 E6 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D1 40 01 00 35 04 06 00 4A BB E3 37 95 E8 2E E4 60 88 53 12 5F 34 [10:25:42]CheckFolder [10:25:42]dirname=/storage/ofd_packets [10:25:42]CheckFolder done [10:25:42]ProducePacketName [10:25:42]name=ofd_packets/00082129 [10:25:42]NVStorageSaveData ofd_packets/00082129 [10:25:42]File name is /storage/ofd_packets/00082129 [10:25:42]Write 302 bytes [10:25:42]NVStorageSaveData done [10:25:42]OFDSenderStorePacket done [10:25:42]KKMCreateOFDPacket done [10:25:42]NVStorageSaveData kkm_last_timestamp [10:25:42]File name is /storage/kkm_last_timestamp [10:25:42]Write 4 bytes [10:25:42]NVStorageSaveData done [10:25:42]OFD Sender: Processing packet 82129 [packets to send 254, broken 253] [10:25:42]ProducePacketName [10:25:42]name=ofd_packets/00082129 [10:25:42]OFD Sender: To server: pG, [10:25:42]CommunicateWithHost lk.salyk.kg:30040 [10:25:42]ConnectInit lk.salyk.kg [10:25:42]ExternCall_PrintAddStr [10:25:42]wPrintStart [10:25:42]Write to MH i2c: 01 00 00 6F 03 72 [10:25:42]Write i2c OK [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: 01 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: 01 07 00 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: 01 07 00 6F 03 00 00 00 00 00 FF 0F 87 [10:25:42]RasterBufferAndPrint [10:25:42]line Счет N : (1)918635 [10:25:42]line ИНН: 02508201610067 [10:25:42]line Контрольно-Кассовый Чек [10:25:42]line ПРОДАЖА [10:25:42]line ТРК (МРК, ГНК) : 31 [10:25:42]line Товар: 2710194210 [10:25:42]line ДТ(л)-К-5 [10:25:42]line 16.870 * 0.00 [10:25:42]line = 0.00 [10:25:42]line НДС 12% НСП 1% [10:25:42]line > о реализуемом товаре [10:25:42]line ИТОГО: 0.00 [10:25:42]line НСП 1% : 0.00 [10:25:42]line НДС 12% : 0.00 [10:25:42]line Наличными: 0.00 [10:25:42]line Безнал.: 0.00 [10:25:42]line Место: АЗС № 114 "Партнер Нефть" [10:25:42]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:25:42]line СНО: Общий режим [10:25:42]line Чек 55 17.10.2024 10:25 [10:25:42]line Смена: 525 ФФД: 1.0 [10:25:42]line ЗНМ: 0300000086 [10:25:42]line РНМ: 0000000000091680 [10:25:42]line Версия ККМ: 001 [10:25:42]line Талоны: ТК ГПНА Online [10:25:42]line 30121604 [10:25:42]line ФМ: 0000000000871843 [10:25:42]line ФД: 82129 [10:25:42]line ФПД: 82170831410664 [10:25:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T102541&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82129&fm=82170831410664&tin=02508201610067®Number=0000000000091680&sum=0 [10:25:42]written 0, free lines is 4095 [10:25:43]Write to MH i2c: 01 00 00 99 03 9C [10:25:43]Write i2c OK [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: 01 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: 01 07 00 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: 01 07 00 99 03 00 00 00 00 00 DD 0C 8C [10:25:43]RasterBufferAndPrint [10:25:43]line [10:25:43]line [10:25:43]line [10:25:43]line [10:25:43]line [10:25:43]written 0, free lines is 3299 [10:25:43]MH_Cut [10:25:43]Write to MH i2c: D1 01 00 A0 03 01 75 [10:25:43]Write i2c OK [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: D1 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: D1 01 00 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: D1 01 00 A0 03 00 74 [10:25:43]Write to MH i2c: 01 00 00 A1 03 A4 [10:25:43]Write i2c OK [10:25:43]MH_I2C_Read... [10:25:43]Connected sock=11 [10:25:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 B6 BA 08 01 95 22 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E6 41 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 25 E6 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D1 40 01 00 35 04 06 00 4A BB E3 37 95 E8 2E E4 60 88 53 12 5F 34 [10:25:44]*** Cut start [10:25:44]*** Partial cut [10:25:44]*** CUTSNS_PIN = 1 [10:25:44]*** CUTSNS_PIN = 0 [10:25:44]*** Brake cut motor [10:25:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 7C EB 47 00 54 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 30 38 37 31 38 34 33 10 04 04 00 D1 40 01 00 F4 03 04 00 64 8B 10 67 B6 04 01 00 00 EC 03 94 37 2F 0D F2 FF [10:25:44]CommunicateWithHost err = 0 [10:25:44]CheckOFDResponse [10:25:44]1017 (14) - 77093643461234 [10:25:44]1041 (16) - 0000000000871843 [10:25:44]1040 (4) - 82129 [10:25:44]1012 (4) - 17.10.2024 03:58 [10:25:44]1206 (1) - 0 [10:25:44]OFD Sender: Remove packet 82129 [10:25:44]ProducePacketName [10:25:44]name=ofd_packets/00082129 [10:25:44]NVStorageDeleteData [10:25:44]Read from MH i2c: 01 [10:25:44]MH_I2C_Read... [10:25:44]*** Stop cut motor [10:25:44]*** Cut end [10:25:44]Read from MH i2c: 01 07 00 [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: 01 07 00 A1 03 00 00 00 00 00 FF 0F B9 [10:25:44]process_action close_receipt done [10:25:44]requested_data is exist [10:25:44]produce_requested_data [10:25:44]requested_item fm.sn is exist - process it [10:25:44]wFMCommunicate request_size=4 [10:25:44]MH_SAM_APDU [10:25:44]CAPDU: 80 11 00 00 [10:25:44]Write to MH i2c: E2 08 00 A2 03 80 11 00 00 00 00 00 00 1F [10:25:44]Write i2c OK [10:25:44]MH_I2C_Read... [10:25:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:44]Read from MH i2c: E2 [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: E2 17 00 [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: E2 17 00 A2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 71 [10:25:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:25:44]wFMCommunicate OK [10:25:44]requested_item fd.num is exist - process it [10:25:44]SAM_PROTO_GetFieldsCounters [10:25:44]wFMCommunicate request_size=4 [10:25:44]MH_SAM_APDU [10:25:44]CAPDU: 80 13 00 00 [10:25:44]Write to MH i2c: E2 08 00 A3 03 80 13 00 00 00 00 00 00 22 [10:25:44]Write i2c OK [10:25:44]MH_I2C_Read... [10:25:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:44]Read from MH i2c: E2 [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: E2 62 00 [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: E2 62 00 A3 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D1 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [10:25:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D1 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:25:44]wFMCommunicate OK [10:25:44]SAM_PROTO_GetFieldsCounters done [10:25:44]requested_item shift.num is exist - process it [10:25:44]requested_item shift.opened is exist - process it [10:25:44]req_shift_opened [10:25:44]FM_GetShiftState [10:25:44]SAM_PROTO_GetShiftState [10:25:44]wFMCommunicate request_size=4 [10:25:44]MH_SAM_APDU [10:25:44]CAPDU: 80 13 01 00 [10:25:44]Write to MH i2c: E2 08 00 A4 03 80 13 01 00 00 00 00 00 24 [10:25:44]Write i2c OK [10:25:44]MH_I2C_Read... [10:25:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:45]Read from MH i2c: E2 [10:25:45]MH_I2C_Read... [10:25:45]Read from MH i2c: E2 0E 00 [10:25:45]MH_I2C_Read... [10:25:45]Read from MH i2c: E2 0E 00 A4 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 2C [10:25:45]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:25:45]wFMCommunicate OK [10:25:45]SAM_PROTO_GetShiftState done [10:25:45]FM_GetShiftState done [10:25:45]req_shift_opened done [10:25:45]requested_item shift.open_date is exist - process it [10:25:45]req_shift_open_date [10:25:45]req_shift_open_date done [10:25:45]produce_requested_data done [10:25:45]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82129,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [10:25:45]process_action_free close_receipt [10:25:45]json_value_free [10:25:45]json_value_free done [10:25:45]process_json_proto returns [10:25:45]Send response to host [10:25:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82129,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [10:25:45]free response buf [10:25:45]execute_script done [10:25:45]execute_script returns [10:25:45]free content buf [10:25:45]Sock 10.Close socket [10:25:45]Sock 10.Thread stoped [10:25:45]OFD Sender: No OFD packet to send [10:25:50]OFD Sender: No OFD packet to send [10:25:51]recv_with_timeout no data received [10:25:55]OFD Sender: No OFD packet to send [10:26:00]OFD Sender: No OFD packet to send [10:26:04]recv_with_timeout no data received [10:26:05]OFD Sender: No OFD packet to send [10:26:10]OFD Sender: No OFD packet to send [10:26:15]OFD Sender: No OFD packet to send [10:26:15]recv_with_timeout no data received [10:26:20]accept exits with 8 [10:26:20]New connection [10:26:20]New thread 3066658148 created [10:26:20]Thread 3066514788 joined [10:26:20]Waiting for new connection... [10:26:20] Sock 8.Parse request [10:26:20]Sock 8.Check first char [10:26:20]Sock 8.First char is OK [10:26:20]request: POST /json_proto HTTP/1.0 [10:26:20]Method: POST [10:26:20]URL: /json_proto [10:26:20]Method is POST - this is cgi request [10:26:20]url: /json_proto [10:26:20]query_string will be loaded in cgi processing [10:26:20]execute_cgi json_proto POST (null) [10:26:20]execute_cgi path=json_proto method=POST [10:26:20]POST find Content-Length [10:26:20]Host: 172.17.44.67:8080 [10:26:20]Content-Length: 767 [10:26:20]Content-Type: application/json [10:26:20] [10:26:20]POST finish read [10:26:20]Found Content-Length = 767 [10:26:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:20]execute_script... [10:26:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:20]POST & json_proto [10:26:20]process_json_proto [10:26:20]json parsed OK: [10:26:20]protocol is kg_v1.0 [10:26:20]action value=close_receipt [10:26:20]process_action close_receipt [10:26:20]cmd_close_receipt [10:26:20]MH_GetDate [10:26:20]Write to MH i2c: F0 00 00 A5 03 97 [10:26:20]Write i2c OK [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: F0 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: F0 09 00 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: F0 09 00 A5 03 00 4D E6 10 67 F1 C7 6B 64 D1 [10:26:20]GetLastDocTimeStamp 1729160741 [10:26:20]current date 1729160781 [10:26:20]FM_GetShiftState [10:26:20]SAM_PROTO_GetShiftState [10:26:20]wFMCommunicate request_size=4 [10:26:20]MH_SAM_APDU [10:26:20]CAPDU: 80 13 01 00 [10:26:20]Write to MH i2c: E2 08 00 A6 03 80 13 01 00 00 00 00 00 26 [10:26:20]Write i2c OK [10:26:20]MH_I2C_Read... [10:26:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:20]Read from MH i2c: E2 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: E2 0E 00 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: E2 0E 00 A6 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 2E [10:26:20]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:26:20]wFMCommunicate OK [10:26:20]SAM_PROTO_GetShiftState done [10:26:20]FM_GetShiftState done [10:26:20]opened in 1729125927 [10:26:20]opened+sec_in_day 1729212327 [10:26:20]quantity*price = 80061 [10:26:20]sum+1 = 80063 [10:26:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.62 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 0.00 Безнал.: 800.62 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 56 17.10.2024 10:26 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82130 ФПД: 38822275544834 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T102621&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82130&fm=38822275544834&tin=02508201610067®Number=0000000000091680&sum=80062 [10:26:21]StoreToDocumentArchive [10:26:21]shift 525 fd 82130 [10:26:21]save to /storage/0525/doc_00082130 [10:26:21]save last doc name /storage/0525/doc_00082130 to /storage/kkm_last_doc_name [10:26:21]save OK [10:26:21]Clear old archive folders... [10:26:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:26:21]tlvbuf is 00AD9A60 [10:26:21]SAM_PROTO_ClearQueue [10:26:21]wFMCommunicate request_size=4 [10:26:21]MH_SAM_APDU [10:26:21]CAPDU: 80 09 00 00 [10:26:21]Write to MH i2c: E2 08 00 B3 03 80 09 00 00 00 00 00 00 28 [10:26:21]Write i2c OK [10:26:21]MH_I2C_Read... [10:26:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:21]Read from MH i2c: E2 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 03 00 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 03 00 B3 03 00 90 00 2A [10:26:21]RAPDU: 90 00 [10:26:21]wFMCommunicate OK [10:26:21]SAM_PROTO_ClearQueue done [10:26:21]KKMCreateOFDPacket [10:26:21]OFDProtocolAddRootSTLVToBuf [10:26:21]FM_MakeSignedData [10:26:21]FM_MakeSignedData [10:26:21]SAM_PROTO_SignData [10:26:21]wFMCommunicate request_size=4 [10:26:21]MH_SAM_APDU [10:26:21]CAPDU: 80 0D 01 02 [10:26:21]Write to MH i2c: E2 08 00 B4 03 80 0D 01 02 00 00 00 00 30 [10:26:21]Write i2c OK [10:26:21]MH_I2C_Read... [10:26:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:21]Read from MH i2c: E2 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 03 00 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 03 00 B4 03 00 90 00 2B [10:26:21]RAPDU: 90 00 [10:26:21]wFMCommunicate OK [10:26:21]wFMCommunicate request_size=255 [10:26:21]MH_SAM_APDU [10:26:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 4D E6 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D2 40 01 00 35 04 06 00 23 [10:26:21]Write to MH i2c: E2 02 01 B5 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 4D E6 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D2 40 01 00 35 04 06 00 23 00 00 CD [10:26:21]Write i2c OK [10:26:21]MH_I2C_Read... [10:26:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:21]Read from MH i2c: E2 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 03 00 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 03 00 B5 03 00 90 00 2C [10:26:21]RAPDU: 90 00 [10:26:21]wFMCommunicate OK [10:26:21]wFMCommunicate request_size=10 [10:26:21]MH_SAM_APDU [10:26:21]CAPDU: 80 0D 02 02 05 4F 03 F1 77 02 [10:26:21]Write to MH i2c: E2 0D 00 B6 03 80 0D 02 02 05 00 4F 03 F1 77 02 00 00 F9 [10:26:21]Write i2c OK [10:26:21]MH_I2C_Read... [10:26:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:21]Read from MH i2c: E2 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 03 00 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 03 00 B6 03 00 90 00 2D [10:26:21]RAPDU: 90 00 [10:26:21]wFMCommunicate OK [10:26:21]wFMCommunicate request_size=4 [10:26:21]MH_SAM_APDU [10:26:21]CAPDU: 80 0D 03 02 [10:26:21]Write to MH i2c: E2 08 00 B7 03 80 0D 03 02 00 00 00 00 35 [10:26:21]Write i2c OK [10:26:21]MH_I2C_Read... [10:26:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:21]Read from MH i2c: E2 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 0B 00 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 0B 00 B7 03 00 7D 4D EA 36 33 BF 60 CF 90 00 41 [10:26:21]RAPDU: 7D 4D EA 36 33 BF 60 CF 90 00 [10:26:21]wFMCommunicate OK [10:26:21]SAM_PROTO_SignData done [10:26:21]FM_MakeSignedData done [10:26:21]CreateOFDProtocolMessage [10:26:21]wFMCommunicate request_size=4 [10:26:21]MH_SAM_APDU [10:26:21]CAPDU: 80 11 00 00 [10:26:21]Write to MH i2c: E2 08 00 B8 03 80 11 00 00 00 00 00 00 35 [10:26:21]Write i2c OK [10:26:21]MH_I2C_Read... [10:26:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:21]Read from MH i2c: E2 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 17 00 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 17 00 B8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 87 [10:26:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:26:21]wFMCommunicate OK [10:26:21]CreateOFDProtocolMessage done [10:26:21]OFDSenderStorePacket 82130 [10:26:21]StoreOFDPacket docnum=82130 [10:26:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 81 6E 07 01 CA 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 4D E6 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D2 40 01 00 35 04 06 00 23 4F 03 F1 77 02 7D 4D EA 36 33 BF 60 CF [10:26:21]CheckFolder [10:26:21]dirname=/storage/ofd_packets [10:26:21]CheckFolder done [10:26:21]ProducePacketName [10:26:21]name=ofd_packets/00082130 [10:26:21]NVStorageSaveData ofd_packets/00082130 [10:26:21]File name is /storage/ofd_packets/00082130 [10:26:21]Write 301 bytes [10:26:21]NVStorageSaveData done [10:26:21]OFDSenderStorePacket done [10:26:21]KKMCreateOFDPacket done [10:26:21]NVStorageSaveData kkm_last_timestamp [10:26:21]File name is /storage/kkm_last_timestamp [10:26:21]Write 4 bytes [10:26:21]NVStorageSaveData done [10:26:21]ExternCall_PrintAddStr [10:26:21]wPrintStart [10:26:21]Write to MH i2c: 01 00 00 B9 03 BC [10:26:21]Write i2c OK [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: 01 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: 01 07 00 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: 01 07 00 B9 03 00 00 00 00 00 FF 0F D1 [10:26:21]RasterBufferAndPrint [10:26:21]line Счет N : (1)918636 [10:26:21]line ИНН: 02508201610067 [10:26:21]line Контрольно-Кассовый Чек [10:26:21]line ПРОДАЖА [10:26:21]line ТРК (МРК, ГНК) : 12 [10:26:21]line Товар: 2710124500 [10:26:21]line Аи-95-К-5 [10:26:21]line 10.790 * 74.20 [10:26:21]line = 800.62 [10:26:21]line НДС 12% НСП 1% [10:26:21]line > о реализуемом товаре [10:26:21]line ИТОГО: 800.62 [10:26:21]line НСП 1% : 7.08 [10:26:21]line НДС 12% : 85.02 [10:26:21]line Наличными: 0.00 [10:26:21]line Безнал.: 800.62 [10:26:21]line Место: АЗС № 114 "Партнер Нефть" [10:26:21]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:26:21]line СНО: Общий режим [10:26:21]line Чек 56 17.10.2024 10:26 [10:26:21]line Смена: 525 ФФД: 1.0 [10:26:21]line ЗНМ: 0300000086 [10:26:21]line РНМ: 0000000000091680 [10:26:21]line Версия ККМ: 001 [10:26:21]line Платежная система: Mbank [10:26:21]line ФМ: 0000000000871843 [10:26:21]line ФД: 82130 [10:26:21]line ФПД: 38822275544834 [10:26:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T102621&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82130&fm=38822275544834&tin=02508201610067®Number=0000000000091680&sum=80062 [10:26:22]OFD Sender: Processing packet 82130 [packets to send 254, broken 253] [10:26:22]ProducePacketName [10:26:22]name=ofd_packets/00082130 [10:26:22]OFD Sender: To server: pG, [10:26:22]CommunicateWithHost lk.salyk.kg:30040 [10:26:22]ConnectInit lk.salyk.kg [10:26:22]written 0, free lines is 4095 [10:26:22]Write to MH i2c: 01 00 00 E2 03 E5 [10:26:22]Write i2c OK [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: 01 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: 01 07 00 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: 01 07 00 E2 03 00 00 00 00 00 F8 0C F0 [10:26:22]RasterBufferAndPrint [10:26:22]line [10:26:22]line [10:26:22]line [10:26:22]line [10:26:22]line [10:26:22]written 0, free lines is 3328 [10:26:22]MH_Cut [10:26:22]Write to MH i2c: D1 01 00 E9 03 01 BE [10:26:22]Write i2c OK [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: D1 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: D1 01 00 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: D1 01 00 E9 03 00 BD [10:26:22]Write to MH i2c: 01 00 00 EA 03 ED [10:26:22]Write i2c OK [10:26:22]MH_I2C_Read... [10:26:23]*** Cut start [10:26:23]*** Partial cut [10:26:23]*** CUTSNS_PIN = 1 [10:26:23]*** CUTSNS_PIN = 0 [10:26:23]*** Brake cut motor [10:26:24]Read from MH i2c: 01 [10:26:24]MH_I2C_Read... [10:26:24]*** Stop cut motor [10:26:24]*** Cut end [10:26:24]Read from MH i2c: 01 07 00 [10:26:24]MH_I2C_Read... [10:26:24]Read from MH i2c: 01 07 00 EA 03 00 00 00 00 00 FF 0F 02 [10:26:24]process_action close_receipt done [10:26:24]requested_data is exist [10:26:24]produce_requested_data [10:26:24]requested_item fm.sn is exist - process it [10:26:24]wFMCommunicate request_size=4 [10:26:24]MH_SAM_APDU [10:26:24]CAPDU: 80 11 00 00 [10:26:24]Write to MH i2c: E2 08 00 EB 03 80 11 00 00 00 00 00 00 68 [10:26:24]Write i2c OK [10:26:24]MH_I2C_Read... [10:26:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:24]Read from MH i2c: E2 [10:26:24]MH_I2C_Read... [10:26:24]Read from MH i2c: E2 17 00 [10:26:24]MH_I2C_Read... [10:26:24]Read from MH i2c: E2 17 00 EB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 BA [10:26:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:26:24]wFMCommunicate OK [10:26:24]requested_item fd.num is exist - process it [10:26:24]SAM_PROTO_GetFieldsCounters [10:26:24]wFMCommunicate request_size=4 [10:26:24]MH_SAM_APDU [10:26:24]CAPDU: 80 13 00 00 [10:26:24]Write to MH i2c: E2 08 00 EC 03 80 13 00 00 00 00 00 00 6B [10:26:24]Write i2c OK [10:26:24]MH_I2C_Read... [10:26:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:24]Read from MH i2c: E2 [10:26:24]MH_I2C_Read... [10:26:24]Read from MH i2c: E2 62 00 [10:26:24]MH_I2C_Read... [10:26:24]Read from MH i2c: E2 62 00 EC 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D2 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [10:26:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D2 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:26:24]wFMCommunicate OK [10:26:24]SAM_PROTO_GetFieldsCounters done [10:26:24]requested_item shift.num is exist - process it [10:26:24]requested_item shift.opened is exist - process it [10:26:24]req_shift_opened [10:26:24]FM_GetShiftState [10:26:24]SAM_PROTO_GetShiftState [10:26:24]wFMCommunicate request_size=4 [10:26:24]MH_SAM_APDU [10:26:24]CAPDU: 80 13 01 00 [10:26:24]Write to MH i2c: E2 08 00 ED 03 80 13 01 00 00 00 00 00 6D [10:26:24]Write i2c OK [10:26:24]MH_I2C_Read... [10:26:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:24]Read from MH i2c: E2 [10:26:24]MH_I2C_Read... [10:26:24]Read from MH i2c: E2 0E 00 [10:26:24]MH_I2C_Read... [10:26:24]Read from MH i2c: E2 0E 00 ED 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 75 [10:26:24]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:26:24]wFMCommunicate OK [10:26:24]SAM_PROTO_GetShiftState done [10:26:24]FM_GetShiftState done [10:26:24]req_shift_opened done [10:26:24]requested_item shift.open_date is exist - process it [10:26:24]req_shift_open_date [10:26:24]req_shift_open_date done [10:26:24]produce_requested_data done [10:26:24]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82130,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [10:26:24]process_action_free close_receipt [10:26:24]json_value_free [10:26:24]json_value_free done [10:26:24]process_json_proto returns [10:26:24]Send response to host [10:26:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82130,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [10:26:24]free response buf [10:26:24]execute_script done [10:26:24]execute_script returns [10:26:24]free content buf [10:26:24]Sock 8.Close socket [10:26:24]Sock 8.Thread stoped [10:26:25]Connected sock=11 [10:26:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 81 6E 07 01 CA 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 4D E6 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D2 40 01 00 35 04 06 00 23 4F 03 F1 77 02 7D 4D EA 36 33 BF 60 CF [10:26:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 50 23 47 00 AB F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D2 40 01 00 F4 03 04 00 8F 8B 10 67 B6 04 01 00 00 C1 D0 87 71 76 B3 9E 9E [10:26:26]CommunicateWithHost err = 0 [10:26:26]CheckOFDResponse [10:26:26]1017 (14) - 77093643461234 [10:26:26]1041 (16) - 0000000000871843 [10:26:26]1040 (4) - 82130 [10:26:26]1012 (4) - 17.10.2024 03:59 [10:26:26]1206 (1) - 0 [10:26:26]OFD Sender: Remove packet 82130 [10:26:26]ProducePacketName [10:26:26]name=ofd_packets/00082130 [10:26:26]NVStorageDeleteData [10:26:27]OFD Sender: No OFD packet to send [10:26:30]recv_with_timeout no data received [10:26:32]OFD Sender: No OFD packet to send [10:26:37]OFD Sender: No OFD packet to send [10:26:41]recv_with_timeout no data received [10:26:42]OFD Sender: No OFD packet to send [10:26:47]OFD Sender: No OFD packet to send [10:26:52]OFD Sender: No OFD packet to send [10:26:57]OFD Sender: No OFD packet to send [10:27:02]OFD Sender: No OFD packet to send [10:27:07]OFD Sender: No OFD packet to send [10:27:12]OFD Sender: No OFD packet to send [10:27:17]OFD Sender: No OFD packet to send [10:27:22]OFD Sender: No OFD packet to send [10:27:27]OFD Sender: No OFD packet to send [10:27:32]OFD Sender: No OFD packet to send [10:27:37]OFD Sender: No OFD packet to send [10:27:42]OFD Sender: No OFD packet to send [10:27:47]OFD Sender: No OFD packet to send [10:27:52]OFD Sender: No OFD packet to send [10:27:57]OFD Sender: No OFD packet to send [10:28:02]OFD Sender: No OFD packet to send [10:28:07]OFD Sender: No OFD packet to send [10:28:12]OFD Sender: No OFD packet to send [10:28:17]OFD Sender: No OFD packet to send [10:28:22]OFD Sender: No OFD packet to send [10:28:27]OFD Sender: No OFD packet to send [10:28:32]OFD Sender: No OFD packet to send [10:28:37]OFD Sender: No OFD packet to send [10:28:42]OFD Sender: No OFD packet to send [10:28:47]OFD Sender: No OFD packet to send [10:28:52]OFD Sender: No OFD packet to send [10:28:57]OFD Sender: No OFD packet to send [10:29:02]OFD Sender: No OFD packet to send [10:29:07]OFD Sender: No OFD packet to send [10:29:12]OFD Sender: No OFD packet to send [10:29:17]OFD Sender: No OFD packet to send [10:29:22]OFD Sender: No OFD packet to send [10:29:27]OFD Sender: No OFD packet to send [10:29:32]OFD Sender: No OFD packet to send [10:29:37]OFD Sender: No OFD packet to send [10:29:42]OFD Sender: No OFD packet to send [10:29:47]OFD Sender: No OFD packet to send [10:29:52]OFD Sender: No OFD packet to send [10:29:57]OFD Sender: No OFD packet to send [10:30:02]OFD Sender: No OFD packet to send [10:30:07]OFD Sender: No OFD packet to send [10:30:12]OFD Sender: No OFD packet to send [10:30:17]OFD Sender: No OFD packet to send [10:30:22]OFD Sender: No OFD packet to send [10:30:27]OFD Sender: No OFD packet to send [10:30:32]OFD Sender: No OFD packet to send [10:30:37]OFD Sender: No OFD packet to send [10:30:42]OFD Sender: No OFD packet to send [10:30:47]OFD Sender: No OFD packet to send [10:30:52]OFD Sender: No OFD packet to send [10:30:57]OFD Sender: No OFD packet to send [10:31:02]OFD Sender: No OFD packet to send [10:31:07]OFD Sender: No OFD packet to send [10:31:12]OFD Sender: No OFD packet to send [10:31:17]OFD Sender: No OFD packet to send [10:31:22]OFD Sender: No OFD packet to send [10:31:27]OFD Sender: No OFD packet to send [10:31:32]OFD Sender: No OFD packet to send [10:31:37]OFD Sender: No OFD packet to send [10:31:42]OFD Sender: No OFD packet to send [10:31:47]OFD Sender: No OFD packet to send [10:31:52]OFD Sender: No OFD packet to send [10:31:57]OFD Sender: No OFD packet to send [10:32:02]OFD Sender: No OFD packet to send [10:32:07]OFD Sender: No OFD packet to send [10:32:12]OFD Sender: No OFD packet to send [10:32:17]OFD Sender: No OFD packet to send [10:32:22]OFD Sender: No OFD packet to send [10:32:27]OFD Sender: No OFD packet to send [10:32:32]OFD Sender: No OFD packet to send [10:32:37]OFD Sender: No OFD packet to send [10:32:42]OFD Sender: No OFD packet to send [10:32:47]OFD Sender: No OFD packet to send [10:32:52]OFD Sender: No OFD packet to send [10:32:57]OFD Sender: No OFD packet to send [10:33:02]OFD Sender: No OFD packet to send [10:33:07]OFD Sender: No OFD packet to send [10:33:12]OFD Sender: No OFD packet to send [10:33:17]OFD Sender: No OFD packet to send [10:33:22]OFD Sender: No OFD packet to send [10:33:27]OFD Sender: No OFD packet to send [10:33:28]accept exits with 9 [10:33:28]New connection [10:33:28]New thread 3066514788 created [10:33:28]Thread 3066658148 joined [10:33:28]Waiting for new connection... [10:33:28] Sock 9.Parse request [10:33:28]Sock 9.Check first char [10:33:28]Sock 9.First char is OK [10:33:28]request: POST /json_proto HTTP/1.0 [10:33:28]Method: POST [10:33:28]URL: /json_proto [10:33:28]Method is POST - this is cgi request [10:33:28]url: /json_proto [10:33:28]query_string will be loaded in cgi processing [10:33:28]execute_cgi json_proto POST (null) [10:33:28]execute_cgi path=json_proto method=POST [10:33:28]POST find Content-Length [10:33:28]Host: 172.17.44.67:8080 [10:33:28]Content-Length: 759 [10:33:28]Content-Type: application/json [10:33:28] [10:33:28]POST finish read [10:33:28]Found Content-Length = 759 [10:33:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A2202661", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:28]execute_script... [10:33:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A2202661", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:28]POST & json_proto [10:33:28]process_json_proto [10:33:28]json parsed OK: [10:33:28]protocol is kg_v1.0 [10:33:28]action value=close_receipt [10:33:28]process_action close_receipt [10:33:28]cmd_close_receipt [10:33:28]MH_GetDate [10:33:28]Write to MH i2c: F0 00 00 EE 03 E0 [10:33:28]Write i2c OK [10:33:28]MH_I2C_Read... [10:33:28]Read from MH i2c: F0 [10:33:28]MH_I2C_Read... [10:33:28]Read from MH i2c: F0 09 00 [10:33:28]MH_I2C_Read... [10:33:28]Read from MH i2c: F0 09 00 EE 03 00 F9 E7 10 67 F1 C7 6B 64 C7 [10:33:28]GetLastDocTimeStamp 1729160781 [10:33:28]current date 1729161209 [10:33:28]FM_GetShiftState [10:33:28]SAM_PROTO_GetShiftState [10:33:28]wFMCommunicate request_size=4 [10:33:28]MH_SAM_APDU [10:33:28]CAPDU: 80 13 01 00 [10:33:28]Write to MH i2c: E2 08 00 EF 03 80 13 01 00 00 00 00 00 6F [10:33:28]Write i2c OK [10:33:28]MH_I2C_Read... [10:33:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:28]Read from MH i2c: E2 [10:33:28]MH_I2C_Read... [10:33:28]Read from MH i2c: E2 0E 00 [10:33:28]MH_I2C_Read... [10:33:28]Read from MH i2c: E2 0E 00 EF 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 77 [10:33:28]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:33:28]wFMCommunicate OK [10:33:28]SAM_PROTO_GetShiftState done [10:33:28]FM_GetShiftState done [10:33:28]opened in 1729125927 [10:33:28]opened+sec_in_day 1729212327 [10:33:28]quantity*price = 0 [10:33:28]sum+1 = 1 [10:33:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 57 17.10.2024 10:33 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 2202661 ФМ: 0000000000871843 ФД: 82131 ФПД: 112158694730146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T103329&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82131&fm=112158694730146&tin=02508201610067®Number=0000000000091680&sum=0 [10:33:30]StoreToDocumentArchive [10:33:30]shift 525 fd 82131 [10:33:30]save to /storage/0525/doc_00082131 [10:33:30]save last doc name /storage/0525/doc_00082131 to /storage/kkm_last_doc_name [10:33:30]save OK [10:33:30]Clear old archive folders... [10:33:30]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:33:30]tlvbuf is 00ADB530 [10:33:30]SAM_PROTO_ClearQueue [10:33:30]wFMCommunicate request_size=4 [10:33:30]MH_SAM_APDU [10:33:30]CAPDU: 80 09 00 00 [10:33:30]Write to MH i2c: E2 08 00 FC 03 80 09 00 00 00 00 00 00 71 [10:33:30]Write i2c OK [10:33:30]MH_I2C_Read... [10:33:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:33:30]Read from MH i2c: E2 [10:33:30]MH_I2C_Read... [10:33:30]Read from MH i2c: E2 03 00 [10:33:30]MH_I2C_Read... [10:33:30]Read from MH i2c: E2 03 00 FC 03 00 90 00 73 [10:33:30]RAPDU: 90 00 [10:33:30]wFMCommunicate OK [10:33:30]SAM_PROTO_ClearQueue done [10:33:30]KKMCreateOFDPacket [10:33:30]OFDProtocolAddRootSTLVToBuf [10:33:30]FM_MakeSignedData [10:33:30]FM_MakeSignedData [10:33:30]SAM_PROTO_SignData [10:33:30]wFMCommunicate request_size=4 [10:33:30]MH_SAM_APDU [10:33:30]CAPDU: 80 0D 01 02 [10:33:30]Write to MH i2c: E2 08 00 FD 03 80 0D 01 02 00 00 00 00 79 [10:33:30]Write i2c OK [10:33:30]MH_I2C_Read... [10:33:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:33:30]Read from MH i2c: E2 [10:33:30]MH_I2C_Read... [10:33:30]Read from MH i2c: E2 03 00 [10:33:30]MH_I2C_Read... [10:33:30]Read from MH i2c: E2 03 00 FD 03 00 90 00 74 [10:33:30]RAPDU: 90 00 [10:33:30]wFMCommunicate OK [10:33:30]wFMCommunicate request_size=255 [10:33:30]MH_SAM_APDU [10:33:30]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 F9 E7 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D3 40 01 [10:33:30]Write to MH i2c: E2 02 01 FE 03 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 F9 E7 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D3 40 01 00 00 06 [10:33:30]Write i2c OK [10:33:30]MH_I2C_Read... [10:33:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:30]Read from MH i2c: E2 [10:33:30]MH_I2C_Read... [10:33:30]Read from MH i2c: E2 03 00 [10:33:30]MH_I2C_Read... [10:33:30]Read from MH i2c: E2 03 00 FE 03 00 90 00 75 [10:33:30]RAPDU: 90 00 [10:33:30]wFMCommunicate OK [10:33:30]wFMCommunicate request_size=16 [10:33:30]MH_SAM_APDU [10:33:30]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 66 01 FB 28 69 A2 [10:33:30]Write to MH i2c: E2 13 00 FF 03 80 0D 02 02 0B 00 00 35 04 06 00 66 01 FB 28 69 A2 00 00 66 [10:33:30]Write i2c OK [10:33:30]MH_I2C_Read... [10:33:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:30]Read from MH i2c: E2 [10:33:30]MH_I2C_Read... [10:33:30]Read from MH i2c: E2 03 00 [10:33:30]MH_I2C_Read... [10:33:30]Read from MH i2c: E2 03 00 FF 03 00 90 00 76 [10:33:30]RAPDU: 90 00 [10:33:30]wFMCommunicate OK [10:33:30]wFMCommunicate request_size=4 [10:33:30]MH_SAM_APDU [10:33:30]CAPDU: 80 0D 03 02 [10:33:30]Write to MH i2c: E2 08 00 00 04 80 0D 03 02 00 00 00 00 7F [10:33:30]Write i2c OK [10:33:30]MH_I2C_Read... [10:33:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:33:30]Read from MH i2c: E2 [10:33:30]MH_I2C_Read... [10:33:30]Read from MH i2c: E2 0B 00 [10:33:30]MH_I2C_Read... [10:33:30]Read from MH i2c: E2 0B 00 00 04 00 07 FB 89 81 D6 98 54 38 90 00 86 [10:33:30]RAPDU: 07 FB 89 81 D6 98 54 38 90 00 [10:33:30]wFMCommunicate OK [10:33:30]SAM_PROTO_SignData done [10:33:30]FM_MakeSignedData done [10:33:30]CreateOFDProtocolMessage [10:33:30]wFMCommunicate request_size=4 [10:33:30]MH_SAM_APDU [10:33:30]CAPDU: 80 11 00 00 [10:33:30]Write to MH i2c: E2 08 00 01 04 80 11 00 00 00 00 00 00 7F [10:33:30]Write i2c OK [10:33:30]MH_I2C_Read... [10:33:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:30]Read from MH i2c: E2 [10:33:30]MH_I2C_Read... [10:33:30]Read from MH i2c: E2 17 00 [10:33:30]MH_I2C_Read... [10:33:30]Read from MH i2c: E2 17 00 01 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D1 [10:33:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:33:30]wFMCommunicate OK [10:33:30]CreateOFDProtocolMessage done [10:33:30]OFDSenderStorePacket 82131 [10:33:30]StoreOFDPacket docnum=82131 [10:33:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 6C 99 0D 01 55 F6 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 F9 E7 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D3 40 01 00 35 04 06 00 66 01 FB 28 69 A2 07 FB 89 81 D6 98 54 38 [10:33:30]CheckFolder [10:33:30]dirname=/storage/ofd_packets [10:33:30]CheckFolder done [10:33:30]ProducePacketName [10:33:30]name=ofd_packets/00082131 [10:33:30]NVStorageSaveData ofd_packets/00082131 [10:33:30]File name is /storage/ofd_packets/00082131 [10:33:30]Write 307 bytes [10:33:30]NVStorageSaveData done [10:33:30]OFDSenderStorePacket done [10:33:30]KKMCreateOFDPacket done [10:33:30]NVStorageSaveData kkm_last_timestamp [10:33:30]File name is /storage/kkm_last_timestamp [10:33:30]Write 4 bytes [10:33:30]NVStorageSaveData done [10:33:30]ExternCall_PrintAddStr [10:33:30]wPrintStart [10:33:30]Write to MH i2c: 01 00 00 02 04 06 [10:33:30]Write i2c OK [10:33:30]MH_I2C_Read... [10:33:30]Read from MH i2c: 01 [10:33:30]MH_I2C_Read... [10:33:30]Read from MH i2c: 01 07 00 [10:33:30]MH_I2C_Read... [10:33:30]Read from MH i2c: 01 07 00 02 04 00 00 00 00 00 FF 0F 1B [10:33:30]RasterBufferAndPrint [10:33:30]line Счет N : (1)918637 [10:33:30]line ИНН: 02508201610067 [10:33:30]line Контрольно-Кассовый Чек [10:33:30]line ПРОДАЖА [10:33:30]line ТРК (МРК, ГНК) : 21 [10:33:30]line Товар: 2710194800 [10:33:30]line D-Energy ДТ-К-2 [10:33:30]line 30.000 * 0.00 [10:33:30]line = 0.00 [10:33:30]line НДС 12% НСП 1% [10:33:30]line > о реализуемом товаре [10:33:30]line ИТОГО: 0.00 [10:33:30]line НСП 1% : 0.00 [10:33:30]line НДС 12% : 0.00 [10:33:30]line Наличными: 0.00 [10:33:30]line Безнал.: 0.00 [10:33:30]line Место: АЗС № 114 "Партнер Нефть" [10:33:30]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:33:30]line СНО: Общий режим [10:33:30]line Чек 57 17.10.2024 10:33 [10:33:30]line Смена: 525 ФФД: 1.0 [10:33:30]line ЗНМ: 0300000086 [10:33:30]line РНМ: 0000000000091680 [10:33:30]line Версия ККМ: 001 [10:33:30]line Талоны: ТК ГПНА Online [10:33:30]line 2202661 [10:33:30]line ФМ: 0000000000871843 [10:33:30]line ФД: 82131 [10:33:30]line ФПД: 112158694730146 [10:33:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T103329&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82131&fm=112158694730146&tin=02508201610067®Number=0000000000091680&sum=0 [10:33:30]OFD Sender: Processing packet 82131 [packets to send 254, broken 253] [10:33:30]ProducePacketName [10:33:30]name=ofd_packets/00082131 [10:33:30]OFD Sender: To server: pG, [10:33:30]CommunicateWithHost lk.salyk.kg:30040 [10:33:30]ConnectInit lk.salyk.kg [10:33:30]written 0, free lines is 4095 [10:33:31]Write to MH i2c: 01 00 00 2C 04 30 [10:33:31]Write i2c OK [10:33:31]MH_I2C_Read... [10:33:31]Read from MH i2c: 01 [10:33:31]MH_I2C_Read... [10:33:31]Read from MH i2c: 01 07 00 [10:33:31]MH_I2C_Read... [10:33:31]Read from MH i2c: 01 07 00 2C 04 00 00 00 00 00 F4 0C 37 [10:33:31]RasterBufferAndPrint [10:33:31]line [10:33:31]line [10:33:31]line [10:33:31]line [10:33:31]line [10:33:31]written 0, free lines is 3323 [10:33:31]MH_Cut [10:33:31]Write to MH i2c: D1 01 00 33 04 01 09 [10:33:31]Write i2c OK [10:33:31]MH_I2C_Read... [10:33:31]Read from MH i2c: D1 [10:33:31]MH_I2C_Read... [10:33:31]Read from MH i2c: D1 01 00 [10:33:31]MH_I2C_Read... [10:33:31]Read from MH i2c: D1 01 00 33 04 00 08 [10:33:31]Write to MH i2c: 01 00 00 34 04 38 [10:33:31]Write i2c OK [10:33:31]MH_I2C_Read... [10:33:32]*** Cut start [10:33:32]*** Partial cut [10:33:32]*** CUTSNS_PIN = 1 [10:33:32]*** CUTSNS_PIN = 0 [10:33:32]Connected sock=8 [10:33:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 6C 99 0D 01 55 F6 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 F9 E7 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D3 40 01 00 35 04 06 00 66 01 FB 28 69 A2 07 FB 89 81 D6 98 54 38 [10:33:32]*** Brake cut motor [10:33:32]Read from MH i2c: 01 [10:33:32]MH_I2C_Read... [10:33:32]*** Stop cut motor [10:33:32]*** Cut end [10:33:32]Read from MH i2c: 01 07 00 [10:33:32]MH_I2C_Read... [10:33:32]Read from MH i2c: 01 07 00 34 04 00 00 00 00 00 FF 0F 4D [10:33:32]process_action close_receipt done [10:33:32]requested_data is exist [10:33:32]produce_requested_data [10:33:32]requested_item fm.sn is exist - process it [10:33:32]wFMCommunicate request_size=4 [10:33:32]MH_SAM_APDU [10:33:32]CAPDU: 80 11 00 00 [10:33:32]Write to MH i2c: E2 08 00 35 04 80 11 00 00 00 00 00 00 B3 [10:33:32]Write i2c OK [10:33:32]MH_I2C_Read... [10:33:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:32]Read from MH i2c: E2 [10:33:32]MH_I2C_Read... [10:33:32]Read from MH i2c: E2 17 00 [10:33:32]MH_I2C_Read... [10:33:32]Read from MH i2c: E2 17 00 35 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 05 [10:33:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:33:32]wFMCommunicate OK [10:33:32]requested_item fd.num is exist - process it [10:33:32]SAM_PROTO_GetFieldsCounters [10:33:32]wFMCommunicate request_size=4 [10:33:32]MH_SAM_APDU [10:33:32]CAPDU: 80 13 00 00 [10:33:32]Write to MH i2c: E2 08 00 36 04 80 13 00 00 00 00 00 00 B6 [10:33:32]Write i2c OK [10:33:32]MH_I2C_Read... [10:33:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:33:33]Read from MH i2c: E2 [10:33:33]MH_I2C_Read... [10:33:33]Read from MH i2c: E2 62 00 [10:33:33]MH_I2C_Read... [10:33:33]Read from MH i2c: E2 62 00 36 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D3 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [10:33:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D3 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:33:33]wFMCommunicate OK [10:33:33]SAM_PROTO_GetFieldsCounters done [10:33:33]requested_item shift.num is exist - process it [10:33:33]requested_item shift.opened is exist - process it [10:33:33]req_shift_opened [10:33:33]FM_GetShiftState [10:33:33]SAM_PROTO_GetShiftState [10:33:33]wFMCommunicate request_size=4 [10:33:33]MH_SAM_APDU [10:33:33]CAPDU: 80 13 01 00 [10:33:33]Write to MH i2c: E2 08 00 37 04 80 13 01 00 00 00 00 00 B8 [10:33:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 52 3A 47 00 2A 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D3 40 01 00 F4 03 04 00 39 8D 10 67 B6 04 01 00 00 9C 72 5A AF 29 8D 54 23 [10:33:33]CommunicateWithHost err = 0 [10:33:33]CheckOFDResponse [10:33:33]1017 (14) - 77093643461234 [10:33:33]1041 (16) - 0000000000871843 [10:33:33]1040 (4) - 82131 [10:33:33]1012 (4) - 17.10.2024 04:06 [10:33:33]1206 (1) - 0 [10:33:33]OFD Sender: Remove packet 82131 [10:33:33]ProducePacketName [10:33:33]name=ofd_packets/00082131 [10:33:33]NVStorageDeleteData [10:33:33]Write i2c OK [10:33:33]MH_I2C_Read... [10:33:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:33]Read from MH i2c: E2 [10:33:33]MH_I2C_Read... [10:33:33]Read from MH i2c: E2 0E 00 [10:33:33]MH_I2C_Read... [10:33:33]Read from MH i2c: E2 0E 00 37 04 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 C0 [10:33:33]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:33:33]wFMCommunicate OK [10:33:33]SAM_PROTO_GetShiftState done [10:33:33]FM_GetShiftState done [10:33:33]req_shift_opened done [10:33:33]requested_item shift.open_date is exist - process it [10:33:33]req_shift_open_date [10:33:33]req_shift_open_date done [10:33:33]produce_requested_data done [10:33:33]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82131,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [10:33:33]process_action_free close_receipt [10:33:33]json_value_free [10:33:33]json_value_free done [10:33:33]process_json_proto returns [10:33:33]Send response to host [10:33:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82131,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [10:33:33]free response buf [10:33:33]execute_script done [10:33:33]execute_script returns [10:33:33]free content buf [10:33:33]Sock 9.Close socket [10:33:33]Sock 9.Thread stoped [10:33:33]OFD Sender: No OFD packet to send [10:33:38]OFD Sender: No OFD packet to send [10:33:43]OFD Sender: No OFD packet to send [10:33:48]OFD Sender: No OFD packet to send [10:33:53]OFD Sender: No OFD packet to send [10:33:58]recv_with_timeout no data received [10:33:58]OFD Sender: No OFD packet to send [10:34:03]OFD Sender: No OFD packet to send [10:34:08]OFD Sender: No OFD packet to send [10:34:13]OFD Sender: No OFD packet to send [10:34:18]OFD Sender: No OFD packet to send [10:34:23]OFD Sender: No OFD packet to send [10:34:28]OFD Sender: No OFD packet to send [10:34:33]OFD Sender: No OFD packet to send [10:34:38]OFD Sender: No OFD packet to send [10:34:43]OFD Sender: No OFD packet to send [10:34:48]OFD Sender: No OFD packet to send [10:34:53]OFD Sender: No OFD packet to send [10:34:58]OFD Sender: No OFD packet to send [10:35:03]OFD Sender: No OFD packet to send [10:35:08]OFD Sender: No OFD packet to send [10:35:13]OFD Sender: No OFD packet to send [10:35:18]OFD Sender: No OFD packet to send [10:35:23]OFD Sender: No OFD packet to send [10:35:28]OFD Sender: No OFD packet to send [10:35:33]OFD Sender: No OFD packet to send [10:35:38]OFD Sender: No OFD packet to send [10:35:43]OFD Sender: No OFD packet to send [10:35:48]OFD Sender: No OFD packet to send [10:35:53]OFD Sender: No OFD packet to send [10:35:58]OFD Sender: No OFD packet to send [10:36:03]OFD Sender: No OFD packet to send [10:36:08]OFD Sender: No OFD packet to send [10:36:13]OFD Sender: No OFD packet to send [10:36:18]OFD Sender: No OFD packet to send [10:36:23]OFD Sender: No OFD packet to send [10:36:28]OFD Sender: No OFD packet to send [10:36:33]OFD Sender: No OFD packet to send [10:36:38]OFD Sender: No OFD packet to send [10:36:43]OFD Sender: No OFD packet to send [10:36:48]OFD Sender: No OFD packet to send [10:36:53]OFD Sender: No OFD packet to send [10:36:58]OFD Sender: No OFD packet to send [10:37:03]OFD Sender: No OFD packet to send [10:37:08]OFD Sender: No OFD packet to send [10:37:13]OFD Sender: No OFD packet to send [10:37:18]OFD Sender: No OFD packet to send [10:37:23]OFD Sender: No OFD packet to send [10:37:28]OFD Sender: No OFD packet to send [10:37:33]OFD Sender: No OFD packet to send [10:37:38]OFD Sender: No OFD packet to send [10:37:43]OFD Sender: No OFD packet to send [10:37:48]OFD Sender: No OFD packet to send [10:37:53]OFD Sender: No OFD packet to send [10:37:58]OFD Sender: No OFD packet to send [10:38:03]OFD Sender: No OFD packet to send [10:38:08]OFD Sender: No OFD packet to send [10:38:14]OFD Sender: No OFD packet to send [10:38:19]OFD Sender: No OFD packet to send [10:38:23]recv_with_timeout no data received [10:38:24]OFD Sender: No OFD packet to send [10:38:29]OFD Sender: No OFD packet to send [10:38:34]OFD Sender: No OFD packet to send [10:38:39]OFD Sender: No OFD packet to send [10:38:44]OFD Sender: No OFD packet to send [10:38:49]OFD Sender: No OFD packet to send [10:38:54]OFD Sender: No OFD packet to send [10:38:56]recv_with_timeout no data received [10:38:59]OFD Sender: No OFD packet to send [10:39:04]OFD Sender: No OFD packet to send [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:08]recv_with_timeout no data received [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:24]accept exits with 10 [10:43:24]New connection [10:43:24]New thread 3066658148 created [10:43:24]Thread 3066514788 joined [10:43:24]Waiting for new connection... [10:43:24] Sock 10.Parse request [10:43:24]Sock 10.Check first char [10:43:24]Sock 10.First char is OK [10:43:24]request: POST /json_proto HTTP/1.0 [10:43:24]Method: POST [10:43:24]URL: /json_proto [10:43:24]Method is POST - this is cgi request [10:43:24]url: /json_proto [10:43:24]query_string will be loaded in cgi processing [10:43:24]execute_cgi json_proto POST (null) [10:43:24]execute_cgi path=json_proto method=POST [10:43:24]POST find Content-Length [10:43:24]Host: 172.17.44.67:8080 [10:43:24]Content-Length: 759 [10:43:24]Content-Type: application/json [10:43:24] [10:43:24]POST finish read [10:43:24]Found Content-Length = 759 [10:43:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30129573", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:24]execute_script... [10:43:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30129573", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:24]POST & json_proto [10:43:24]process_json_proto [10:43:24]json parsed OK: [10:43:24]protocol is kg_v1.0 [10:43:24]action value=close_receipt [10:43:24]process_action close_receipt [10:43:24]cmd_close_receipt [10:43:24]MH_GetDate [10:43:24]Write to MH i2c: F0 00 00 38 04 2B [10:43:24]Write i2c OK [10:43:24]MH_I2C_Read... [10:43:24]Read from MH i2c: F0 [10:43:24]MH_I2C_Read... [10:43:24]Read from MH i2c: F0 09 00 [10:43:24]MH_I2C_Read... [10:43:24]Read from MH i2c: F0 09 00 38 04 00 4D EA 10 67 F1 C7 6B 64 69 [10:43:24]GetLastDocTimeStamp 1729161209 [10:43:24]current date 1729161805 [10:43:24]FM_GetShiftState [10:43:24]SAM_PROTO_GetShiftState [10:43:24]wFMCommunicate request_size=4 [10:43:24]MH_SAM_APDU [10:43:24]CAPDU: 80 13 01 00 [10:43:24]Write to MH i2c: E2 08 00 39 04 80 13 01 00 00 00 00 00 BA [10:43:24]Write i2c OK [10:43:24]MH_I2C_Read... [10:43:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:24]Read from MH i2c: E2 [10:43:24]MH_I2C_Read... [10:43:24]Read from MH i2c: E2 0E 00 [10:43:24]MH_I2C_Read... [10:43:24]Read from MH i2c: E2 0E 00 39 04 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 C2 [10:43:24]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:43:24]wFMCommunicate OK [10:43:24]SAM_PROTO_GetShiftState done [10:43:24]FM_GetShiftState done [10:43:24]opened in 1729125927 [10:43:24]opened+sec_in_day 1729212327 [10:43:24]quantity*price = 0 [10:43:24]sum+1 = 1 [10:43:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 58 17.10.2024 10:43 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30129573 ФМ: 0000000000871843 ФД: 82132 ФПД: 133614178846359 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T104325&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82132&fm=133614178846359&tin=02508201610067®Number=0000000000091680&sum=0 [10:43:26]StoreToDocumentArchive [10:43:26]shift 525 fd 82132 [10:43:26]save to /storage/0525/doc_00082132 [10:43:26]save last doc name /storage/0525/doc_00082132 to /storage/kkm_last_doc_name [10:43:26]save OK [10:43:26]Clear old archive folders... [10:43:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:43:26]tlvbuf is 00AE4850 [10:43:26]SAM_PROTO_ClearQueue [10:43:26]wFMCommunicate request_size=4 [10:43:26]MH_SAM_APDU [10:43:26]CAPDU: 80 09 00 00 [10:43:26]Write to MH i2c: E2 08 00 46 04 80 09 00 00 00 00 00 00 BC [10:43:26]Write i2c OK [10:43:26]MH_I2C_Read... [10:43:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:26]Read from MH i2c: E2 [10:43:26]MH_I2C_Read... [10:43:26]Read from MH i2c: E2 03 00 [10:43:26]MH_I2C_Read... [10:43:26]Read from MH i2c: E2 03 00 46 04 00 90 00 BE [10:43:26]RAPDU: 90 00 [10:43:26]wFMCommunicate OK [10:43:26]SAM_PROTO_ClearQueue done [10:43:26]KKMCreateOFDPacket [10:43:26]OFDProtocolAddRootSTLVToBuf [10:43:26]FM_MakeSignedData [10:43:26]FM_MakeSignedData [10:43:26]SAM_PROTO_SignData [10:43:26]wFMCommunicate request_size=4 [10:43:26]MH_SAM_APDU [10:43:26]CAPDU: 80 0D 01 02 [10:43:26]Write to MH i2c: E2 08 00 47 04 80 0D 01 02 00 00 00 00 C4 [10:43:26]Write i2c OK [10:43:26]MH_I2C_Read... [10:43:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:26]Read from MH i2c: E2 [10:43:26]MH_I2C_Read... [10:43:26]Read from MH i2c: E2 03 00 [10:43:26]MH_I2C_Read... [10:43:26]Read from MH i2c: E2 03 00 47 04 00 90 00 BF [10:43:26]RAPDU: 90 00 [10:43:26]wFMCommunicate OK [10:43:26]wFMCommunicate request_size=255 [10:43:26]MH_SAM_APDU [10:43:26]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 4D EA 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D4 40 01 00 35 04 06 00 [10:43:26]Write to MH i2c: E2 02 01 48 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 4D EA 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D4 40 01 00 35 04 06 00 00 00 81 [10:43:26]Write i2c OK [10:43:26]MH_I2C_Read... [10:43:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:26]Read from MH i2c: E2 [10:43:26]MH_I2C_Read... [10:43:26]Read from MH i2c: E2 03 00 [10:43:26]MH_I2C_Read... [10:43:26]Read from MH i2c: E2 03 00 48 04 00 90 00 C0 [10:43:26]RAPDU: 90 00 [10:43:26]wFMCommunicate OK [10:43:26]wFMCommunicate request_size=11 [10:43:26]MH_SAM_APDU [10:43:26]CAPDU: 80 0D 02 02 06 79 85 79 AA C6 97 [10:43:26]Write to MH i2c: E2 0E 00 49 04 80 0D 02 02 06 00 79 85 79 AA C6 97 00 00 51 [10:43:26]Write i2c OK [10:43:26]MH_I2C_Read... [10:43:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:26]Read from MH i2c: E2 [10:43:26]MH_I2C_Read... [10:43:26]Read from MH i2c: E2 03 00 [10:43:26]MH_I2C_Read... [10:43:26]Read from MH i2c: E2 03 00 49 04 00 90 00 C1 [10:43:26]RAPDU: 90 00 [10:43:26]wFMCommunicate OK [10:43:26]wFMCommunicate request_size=4 [10:43:26]MH_SAM_APDU [10:43:26]CAPDU: 80 0D 03 02 [10:43:26]Write to MH i2c: E2 08 00 4A 04 80 0D 03 02 00 00 00 00 C9 [10:43:26]Write i2c OK [10:43:26]MH_I2C_Read... [10:43:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:26]Read from MH i2c: E2 [10:43:26]MH_I2C_Read... [10:43:26]Read from MH i2c: E2 0B 00 [10:43:26]MH_I2C_Read... [10:43:26]Read from MH i2c: E2 0B 00 4A 04 00 B8 27 37 90 AF F1 6E DB 90 00 59 [10:43:26]RAPDU: B8 27 37 90 AF F1 6E DB 90 00 [10:43:26]wFMCommunicate OK [10:43:26]SAM_PROTO_SignData done [10:43:26]FM_MakeSignedData done [10:43:26]CreateOFDProtocolMessage [10:43:26]wFMCommunicate request_size=4 [10:43:26]MH_SAM_APDU [10:43:26]CAPDU: 80 11 00 00 [10:43:26]Write to MH i2c: E2 08 00 4B 04 80 11 00 00 00 00 00 00 C9 [10:43:26]Write i2c OK [10:43:26]MH_I2C_Read... [10:43:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:26]Read from MH i2c: E2 [10:43:26]MH_I2C_Read... [10:43:26]Read from MH i2c: E2 17 00 [10:43:26]MH_I2C_Read... [10:43:26]Read from MH i2c: E2 17 00 4B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 1B [10:43:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:43:26]wFMCommunicate OK [10:43:26]CreateOFDProtocolMessage done [10:43:26]OFDSenderStorePacket 82132 [10:43:26]StoreOFDPacket docnum=82132 [10:43:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 AB 6D 08 01 5D 87 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 4D EA 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D4 40 01 00 35 04 06 00 79 85 79 AA C6 97 B8 27 37 90 AF F1 6E DB [10:43:26]CheckFolder [10:43:26]dirname=/storage/ofd_packets [10:43:26]CheckFolder done [10:43:26]ProducePacketName [10:43:26]name=ofd_packets/00082132 [10:43:26]NVStorageSaveData ofd_packets/00082132 [10:43:26]File name is /storage/ofd_packets/00082132 [10:43:26]Write 302 bytes [10:43:26]NVStorageSaveData done [10:43:26]OFDSenderStorePacket done [10:43:26]KKMCreateOFDPacket done [10:43:26]NVStorageSaveData kkm_last_timestamp [10:43:26]File name is /storage/kkm_last_timestamp [10:43:26]Write 4 bytes [10:43:26]NVStorageSaveData done [10:43:26]OFD Sender: Processing packet 82132 [packets to send 254, broken 253] [10:43:26]ProducePacketName [10:43:26]name=ofd_packets/00082132 [10:43:26]OFD Sender: To server: pG, [10:43:26]CommunicateWithHost lk.salyk.kg:30040 [10:43:26]ConnectInit lk.salyk.kg [10:43:26]ExternCall_PrintAddStr [10:43:26]wPrintStart [10:43:26]Write to MH i2c: 01 00 00 4C 04 50 [10:43:26]Write i2c OK [10:43:26]MH_I2C_Read... [10:43:26]Read from MH i2c: 01 [10:43:26]MH_I2C_Read... [10:43:26]Read from MH i2c: 01 07 00 [10:43:26]MH_I2C_Read... [10:43:26]Read from MH i2c: 01 07 00 4C 04 00 00 00 00 00 FF 0F 65 [10:43:26]RasterBufferAndPrint [10:43:26]line Счет N : (1)918638 [10:43:26]line ИНН: 02508201610067 [10:43:26]line Контрольно-Кассовый Чек [10:43:26]line ПРОДАЖА [10:43:26]line ТРК (МРК, ГНК) : 31 [10:43:26]line Товар: 2710194210 [10:43:26]line ДТ(л)-К-5 [10:43:26]line 20.000 * 0.00 [10:43:26]line = 0.00 [10:43:26]line НДС 12% НСП 1% [10:43:26]line > о реализуемом товаре [10:43:26]line ИТОГО: 0.00 [10:43:26]line НСП 1% : 0.00 [10:43:26]line НДС 12% : 0.00 [10:43:26]line Наличными: 0.00 [10:43:26]line Безнал.: 0.00 [10:43:26]line Место: АЗС № 114 "Партнер Нефть" [10:43:26]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:43:26]line СНО: Общий режим [10:43:26]line Чек 58 17.10.2024 10:43 [10:43:26]line Смена: 525 ФФД: 1.0 [10:43:26]line ЗНМ: 0300000086 [10:43:26]line РНМ: 0000000000091680 [10:43:26]line Версия ККМ: 001 [10:43:26]line Талоны: ТК ГПНА Online [10:43:26]line 30129573 [10:43:26]line ФМ: 0000000000871843 [10:43:26]line ФД: 82132 [10:43:26]line ФПД: 133614178846359 [10:43:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T104325&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82132&fm=133614178846359&tin=02508201610067®Number=0000000000091680&sum=0 [10:43:26]written 0, free lines is 4095 [10:43:27]Write to MH i2c: 01 00 00 76 04 7A [10:43:27]Write i2c OK [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: 01 [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: 01 07 00 [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: 01 07 00 76 04 00 00 00 00 00 DA 0C 67 [10:43:27]RasterBufferAndPrint [10:43:27]line [10:43:27]line [10:43:27]line [10:43:27]line [10:43:27]line [10:43:27]written 0, free lines is 3296 [10:43:27]MH_Cut [10:43:27]Write to MH i2c: D1 01 00 7D 04 01 53 [10:43:27]Write i2c OK [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: D1 [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: D1 01 00 [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: D1 01 00 7D 04 00 52 [10:43:27]Write to MH i2c: 01 00 00 7E 04 82 [10:43:27]Write i2c OK [10:43:27]MH_I2C_Read... [10:43:28]*** Cut start [10:43:28]*** Partial cut [10:43:28]*** CUTSNS_PIN = 1 [10:43:28]*** CUTSNS_PIN = 0 [10:43:28]Connected sock=11 [10:43:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 AB 6D 08 01 5D 87 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 4D EA 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D4 40 01 00 35 04 06 00 79 85 79 AA C6 97 B8 27 37 90 AF F1 6E DB [10:43:28]*** Brake cut motor [10:43:28]Read from MH i2c: 01 [10:43:28]MH_I2C_Read... [10:43:28]*** Stop cut motor [10:43:28]*** Cut end [10:43:28]Read from MH i2c: 01 07 00 [10:43:28]MH_I2C_Read... [10:43:28]Read from MH i2c: 01 07 00 7E 04 00 00 00 00 00 FF 0F 97 [10:43:28]process_action close_receipt done [10:43:28]requested_data is exist [10:43:28]produce_requested_data [10:43:28]requested_item fm.sn is exist - process it [10:43:28]wFMCommunicate request_size=4 [10:43:28]MH_SAM_APDU [10:43:28]CAPDU: 80 11 00 00 [10:43:28]Write to MH i2c: E2 08 00 7F 04 80 11 00 00 00 00 00 00 FD [10:43:28]Write i2c OK [10:43:28]MH_I2C_Read... [10:43:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:28]Read from MH i2c: E2 [10:43:28]MH_I2C_Read... [10:43:28]Read from MH i2c: E2 17 00 [10:43:28]MH_I2C_Read... [10:43:28]Read from MH i2c: E2 17 00 7F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 4F [10:43:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:43:28]wFMCommunicate OK [10:43:28]requested_item fd.num is exist - process it [10:43:28]SAM_PROTO_GetFieldsCounters [10:43:28]wFMCommunicate request_size=4 [10:43:28]MH_SAM_APDU [10:43:28]CAPDU: 80 13 00 00 [10:43:28]Write to MH i2c: E2 08 00 80 04 80 13 00 00 00 00 00 00 00 [10:43:28]Write i2c OK [10:43:28]MH_I2C_Read... [10:43:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:28]Read from MH i2c: E2 [10:43:28]MH_I2C_Read... [10:43:28]Read from MH i2c: E2 62 00 [10:43:28]MH_I2C_Read... [10:43:28]Read from MH i2c: E2 62 00 80 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D4 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [10:43:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D4 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:43:28]wFMCommunicate OK [10:43:28]SAM_PROTO_GetFieldsCounters done [10:43:28]requested_item shift.num is exist - process it [10:43:28]requested_item shift.opened is exist - process it [10:43:28]req_shift_opened [10:43:28]FM_GetShiftState [10:43:28]SAM_PROTO_GetShiftState [10:43:28]wFMCommunicate request_size=4 [10:43:28]MH_SAM_APDU [10:43:28]CAPDU: 80 13 01 00 [10:43:28]Write to MH i2c: E2 08 00 81 04 80 13 01 00 00 00 00 00 02 [10:43:28]Write i2c OK [10:43:28]MH_I2C_Read... [10:43:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:29]Read from MH i2c: E2 [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: E2 0E 00 [10:43:29]MH_I2C_Read... [10:43:29]Read from MH i2c: E2 0E 00 81 04 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 0A [10:43:29]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:43:29]wFMCommunicate OK [10:43:29]SAM_PROTO_GetShiftState done [10:43:29]FM_GetShiftState done [10:43:29]req_shift_opened done [10:43:29]requested_item shift.open_date is exist - process it [10:43:29]req_shift_open_date [10:43:29]req_shift_open_date done [10:43:29]produce_requested_data done [10:43:29]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82132,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [10:43:29]process_action_free close_receipt [10:43:29]json_value_free [10:43:29]json_value_free done [10:43:29]process_json_proto returns [10:43:29]Send response to host [10:43:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82132,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [10:43:29]free response buf [10:43:29]execute_script done [10:43:29]execute_script returns [10:43:29]free content buf [10:43:29]Sock 10.Close socket [10:43:29]Sock 10.Thread stoped [10:43:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 49 7D 47 00 0A 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D4 40 01 00 F4 03 04 00 8D 8F 10 67 B6 04 01 00 00 84 51 60 F7 74 96 F8 76 [10:43:29]CommunicateWithHost err = 0 [10:43:29]CheckOFDResponse [10:43:29]1017 (14) - 77093643461234 [10:43:29]1041 (16) - 0000000000871843 [10:43:29]1040 (4) - 82132 [10:43:29]1012 (4) - 17.10.2024 04:16 [10:43:29]1206 (1) - 0 [10:43:29]OFD Sender: Remove packet 82132 [10:43:29]ProducePacketName [10:43:29]name=ofd_packets/00082132 [10:43:29]NVStorageDeleteData [10:43:29]OFD Sender: No OFD packet to send [10:43:34]recv_with_timeout no data received [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:55]recv_with_timeout no data received [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:50]accept exits with 8 [10:45:50]New connection [10:45:50]New thread 3066514788 created [10:45:50]Thread 3066658148 joined [10:45:50]Waiting for new connection... [10:45:50] Sock 8.Parse request [10:45:50]Sock 8.Check first char [10:45:50]Sock 8.First char is OK [10:45:50]request: POST /json_proto HTTP/1.0 [10:45:50]Method: POST [10:45:50]URL: /json_proto [10:45:50]Method is POST - this is cgi request [10:45:50]url: /json_proto [10:45:50]query_string will be loaded in cgi processing [10:45:50]execute_cgi json_proto POST (null) [10:45:50]execute_cgi path=json_proto method=POST [10:45:50]POST find Content-Length [10:45:50]Host: 172.17.44.67:8080 [10:45:50]Content-Length: 754 [10:45:50]Content-Type: application/json [10:45:50] [10:45:50]POST finish read [10:45:50]Found Content-Length = 754 [10:45:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30096616", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:50]execute_script... [10:45:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30096616", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:50]POST & json_proto [10:45:50]process_json_proto [10:45:50]json parsed OK: [10:45:50]protocol is kg_v1.0 [10:45:50]action value=close_receipt [10:45:50]process_action close_receipt [10:45:50]cmd_close_receipt [10:45:50]MH_GetDate [10:45:50]Write to MH i2c: F0 00 00 82 04 75 [10:45:50]Write i2c OK [10:45:50]MH_I2C_Read... [10:45:50]Read from MH i2c: F0 [10:45:50]MH_I2C_Read... [10:45:50]Read from MH i2c: F0 09 00 [10:45:50]MH_I2C_Read... [10:45:50]Read from MH i2c: F0 09 00 82 04 00 DF EA 10 67 F1 C7 6B 64 45 [10:45:50]GetLastDocTimeStamp 1729161805 [10:45:50]current date 1729161951 [10:45:50]FM_GetShiftState [10:45:50]SAM_PROTO_GetShiftState [10:45:50]wFMCommunicate request_size=4 [10:45:50]MH_SAM_APDU [10:45:50]CAPDU: 80 13 01 00 [10:45:50]Write to MH i2c: E2 08 00 83 04 80 13 01 00 00 00 00 00 04 [10:45:50]Write i2c OK [10:45:50]MH_I2C_Read... [10:45:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:50]Read from MH i2c: E2 [10:45:50]MH_I2C_Read... [10:45:50]Read from MH i2c: E2 0E 00 [10:45:50]MH_I2C_Read... [10:45:50]Read from MH i2c: E2 0E 00 83 04 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 0C [10:45:50]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:45:50]wFMCommunicate OK [10:45:50]SAM_PROTO_GetShiftState done [10:45:50]FM_GetShiftState done [10:45:50]opened in 1729125927 [10:45:50]opened+sec_in_day 1729212327 [10:45:50]quantity*price = 0 [10:45:50]sum+1 = 1 [10:45:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 59 17.10.2024 10:45 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30096616 ФМ: 0000000000871843 ФД: 82133 ФПД: 12542077469549 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T104551&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82133&fm=12542077469549&tin=02508201610067®Number=0000000000091680&sum=0 [10:45:51]StoreToDocumentArchive [10:45:51]shift 525 fd 82133 [10:45:51]save to /storage/0525/doc_00082133 [10:45:51]save last doc name /storage/0525/doc_00082133 to /storage/kkm_last_doc_name [10:45:51]save OK [10:45:51]Clear old archive folders... [10:45:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:45:51]tlvbuf is 00AE59B0 [10:45:51]SAM_PROTO_ClearQueue [10:45:51]wFMCommunicate request_size=4 [10:45:51]MH_SAM_APDU [10:45:51]CAPDU: 80 09 00 00 [10:45:51]Write to MH i2c: E2 08 00 90 04 80 09 00 00 00 00 00 00 06 [10:45:51]Write i2c OK [10:45:51]MH_I2C_Read... [10:45:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:51]Read from MH i2c: E2 [10:45:51]MH_I2C_Read... [10:45:51]Read from MH i2c: E2 03 00 [10:45:51]MH_I2C_Read... [10:45:51]Read from MH i2c: E2 03 00 90 04 00 90 00 08 [10:45:51]RAPDU: 90 00 [10:45:51]wFMCommunicate OK [10:45:51]SAM_PROTO_ClearQueue done [10:45:51]KKMCreateOFDPacket [10:45:51]OFDProtocolAddRootSTLVToBuf [10:45:51]FM_MakeSignedData [10:45:51]FM_MakeSignedData [10:45:51]SAM_PROTO_SignData [10:45:51]wFMCommunicate request_size=4 [10:45:51]MH_SAM_APDU [10:45:52]CAPDU: 80 0D 01 02 [10:45:52]Write to MH i2c: E2 08 00 91 04 80 0D 01 02 00 00 00 00 0E [10:45:52]Write i2c OK [10:45:52]MH_I2C_Read... [10:45:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:52]Read from MH i2c: E2 [10:45:52]MH_I2C_Read... [10:45:52]Read from MH i2c: E2 03 00 [10:45:52]MH_I2C_Read... [10:45:52]Read from MH i2c: E2 03 00 91 04 00 90 00 09 [10:45:52]RAPDU: 90 00 [10:45:52]wFMCommunicate OK [10:45:52]wFMCommunicate request_size=255 [10:45:52]MH_SAM_APDU [10:45:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 DF EA 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D5 40 01 00 35 04 06 00 0B [10:45:52]Write to MH i2c: E2 02 01 92 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 DF EA 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D5 40 01 00 35 04 06 00 0B 00 00 2E [10:45:52]Write i2c OK [10:45:52]MH_I2C_Read... [10:45:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:52]Read from MH i2c: E2 [10:45:52]MH_I2C_Read... [10:45:52]Read from MH i2c: E2 03 00 [10:45:52]MH_I2C_Read... [10:45:52]Read from MH i2c: E2 03 00 92 04 00 90 00 0A [10:45:52]RAPDU: 90 00 [10:45:52]wFMCommunicate OK [10:45:52]wFMCommunicate request_size=10 [10:45:52]MH_SAM_APDU [10:45:52]CAPDU: 80 0D 02 02 05 68 2E 12 83 6D [10:45:52]Write to MH i2c: E2 0D 00 93 04 80 0D 02 02 05 00 68 2E 12 83 6D 00 00 B3 [10:45:52]Write i2c OK [10:45:52]MH_I2C_Read... [10:45:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:52]Read from MH i2c: E2 [10:45:52]MH_I2C_Read... [10:45:52]Read from MH i2c: E2 03 00 [10:45:52]MH_I2C_Read... [10:45:52]Read from MH i2c: E2 03 00 93 04 00 90 00 0B [10:45:52]RAPDU: 90 00 [10:45:52]wFMCommunicate OK [10:45:52]wFMCommunicate request_size=4 [10:45:52]MH_SAM_APDU [10:45:52]CAPDU: 80 0D 03 02 [10:45:52]Write to MH i2c: E2 08 00 94 04 80 0D 03 02 00 00 00 00 13 [10:45:52]Write i2c OK [10:45:52]MH_I2C_Read... [10:45:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:52]Read from MH i2c: E2 [10:45:52]MH_I2C_Read... [10:45:52]Read from MH i2c: E2 0B 00 [10:45:52]MH_I2C_Read... [10:45:52]Read from MH i2c: E2 0B 00 94 04 00 A9 35 41 F6 9C F4 F2 E6 90 00 91 [10:45:52]RAPDU: A9 35 41 F6 9C F4 F2 E6 90 00 [10:45:52]wFMCommunicate OK [10:45:52]SAM_PROTO_SignData done [10:45:52]FM_MakeSignedData done [10:45:52]CreateOFDProtocolMessage [10:45:52]wFMCommunicate request_size=4 [10:45:52]MH_SAM_APDU [10:45:52]CAPDU: 80 11 00 00 [10:45:52]Write to MH i2c: E2 08 00 95 04 80 11 00 00 00 00 00 00 13 [10:45:52]Write i2c OK [10:45:52]MH_I2C_Read... [10:45:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:52]Read from MH i2c: E2 [10:45:52]MH_I2C_Read... [10:45:52]Read from MH i2c: E2 17 00 [10:45:52]MH_I2C_Read... [10:45:52]Read from MH i2c: E2 17 00 95 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 65 [10:45:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:45:52]wFMCommunicate OK [10:45:52]CreateOFDProtocolMessage done [10:45:52]OFDSenderStorePacket 82133 [10:45:52]StoreOFDPacket docnum=82133 [10:45:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 A1 AF 07 01 0C 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 DF EA 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D5 40 01 00 35 04 06 00 0B 68 2E 12 83 6D A9 35 41 F6 9C F4 F2 E6 [10:45:52]CheckFolder [10:45:52]dirname=/storage/ofd_packets [10:45:52]CheckFolder done [10:45:52]ProducePacketName [10:45:52]name=ofd_packets/00082133 [10:45:52]NVStorageSaveData ofd_packets/00082133 [10:45:52]File name is /storage/ofd_packets/00082133 [10:45:52]Write 301 bytes [10:45:52]NVStorageSaveData done [10:45:52]OFDSenderStorePacket done [10:45:52]KKMCreateOFDPacket done [10:45:52]NVStorageSaveData kkm_last_timestamp [10:45:52]File name is /storage/kkm_last_timestamp [10:45:52]Write 4 bytes [10:45:52]NVStorageSaveData done [10:45:52]ExternCall_PrintAddStr [10:45:52]wPrintStart [10:45:52]Write to MH i2c: 01 00 00 96 04 9A [10:45:52]Write i2c OK [10:45:52]MH_I2C_Read... [10:45:52]Read from MH i2c: 01 [10:45:52]MH_I2C_Read... [10:45:52]Read from MH i2c: 01 07 00 [10:45:52]MH_I2C_Read... [10:45:52]Read from MH i2c: 01 07 00 96 04 00 00 00 00 00 FF 0F AF [10:45:52]RasterBufferAndPrint [10:45:52]line Счет N : (1)918639 [10:45:52]line ИНН: 02508201610067 [10:45:52]line Контрольно-Кассовый Чек [10:45:52]line ПРОДАЖА [10:45:52]line ТРК (МРК, ГНК) : 22 [10:45:52]line Товар: 2710124130 [10:45:52]line Аи-92-К-4 [10:45:52]line 20.000 * 0.00 [10:45:52]line = 0.00 [10:45:52]line НДС 12% НСП 1% [10:45:52]line > о реализуемом товаре [10:45:52]line ИТОГО: 0.00 [10:45:52]line НСП 1% : 0.00 [10:45:52]line НДС 12% : 0.00 [10:45:52]line Наличными: 0.00 [10:45:52]line Безнал.: 0.00 [10:45:52]line Место: АЗС № 114 "Партнер Нефть" [10:45:52]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:45:52]line СНО: Общий режим [10:45:52]line Чек 59 17.10.2024 10:45 [10:45:52]line Смена: 525 ФФД: 1.0 [10:45:52]line ЗНМ: 0300000086 [10:45:52]line РНМ: 0000000000091680 [10:45:52]line Версия ККМ: 001 [10:45:52]line Талоны: ТК ГПНА Online [10:45:52]line 30096616 [10:45:52]line ФМ: 0000000000871843 [10:45:52]line ФД: 82133 [10:45:52]line ФПД: 12542077469549 [10:45:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T104551&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82133&fm=12542077469549&tin=02508201610067®Number=0000000000091680&sum=0 [10:45:52]written 0, free lines is 4095 [10:45:52]OFD Sender: Processing packet 82133 [packets to send 254, broken 253] [10:45:52]ProducePacketName [10:45:52]name=ofd_packets/00082133 [10:45:52]OFD Sender: To server: pG, [10:45:52]CommunicateWithHost lk.salyk.kg:30040 [10:45:52]ConnectInit lk.salyk.kg [10:45:53]Write to MH i2c: 01 00 00 C0 04 C4 [10:45:53]Write i2c OK [10:45:53]MH_I2C_Read... [10:45:53]Read from MH i2c: 01 [10:45:53]MH_I2C_Read... [10:45:53]Read from MH i2c: 01 07 00 [10:45:53]MH_I2C_Read... [10:45:53]Read from MH i2c: 01 07 00 C0 04 00 00 00 00 00 DD 0C B4 [10:45:53]RasterBufferAndPrint [10:45:53]line [10:45:53]line [10:45:53]line [10:45:53]line [10:45:53]line [10:45:53]written 0, free lines is 3299 [10:45:53]MH_Cut [10:45:53]Write to MH i2c: D1 01 00 C7 04 01 9D [10:45:53]Write i2c OK [10:45:53]MH_I2C_Read... [10:45:53]Read from MH i2c: D1 [10:45:53]MH_I2C_Read... [10:45:53]Read from MH i2c: D1 01 00 [10:45:53]MH_I2C_Read... [10:45:53]Read from MH i2c: D1 01 00 C7 04 00 9C [10:45:53]Write to MH i2c: 01 00 00 C8 04 CC [10:45:53]Write i2c OK [10:45:53]MH_I2C_Read... [10:45:53]Connected sock=9 [10:45:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 A1 AF 07 01 0C 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 DF EA 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D5 40 01 00 35 04 06 00 0B 68 2E 12 83 6D A9 35 41 F6 9C F4 F2 E6 [10:45:54]*** Cut start [10:45:54]*** Partial cut [10:45:54]*** CUTSNS_PIN = 1 [10:45:54]*** CUTSNS_PIN = 0 [10:45:54]*** Brake cut motor [10:45:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 B3 B1 47 00 5D 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D5 40 01 00 F4 03 04 00 1E 90 10 67 B6 04 01 00 00 0C D5 FE C9 4D C7 3B 2D [10:45:54]CommunicateWithHost err = 0 [10:45:54]CheckOFDResponse [10:45:54]1017 (14) - 77093643461234 [10:45:54]1041 (16) - 0000000000871843 [10:45:54]1040 (4) - 82133 [10:45:54]1012 (4) - 17.10.2024 04:18 [10:45:54]1206 (1) - 0 [10:45:54]OFD Sender: Remove packet 82133 [10:45:54]ProducePacketName [10:45:54]name=ofd_packets/00082133 [10:45:54]NVStorageDeleteData [10:45:54]Read from MH i2c: 01 [10:45:54]MH_I2C_Read... [10:45:54]*** Stop cut motor [10:45:54]*** Cut end [10:45:54]Read from MH i2c: 01 07 00 [10:45:54]MH_I2C_Read... [10:45:54]Read from MH i2c: 01 07 00 C8 04 00 00 00 00 00 FF 0F E1 [10:45:54]process_action close_receipt done [10:45:54]requested_data is exist [10:45:54]produce_requested_data [10:45:54]requested_item fm.sn is exist - process it [10:45:54]wFMCommunicate request_size=4 [10:45:54]MH_SAM_APDU [10:45:54]CAPDU: 80 11 00 00 [10:45:54]Write to MH i2c: E2 08 00 C9 04 80 11 00 00 00 00 00 00 47 [10:45:54]Write i2c OK [10:45:54]MH_I2C_Read... [10:45:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:54]Read from MH i2c: E2 [10:45:54]MH_I2C_Read... [10:45:54]Read from MH i2c: E2 17 00 [10:45:54]MH_I2C_Read... [10:45:54]Read from MH i2c: E2 17 00 C9 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 99 [10:45:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:45:54]wFMCommunicate OK [10:45:54]requested_item fd.num is exist - process it [10:45:54]SAM_PROTO_GetFieldsCounters [10:45:54]wFMCommunicate request_size=4 [10:45:54]MH_SAM_APDU [10:45:54]CAPDU: 80 13 00 00 [10:45:54]Write to MH i2c: E2 08 00 CA 04 80 13 00 00 00 00 00 00 4A [10:45:54]Write i2c OK [10:45:54]MH_I2C_Read... [10:45:54]OFD Sender: No OFD packet to send [10:45:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:54]Read from MH i2c: E2 [10:45:54]MH_I2C_Read... [10:45:54]Read from MH i2c: E2 62 00 [10:45:54]MH_I2C_Read... [10:45:54]Read from MH i2c: E2 62 00 CA 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D5 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [10:45:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D5 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:45:54]wFMCommunicate OK [10:45:54]SAM_PROTO_GetFieldsCounters done [10:45:54]requested_item shift.num is exist - process it [10:45:54]requested_item shift.opened is exist - process it [10:45:54]req_shift_opened [10:45:54]FM_GetShiftState [10:45:54]SAM_PROTO_GetShiftState [10:45:54]wFMCommunicate request_size=4 [10:45:54]MH_SAM_APDU [10:45:54]CAPDU: 80 13 01 00 [10:45:54]Write to MH i2c: E2 08 00 CB 04 80 13 01 00 00 00 00 00 4C [10:45:54]Write i2c OK [10:45:54]MH_I2C_Read... [10:45:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:54]Read from MH i2c: E2 [10:45:54]MH_I2C_Read... [10:45:54]Read from MH i2c: E2 0E 00 [10:45:54]MH_I2C_Read... [10:45:54]Read from MH i2c: E2 0E 00 CB 04 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 54 [10:45:54]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:45:54]wFMCommunicate OK [10:45:54]SAM_PROTO_GetShiftState done [10:45:54]FM_GetShiftState done [10:45:54]req_shift_opened done [10:45:54]requested_item shift.open_date is exist - process it [10:45:54]req_shift_open_date [10:45:54]req_shift_open_date done [10:45:54]produce_requested_data done [10:45:54]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82133,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [10:45:54]process_action_free close_receipt [10:45:54]json_value_free [10:45:54]json_value_free done [10:45:54]process_json_proto returns [10:45:54]Send response to host [10:45:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82133,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [10:45:54]free response buf [10:45:54]execute_script done [10:45:54]execute_script returns [10:45:54]free content buf [10:45:54]Sock 8.Close socket [10:45:54]Sock 8.Thread stoped [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:45]OFD Sender: No OFD packet to send [10:47:50]OFD Sender: No OFD packet to send [10:47:55]OFD Sender: No OFD packet to send [10:48:00]OFD Sender: No OFD packet to send [10:48:05]OFD Sender: No OFD packet to send [10:48:10]OFD Sender: No OFD packet to send [10:48:15]OFD Sender: No OFD packet to send [10:48:20]OFD Sender: No OFD packet to send [10:48:25]OFD Sender: No OFD packet to send [10:48:30]OFD Sender: No OFD packet to send [10:48:35]OFD Sender: No OFD packet to send [10:48:40]OFD Sender: No OFD packet to send [10:48:45]OFD Sender: No OFD packet to send [10:48:50]OFD Sender: No OFD packet to send [10:48:55]OFD Sender: No OFD packet to send [10:49:00]OFD Sender: No OFD packet to send [10:49:05]OFD Sender: No OFD packet to send [10:49:10]OFD Sender: No OFD packet to send [10:49:15]OFD Sender: No OFD packet to send [10:49:20]OFD Sender: No OFD packet to send [10:49:25]OFD Sender: No OFD packet to send [10:49:28]accept exits with 10 [10:49:28]New connection [10:49:28]New thread 3066658148 created [10:49:28]Thread 3066514788 joined [10:49:28]Waiting for new connection... [10:49:28] Sock 10.Parse request [10:49:28]Sock 10.Check first char [10:49:28]Sock 10.First char is OK [10:49:28]request: POST /json_proto HTTP/1.0 [10:49:28]Method: POST [10:49:28]URL: /json_proto [10:49:28]Method is POST - this is cgi request [10:49:28]url: /json_proto [10:49:28]query_string will be loaded in cgi processing [10:49:28]execute_cgi json_proto POST (null) [10:49:28]execute_cgi path=json_proto method=POST [10:49:28]POST find Content-Length [10:49:28]Host: 172.17.44.67:8080 [10:49:28]Content-Length: 800 [10:49:28]Content-Type: application/json [10:49:28] [10:49:28]POST finish read [10:49:28]Found Content-Length = 800 [10:49:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3948695", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:28]execute_script... [10:49:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3948695", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:28]POST & json_proto [10:49:28]process_json_proto [10:49:28]json parsed OK: [10:49:28]protocol is kg_v1.0 [10:49:28]action value=close_receipt [10:49:28]process_action close_receipt [10:49:28]cmd_close_receipt [10:49:28]MH_GetDate [10:49:28]Write to MH i2c: F0 00 00 CC 04 BF [10:49:28]Write i2c OK [10:49:28]MH_I2C_Read... [10:49:28]Read from MH i2c: F0 [10:49:28]MH_I2C_Read... [10:49:28]Read from MH i2c: F0 09 00 [10:49:28]MH_I2C_Read... [10:49:28]Read from MH i2c: F0 09 00 CC 04 00 B9 EB 10 67 F1 C7 6B 64 6A [10:49:28]GetLastDocTimeStamp 1729161951 [10:49:28]current date 1729162169 [10:49:28]FM_GetShiftState [10:49:28]SAM_PROTO_GetShiftState [10:49:28]wFMCommunicate request_size=4 [10:49:28]MH_SAM_APDU [10:49:28]CAPDU: 80 13 01 00 [10:49:28]Write to MH i2c: E2 08 00 CD 04 80 13 01 00 00 00 00 00 4E [10:49:28]Write i2c OK [10:49:28]MH_I2C_Read... [10:49:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:28]Read from MH i2c: E2 [10:49:28]MH_I2C_Read... [10:49:28]Read from MH i2c: E2 0E 00 [10:49:28]MH_I2C_Read... [10:49:28]Read from MH i2c: E2 0E 00 CD 04 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 56 [10:49:28]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:49:28]wFMCommunicate OK [10:49:28]SAM_PROTO_GetShiftState done [10:49:28]FM_GetShiftState done [10:49:28]opened in 1729125927 [10:49:28]opened+sec_in_day 1729212327 [10:49:28]quantity*price = 0 [10:49:28]sum+1 = 1 [10:49:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 60 17.10.2024 10:49 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 3948695 ФМ: 0000000000871843 ФД: 82134 ФПД: 49065607893814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T104929&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82134&fm=49065607893814&tin=02508201610067®Number=0000000000091680&sum=0 [10:49:29]StoreToDocumentArchive [10:49:29]shift 525 fd 82134 [10:49:29]save to /storage/0525/doc_00082134 [10:49:29]save last doc name /storage/0525/doc_00082134 to /storage/kkm_last_doc_name [10:49:29]save OK [10:49:29]Clear old archive folders... [10:49:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:49:29]tlvbuf is 00AD66E0 [10:49:29]SAM_PROTO_ClearQueue [10:49:29]wFMCommunicate request_size=4 [10:49:29]MH_SAM_APDU [10:49:29]CAPDU: 80 09 00 00 [10:49:29]Write to MH i2c: E2 08 00 DA 04 80 09 00 00 00 00 00 00 50 [10:49:29]Write i2c OK [10:49:29]MH_I2C_Read... [10:49:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:29]Read from MH i2c: E2 [10:49:29]MH_I2C_Read... [10:49:29]Read from MH i2c: E2 03 00 [10:49:29]MH_I2C_Read... [10:49:29]Read from MH i2c: E2 03 00 DA 04 00 90 00 52 [10:49:29]RAPDU: 90 00 [10:49:29]wFMCommunicate OK [10:49:29]SAM_PROTO_ClearQueue done [10:49:29]KKMCreateOFDPacket [10:49:29]OFDProtocolAddRootSTLVToBuf [10:49:29]FM_MakeSignedData [10:49:29]FM_MakeSignedData [10:49:29]SAM_PROTO_SignData [10:49:29]wFMCommunicate request_size=4 [10:49:29]MH_SAM_APDU [10:49:29]CAPDU: 80 0D 01 02 [10:49:29]Write to MH i2c: E2 08 00 DB 04 80 0D 01 02 00 00 00 00 58 [10:49:29]Write i2c OK [10:49:29]MH_I2C_Read... [10:49:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:29]Read from MH i2c: E2 [10:49:29]MH_I2C_Read... [10:49:29]Read from MH i2c: E2 03 00 [10:49:29]MH_I2C_Read... [10:49:29]Read from MH i2c: E2 03 00 DB 04 00 90 00 53 [10:49:29]RAPDU: 90 00 [10:49:29]wFMCommunicate OK [10:49:29]wFMCommunicate request_size=255 [10:49:29]MH_SAM_APDU [10:49:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 B9 EB 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D6 40 01 00 35 04 06 00 2C [10:49:29]Write to MH i2c: E2 02 01 DC 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 B9 EB 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D6 40 01 00 35 04 06 00 2C 00 00 E4 [10:49:29]Write i2c OK [10:49:29]MH_I2C_Read... [10:49:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:29]Read from MH i2c: E2 [10:49:29]MH_I2C_Read... [10:49:29]Read from MH i2c: E2 03 00 [10:49:29]MH_I2C_Read... [10:49:29]Read from MH i2c: E2 03 00 DC 04 00 90 00 54 [10:49:29]RAPDU: 90 00 [10:49:29]wFMCommunicate OK [10:49:29]wFMCommunicate request_size=10 [10:49:29]MH_SAM_APDU [10:49:29]CAPDU: 80 0D 02 02 05 9F FA 21 13 36 [10:49:29]Write to MH i2c: E2 0D 00 DD 04 80 0D 02 02 05 00 9F FA 21 13 36 00 00 68 [10:49:29]Write i2c OK [10:49:29]MH_I2C_Read... [10:49:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:29]Read from MH i2c: E2 [10:49:29]MH_I2C_Read... [10:49:29]Read from MH i2c: E2 03 00 [10:49:29]MH_I2C_Read... [10:49:29]Read from MH i2c: E2 03 00 DD 04 00 90 00 55 [10:49:29]RAPDU: 90 00 [10:49:29]wFMCommunicate OK [10:49:29]wFMCommunicate request_size=4 [10:49:29]MH_SAM_APDU [10:49:29]CAPDU: 80 0D 03 02 [10:49:29]Write to MH i2c: E2 08 00 DE 04 80 0D 03 02 00 00 00 00 5D [10:49:29]Write i2c OK [10:49:29]MH_I2C_Read... [10:49:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:29]Read from MH i2c: E2 [10:49:29]MH_I2C_Read... [10:49:29]Read from MH i2c: E2 0B 00 [10:49:29]MH_I2C_Read... [10:49:29]Read from MH i2c: E2 0B 00 DE 04 00 E9 BB 4E FC B8 0F AC F9 90 00 B8 [10:49:29]RAPDU: E9 BB 4E FC B8 0F AC F9 90 00 [10:49:29]wFMCommunicate OK [10:49:29]SAM_PROTO_SignData done [10:49:29]FM_MakeSignedData done [10:49:29]CreateOFDProtocolMessage [10:49:29]wFMCommunicate request_size=4 [10:49:29]MH_SAM_APDU [10:49:29]CAPDU: 80 11 00 00 [10:49:29]Write to MH i2c: E2 08 00 DF 04 80 11 00 00 00 00 00 00 5D [10:49:29]Write i2c OK [10:49:29]MH_I2C_Read... [10:49:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:30]Read from MH i2c: E2 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: E2 17 00 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: E2 17 00 DF 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 AF [10:49:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:49:30]wFMCommunicate OK [10:49:30]CreateOFDProtocolMessage done [10:49:30]OFDSenderStorePacket 82134 [10:49:30]StoreOFDPacket docnum=82134 [10:49:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 11 9D 07 01 A9 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 B9 EB 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D6 40 01 00 35 04 06 00 2C 9F FA 21 13 36 E9 BB 4E FC B8 0F AC F9 [10:49:30]CheckFolder [10:49:30]dirname=/storage/ofd_packets [10:49:30]CheckFolder done [10:49:30]ProducePacketName [10:49:30]name=ofd_packets/00082134 [10:49:30]NVStorageSaveData ofd_packets/00082134 [10:49:30]File name is /storage/ofd_packets/00082134 [10:49:30]Write 301 bytes [10:49:30]NVStorageSaveData done [10:49:30]OFDSenderStorePacket done [10:49:30]KKMCreateOFDPacket done [10:49:30]NVStorageSaveData kkm_last_timestamp [10:49:30]File name is /storage/kkm_last_timestamp [10:49:30]Write 4 bytes [10:49:30]NVStorageSaveData done [10:49:30]ExternCall_PrintAddStr [10:49:30]wPrintStart [10:49:30]Write to MH i2c: 01 00 00 E0 04 E4 [10:49:30]Write i2c OK [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: 01 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: 01 07 00 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: 01 07 00 E0 04 00 00 00 00 00 FF 0F F9 [10:49:30]RasterBufferAndPrint [10:49:30]line Счет N : (1)918640 [10:49:30]line ИНН: 02508201610067 [10:49:30]line Контрольно-Кассовый Чек [10:49:30]line ПРОДАЖА [10:49:30]line ТРК (МРК, ГНК) : 22 [10:49:30]line Товар: 2710124130 [10:49:30]line Аи-92-К-4 [10:49:30]line 40.000 * 0.00 [10:49:30]line = 0.00 [10:49:30]line НДС 12% НСП 1% [10:49:30]line > о реализуемом товаре [10:49:30]line ИТОГО: 0.00 [10:49:30]line НСП 1% : 0.00 [10:49:30]line НДС 12% : 0.00 [10:49:30]line Наличными: 0.00 [10:49:30]line Безнал.: 0.00 [10:49:30]line Место: АЗС № 114 "Партнер Нефть" [10:49:30]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:49:30]line СНО: Общий режим [10:49:30]line Чек 60 17.10.2024 10:49 [10:49:30]line Смена: 525 ФФД: 1.0 [10:49:30]line ЗНМ: 0300000086 [10:49:30]line РНМ: 0000000000091680 [10:49:30]line Версия ККМ: 001 [10:49:30]line Талоны: Топливные Талоны [10:49:30]line 3948695 [10:49:30]line ФМ: 0000000000871843 [10:49:30]line ФД: 82134 [10:49:30]line ФПД: 49065607893814 [10:49:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T104929&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82134&fm=49065607893814&tin=02508201610067®Number=0000000000091680&sum=0 [10:49:30]written 0, free lines is 4095 [10:49:30]OFD Sender: Processing packet 82134 [packets to send 254, broken 253] [10:49:30]ProducePacketName [10:49:30]name=ofd_packets/00082134 [10:49:30]OFD Sender: To server: pG, [10:49:30]CommunicateWithHost lk.salyk.kg:30040 [10:49:30]ConnectInit lk.salyk.kg [10:49:30]Write to MH i2c: 01 00 00 0A 05 0F [10:49:30]Write i2c OK [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: 01 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: 01 07 00 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: 01 07 00 0A 05 00 00 00 00 00 E4 0C 06 [10:49:30]RasterBufferAndPrint [10:49:30]line [10:49:30]line [10:49:30]line [10:49:30]line [10:49:30]line [10:49:30]written 0, free lines is 3306 [10:49:30]MH_Cut [10:49:30]Write to MH i2c: D1 01 00 11 05 01 E8 [10:49:30]Write i2c OK [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: D1 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: D1 01 00 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: D1 01 00 11 05 00 E7 [10:49:30]Write to MH i2c: 01 00 00 12 05 17 [10:49:30]Write i2c OK [10:49:30]MH_I2C_Read... [10:49:31]Connected sock=9 [10:49:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 11 9D 07 01 A9 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 B9 EB 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D6 40 01 00 35 04 06 00 2C 9F FA 21 13 36 E9 BB 4E FC B8 0F AC F9 [10:49:31]*** Cut start [10:49:31]*** Partial cut [10:49:31]*** CUTSNS_PIN = 1 [10:49:31]*** CUTSNS_PIN = 0 [10:49:31]*** Brake cut motor [10:49:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 08 E8 47 00 65 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 30 38 37 31 38 34 33 10 04 04 00 D6 40 01 00 F4 03 04 00 F8 90 10 67 B6 04 01 00 00 6D 63 C3 1E 0F 41 B3 36 [10:49:32]CommunicateWithHost err = 0 [10:49:32]CheckOFDResponse [10:49:32]1017 (14) - 77093643461234 [10:49:32]1041 (16) - 0000000000871843 [10:49:32]1040 (4) - 82134 [10:49:32]1012 (4) - 17.10.2024 04:22 [10:49:32]1206 (1) - 0 [10:49:32]OFD Sender: Remove packet 82134 [10:49:32]ProducePacketName [10:49:32]name=ofd_packets/00082134 [10:49:32]NVStorageDeleteData [10:49:32]Read from MH i2c: 01 [10:49:32]MH_I2C_Read... [10:49:32]*** Stop cut motor [10:49:32]*** Cut end [10:49:32]Read from MH i2c: 01 07 00 [10:49:32]MH_I2C_Read... [10:49:32]Read from MH i2c: 01 07 00 12 05 00 00 00 00 00 FF 0F 2C [10:49:32]process_action close_receipt done [10:49:32]requested_data is exist [10:49:32]produce_requested_data [10:49:32]requested_item fm.sn is exist - process it [10:49:32]wFMCommunicate request_size=4 [10:49:32]MH_SAM_APDU [10:49:32]CAPDU: 80 11 00 00 [10:49:32]Write to MH i2c: E2 08 00 13 05 80 11 00 00 00 00 00 00 92 [10:49:32]Write i2c OK [10:49:32]MH_I2C_Read... [10:49:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:32]Read from MH i2c: E2 [10:49:32]MH_I2C_Read... [10:49:32]Read from MH i2c: E2 17 00 [10:49:32]MH_I2C_Read... [10:49:32]Read from MH i2c: E2 17 00 13 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 E4 [10:49:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:49:32]wFMCommunicate OK [10:49:32]requested_item fd.num is exist - process it [10:49:32]SAM_PROTO_GetFieldsCounters [10:49:32]wFMCommunicate request_size=4 [10:49:32]MH_SAM_APDU [10:49:32]CAPDU: 80 13 00 00 [10:49:32]Write to MH i2c: E2 08 00 14 05 80 13 00 00 00 00 00 00 95 [10:49:32]Write i2c OK [10:49:32]MH_I2C_Read... [10:49:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:32]Read from MH i2c: E2 [10:49:32]MH_I2C_Read... [10:49:32]Read from MH i2c: E2 62 00 [10:49:32]MH_I2C_Read... [10:49:32]Read from MH i2c: E2 62 00 14 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D6 40 01 00 0E 04 04 00 0D 02 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 8E [10:49:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D6 40 01 00 0E 04 04 00 0D 02 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 [10:49:32]wFMCommunicate OK [10:49:32]SAM_PROTO_GetFieldsCounters done [10:49:32]requested_item shift.num is exist - process it [10:49:32]requested_item shift.opened is exist - process it [10:49:32]req_shift_opened [10:49:32]FM_GetShiftState [10:49:32]SAM_PROTO_GetShiftState [10:49:32]wFMCommunicate request_size=4 [10:49:32]MH_SAM_APDU [10:49:32]CAPDU: 80 13 01 00 [10:49:32]Write to MH i2c: E2 08 00 15 05 80 13 01 00 00 00 00 00 97 [10:49:32]Write i2c OK [10:49:32]MH_I2C_Read... [10:49:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:32]Read from MH i2c: E2 [10:49:32]MH_I2C_Read... [10:49:32]Read from MH i2c: E2 0E 00 [10:49:32]MH_I2C_Read... [10:49:32]Read from MH i2c: E2 0E 00 15 05 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 9F [10:49:32]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:49:32]wFMCommunicate OK [10:49:32]SAM_PROTO_GetShiftState done [10:49:32]FM_GetShiftState done [10:49:32]req_shift_opened done [10:49:32]requested_item shift.open_date is exist - process it [10:49:32]req_shift_open_date [10:49:32]req_shift_open_date done [10:49:32]produce_requested_data done [10:49:32]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82134,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [10:49:32]process_action_free close_receipt [10:49:32]json_value_free [10:49:32]json_value_free done [10:49:32]process_json_proto returns [10:49:32]Send response to host [10:49:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82134,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [10:49:32]free response buf [10:49:32]execute_script done [10:49:32]execute_script returns [10:49:32]free content buf [10:49:32]Sock 10.Close socket [10:49:32]Sock 10.Thread stoped [10:49:32]OFD Sender: No OFD packet to send [10:49:37]OFD Sender: No OFD packet to send [10:49:42]OFD Sender: No OFD packet to send [10:49:47]OFD Sender: No OFD packet to send [10:49:47]recv_with_timeout no data received [10:49:52]OFD Sender: No OFD packet to send [10:49:57]OFD Sender: No OFD packet to send [10:50:02]OFD Sender: No OFD packet to send [10:50:07]OFD Sender: No OFD packet to send [10:50:12]OFD Sender: No OFD packet to send [10:50:17]OFD Sender: No OFD packet to send [10:50:22]OFD Sender: No OFD packet to send [10:50:27]OFD Sender: No OFD packet to send [10:50:32]OFD Sender: No OFD packet to send [10:50:37]OFD Sender: No OFD packet to send [10:50:42]OFD Sender: No OFD packet to send [10:50:47]OFD Sender: No OFD packet to send [10:50:52]OFD Sender: No OFD packet to send [10:50:57]OFD Sender: No OFD packet to send [10:51:02]OFD Sender: No OFD packet to send [10:51:07]OFD Sender: No OFD packet to send [10:51:12]OFD Sender: No OFD packet to send [10:51:17]OFD Sender: No OFD packet to send [10:51:22]OFD Sender: No OFD packet to send [10:51:27]OFD Sender: No OFD packet to send [10:51:32]OFD Sender: No OFD packet to send [10:51:37]OFD Sender: No OFD packet to send [10:51:42]OFD Sender: No OFD packet to send [10:51:47]OFD Sender: No OFD packet to send [10:51:52]OFD Sender: No OFD packet to send [10:51:57]OFD Sender: No OFD packet to send [10:52:02]OFD Sender: No OFD packet to send [10:52:07]OFD Sender: No OFD packet to send [10:52:12]OFD Sender: No OFD packet to send [10:52:15]accept exits with 8 [10:52:15]New connection [10:52:15]New thread 3066514788 created [10:52:15]Thread 3066658148 joined [10:52:15]Waiting for new connection... [10:52:15] Sock 8.Parse request [10:52:15]Sock 8.Check first char [10:52:15]Sock 8.First char is OK [10:52:15]request: POST /json_proto HTTP/1.0 [10:52:15]Method: POST [10:52:15]URL: /json_proto [10:52:15]Method is POST - this is cgi request [10:52:15]url: /json_proto [10:52:15]query_string will be loaded in cgi processing [10:52:15]execute_cgi json_proto POST (null) [10:52:15]execute_cgi path=json_proto method=POST [10:52:15]POST find Content-Length [10:52:15]Host: 172.17.44.67:8080 [10:52:15]Content-Length: 682 [10:52:15]Content-Type: application/json [10:52:15] [10:52:15]POST finish read [10:52:15]Found Content-Length = 682 [10:52:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:15]execute_script... [10:52:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:15]POST & json_proto [10:52:15]process_json_proto [10:52:15]json parsed OK: [10:52:15]protocol is kg_v1.0 [10:52:15]action value=close_receipt [10:52:15]process_action close_receipt [10:52:15]cmd_close_receipt [10:52:15]MH_GetDate [10:52:15]Write to MH i2c: F0 00 00 16 05 0A [10:52:15]Write i2c OK [10:52:15]MH_I2C_Read... [10:52:15]Read from MH i2c: F0 [10:52:15]MH_I2C_Read... [10:52:15]Read from MH i2c: F0 09 00 [10:52:15]MH_I2C_Read... [10:52:15]Read from MH i2c: F0 09 00 16 05 00 60 EC 10 67 F1 C7 6B 64 5D [10:52:15]GetLastDocTimeStamp 1729162169 [10:52:15]current date 1729162336 [10:52:15]FM_GetShiftState [10:52:15]SAM_PROTO_GetShiftState [10:52:15]wFMCommunicate request_size=4 [10:52:15]MH_SAM_APDU [10:52:15]CAPDU: 80 13 01 00 [10:52:15]Write to MH i2c: E2 08 00 17 05 80 13 01 00 00 00 00 00 99 [10:52:15]Write i2c OK [10:52:15]MH_I2C_Read... [10:52:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:15]Read from MH i2c: E2 [10:52:15]MH_I2C_Read... [10:52:15]Read from MH i2c: E2 0E 00 [10:52:15]MH_I2C_Read... [10:52:15]Read from MH i2c: E2 0E 00 17 05 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 A1 [10:52:15]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:52:15]wFMCommunicate OK [10:52:15]SAM_PROTO_GetShiftState done [10:52:15]FM_GetShiftState done [10:52:15]opened in 1729125927 [10:52:15]opened+sec_in_day 1729212327 [10:52:15]quantity*price = 100015 [10:52:15]sum+1 = 100017 [10:52:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 61 17.10.2024 10:52 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82135 ФПД: 112505934769500 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T105216&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82135&fm=112505934769500&tin=02508201610067®Number=0000000000091680&sum=100000 [10:52:16]StoreToDocumentArchive [10:52:16]shift 525 fd 82135 [10:52:16]save to /storage/0525/doc_00082135 [10:52:16]save last doc name /storage/0525/doc_00082135 to /storage/kkm_last_doc_name [10:52:16]save OK [10:52:16]Clear old archive folders... [10:52:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:52:16]tlvbuf is 00AEE940 [10:52:16]SAM_PROTO_ClearQueue [10:52:16]wFMCommunicate request_size=4 [10:52:16]MH_SAM_APDU [10:52:16]CAPDU: 80 09 00 00 [10:52:16]Write to MH i2c: E2 08 00 24 05 80 09 00 00 00 00 00 00 9B [10:52:16]Write i2c OK [10:52:16]MH_I2C_Read... [10:52:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:16]Read from MH i2c: E2 [10:52:16]MH_I2C_Read... [10:52:16]Read from MH i2c: E2 03 00 [10:52:16]MH_I2C_Read... [10:52:16]Read from MH i2c: E2 03 00 24 05 00 90 00 9D [10:52:16]RAPDU: 90 00 [10:52:16]wFMCommunicate OK [10:52:16]SAM_PROTO_ClearQueue done [10:52:16]KKMCreateOFDPacket [10:52:16]OFDProtocolAddRootSTLVToBuf [10:52:16]FM_MakeSignedData [10:52:16]FM_MakeSignedData [10:52:16]SAM_PROTO_SignData [10:52:16]wFMCommunicate request_size=4 [10:52:16]MH_SAM_APDU [10:52:16]CAPDU: 80 0D 01 02 [10:52:16]Write to MH i2c: E2 08 00 25 05 80 0D 01 02 00 00 00 00 A3 [10:52:16]Write i2c OK [10:52:16]MH_I2C_Read... [10:52:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:16]Read from MH i2c: E2 [10:52:16]MH_I2C_Read... [10:52:16]Read from MH i2c: E2 03 00 [10:52:16]MH_I2C_Read... [10:52:16]Read from MH i2c: E2 03 00 25 05 00 90 00 9E [10:52:16]RAPDU: 90 00 [10:52:16]wFMCommunicate OK [10:52:16]wFMCommunicate request_size=255 [10:52:16]MH_SAM_APDU [10:52:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 60 EC 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D7 40 01 00 35 04 06 00 66 [10:52:16]Write to MH i2c: E2 02 01 26 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 60 EC 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D7 40 01 00 35 04 06 00 66 00 00 B6 [10:52:16]Write i2c OK [10:52:16]MH_I2C_Read... [10:52:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:16]Read from MH i2c: E2 [10:52:16]MH_I2C_Read... [10:52:16]Read from MH i2c: E2 03 00 [10:52:16]MH_I2C_Read... [10:52:16]Read from MH i2c: E2 03 00 26 05 00 90 00 9F [10:52:16]RAPDU: 90 00 [10:52:16]wFMCommunicate OK [10:52:16]wFMCommunicate request_size=10 [10:52:16]MH_SAM_APDU [10:52:16]CAPDU: 80 0D 02 02 05 52 D4 46 ED 5C [10:52:16]Write to MH i2c: E2 0D 00 27 05 80 0D 02 02 05 00 52 D4 46 ED 5C 00 00 65 [10:52:16]Write i2c OK [10:52:16]MH_I2C_Read... [10:52:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:16]Read from MH i2c: E2 [10:52:16]MH_I2C_Read... [10:52:16]Read from MH i2c: E2 03 00 [10:52:16]MH_I2C_Read... [10:52:16]Read from MH i2c: E2 03 00 27 05 00 90 00 A0 [10:52:16]RAPDU: 90 00 [10:52:16]wFMCommunicate OK [10:52:16]wFMCommunicate request_size=4 [10:52:16]MH_SAM_APDU [10:52:16]CAPDU: 80 0D 03 02 [10:52:16]Write to MH i2c: E2 08 00 28 05 80 0D 03 02 00 00 00 00 A8 [10:52:16]Write i2c OK [10:52:16]MH_I2C_Read... [10:52:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:16]Read from MH i2c: E2 [10:52:16]MH_I2C_Read... [10:52:16]Read from MH i2c: E2 0B 00 [10:52:16]MH_I2C_Read... [10:52:16]Read from MH i2c: E2 0B 00 28 05 00 DE BA 43 CB 96 B6 06 D8 90 00 79 [10:52:16]RAPDU: DE BA 43 CB 96 B6 06 D8 90 00 [10:52:16]wFMCommunicate OK [10:52:16]SAM_PROTO_SignData done [10:52:16]FM_MakeSignedData done [10:52:16]CreateOFDProtocolMessage [10:52:16]wFMCommunicate request_size=4 [10:52:16]MH_SAM_APDU [10:52:16]CAPDU: 80 11 00 00 [10:52:16]Write to MH i2c: E2 08 00 29 05 80 11 00 00 00 00 00 00 A8 [10:52:16]Write i2c OK [10:52:16]MH_I2C_Read... [10:52:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:16]Read from MH i2c: E2 [10:52:16]MH_I2C_Read... [10:52:16]Read from MH i2c: E2 17 00 [10:52:16]MH_I2C_Read... [10:52:16]Read from MH i2c: E2 17 00 29 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 FA [10:52:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:52:16]wFMCommunicate OK [10:52:16]CreateOFDProtocolMessage done [10:52:16]OFDSenderStorePacket 82135 [10:52:16]StoreOFDPacket docnum=82135 [10:52:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 00 FE 07 01 F7 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 60 EC 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D7 40 01 00 35 04 06 00 66 52 D4 46 ED 5C DE BA 43 CB 96 B6 06 D8 [10:52:16]CheckFolder [10:52:16]dirname=/storage/ofd_packets [10:52:16]CheckFolder done [10:52:16]ProducePacketName [10:52:16]name=ofd_packets/00082135 [10:52:16]NVStorageSaveData ofd_packets/00082135 [10:52:16]File name is /storage/ofd_packets/00082135 [10:52:16]Write 301 bytes [10:52:16]NVStorageSaveData done [10:52:16]OFDSenderStorePacket done [10:52:16]KKMCreateOFDPacket done [10:52:16]NVStorageSaveData kkm_last_timestamp [10:52:16]File name is /storage/kkm_last_timestamp [10:52:16]Write 4 bytes [10:52:16]NVStorageSaveData done [10:52:16]ExternCall_PrintAddStr [10:52:16]wPrintStart [10:52:16]Write to MH i2c: 01 00 00 2A 05 2F [10:52:16]Write i2c OK [10:52:16]MH_I2C_Read... [10:52:16]Read from MH i2c: 01 [10:52:16]MH_I2C_Read... [10:52:16]Read from MH i2c: 01 07 00 [10:52:16]MH_I2C_Read... [10:52:16]Read from MH i2c: 01 07 00 2A 05 00 00 00 00 00 FF 0F 44 [10:52:16]RasterBufferAndPrint [10:52:16]line Счет N : (1)918641 [10:52:16]line ИНН: 02508201610067 [10:52:16]line Контрольно-Кассовый Чек [10:52:16]line ПРОДАЖА [10:52:16]line ТРК (МРК, ГНК) : 22 [10:52:16]line Товар: 2710124130 [10:52:16]line Аи-92-К-4 [10:52:16]line 14.950 * 66.90 [10:52:16]line = 1000.16 [10:52:16]line НДС 12% НСП 1% [10:52:16]line > о реализуемом товаре [10:52:16]line ОКРУГЛЕНИЕ: -0.16 [10:52:16]line ИТОГО: 1000.00 [10:52:16]line Внесено: 1000.00 [10:52:16]line СДАЧА: 0.00 [10:52:16]line НСП 1% : 8.85 [10:52:16]line НДС 12% : 106.21 [10:52:16]line Наличными: 1000.00 [10:52:16]line Безнал.: 0.00 [10:52:16]line Место: АЗС № 114 "Партнер Нефть" [10:52:16]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:52:16]line СНО: Общий режим [10:52:16]line Чек 61 17.10.2024 10:52 [10:52:16]line Смена: 525 ФФД: 1.0 [10:52:16]line ЗНМ: 0300000086 [10:52:16]line РНМ: 0000000000091680 [10:52:16]line Версия ККМ: 001 [10:52:16]line ФМ: 0000000000871843 [10:52:16]line ФД: 82135 [10:52:16]line ФПД: 112505934769500 [10:52:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T105216&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82135&fm=112505934769500&tin=02508201610067®Number=0000000000091680&sum=100000 [10:52:17]OFD Sender: Processing packet 82135 [packets to send 254, broken 253] [10:52:17]ProducePacketName [10:52:17]name=ofd_packets/00082135 [10:52:17]OFD Sender: To server: pG, [10:52:17]CommunicateWithHost lk.salyk.kg:30040 [10:52:17]ConnectInit lk.salyk.kg [10:52:17]written 0, free lines is 4095 [10:52:17]Write to MH i2c: 01 00 00 55 05 5A [10:52:17]Write i2c OK [10:52:17]MH_I2C_Read... [10:52:17]Read from MH i2c: 01 [10:52:17]MH_I2C_Read... [10:52:17]Read from MH i2c: 01 07 00 [10:52:17]MH_I2C_Read... [10:52:17]Read from MH i2c: 01 07 00 55 05 00 00 00 00 00 D3 0C 40 [10:52:17]RasterBufferAndPrint [10:52:17]line [10:52:17]line [10:52:17]line [10:52:17]line [10:52:17]line [10:52:17]written 0, free lines is 3289 [10:52:17]MH_Cut [10:52:17]Write to MH i2c: D1 01 00 5C 05 01 33 [10:52:17]Write i2c OK [10:52:17]MH_I2C_Read... [10:52:17]Read from MH i2c: D1 [10:52:17]MH_I2C_Read... [10:52:17]Read from MH i2c: D1 01 00 [10:52:17]MH_I2C_Read... [10:52:17]Read from MH i2c: D1 01 00 5C 05 00 32 [10:52:17]Write to MH i2c: 01 00 00 5D 05 62 [10:52:17]Write i2c OK [10:52:17]MH_I2C_Read... [10:52:17]Connected sock=9 [10:52:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 00 FE 07 01 F7 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 60 EC 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D7 40 01 00 35 04 06 00 66 52 D4 46 ED 5C DE BA 43 CB 96 B6 06 D8 [10:52:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 A4 C0 47 00 68 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D7 40 01 00 F4 03 04 00 9F 91 10 67 B6 04 01 00 00 DD FC E0 8B 61 FC 74 8E [10:52:18]CommunicateWithHost err = 0 [10:52:18]CheckOFDResponse [10:52:18]1017 (14) - 77093643461234 [10:52:18]1041 (16) - 0000000000871843 [10:52:18]1040 (4) - 82135 [10:52:18]1012 (4) - 17.10.2024 04:25 [10:52:18]1206 (1) - 0 [10:52:18]OFD Sender: Remove packet 82135 [10:52:18]ProducePacketName [10:52:18]name=ofd_packets/00082135 [10:52:18]NVStorageDeleteData [10:52:18]*** Cut start [10:52:18]*** Partial cut [10:52:18]*** CUTSNS_PIN = 1 [10:52:18]*** CUTSNS_PIN = 0 [10:52:18]*** Brake cut motor [10:52:18]OFD Sender: No OFD packet to send [10:52:19]Read from MH i2c: 01 [10:52:19]MH_I2C_Read... [10:52:19]*** Stop cut motor [10:52:19]*** Cut end [10:52:19]Read from MH i2c: 01 07 00 [10:52:19]MH_I2C_Read... [10:52:19]Read from MH i2c: 01 07 00 5D 05 00 00 00 00 00 FF 0F 77 [10:52:19]process_action close_receipt done [10:52:19]requested_data is exist [10:52:19]produce_requested_data [10:52:19]requested_item fm.sn is exist - process it [10:52:19]wFMCommunicate request_size=4 [10:52:19]MH_SAM_APDU [10:52:19]CAPDU: 80 11 00 00 [10:52:19]Write to MH i2c: E2 08 00 5E 05 80 11 00 00 00 00 00 00 DD [10:52:19]Write i2c OK [10:52:19]MH_I2C_Read... [10:52:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:19]Read from MH i2c: E2 [10:52:19]MH_I2C_Read... [10:52:19]Read from MH i2c: E2 17 00 [10:52:19]MH_I2C_Read... [10:52:19]Read from MH i2c: E2 17 00 5E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 2F [10:52:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:52:19]wFMCommunicate OK [10:52:19]requested_item fd.num is exist - process it [10:52:19]SAM_PROTO_GetFieldsCounters [10:52:19]wFMCommunicate request_size=4 [10:52:19]MH_SAM_APDU [10:52:19]CAPDU: 80 13 00 00 [10:52:19]Write to MH i2c: E2 08 00 5F 05 80 13 00 00 00 00 00 00 E0 [10:52:19]Write i2c OK [10:52:19]MH_I2C_Read... [10:52:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:19]Read from MH i2c: E2 [10:52:19]MH_I2C_Read... [10:52:19]Read from MH i2c: E2 62 00 [10:52:19]MH_I2C_Read... [10:52:19]Read from MH i2c: E2 62 00 5F 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D7 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [10:52:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D7 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:52:19]wFMCommunicate OK [10:52:19]SAM_PROTO_GetFieldsCounters done [10:52:19]requested_item shift.num is exist - process it [10:52:19]requested_item shift.opened is exist - process it [10:52:19]req_shift_opened [10:52:19]FM_GetShiftState [10:52:19]SAM_PROTO_GetShiftState [10:52:19]wFMCommunicate request_size=4 [10:52:19]MH_SAM_APDU [10:52:19]CAPDU: 80 13 01 00 [10:52:19]Write to MH i2c: E2 08 00 60 05 80 13 01 00 00 00 00 00 E2 [10:52:19]Write i2c OK [10:52:19]MH_I2C_Read... [10:52:19]Read from MH i2c: E2 [10:52:19]MH_I2C_Read... [10:52:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:19]Read from MH i2c: E2 0E 00 [10:52:19]MH_I2C_Read... [10:52:19]Read from MH i2c: E2 0E 00 60 05 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 EA [10:52:19]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [10:52:19]wFMCommunicate OK [10:52:19]SAM_PROTO_GetShiftState done [10:52:19]FM_GetShiftState done [10:52:19]req_shift_opened done [10:52:19]requested_item shift.open_date is exist - process it [10:52:19]req_shift_open_date [10:52:19]req_shift_open_date done [10:52:19]produce_requested_data done [10:52:19]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82135,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [10:52:19]process_action_free close_receipt [10:52:19]json_value_free [10:52:19]json_value_free done [10:52:19]process_json_proto returns [10:52:19]Send response to host [10:52:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82135,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [10:52:19]free response buf [10:52:19]execute_script done [10:52:19]execute_script returns [10:52:19]free content buf [10:52:19]Sock 8.Close socket [10:52:19]Sock 8.Thread stoped [10:52:23]OFD Sender: No OFD packet to send [10:52:28]OFD Sender: No OFD packet to send [10:52:33]OFD Sender: No OFD packet to send [10:52:38]OFD Sender: No OFD packet to send [10:52:43]OFD Sender: No OFD packet to send [10:52:44]recv_with_timeout no data received [10:52:48]OFD Sender: No OFD packet to send [10:52:53]OFD Sender: No OFD packet to send [10:52:58]OFD Sender: No OFD packet to send [10:53:03]OFD Sender: No OFD packet to send [10:53:08]OFD Sender: No OFD packet to send [10:53:13]OFD Sender: No OFD packet to send [10:53:19]OFD Sender: No OFD packet to send [10:53:24]OFD Sender: No OFD packet to send [10:53:29]OFD Sender: No OFD packet to send [10:53:34]OFD Sender: No OFD packet to send [10:53:39]OFD Sender: No OFD packet to send [10:53:44]OFD Sender: No OFD packet to send [10:53:49]OFD Sender: No OFD packet to send [10:53:54]OFD Sender: No OFD packet to send [10:53:59]OFD Sender: No OFD packet to send [10:54:04]OFD Sender: No OFD packet to send [10:54:09]OFD Sender: No OFD packet to send [10:54:14]OFD Sender: No OFD packet to send [10:54:19]OFD Sender: No OFD packet to send [10:54:24]OFD Sender: No OFD packet to send [10:54:29]OFD Sender: No OFD packet to send [10:54:34]OFD Sender: No OFD packet to send [10:54:39]OFD Sender: No OFD packet to send [10:54:44]OFD Sender: No OFD packet to send [10:54:49]OFD Sender: No OFD packet to send [10:54:54]OFD Sender: No OFD packet to send [10:54:59]OFD Sender: No OFD packet to send [10:55:04]OFD Sender: No OFD packet to send [10:55:09]OFD Sender: No OFD packet to send [10:55:14]OFD Sender: No OFD packet to send [10:55:19]OFD Sender: No OFD packet to send [10:55:24]OFD Sender: No OFD packet to send [10:55:29]OFD Sender: No OFD packet to send [10:55:34]OFD Sender: No OFD packet to send [10:55:39]OFD Sender: No OFD packet to send [10:55:44]OFD Sender: No OFD packet to send [10:55:49]OFD Sender: No OFD packet to send [10:55:54]OFD Sender: No OFD packet to send [10:55:59]OFD Sender: No OFD packet to send [10:56:04]OFD Sender: No OFD packet to send [10:56:09]recv_with_timeout no data received [10:56:09]OFD Sender: No OFD packet to send [10:56:14]OFD Sender: No OFD packet to send [10:56:19]OFD Sender: No OFD packet to send [10:56:24]OFD Sender: No OFD packet to send [10:56:26]recv_with_timeout no data received [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:09]OFD Sender: No OFD packet to send [10:57:14]OFD Sender: No OFD packet to send [10:57:19]OFD Sender: No OFD packet to send [10:57:24]OFD Sender: No OFD packet to send [10:57:29]OFD Sender: No OFD packet to send [10:57:34]OFD Sender: No OFD packet to send [10:57:39]OFD Sender: No OFD packet to send [10:57:54]OFD Sender: No OFD packet to send [10:57:59]OFD Sender: No OFD packet to send [10:58:04]OFD Sender: No OFD packet to send [10:58:09]OFD Sender: No OFD packet to send [10:58:14]OFD Sender: No OFD packet to send [10:58:19]OFD Sender: No OFD packet to send [10:58:24]OFD Sender: No OFD packet to send [10:58:29]OFD Sender: No OFD packet to send [10:58:34]OFD Sender: No OFD packet to send [10:58:37]recv_with_timeout no data received [10:58:39]OFD Sender: No OFD packet to send [10:58:44]OFD Sender: No OFD packet to send [10:58:49]OFD Sender: No OFD packet to send [10:58:54]OFD Sender: No OFD packet to send [10:58:59]OFD Sender: No OFD packet to send [10:59:04]OFD Sender: No OFD packet to send [10:59:09]OFD Sender: No OFD packet to send [10:59:14]OFD Sender: No OFD packet to send [10:59:19]OFD Sender: No OFD packet to send [10:59:24]OFD Sender: No OFD packet to send [10:59:29]OFD Sender: No OFD packet to send [10:59:34]OFD Sender: No OFD packet to send [10:59:39]OFD Sender: No OFD packet to send [10:59:44]OFD Sender: No OFD packet to send [10:59:49]OFD Sender: No OFD packet to send [10:59:54]OFD Sender: No OFD packet to send [10:59:59]OFD Sender: No OFD packet to send [11:00:04]OFD Sender: No OFD packet to send [11:00:09]OFD Sender: No OFD packet to send [11:00:11]accept exits with 10 [11:00:11]New connection [11:00:11]New thread 3066658148 created [11:00:11]Thread 3066514788 joined [11:00:11]Waiting for new connection... [11:00:11] Sock 10.Parse request [11:00:11]Sock 10.Check first char [11:00:11]Sock 10.First char is OK [11:00:11]request: POST /json_proto HTTP/1.0 [11:00:11]Method: POST [11:00:11]URL: /json_proto [11:00:11]Method is POST - this is cgi request [11:00:11]url: /json_proto [11:00:11]query_string will be loaded in cgi processing [11:00:11]execute_cgi json_proto POST (null) [11:00:11]execute_cgi path=json_proto method=POST [11:00:11]POST find Content-Length [11:00:11]Host: 172.17.44.67:8080 [11:00:11]Content-Length: 678 [11:00:11]Content-Type: application/json [11:00:11] [11:00:11]POST finish read [11:00:11]Found Content-Length = 678 [11:00:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:11]execute_script... [11: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 : (1)918642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:11]POST & json_proto [11:00:11]process_json_proto [11:00:11]json parsed OK: [11:00:11]protocol is kg_v1.0 [11:00:11]action value=close_receipt [11:00:11]process_action close_receipt [11:00:11]cmd_close_receipt [11:00:11]MH_GetDate [11:00:11]Write to MH i2c: F0 00 00 61 05 55 [11:00:11]Write i2c OK [11:00:11]MH_I2C_Read... [11:00:11]Read from MH i2c: F0 [11:00:11]MH_I2C_Read... [11:00:11]Read from MH i2c: F0 09 00 [11:00:11]MH_I2C_Read... [11:00:11]Read from MH i2c: F0 09 00 61 05 00 3C EE 10 67 F1 C7 6B 64 86 [11:00:11]GetLastDocTimeStamp 1729162336 [11:00:11]current date 1729162812 [11:00:11]FM_GetShiftState [11:00:11]SAM_PROTO_GetShiftState [11:00:11]wFMCommunicate request_size=4 [11:00:11]MH_SAM_APDU [11:00:11]CAPDU: 80 13 01 00 [11:00:11]Write to MH i2c: E2 08 00 62 05 80 13 01 00 00 00 00 00 E4 [11:00:11]Write i2c OK [11:00:11]MH_I2C_Read... [11:00:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:11]Read from MH i2c: E2 [11:00:11]MH_I2C_Read... [11:00:11]Read from MH i2c: E2 0E 00 [11:00:11]MH_I2C_Read... [11:00:11]Read from MH i2c: E2 0E 00 62 05 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 EC [11:00:11]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [11:00:11]wFMCommunicate OK [11:00:11]SAM_PROTO_GetShiftState done [11:00:11]FM_GetShiftState done [11:00:11]opened in 1729125927 [11:00:11]opened+sec_in_day 1729212327 [11:00:11]quantity*price = 70044 [11:00:11]sum+1 = 70045 [11:00:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 62 17.10.2024 11:00 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82136 ФПД: 231577260633099 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T110012&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82136&fm=231577260633099&tin=02508201610067®Number=0000000000091680&sum=70000 [11:00:12]StoreToDocumentArchive [11:00:12]shift 525 fd 82136 [11:00:12]save to /storage/0525/doc_00082136 [11:00:12]save last doc name /storage/0525/doc_00082136 to /storage/kkm_last_doc_name [11:00:12]save OK [11:00:12]Clear old archive folders... [11:00:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:00:12]tlvbuf is 00AD58B0 [11:00:12]SAM_PROTO_ClearQueue [11:00:12]wFMCommunicate request_size=4 [11:00:12]MH_SAM_APDU [11:00:12]CAPDU: 80 09 00 00 [11:00:12]Write to MH i2c: E2 08 00 6F 05 80 09 00 00 00 00 00 00 E6 [11:00:12]Write i2c OK [11:00:12]MH_I2C_Read... [11:00:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:12]Read from MH i2c: E2 [11:00:12]MH_I2C_Read... [11:00:12]Read from MH i2c: E2 03 00 [11:00:12]MH_I2C_Read... [11:00:12]Read from MH i2c: E2 03 00 6F 05 00 90 00 E8 [11:00:12]RAPDU: 90 00 [11:00:12]wFMCommunicate OK [11:00:12]SAM_PROTO_ClearQueue done [11:00:12]KKMCreateOFDPacket [11:00:12]OFDProtocolAddRootSTLVToBuf [11:00:12]FM_MakeSignedData [11:00:12]FM_MakeSignedData [11:00:12]SAM_PROTO_SignData [11:00:12]wFMCommunicate request_size=4 [11:00:12]MH_SAM_APDU [11:00:12]CAPDU: 80 0D 01 02 [11:00:12]Write to MH i2c: E2 08 00 70 05 80 0D 01 02 00 00 00 00 EE [11:00:12]Write i2c OK [11:00:12]MH_I2C_Read... [11:00:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:12]Read from MH i2c: E2 [11:00:12]MH_I2C_Read... [11:00:12]Read from MH i2c: E2 03 00 [11:00:12]MH_I2C_Read... [11:00:12]Read from MH i2c: E2 03 00 70 05 00 90 00 E9 [11:00:12]RAPDU: 90 00 [11:00:12]wFMCommunicate OK [11:00:12]wFMCommunicate request_size=255 [11:00:12]MH_SAM_APDU [11:00:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 3C EE 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D8 40 01 00 35 04 06 00 D2 [11:00:12]Write to MH i2c: E2 02 01 71 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 3C EE 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D8 40 01 00 35 04 06 00 D2 00 00 63 [11:00:12]Write i2c OK [11:00:12]MH_I2C_Read... [11:00:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:13]Read from MH i2c: E2 [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: E2 03 00 [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: E2 03 00 71 05 00 90 00 EA [11:00:13]RAPDU: 90 00 [11:00:13]wFMCommunicate OK [11:00:13]wFMCommunicate request_size=10 [11:00:13]MH_SAM_APDU [11:00:13]CAPDU: 80 0D 02 02 05 9E 48 5B AC 0B [11:00:13]Write to MH i2c: E2 0D 00 72 05 80 0D 02 02 05 00 9E 48 5B AC 0B 00 00 F3 [11:00:13]Write i2c OK [11:00:13]MH_I2C_Read... [11:00:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:13]Read from MH i2c: E2 [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: E2 03 00 [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: E2 03 00 72 05 00 90 00 EB [11:00:13]RAPDU: 90 00 [11:00:13]wFMCommunicate OK [11:00:13]wFMCommunicate request_size=4 [11:00:13]MH_SAM_APDU [11:00:13]CAPDU: 80 0D 03 02 [11:00:13]Write to MH i2c: E2 08 00 73 05 80 0D 03 02 00 00 00 00 F3 [11:00:13]Write i2c OK [11:00:13]MH_I2C_Read... [11:00:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:13]Read from MH i2c: E2 [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: E2 0B 00 [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: E2 0B 00 73 05 00 F2 1A A2 23 1A 99 B2 55 90 00 7F [11:00:13]RAPDU: F2 1A A2 23 1A 99 B2 55 90 00 [11:00:13]wFMCommunicate OK [11:00:13]SAM_PROTO_SignData done [11:00:13]FM_MakeSignedData done [11:00:13]CreateOFDProtocolMessage [11:00:13]wFMCommunicate request_size=4 [11:00:13]MH_SAM_APDU [11:00:13]CAPDU: 80 11 00 00 [11:00:13]Write to MH i2c: E2 08 00 74 05 80 11 00 00 00 00 00 00 F3 [11:00:13]Write i2c OK [11:00:13]MH_I2C_Read... [11:00:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:13]Read from MH i2c: E2 [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: E2 17 00 [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: E2 17 00 74 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 45 [11:00:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:00:13]wFMCommunicate OK [11:00:13]CreateOFDProtocolMessage done [11:00:13]OFDSenderStorePacket 82136 [11:00:13]StoreOFDPacket docnum=82136 [11:00:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 B6 F5 07 01 AE 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 3C EE 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D8 40 01 00 35 04 06 00 D2 9E 48 5B AC 0B F2 1A A2 23 1A 99 B2 55 [11:00:13]CheckFolder [11:00:13]dirname=/storage/ofd_packets [11:00:13]CheckFolder done [11:00:13]ProducePacketName [11:00:13]name=ofd_packets/00082136 [11:00:13]NVStorageSaveData ofd_packets/00082136 [11:00:13]File name is /storage/ofd_packets/00082136 [11:00:13]Write 301 bytes [11:00:13]NVStorageSaveData done [11:00:13]OFDSenderStorePacket done [11:00:13]KKMCreateOFDPacket done [11:00:13]NVStorageSaveData kkm_last_timestamp [11:00:13]File name is /storage/kkm_last_timestamp [11:00:13]Write 4 bytes [11:00:13]NVStorageSaveData done [11:00:13]ExternCall_PrintAddStr [11:00:13]wPrintStart [11:00:13]Write to MH i2c: 01 00 00 75 05 7A [11:00:13]Write i2c OK [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: 01 [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: 01 07 00 [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: 01 07 00 75 05 00 00 00 00 00 FF 0F 8F [11:00:13]RasterBufferAndPrint [11:00:13]line Счет N : (1)918642 [11:00:13]line ИНН: 02508201610067 [11:00:13]line Контрольно-Кассовый Чек [11:00:13]line ПРОДАЖА [11:00:13]line ТРК (МРК, ГНК) : 11 [11:00:13]line Товар: 2710124130 [11:00:13]line Аи-92-К-4 [11:00:13]line 10.470 * 66.90 [11:00:13]line = 700.44 [11:00:13]line НДС 12% НСП 1% [11:00:13]line > о реализуемом товаре [11:00:13]line ОКРУГЛЕНИЕ: -0.44 [11:00:13]line ИТОГО: 700.00 [11:00:13]line Внесено: 700.00 [11:00:13]line СДАЧА: 0.00 [11:00:13]line НСП 1% : 6.20 [11:00:13]line НДС 12% : 74.38 [11:00:13]line Наличными: 700.00 [11:00:13]line Безнал.: 0.00 [11:00:13]line Место: АЗС № 114 "Партнер Нефть" [11:00:13]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:00:13]line СНО: Общий режим [11:00:13]line Чек 62 17.10.2024 11:00 [11:00:13]line Смена: 525 ФФД: 1.0 [11:00:13]line ЗНМ: 0300000086 [11:00:13]line РНМ: 0000000000091680 [11:00:13]line Версия ККМ: 001 [11:00:13]line ФМ: 0000000000871843 [11:00:13]line ФД: 82136 [11:00:13]line ФПД: 231577260633099 [11:00:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T110012&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82136&fm=231577260633099&tin=02508201610067®Number=0000000000091680&sum=70000 [11:00:13]OFD Sender: Processing packet 82136 [packets to send 254, broken 253] [11:00:13]ProducePacketName [11:00:13]name=ofd_packets/00082136 [11:00:13]OFD Sender: To server: pG, [11:00:13]CommunicateWithHost lk.salyk.kg:30040 [11:00:13]ConnectInit lk.salyk.kg [11:00:13]written 0, free lines is 4095 [11:00:13]Write to MH i2c: 01 00 00 A0 05 A5 [11:00:13]Write i2c OK [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: 01 [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: 01 07 00 [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: 01 07 00 A0 05 00 00 00 00 00 D0 0C 88 [11:00:13]RasterBufferAndPrint [11:00:13]line [11:00:13]line [11:00:13]line [11:00:13]line [11:00:13]line [11:00:13]written 0, free lines is 3288 [11:00:14]MH_Cut [11:00:14]Write to MH i2c: D1 01 00 A7 05 01 7E [11:00:14]Write i2c OK [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: D1 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: D1 01 00 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: D1 01 00 A7 05 00 7D [11:00:14]Write to MH i2c: 01 00 00 A8 05 AD [11:00:14]Write i2c OK [11:00:14]MH_I2C_Read... [11:00:14]Connected sock=11 [11:00:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 B6 F5 07 01 AE 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 3C EE 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D8 40 01 00 35 04 06 00 D2 9E 48 5B AC 0B F2 1A A2 23 1A 99 B2 55 [11:00:14]*** Cut start [11:00:14]*** Partial cut [11:00:14]*** CUTSNS_PIN = 1 [11:00:14]*** CUTSNS_PIN = 0 [11:00:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 3D A3 47 00 82 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D8 40 01 00 F4 03 04 00 7B 93 10 67 B6 04 01 00 00 42 72 E2 D5 4C 80 9A 48 [11:00:15]CommunicateWithHost err = 0 [11:00:15]CheckOFDResponse [11:00:15]1017 (14) - 77093643461234 [11:00:15]1041 (16) - 0000000000871843 [11:00:15]1040 (4) - 82136 [11:00:15]1012 (4) - 17.10.2024 04:32 [11:00:15]1206 (1) - 0 [11:00:15]OFD Sender: Remove packet 82136 [11:00:15]ProducePacketName [11:00:15]name=ofd_packets/00082136 [11:00:15]NVStorageDeleteData [11:00:15]*** Brake cut motor [11:00:15]Read from MH i2c: 01 [11:00:15]MH_I2C_Read... [11:00:15]*** Stop cut motor [11:00:15]*** Cut end [11:00:15]Read from MH i2c: 01 07 00 [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: 01 07 00 A8 05 00 00 00 00 00 FF 0F C2 [11:00:15]process_action close_receipt done [11:00:15]requested_data is exist [11:00:15]produce_requested_data [11:00:15]requested_item fm.sn is exist - process it [11:00:15]wFMCommunicate request_size=4 [11:00:15]MH_SAM_APDU [11:00:15]CAPDU: 80 11 00 00 [11:00:15]Write to MH i2c: E2 08 00 A9 05 80 11 00 00 00 00 00 00 28 [11:00:15]Write i2c OK [11:00:15]MH_I2C_Read... [11:00:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:15]Read from MH i2c: E2 [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: E2 17 00 [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: E2 17 00 A9 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 7A [11:00:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:00:15]wFMCommunicate OK [11:00:15]requested_item fd.num is exist - process it [11:00:15]SAM_PROTO_GetFieldsCounters [11:00:15]wFMCommunicate request_size=4 [11:00:15]MH_SAM_APDU [11:00:15]CAPDU: 80 13 00 00 [11:00:15]Write to MH i2c: E2 08 00 AA 05 80 13 00 00 00 00 00 00 2B [11:00:15]Write i2c OK [11:00:15]MH_I2C_Read... [11:00:15]OFD Sender: No OFD packet to send [11:00:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:15]Read from MH i2c: E2 [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: E2 62 00 [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: E2 62 00 AA 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D8 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [11:00:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D8 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:00:15]wFMCommunicate OK [11:00:15]SAM_PROTO_GetFieldsCounters done [11:00:15]requested_item shift.num is exist - process it [11:00:15]requested_item shift.opened is exist - process it [11:00:15]req_shift_opened [11:00:15]FM_GetShiftState [11:00:15]SAM_PROTO_GetShiftState [11:00:15]wFMCommunicate request_size=4 [11:00:15]MH_SAM_APDU [11:00:15]CAPDU: 80 13 01 00 [11:00:15]Write to MH i2c: E2 08 00 AB 05 80 13 01 00 00 00 00 00 2D [11:00:15]Write i2c OK [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: E2 [11:00:15]MH_I2C_Read... [11:00:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:15]Read from MH i2c: E2 0E 00 [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: E2 0E 00 AB 05 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 35 [11:00:15]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [11:00:15]wFMCommunicate OK [11:00:15]SAM_PROTO_GetShiftState done [11:00:15]FM_GetShiftState done [11:00:15]req_shift_opened done [11:00:15]requested_item shift.open_date is exist - process it [11:00:15]req_shift_open_date [11:00:15]req_shift_open_date done [11:00:15]produce_requested_data done [11:00:15]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82136,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [11:00:15]process_action_free close_receipt [11:00:15]json_value_free [11:00:15]json_value_free done [11:00:15]process_json_proto returns [11:00:15]Send response to host [11:00:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82136,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [11:00:15]free response buf [11:00:15]execute_script done [11:00:15]execute_script returns [11:00:15]free content buf [11:00:15]Sock 10.Close socket [11:00:15]Sock 10.Thread stoped [11:00:20]OFD Sender: No OFD packet to send [11:00:25]OFD Sender: No OFD packet to send [11:00:30]OFD Sender: No OFD packet to send [11:00:34]recv_with_timeout no data received [11:00:35]OFD Sender: No OFD packet to send [11:00:40]OFD Sender: No OFD packet to send [11:00:45]OFD Sender: No OFD packet to send [11:00:50]OFD Sender: No OFD packet to send [11:00:55]OFD Sender: No OFD packet to send [11:01:00]OFD Sender: No OFD packet to send [11:01:05]OFD Sender: No OFD packet to send [11:01:10]OFD Sender: No OFD packet to send [11:01:15]OFD Sender: No OFD packet to send [11:01:20]OFD Sender: No OFD packet to send [11:01:35]OFD Sender: No OFD packet to send [11:01:40]OFD Sender: No OFD packet to send [11:01:45]recv_with_timeout no data received [11:01:45]OFD Sender: No OFD packet to send [11:01:50]OFD Sender: No OFD packet to send [11:01:55]OFD Sender: No OFD packet to send [11:02:00]OFD Sender: No OFD packet to send [11:02:05]OFD Sender: No OFD packet to send [11:01:25]OFD Sender: No OFD packet to send [11:01:27]recv_with_timeout no data received [11:01:30]OFD Sender: No OFD packet to send [11:02:10]OFD Sender: No OFD packet to send [11:02:13]accept exits with 9 [11:02:13]New connection [11:02:13]New thread 3066514788 created [11:02:13]Thread 3066658148 joined [11:02:13]Waiting for new connection... [11:02:13] Sock 9.Parse request [11:02:13]Sock 9.Check first char [11:02:13]Sock 9.First char is OK [11:02:13]request: POST /json_proto HTTP/1.0 [11:02:13]Method: POST [11:02:13]URL: /json_proto [11:02:13]Method is POST - this is cgi request [11:02:13]url: /json_proto [11:02:13]query_string will be loaded in cgi processing [11:02:13]execute_cgi json_proto POST (null) [11:02:13]execute_cgi path=json_proto method=POST [11:02:13]POST find Content-Length [11:02:13]Host: 172.17.44.67:8080 [11:02:13]Content-Length: 682 [11:02:13]Content-Type: application/json [11:02:13] [11:02:13]POST finish read [11:02:13]Found Content-Length = 682 [11:02:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:13]execute_script... [11:02:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:13]POST & json_proto [11:02:13]process_json_proto [11:02:13]json parsed OK: [11:02:13]protocol is kg_v1.0 [11:02:13]action value=close_receipt [11:02:13]process_action close_receipt [11:02:13]cmd_close_receipt [11:02:13]MH_GetDate [11:02:13]Write to MH i2c: F0 00 00 AC 05 A0 [11:02:13]Write i2c OK [11:02:13]MH_I2C_Read... [11:02:13]Read from MH i2c: F0 [11:02:13]MH_I2C_Read... [11:02:13]Read from MH i2c: F0 09 00 [11:02:13]MH_I2C_Read... [11:02:13]Read from MH i2c: F0 09 00 AC 05 00 B6 EE 10 67 F1 C7 6B 64 4B [11:02:13]GetLastDocTimeStamp 1729162812 [11:02:13]current date 1729162934 [11:02:13]FM_GetShiftState [11:02:13]SAM_PROTO_GetShiftState [11:02:13]wFMCommunicate request_size=4 [11:02:13]MH_SAM_APDU [11:02:13]CAPDU: 80 13 01 00 [11:02:13]Write to MH i2c: E2 08 00 AD 05 80 13 01 00 00 00 00 00 2F [11:02:13]Write i2c OK [11:02:13]MH_I2C_Read... [11:02:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:13]Read from MH i2c: E2 [11:02:13]MH_I2C_Read... [11:02:13]Read from MH i2c: E2 0E 00 [11:02:13]MH_I2C_Read... [11:02:13]Read from MH i2c: E2 0E 00 AD 05 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 37 [11:02:13]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [11:02:13]wFMCommunicate OK [11:02:13]SAM_PROTO_GetShiftState done [11:02:13]FM_GetShiftState done [11:02:13]opened in 1729125927 [11:02:13]opened+sec_in_day 1729212327 [11:02:13]quantity*price = 100021 [11:02:13]sum+1 = 100023 [11:02:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 63 17.10.2024 11:02 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82137 ФПД: 59772396323139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T110214&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82137&fm=59772396323139&tin=02508201610067®Number=0000000000091680&sum=100000 [11:02:14]StoreToDocumentArchive [11:02:14]shift 525 fd 82137 [11:02:14]save to /storage/0525/doc_00082137 [11:02:14]save last doc name /storage/0525/doc_00082137 to /storage/kkm_last_doc_name [11:02:14]save OK [11:02:14]Clear old archive folders... [11:02:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:02:14]tlvbuf is 00AEAA10 [11:02:14]SAM_PROTO_ClearQueue [11:02:14]wFMCommunicate request_size=4 [11:02:14]MH_SAM_APDU [11:02:14]CAPDU: 80 09 00 00 [11:02:14]Write to MH i2c: E2 08 00 BA 05 80 09 00 00 00 00 00 00 31 [11:02:14]Write i2c OK [11:02:14]MH_I2C_Read... [11:02:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:14]Read from MH i2c: E2 [11:02:14]MH_I2C_Read... [11:02:14]Read from MH i2c: E2 03 00 [11:02:14]MH_I2C_Read... [11:02:14]Read from MH i2c: E2 03 00 BA 05 00 90 00 33 [11:02:14]RAPDU: 90 00 [11:02:14]wFMCommunicate OK [11:02:14]SAM_PROTO_ClearQueue done [11:02:14]KKMCreateOFDPacket [11:02:14]OFDProtocolAddRootSTLVToBuf [11:02:14]FM_MakeSignedData [11:02:14]FM_MakeSignedData [11:02:14]SAM_PROTO_SignData [11:02:14]wFMCommunicate request_size=4 [11:02:14]MH_SAM_APDU [11:02:14]CAPDU: 80 0D 01 02 [11:02:14]Write to MH i2c: E2 08 00 BB 05 80 0D 01 02 00 00 00 00 39 [11:02:14]Write i2c OK [11:02:14]MH_I2C_Read... [11:02:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:14]Read from MH i2c: E2 [11:02:14]MH_I2C_Read... [11:02:14]Read from MH i2c: E2 03 00 [11:02:14]MH_I2C_Read... [11:02:14]Read from MH i2c: E2 03 00 BB 05 00 90 00 34 [11:02:14]RAPDU: 90 00 [11:02:14]wFMCommunicate OK [11:02:14]wFMCommunicate request_size=255 [11:02:14]MH_SAM_APDU [11:02:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 B6 EE 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D9 40 01 00 35 04 06 00 36 [11:02:14]Write to MH i2c: E2 02 01 BC 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 B6 EE 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D9 40 01 00 35 04 06 00 36 00 00 9C [11:02:14]Write i2c OK [11:02:14]MH_I2C_Read... [11:02:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:15]Read from MH i2c: E2 [11:02:15]MH_I2C_Read... [11:02:15]Read from MH i2c: E2 03 00 [11:02:15]MH_I2C_Read... [11:02:15]Read from MH i2c: E2 03 00 BC 05 00 90 00 35 [11:02:15]RAPDU: 90 00 [11:02:15]wFMCommunicate OK [11:02:15]wFMCommunicate request_size=10 [11:02:15]MH_SAM_APDU [11:02:15]CAPDU: 80 0D 02 02 05 5C D8 73 41 43 [11:02:15]Write to MH i2c: E2 0D 00 BD 05 80 0D 02 02 05 00 5C D8 73 41 43 00 00 71 [11:02:15]Write i2c OK [11:02:15]MH_I2C_Read... [11:02:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:15]Read from MH i2c: E2 [11:02:15]MH_I2C_Read... [11:02:15]Read from MH i2c: E2 03 00 [11:02:15]MH_I2C_Read... [11:02:15]Read from MH i2c: E2 03 00 BD 05 00 90 00 36 [11:02:15]RAPDU: 90 00 [11:02:15]wFMCommunicate OK [11:02:15]wFMCommunicate request_size=4 [11:02:15]MH_SAM_APDU [11:02:15]CAPDU: 80 0D 03 02 [11:02:15]Write to MH i2c: E2 08 00 BE 05 80 0D 03 02 00 00 00 00 3E [11:02:15]Write i2c OK [11:02:15]MH_I2C_Read... [11:02:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:15]Read from MH i2c: E2 [11:02:15]MH_I2C_Read... [11:02:15]Read from MH i2c: E2 0B 00 [11:02:15]MH_I2C_Read... [11:02:15]Read from MH i2c: E2 0B 00 BE 05 00 10 E8 7F D4 41 4E 6A 7C 90 00 FF [11:02:15]RAPDU: 10 E8 7F D4 41 4E 6A 7C 90 00 [11:02:15]wFMCommunicate OK [11:02:15]SAM_PROTO_SignData done [11:02:15]FM_MakeSignedData done [11:02:15]CreateOFDProtocolMessage [11:02:15]wFMCommunicate request_size=4 [11:02:15]MH_SAM_APDU [11:02:15]CAPDU: 80 11 00 00 [11:02:15]Write to MH i2c: E2 08 00 BF 05 80 11 00 00 00 00 00 00 3E [11:02:15]Write i2c OK [11:02:15]MH_I2C_Read... [11:02:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:15]Read from MH i2c: E2 [11:02:15]MH_I2C_Read... [11:02:15]Read from MH i2c: E2 17 00 [11:02:15]MH_I2C_Read... [11:02:15]Read from MH i2c: E2 17 00 BF 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 90 [11:02:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:02:15]wFMCommunicate OK [11:02:15]CreateOFDProtocolMessage done [11:02:15]OFDSenderStorePacket 82137 [11:02:15]StoreOFDPacket docnum=82137 [11:02:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 6A 92 07 01 44 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 B6 EE 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D9 40 01 00 35 04 06 00 36 5C D8 73 41 43 10 E8 7F D4 41 4E 6A 7C [11:02:15]CheckFolder [11:02:15]dirname=/storage/ofd_packets [11:02:15]CheckFolder done [11:02:15]ProducePacketName [11:02:15]name=ofd_packets/00082137 [11:02:15]NVStorageSaveData ofd_packets/00082137 [11:02:15]File name is /storage/ofd_packets/00082137 [11:02:15]Write 301 bytes [11:02:15]NVStorageSaveData done [11:02:15]OFDSenderStorePacket done [11:02:15]KKMCreateOFDPacket done [11:02:15]NVStorageSaveData kkm_last_timestamp [11:02:15]File name is /storage/kkm_last_timestamp [11:02:15]Write 4 bytes [11:02:15]NVStorageSaveData done [11:02:15]ExternCall_PrintAddStr [11:02:15]wPrintStart [11:02:15]Write to MH i2c: 01 00 00 C0 05 C5 [11:02:15]Write i2c OK [11:02:15]MH_I2C_Read... [11:02:15]Read from MH i2c: 01 [11:02:15]MH_I2C_Read... [11:02:15]Read from MH i2c: 01 07 00 [11:02:15]MH_I2C_Read... [11:02:15]Read from MH i2c: 01 07 00 C0 05 00 00 00 00 00 FF 0F DA [11:02:15]RasterBufferAndPrint [11:02:15]line Счет N : (1)918643 [11:02:15]line ИНН: 02508201610067 [11:02:15]line Контрольно-Кассовый Чек [11:02:15]line ПРОДАЖА [11:02:15]line ТРК (МРК, ГНК) : 12 [11:02:15]line Товар: 2710124500 [11:02:15]line Аи-95-К-5 [11:02:15]line 13.480 * 74.20 [11:02:15]line = 1000.22 [11:02:15]line НДС 12% НСП 1% [11:02:15]line > о реализуемом товаре [11:02:15]line ОКРУГЛЕНИЕ: -0.22 [11:02:15]line ИТОГО: 1000.00 [11:02:15]line Внесено: 1000.00 [11:02:15]line СДАЧА: 0.00 [11:02:15]line НСП 1% : 8.85 [11:02:15]line НДС 12% : 106.22 [11:02:15]line Наличными: 1000.00 [11:02:15]line Безнал.: 0.00 [11:02:15]line Место: АЗС № 114 "Партнер Нефть" [11:02:15]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:02:15]line СНО: Общий режим [11:02:15]line Чек 63 17.10.2024 11:02 [11:02:15]line Смена: 525 ФФД: 1.0 [11:02:15]line ЗНМ: 0300000086 [11:02:15]line РНМ: 0000000000091680 [11:02:15]line Версия ККМ: 001 [11:02:15]line ФМ: 0000000000871843 [11:02:15]line ФД: 82137 [11:02:15]line ФПД: 59772396323139 [11:02:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T110214&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82137&fm=59772396323139&tin=02508201610067®Number=0000000000091680&sum=100000 [11:02:15]OFD Sender: Processing packet 82137 [packets to send 254, broken 253] [11:02:15]ProducePacketName [11:02:15]name=ofd_packets/00082137 [11:02:15]OFD Sender: To server: pG, [11:02:15]CommunicateWithHost lk.salyk.kg:30040 [11:02:15]ConnectInit lk.salyk.kg [11:02:15]written 0, free lines is 4095 [11:02:15]Write to MH i2c: 01 00 00 EB 05 F0 [11:02:15]Write i2c OK [11:02:15]MH_I2C_Read... [11:02:15]Read from MH i2c: 01 [11:02:15]MH_I2C_Read... [11:02:15]Read from MH i2c: 01 07 00 [11:02:15]MH_I2C_Read... [11:02:15]Read from MH i2c: 01 07 00 EB 05 00 00 00 00 00 DA 0C DD [11:02:15]RasterBufferAndPrint [11:02:15]line [11:02:15]line [11:02:15]line [11:02:15]line [11:02:15]line [11:02:15]written 0, free lines is 3297 [11:02:16]MH_Cut [11:02:16]Write to MH i2c: D1 01 00 F2 05 01 C9 [11:02:16]Write i2c OK [11:02:16]MH_I2C_Read... [11:02:16]Read from MH i2c: D1 [11:02:16]MH_I2C_Read... [11:02:16]Read from MH i2c: D1 01 00 [11:02:16]MH_I2C_Read... [11:02:16]Read from MH i2c: D1 01 00 F2 05 00 C8 [11:02:16]Write to MH i2c: 01 00 00 F3 05 F8 [11:02:16]Write i2c OK [11:02:16]MH_I2C_Read... [11:02:16]*** Cut start [11:02:16]*** Partial cut [11:02:16]*** CUTSNS_PIN = 1 [11:02:16]*** CUTSNS_PIN = 0 [11:02:16]Connected sock=11 [11:02:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 6A 92 07 01 44 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 B6 EE 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D9 40 01 00 35 04 06 00 36 5C D8 73 41 43 10 E8 7F D4 41 4E 6A 7C [11:02:17]*** Brake cut motor [11:02:17]Read from MH i2c: 01 [11:02:17]MH_I2C_Read... [11:02:17]*** Stop cut motor [11:02:17]*** Cut end [11:02:17]Read from MH i2c: 01 07 00 [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: 01 07 00 F3 05 00 00 00 00 00 FF 0F 0D [11:02:17]process_action close_receipt done [11:02:17]requested_data is exist [11:02:17]produce_requested_data [11:02:17]requested_item fm.sn is exist - process it [11:02:17]wFMCommunicate request_size=4 [11:02:17]MH_SAM_APDU [11:02:17]CAPDU: 80 11 00 00 [11:02:17]Write to MH i2c: E2 08 00 F4 05 80 11 00 00 00 00 00 00 73 [11:02:17]Write i2c OK [11:02:17]MH_I2C_Read... [11:02:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:17]Read from MH i2c: E2 [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: E2 17 00 [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: E2 17 00 F4 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C5 [11:02:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:02:17]wFMCommunicate OK [11:02:17]requested_item fd.num is exist - process it [11:02:17]SAM_PROTO_GetFieldsCounters [11:02:17]wFMCommunicate request_size=4 [11:02:17]MH_SAM_APDU [11:02:17]CAPDU: 80 13 00 00 [11:02:17]Write to MH i2c: E2 08 00 F5 05 80 13 00 00 00 00 00 00 76 [11:02:17]Write i2c OK [11:02:17]MH_I2C_Read... [11:02:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:17]Read from MH i2c: E2 [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: E2 62 00 [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: E2 62 00 F5 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D9 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [11:02:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D9 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:02:17]wFMCommunicate OK [11:02:17]SAM_PROTO_GetFieldsCounters done [11:02:17]requested_item shift.num is exist - process it [11:02:17]requested_item shift.opened is exist - process it [11:02:17]req_shift_opened [11:02:17]FM_GetShiftState [11:02:17]SAM_PROTO_GetShiftState [11:02:17]wFMCommunicate request_size=4 [11:02:17]MH_SAM_APDU [11:02:17]CAPDU: 80 13 01 00 [11:02:17]Write to MH i2c: E2 08 00 F6 05 80 13 01 00 00 00 00 00 78 [11:02:17]Write i2c OK [11:02:17]MH_I2C_Read... [11:02:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:17]Read from MH i2c: E2 [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: E2 0E 00 [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: E2 0E 00 F6 05 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 80 [11:02:17]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [11:02:17]wFMCommunicate OK [11:02:17]SAM_PROTO_GetShiftState done [11:02:17]FM_GetShiftState done [11:02:17]req_shift_opened done [11:02:17]requested_item shift.open_date is exist - process it [11:02:17]req_shift_open_date [11:02:17]req_shift_open_date done [11:02:17]produce_requested_data done [11:02:17]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82137,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [11:02:17]process_action_free close_receipt [11:02:17]json_value_free [11:02:17]json_value_free done [11:02:17]process_json_proto returns [11:02:17]Send response to host [11:02:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82137,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [11:02:17]free response buf [11:02:17]execute_script done [11:02:17]execute_script returns [11:02:17]free content buf [11:02:17]Sock 9.Close socket [11:02:17]Sock 9.Thread stoped [11:02:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 12 D5 47 00 6F 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D9 40 01 00 F4 03 04 00 F6 93 10 67 B6 04 01 00 00 5C E3 34 94 DA 37 A0 B1 [11:02:17]CommunicateWithHost err = 0 [11:02:17]CheckOFDResponse [11:02:17]1017 (14) - 77093643461234 [11:02:17]1041 (16) - 0000000000871843 [11:02:17]1040 (4) - 82137 [11:02:17]1012 (4) - 17.10.2024 04:35 [11:02:17]1206 (1) - 0 [11:02:17]OFD Sender: Remove packet 82137 [11:02:17]ProducePacketName [11:02:17]name=ofd_packets/00082137 [11:02:17]NVStorageDeleteData [11:02:18]OFD Sender: No OFD packet to send [11:02:23]OFD Sender: No OFD packet to send [11:02:28]OFD Sender: No OFD packet to send [11:02:33]OFD Sender: No OFD packet to send [11:02:37]recv_with_timeout no data received [11:02:38]OFD Sender: No OFD packet to send [11:02:43]OFD Sender: No OFD packet to send [11:02:48]OFD Sender: No OFD packet to send [11:02:53]OFD Sender: No OFD packet to send [11:02:58]OFD Sender: No OFD packet to send [11:03:03]OFD Sender: No OFD packet to send [11:03:08]OFD Sender: No OFD packet to send [11:03:13]OFD Sender: No OFD packet to send [11:03:18]OFD Sender: No OFD packet to send [11:03:21]recv_with_timeout no data received [11:03:23]OFD Sender: No OFD packet to send [11:03:28]OFD Sender: No OFD packet to send [11:03:33]OFD Sender: No OFD packet to send [11:03:38]OFD Sender: No OFD packet to send [11:03:43]OFD Sender: No OFD packet to send [11:03:48]OFD Sender: No OFD packet to send [11:03:53]recv_with_timeout no data received [11:03:53]OFD Sender: No OFD packet to send [11:03:58]OFD Sender: No OFD packet to send [11:04:03]OFD Sender: No OFD packet to send [11:04:08]OFD Sender: No OFD packet to send [11:04:10]recv_with_timeout no data received [11:04:11]accept exits with 10 [11:04:11]New connection [11:04:11]New thread 3066658148 created [11:04:11]Thread 3066514788 joined [11:04:11]Waiting for new connection... [11:04:11] Sock 10.Parse request [11:04:11]Sock 10.Check first char [11:04:11]Sock 10.First char is OK [11:04:11]request: POST /json_proto HTTP/1.0 [11:04:11]Method: POST [11:04:11]URL: /json_proto [11:04:11]Method is POST - this is cgi request [11:04:11]url: /json_proto [11:04:11]query_string will be loaded in cgi processing [11:04:11]execute_cgi json_proto POST (null) [11:04:11]execute_cgi path=json_proto method=POST [11:04:11]POST find Content-Length [11:04:11]Host: 172.17.44.67:8080 [11:04:11]Content-Length: 677 [11:04:11]Content-Type: application/json [11:04:11] [11:04:11]POST finish read [11:04:11]Found Content-Length = 677 [11:04:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:11]execute_script... [11:04:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:11]POST & json_proto [11:04:11]process_json_proto [11:04:11]json parsed OK: [11:04:11]protocol is kg_v1.0 [11:04:11]action value=close_receipt [11:04:11]process_action close_receipt [11:04:11]cmd_close_receipt [11:04:11]MH_GetDate [11:04:11]Write to MH i2c: F0 00 00 F7 05 EB [11:04:11]Write i2c OK [11:04:11]MH_I2C_Read... [11:04:11]Read from MH i2c: F0 [11:04:11]MH_I2C_Read... [11:04:11]Read from MH i2c: F0 09 00 [11:04:11]MH_I2C_Read... [11:04:11]Read from MH i2c: F0 09 00 F7 05 00 2C EF 10 67 F1 C7 6B 64 0D [11:04:11]GetLastDocTimeStamp 1729162934 [11:04:11]current date 1729163052 [11:04:11]FM_GetShiftState [11:04:11]SAM_PROTO_GetShiftState [11:04:11]wFMCommunicate request_size=4 [11:04:11]MH_SAM_APDU [11:04:11]CAPDU: 80 13 01 00 [11:04:11]Write to MH i2c: E2 08 00 F8 05 80 13 01 00 00 00 00 00 7A [11:04:11]Write i2c OK [11:04:11]MH_I2C_Read... [11:04:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:11]Read from MH i2c: E2 [11:04:11]MH_I2C_Read... [11:04:11]Read from MH i2c: E2 0E 00 [11:04:11]MH_I2C_Read... [11:04:11]Read from MH i2c: E2 0E 00 F8 05 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 82 [11:04:11]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [11:04:11]wFMCommunicate OK [11:04:11]SAM_PROTO_GetShiftState done [11:04:11]FM_GetShiftState done [11:04:11]opened in 1729125927 [11:04:11]opened+sec_in_day 1729212327 [11:04:11]quantity*price = 50041 [11:04:11]sum+1 = 50042 [11:04:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 64 17.10.2024 11:04 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82138 ФПД: 255512231536852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T110412&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82138&fm=255512231536852&tin=02508201610067®Number=0000000000091680&sum=50000 [11:04:12]StoreToDocumentArchive [11:04:12]shift 525 fd 82138 [11:04:12]save to /storage/0525/doc_00082138 [11:04:12]save last doc name /storage/0525/doc_00082138 to /storage/kkm_last_doc_name [11:04:12]save OK [11:04:12]Clear old archive folders... [11:04:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:04:12]tlvbuf is 00AD58B0 [11:04:12]SAM_PROTO_ClearQueue [11:04:12]wFMCommunicate request_size=4 [11:04:12]MH_SAM_APDU [11:04:12]CAPDU: 80 09 00 00 [11:04:12]Write to MH i2c: E2 08 00 05 06 80 09 00 00 00 00 00 00 7D [11:04:12]Write i2c OK [11:04:12]MH_I2C_Read... [11:04:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:04:12]Read from MH i2c: E2 [11:04:12]MH_I2C_Read... [11:04:12]Read from MH i2c: E2 03 00 [11:04:12]MH_I2C_Read... [11:04:12]Read from MH i2c: E2 03 00 05 06 00 90 00 7F [11:04:12]RAPDU: 90 00 [11:04:12]wFMCommunicate OK [11:04:12]SAM_PROTO_ClearQueue done [11:04:12]KKMCreateOFDPacket [11:04:12]OFDProtocolAddRootSTLVToBuf [11:04:12]FM_MakeSignedData [11:04:12]FM_MakeSignedData [11:04:12]SAM_PROTO_SignData [11:04:12]wFMCommunicate request_size=4 [11:04:12]MH_SAM_APDU [11:04:12]CAPDU: 80 0D 01 02 [11:04:12]Write to MH i2c: E2 08 00 06 06 80 0D 01 02 00 00 00 00 85 [11:04:12]Write i2c OK [11:04:12]MH_I2C_Read... [11:04:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:04:12]Read from MH i2c: E2 [11:04:12]MH_I2C_Read... [11:04:12]Read from MH i2c: E2 03 00 [11:04:12]MH_I2C_Read... [11:04:12]Read from MH i2c: E2 03 00 06 06 00 90 00 80 [11:04:12]RAPDU: 90 00 [11:04:12]wFMCommunicate OK [11:04:12]wFMCommunicate request_size=255 [11:04:12]MH_SAM_APDU [11:04:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 2C EF 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DA 40 01 00 35 04 06 00 E8 [11:04:12]Write to MH i2c: E2 02 01 07 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 2C EF 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DA 40 01 00 35 04 06 00 E8 00 00 F5 [11:04:12]Write i2c OK [11:04:12]MH_I2C_Read... [11:04:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:12]Read from MH i2c: E2 [11:04:12]MH_I2C_Read... [11:04:12]Read from MH i2c: E2 03 00 [11:04:12]MH_I2C_Read... [11:04:12]Read from MH i2c: E2 03 00 07 06 00 90 00 81 [11:04:12]RAPDU: 90 00 [11:04:12]wFMCommunicate OK [11:04:12]wFMCommunicate request_size=10 [11:04:12]MH_SAM_APDU [11:04:12]CAPDU: 80 0D 02 02 05 63 13 CB E8 D4 [11:04:12]Write to MH i2c: E2 0D 00 08 06 80 0D 02 02 05 00 63 13 CB E8 D4 00 00 8F [11:04:12]Write i2c OK [11:04:12]MH_I2C_Read... [11:04:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:12]Read from MH i2c: E2 [11:04:12]MH_I2C_Read... [11:04:12]Read from MH i2c: E2 03 00 [11:04:12]MH_I2C_Read... [11:04:12]Read from MH i2c: E2 03 00 08 06 00 90 00 82 [11:04:12]RAPDU: 90 00 [11:04:12]wFMCommunicate OK [11:04:12]wFMCommunicate request_size=4 [11:04:12]MH_SAM_APDU [11:04:12]CAPDU: 80 0D 03 02 [11:04:12]Write to MH i2c: E2 08 00 09 06 80 0D 03 02 00 00 00 00 8A [11:04:12]Write i2c OK [11:04:12]MH_I2C_Read... [11:04:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:04:12]Read from MH i2c: E2 [11:04:12]MH_I2C_Read... [11:04:12]Read from MH i2c: E2 0B 00 [11:04:12]MH_I2C_Read... [11:04:12]Read from MH i2c: E2 0B 00 09 06 00 BF D9 66 AE 06 6B 96 2D 90 00 6B [11:04:12]RAPDU: BF D9 66 AE 06 6B 96 2D 90 00 [11:04:12]wFMCommunicate OK [11:04:12]SAM_PROTO_SignData done [11:04:12]FM_MakeSignedData done [11:04:12]CreateOFDProtocolMessage [11:04:12]wFMCommunicate request_size=4 [11:04:12]MH_SAM_APDU [11:04:12]CAPDU: 80 11 00 00 [11:04:12]Write to MH i2c: E2 08 00 0A 06 80 11 00 00 00 00 00 00 8A [11:04:12]Write i2c OK [11:04:12]MH_I2C_Read... [11:04:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:12]Read from MH i2c: E2 [11:04:12]MH_I2C_Read... [11:04:12]Read from MH i2c: E2 17 00 [11:04:12]MH_I2C_Read... [11:04:12]Read from MH i2c: E2 17 00 0A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DC [11:04:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:04:12]wFMCommunicate OK [11:04:12]CreateOFDProtocolMessage done [11:04:12]OFDSenderStorePacket 82138 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 53 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725AE (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 44378435+1684785137=1729163572 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 54 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 35 F1 10 67 F1 C7 6B 64 23 [11:12:53]Current date/time: 17.10.2024 11:12 [11:12:53]FM_Init [11:12:53]wFMConnect [11:12:53]MH_SAM_On [11:12:53]Write to MH i2c: E0 00 00 08 00 E7 [11:12:53]Write i2c OK [11:12:53]MH_I2C_Read... [11:12:53]*** iso7816_init finished! [11:12:53]*** atr: [11:12:53]*** 0F 3B D5 18 FF 81 91 FE [11:12:53]*** 1F C3 80 73 C8 21 10 0A [11:12:53]*** 00 00 00 00 00 00 00 00 [11:12:53]*** 00 00 00 00 00 00 00 00 [11:12:53]*** 00 00 00 00 00 00 00 00 [11:12:53]*** 00 00 00 00 00 00 00 00 [11:12:53]*** 00 00 00 00 00 00 00 00 [11:12:53]*** 00 00 00 00 00 00 00 00 [11:12:53]Read from MH i2c: E0 [11:12:53]MH_I2C_Read... [11:12:53]Read from MH i2c: E0 10 00 [11:12:53]MH_I2C_Read... [11:12:53]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [11:12:53]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [11:12:53]wFMCommunicate request_size=10 [11:12:53]MH_SAM_APDU [11:12:53]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [11:12:53]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [11:12:53]Write i2c OK [11:12:53]MH_I2C_Read... [11:12:53]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [11:12:53]Read from MH i2c: E2 [11:12:53]MH_I2C_Read... [11:12:53]Read from MH i2c: E2 03 00 [11:12:53]MH_I2C_Read... [11:12:53]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [11:12:53]RAPDU: 90 00 [11:12:53]wFMCommunicate OK [11:12:53]wFMCommunicate request_size=4 [11:12:53]MH_SAM_APDU [11:12:53]CAPDU: 80 11 00 00 [11:12:53]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [11:12:53]Write i2c OK [11:12:53]MH_I2C_Read... [11:12:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:53]Read from MH i2c: E2 [11:12:53]MH_I2C_Read... [11:12:53]Read from MH i2c: E2 17 00 [11:12:53]MH_I2C_Read... [11:12:53]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D6 [11:12:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:12:53]wFMCommunicate OK [11:12:53]Detected FM SN is 0000000000871843 [11:12:53]Stored FM SN is 0000000000871843 [11:12:53]wFMCommunicate request_size=9 [11:12:53]MH_SAM_APDU [11:12:53]CAPDU: 80 16 00 00 04 C3 A3 00 00 [11:12:53]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 C3 A3 00 00 00 00 F8 [11:12:53]Write i2c OK [11:12:53]MH_I2C_Read... [11:12:53]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [11:12:53]Read from MH i2c: E2 [11:12:53]MH_I2C_Read... [11:12:53]Read from MH i2c: E2 03 00 [11:12:53]MH_I2C_Read... [11:12:53]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [11:12:53]RAPDU: 90 00 [11:12:53]wFMCommunicate OK [11:12:53]FM PIN OK [11:12:53]wFMCommunicate request_size=8 [11:12:53]MH_SAM_APDU [11:12:53]CAPDU: 80 14 04 00 03 02 00 01 [11:12:53]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [11:12:53]Write i2c OK [11:12:53]MH_I2C_Read... [11:12:53]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [11:12:53]Read from MH i2c: E2 [11:12:53]MH_I2C_Read... [11:12:53]Read from MH i2c: E2 03 00 [11:12:53]MH_I2C_Read... [11:12:53]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [11:12:53]RAPDU: 90 00 [11:12:53]wFMCommunicate OK [11:12:53]wFMCommunicate request_size=13 [11:12:53]MH_SAM_APDU [11:12:53]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [11:12:53]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [11:12:53]Write i2c OK [11:12:53]MH_I2C_Read... [11:12:53]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [11:12:53]Read from MH i2c: E2 [11:12:53]MH_I2C_Read... [11:12:53]Read from MH i2c: E2 03 00 [11:12:53]MH_I2C_Read... [11:12:53]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [11:12:53]RAPDU: 90 00 [11:12:53]wFMCommunicate OK [11:12:53]wFMCommunicate request_size=4 [11:12:53]MH_SAM_APDU [11:12:53]CAPDU: 80 11 00 00 [11:12:53]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [11:12:53]Write i2c OK [11:12:53]MH_I2C_Read... [11:12:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:53]Read from MH i2c: E2 [11:12:53]MH_I2C_Read... [11:12:53]Read from MH i2c: E2 17 00 [11:12:53]MH_I2C_Read... [11:12:53]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DA [11:12:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:12:53]wFMCommunicate OK [11:12:53]DocumentArchiveInit [11:12:53]Start Httpd... [11:12:53]Httpd thread 3067432292 created [11:12:53]Write to MH i2c: 01 00 00 0F 00 0F [11:12:53]Write i2c OK [11:12:53]MH_I2C_Read... [11:12:53]Read from MH i2c: 01 [11:12:53]MH_I2C_Read... [11:12:53]Read from MH i2c: 01 07 00 [11:12:53]MH_I2C_Read... [11:12:53]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [11:12:53]MH Int Process started [11:12:53]Allocated Socket 8 [11:12:53]Bind OK [11:12:53]Listen OK [11:12:53]httpd running on port 8080 [11:12:53]Waiting for new connection... [11:12:53]OFD Sender: Processing packet 82138 [packets to send 255, broken 253] [11:12:53]ProducePacketName [11:12:53]name=ofd_packets/00082138 [11:12:53]OFD Sender: To server: pG, [11:12:53]CommunicateWithHost lk.salyk.kg:30040 [11:12:53]ConnectInit lk.salyk.kg [11:12:54]accept exits with 9 [11:12:54]New connection [11:12:54]New thread 3067145572 created [11:12:54]Waiting for new connection... [11:12:54] Sock 9.Parse request [11:12:54]Sock 9.Check first char [11:12:54]Sock 9.First char is OK [11:12:54]request: POST /json_proto HTTP/1.0 [11:12:54]Method: POST [11:12:54]URL: /json_proto [11:12:54]Method is POST - this is cgi request [11:12:54]url: /json_proto [11:12:54]query_string will be loaded in cgi processing [11:12:54]execute_cgi json_proto POST (null) [11:12:54]execute_cgi path=json_proto method=POST [11:12:54]POST find Content-Length [11:12:54]Host: 172.17.44.67:8080 [11:12:54]Content-Length: 215 [11:12:54]Content-Type: application/json [11:12:54] [11:12:54]POST finish read [11:12:54]Found Content-Length = 215 [11:12:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:54]execute_script... [11:12:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:54]POST & json_proto [11:12:54]process_json_proto [11:12:54]json parsed OK: [11:12:54]protocol is kg_v1.0 [11:12:54]action value=get_value [11:12:54]process_action get_value [11:12:54]cmd_get_value [11:12:54]process_action get_value done [11:12:54]requested_data is exist [11:12:54]produce_requested_data [11:12:54]requested_item kkm.sn is exist - process it [11:12:54]requested_item kkm.ver is exist - process it [11:12:54]requested_item fm.sn is exist - process it [11:12:54]wFMCommunicate request_size=4 [11:12:54]MH_SAM_APDU [11:12:54]CAPDU: 80 11 00 00 [11:12:54]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [11:12:54]Write i2c OK [11:12:54]MH_I2C_Read... [11:12:54]Connected sock=7 [11:12:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 5A B3 07 01 A9 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 2C EF 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DA 40 01 00 35 04 06 00 E8 63 13 CB E8 D4 BF D9 66 AE 06 6B 96 2D [11:12:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:54]Read from MH i2c: E2 [11:12:54]MH_I2C_Read... [11:12:54]Read from MH i2c: E2 17 00 [11:12:54]MH_I2C_Read... [11:12:54]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DC [11:12:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:12:54]wFMCommunicate OK [11:12:54]requested_item fd.num is exist - process it [11:12:54]SAM_PROTO_GetFieldsCounters [11:12:54]wFMCommunicate request_size=4 [11:12:54]MH_SAM_APDU [11:12:54]CAPDU: 80 13 00 00 [11:12:54]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [11:12:54]Write i2c OK [11:12:54]MH_I2C_Read... [11:12:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:54]Read from MH i2c: E2 [11:12:54]MH_I2C_Read... [11:12:54]Read from MH i2c: E2 62 00 [11:12:54]MH_I2C_Read... [11:12:54]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 DB 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [11:12:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 DB 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:12:54]wFMCommunicate OK [11:12:54]SAM_PROTO_GetFieldsCounters done [11:12:54]requested_item shift.num is exist - process it [11:12:54]requested_item shift.opened is exist - process it [11:12:54]req_shift_opened [11:12:54]FM_GetShiftState [11:12:54]SAM_PROTO_GetShiftState [11:12:54]wFMCommunicate request_size=4 [11:12:54]MH_SAM_APDU [11:12:54]CAPDU: 80 13 01 00 [11:12:54]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [11:12:54]Write i2c OK [11:12:54]MH_I2C_Read... [11:12:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:54]Read from MH i2c: E2 [11:12:54]MH_I2C_Read... [11:12:54]Read from MH i2c: E2 0E 00 [11:12:54]MH_I2C_Read... [11:12:54]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 97 [11:12:54]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [11:12:54]wFMCommunicate OK [11:12:54]SAM_PROTO_GetShiftState done [11:12:54]FM_GetShiftState done [11:12:54]req_shift_opened done [11:12:54]requested_item shift.open_date is exist - process it [11:12:54]req_shift_open_date [11:12:54]req_shift_open_date done [11:12:54]produce_requested_data done [11:12:54]produce_requested_data return {"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82139,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [11:12:54]process_action_free get_value [11:12:54]json_value_free [11:12:54]json_value_free done [11:12:54]process_json_proto returns [11:12:54]Send response to host [11:12:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82139,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [11:12:54]free response buf [11:12:54]execute_script done [11:12:54]execute_script returns [11:12:54]free content buf [11:12:54]Sock 9.Close socket [11:12:54]Sock 9.Thread stoped [11:12:54]accept exits with 10 [11:12:54]New connection [11:12:54]New thread 3067002212 created [11:12:54]Thread 3067145572 joined [11:12:54]Waiting for new connection... [11:12:54] Sock 10.Parse request [11:12:54]Sock 10.Check first char [11:12:54]Sock 10.First char is OK [11:12:54]request: POST /json_proto HTTP/1.0 [11:12:54]Method: POST [11:12:54]URL: /json_proto [11:12:54]Method is POST - this is cgi request [11:12:54]url: /json_proto [11:12:54]query_string will be loaded in cgi processing [11:12:54]execute_cgi json_proto POST (null) [11:12:54]execute_cgi path=json_proto method=POST [11:12:54]POST find Content-Length [11:12:54]Host: 172.17.44.67:8080 [11:12:54]Content-Length: 331 [11:12:54]Content-Type: application/json [11:12:54] [11:12:54]POST finish read [11:12:54]Found Content-Length = 331 [11:12: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" ] } } [11:12:55]execute_script... [11:12: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" ] } } [11:12:55]POST & json_proto [11:12:55]process_json_proto [11:12:55]json parsed OK: [11:12:55]protocol is kg_v1.0 [11:12:55]action value=get_value [11:12:55]process_action get_value [11:12:55]cmd_get_value [11:12:55]process_action get_value done [11:12:55]requested_data is exist [11:12:55]produce_requested_data [11:12:55]requested_item fm.sale.total is exist - process it [11:12:55]SAM_PROTO_GetFMData [11:12:55]wFMCommunicate request_size=4 [11:12:55]MH_SAM_APDU [11:12:55]CAPDU: 80 13 03 00 [11:12:55]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [11:12:55]Write i2c OK [11:12:55]MH_I2C_Read... [11:12:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 13 D4 47 00 19 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DA 40 01 00 F4 03 04 00 73 96 10 67 B6 04 01 00 00 68 AD B0 28 A2 9F 11 75 [11:12:55]CommunicateWithHost err = 0 [11:12:55]CheckOFDResponse [11:12:55]1017 (14) - 77093643461234 [11:12:55]1041 (16) - 0000000000871843 [11:12:55]1040 (4) - 82138 [11:12:55]1012 (4) - 17.10.2024 04:45 [11:12:55]1206 (1) - 0 [11:12:55]OFD Sender: Remove packet 82138 [11:12:55]ProducePacketName [11:12:55]name=ofd_packets/00082138 [11:12:55]NVStorageDeleteData [11:12:55]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:12:55]Read from MH i2c: E2 [11:12:55]MH_I2C_Read... [11:12:55]Read from MH i2c: E2 FD 00 [11:12:55]MH_I2C_Read... [11:12:55]Read from MH i2c: E2 FD 00 13 00 00 C7 04 85 04 C3 04 6E 04 04 00 C1 3C 01 00 69 04 A3 00 6F 04 04 00 2B 3A 01 00 B1 04 05 00 0D B4 B2 7A 01 70 04 05 00 54 25 B8 40 01 72 04 04 00 B9 8E FA 39 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 3F B8 3A 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BA 26 5A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 96 02 00 00 B1 04 04 00 D0 2C 09 13 70 04 04 00 68 EA 08 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6A 89 05 02 EF 90 00 47 [11:12:55]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 C1 3C 01 00 69 04 A3 00 6F 04 04 00 2B 3A 01 00 B1 04 05 00 0D B4 B2 7A 01 70 04 05 00 54 25 B8 40 01 72 04 04 00 B9 8E FA 39 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 3F B8 3A 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BA 26 5A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 96 02 00 00 B1 04 04 00 D0 2C 09 13 70 04 04 00 68 EA 08 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6A 89 05 02 EF 90 00 [11:12:55]wFMCommunicate OK [11:12:55]wFMCommunicate request_size=4 [11:12:55]MH_SAM_APDU [11:12:55]CAPDU: 80 17 00 00 [11:12:55]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [11:12:55]Write i2c OK [11:12:55]MH_I2C_Read... [11:12:55]OFD Sender: Processing packet 82139 [packets to send 254, broken 253] [11:12:55]ProducePacketName [11:12:55]name=ofd_packets/00082139 [11:12:55]OFD Sender: To server: pG, [11:12:55]CommunicateWithHost lk.salyk.kg:30040 [11:12:55]ConnectInit lk.salyk.kg [11:12:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:12:55]Read from MH i2c: E2 [11:12:55]MH_I2C_Read... [11:12:55]Read from MH i2c: E2 FD 00 [11:12:55]MH_I2C_Read... [11:12:55]Read from MH i2c: E2 FD 00 14 00 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 85 20 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 90 00 71 [11:12:55]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 85 20 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 90 00 [11:12:55]wFMCommunicate OK [11:12:55]wFMCommunicate request_size=4 [11:12:55]MH_SAM_APDU [11:12:55]CAPDU: 80 17 00 00 [11:12:55]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [11:12:55]Write i2c OK [11:12:55]MH_I2C_Read... [11:12:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:12:56]Read from MH i2c: E2 [11:12:56]MH_I2C_Read... [11:12:56]Read from MH i2c: E2 FD 00 [11:12:56]MH_I2C_Read... [11:12:56]Read from MH i2c: E2 FD 00 15 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 6D [11:12:56]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [11:12:56]wFMCommunicate OK [11:12:56]wFMCommunicate request_size=4 [11:12:56]MH_SAM_APDU [11:12:56]CAPDU: 80 17 00 00 [11:12:56]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [11:12:56]Write i2c OK [11:12:56]MH_I2C_Read... [11:12:56]Connected sock=7 [11:12:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 6A 98 07 01 AB 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 3E EF 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DB 40 01 00 35 04 06 00 2B 8B 73 D0 D9 7F 7F D2 8B 76 E1 34 E7 13 [11:12:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:12:56]Read from MH i2c: E2 [11:12:56]MH_I2C_Read... [11:12:56]Read from MH i2c: E2 FD 00 [11:12:56]MH_I2C_Read... [11:12:56]Read from MH i2c: E2 FD 00 16 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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 11 [11:12:56]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [11:12:56]wFMCommunicate OK [11:12:56]wFMCommunicate request_size=4 [11:12:56]MH_SAM_APDU [11:12:56]CAPDU: 80 17 00 00 [11:12:56]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [11:12:56]Write i2c OK [11:12:56]MH_I2C_Read... [11:12:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 A5 34 47 00 DE E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DB 40 01 00 F4 03 04 00 74 96 10 67 B6 04 01 00 00 BC BC 87 E5 72 CC C8 55 [11:12:56]CommunicateWithHost err = 0 [11:12:56]CheckOFDResponse [11:12:56]1017 (14) - 77093643461234 [11:12:56]1041 (16) - 0000000000871843 [11:12:56]1040 (4) - 82139 [11:12:56]1012 (4) - 17.10.2024 04:45 [11:12:56]1206 (1) - 0 [11:12:56]OFD Sender: Remove packet 82139 [11:12:56]ProducePacketName [11:12:56]name=ofd_packets/00082139 [11:12:56]NVStorageDeleteData [11:12:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [11:12:56]Read from MH i2c: E2 [11:12:56]MH_I2C_Read... [11:12:56]Read from MH i2c: E2 E4 00 [11:12:56]MH_I2C_Read... [11:12:56]Read from MH i2c: E2 E4 00 17 00 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 77 [11:12:56]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:12:56]wFMCommunicate OK [11:12:56]SAM_PROTO_GetFMData done [11:12:56]requested_item fm.sale_refund.total is exist - process it [11:12:56]requested_item fm.buy.total is exist - process it [11:12:56]requested_item shift.sale.total is exist - process it [11:12:56]SAM_PROTO_GetShiftData [11:12:56]wFMCommunicate request_size=4 [11:12:56]MH_SAM_APDU [11:12:56]CAPDU: 80 13 02 00 [11:12:56]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [11:12:56]Write i2c OK [11:12:56]MH_I2C_Read... [11:12:57]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:12:57]Read from MH i2c: E2 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: E2 FD 00 [11:12:57]MH_I2C_Read... [11:12:57]OFD Sender: No OFD packet to send [11:12:57]Read from MH i2c: E2 FD 00 18 00 00 B8 04 AA 04 B4 04 6E 04 04 00 41 00 00 00 69 04 9B 00 6F 04 04 00 40 00 00 00 B1 04 03 00 F4 1A 28 70 04 03 00 18 56 23 72 04 03 00 DC C4 04 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 97 42 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E0 5A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 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 7A 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 70 [11:12:57]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 41 00 00 00 69 04 9B 00 6F 04 04 00 40 00 00 00 B1 04 03 00 F4 1A 28 70 04 03 00 18 56 23 72 04 03 00 DC C4 04 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 97 42 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E0 5A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 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 7A 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [11:12:57]wFMCommunicate OK [11:12:57]wFMCommunicate request_size=4 [11:12:57]MH_SAM_APDU [11:12:57]CAPDU: 80 17 00 00 [11:12:57]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [11:12:57]Write i2c OK [11:12:57]MH_I2C_Read... [11:12:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:12:57]Read from MH i2c: E2 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: E2 FD 00 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: E2 FD 00 19 00 00 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 33 [11:12:57]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 [11:12:57]wFMCommunicate OK [11:12:57]wFMCommunicate request_size=4 [11:12:57]MH_SAM_APDU [11:12:57]CAPDU: 80 17 00 00 [11:12:57]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [11:12:57]Write i2c OK [11:12:57]MH_I2C_Read... [11:12:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:12:57]Read from MH i2c: E2 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: E2 FD 00 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: E2 FD 00 1A 00 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 3C [11:12:57]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [11:12:58]wFMCommunicate OK [11:12:58]wFMCommunicate request_size=4 [11:12:58]MH_SAM_APDU [11:12:58]CAPDU: 80 17 00 00 [11:12:58]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [11:12:58]Write i2c OK [11:12:58]MH_I2C_Read... [11:12:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:12:58]Read from MH i2c: E2 [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: E2 FD 00 [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: E2 FD 00 1B 00 00 03 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 90 00 24 [11:12:58]RAPDU: 03 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 90 00 [11:12:58]wFMCommunicate OK [11:12:58]wFMCommunicate request_size=4 [11:12:58]MH_SAM_APDU [11:12:58]CAPDU: 80 17 00 00 [11:12:58]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [11:12:58]Write i2c OK [11:12:58]MH_I2C_Read... [11:12:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [11:12:58]Read from MH i2c: E2 [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: E2 D5 00 [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: E2 D5 00 1C 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [11:12:58]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:12:58]wFMCommunicate OK [11:12:58]SAM_PROTO_GetShiftData done [11:12:58]requested_item shift.sale.total_cash is exist - process it [11:12:58]requested_item shift.sale_refund.total is exist - process it [11:12:58]requested_item shift.sale_refund.total_cash is exist - process it [11:12:58]requested_item shift.buy.total is exist - process it [11:12:58]requested_item shift.buy.total_cash is exist - process it [11:12:58]produce_requested_data done [11:12:58]produce_requested_data return {"fm.sale.total":63534991.49,"fm.sale_refund.total":3193684.00,"fm.buy.total":0.00,"shift.sale.total":26283.40,"shift.sale.total_cash":23158.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [11:12:58]process_action_free get_value [11:12:58]json_value_free [11:12:58]json_value_free done [11:12:58]process_json_proto returns [11:12:58]Send response to host [11:12:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":63534991.49,"fm.sale_refund.total":3193684.00,"fm.buy.total":0.00,"shift.sale.total":26283.40,"shift.sale.total_cash":23158.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [11:12:58]free response buf [11:12:58]execute_script done [11:12:58]execute_script returns [11:12:58]free content buf [11:12:58]Sock 10.Close socket [11:12:58]Sock 10.Thread stoped [11:12:59]accept exits with 9 [11:12:59]New connection [11:12:59]New thread 3067145572 created [11:12:59]Thread 3067002212 joined [11:12:59]Waiting for new connection... [11:12:59] Sock 9.Parse request [11:12:59]Sock 9.Check first char [11:12:59]Sock 9.First char is OK [11:12:59]request: POST /json_proto HTTP/1.0 [11:12:59]Method: POST [11:12:59]URL: /json_proto [11:12:59]Method is POST - this is cgi request [11:12:59]url: /json_proto [11:12:59]query_string will be loaded in cgi processing [11:12:59]execute_cgi json_proto POST (null) [11:12:59]execute_cgi path=json_proto method=POST [11:12:59]POST find Content-Length [11:12:59]Host: 172.17.44.67:8080 [11:12:59]Content-Length: 677 [11:12:59]Content-Type: application/json [11:12:59] [11:12:59]POST finish read [11:12:59]Found Content-Length = 677 [11:12:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:59]execute_script... [11:12:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:59]POST & json_proto [11:12:59]process_json_proto [11:12:59]json parsed OK: [11:12:59]protocol is kg_v1.0 [11:12:59]action value=close_receipt [11:12:59]process_action close_receipt [11:12:59]cmd_close_receipt [11:12:59]MH_GetDate [11:12:59]Write to MH i2c: F0 00 00 1D 00 0C [11:12:59]Write i2c OK [11:12:59]MH_I2C_Read... [11:12:59]Read from MH i2c: F0 [11:12:59]MH_I2C_Read... [11:12:59]Read from MH i2c: F0 09 00 [11:12:59]MH_I2C_Read... [11:12:59]Read from MH i2c: F0 09 00 1D 00 00 3B F1 10 67 F1 C7 6B 64 3F [11:12:59]GetLastDocTimeStamp 1729163070 [11:12:59]current date 1729163579 [11:12:59]FM_GetShiftState [11:12:59]SAM_PROTO_GetShiftState [11:12:59]wFMCommunicate request_size=4 [11:12:59]MH_SAM_APDU [11:12:59]CAPDU: 80 13 01 00 [11:12:59]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [11:12:59]Write i2c OK [11:12:59]MH_I2C_Read... [11:12:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:59]Read from MH i2c: E2 [11:12:59]MH_I2C_Read... [11:12:59]Read from MH i2c: E2 0E 00 [11:12:59]MH_I2C_Read... [11:12:59]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 A3 [11:12:59]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [11:12:59]wFMCommunicate OK [11:12:59]SAM_PROTO_GetShiftState done [11:12:59]FM_GetShiftState done [11:12:59]opened in 1729125927 [11:12:59]opened+sec_in_day 1729212327 [11:12:59]quantity*price = 50041 [11:12:59]sum+1 = 50042 [11:12:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 66 17.10.2024 11:12 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82140 ФПД: 25628444583195 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T111259&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82140&fm=25628444583195&tin=02508201610067®Number=0000000000091680&sum=50000 [11:13:00]StoreToDocumentArchive [11:13:00]shift 525 fd 82140 [11:13:00]save to /storage/0525/doc_00082140 [11:13:00]save last doc name /storage/0525/doc_00082140 to /storage/kkm_last_doc_name [11:13:00]save OK [11:13:00]Clear old archive folders... [11:13:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:13:00]tlvbuf is 01D795E0 [11:13:00]SAM_PROTO_ClearQueue [11:13:00]wFMCommunicate request_size=4 [11:13:00]MH_SAM_APDU [11:13:00]CAPDU: 80 09 00 00 [11:13:00]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [11:13:00]Write i2c OK [11:13:00]MH_I2C_Read... [11:13:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:00]Read from MH i2c: E2 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: E2 03 00 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [11:13:00]RAPDU: 90 00 [11:13:00]wFMCommunicate OK [11:13:00]SAM_PROTO_ClearQueue done [11:13:00]KKMCreateOFDPacket [11:13:00]OFDProtocolAddRootSTLVToBuf [11:13:00]FM_MakeSignedData [11:13:00]FM_MakeSignedData [11:13:00]SAM_PROTO_SignData [11:13:00]wFMCommunicate request_size=4 [11:13:00]MH_SAM_APDU [11:13:00]CAPDU: 80 0D 01 02 [11:13:00]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [11:13:00]Write i2c OK [11:13:00]MH_I2C_Read... [11:13:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:00]Read from MH i2c: E2 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: E2 03 00 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [11:13:00]RAPDU: 90 00 [11:13:00]wFMCommunicate OK [11:13:00]wFMCommunicate request_size=255 [11:13:00]MH_SAM_APDU [11:13:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 3B F1 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DC 40 01 00 35 04 06 00 17 [11:13:00]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 3B F1 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DC 40 01 00 35 04 06 00 17 00 00 59 [11:13:00]Write i2c OK [11:13:00]MH_I2C_Read... [11:13:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:01]Read from MH i2c: E2 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: E2 03 00 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [11:13:01]RAPDU: 90 00 [11:13:01]wFMCommunicate OK [11:13:01]wFMCommunicate request_size=10 [11:13:01]MH_SAM_APDU [11:13:01]CAPDU: 80 0D 02 02 05 4F 16 55 E5 1B [11:13:01]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 4F 16 55 E5 1B 00 00 6C [11:13:01]Write i2c OK [11:13:01]MH_I2C_Read... [11:13:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:01]Read from MH i2c: E2 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: E2 03 00 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [11:13:01]RAPDU: 90 00 [11:13:01]wFMCommunicate OK [11:13:01]wFMCommunicate request_size=4 [11:13:01]MH_SAM_APDU [11:13:01]CAPDU: 80 0D 03 02 [11:13:01]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [11:13:01]Write i2c OK [11:13:01]MH_I2C_Read... [11:13:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:01]Read from MH i2c: E2 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: E2 0B 00 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: E2 0B 00 2F 00 00 C2 A2 FB C0 A1 4F 8E 43 90 00 8B [11:13:01]RAPDU: C2 A2 FB C0 A1 4F 8E 43 90 00 [11:13:01]wFMCommunicate OK [11:13:01]SAM_PROTO_SignData done [11:13:01]FM_MakeSignedData done [11:13:01]CreateOFDProtocolMessage [11:13:01]wFMCommunicate request_size=4 [11:13:01]MH_SAM_APDU [11:13:01]CAPDU: 80 11 00 00 [11:13:01]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [11:13:01]Write i2c OK [11:13:01]MH_I2C_Read... [11:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:01]Read from MH i2c: E2 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: E2 17 00 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 FC [11:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:13:01]wFMCommunicate OK [11:13:01]CreateOFDProtocolMessage done [11:13:01]OFDSenderStorePacket 82140 [11:13:01]StoreOFDPacket docnum=82140 [11:13:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 9F A4 07 01 1A A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 3B F1 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DC 40 01 00 35 04 06 00 17 4F 16 55 E5 1B C2 A2 FB C0 A1 4F 8E 43 [11:13:01]CheckFolder [11:13:01]dirname=/storage/ofd_packets [11:13:01]CheckFolder done [11:13:01]ProducePacketName [11:13:01]name=ofd_packets/00082140 [11:13:01]NVStorageSaveData ofd_packets/00082140 [11:13:01]File name is /storage/ofd_packets/00082140 [11:13:01]Write 301 bytes [11:13:01]NVStorageSaveData done [11:13:01]OFDSenderStorePacket done [11:13:01]KKMCreateOFDPacket done [11:13:01]NVStorageSaveData kkm_last_timestamp [11:13:01]File name is /storage/kkm_last_timestamp [11:13:01]Write 4 bytes [11:13:01]NVStorageSaveData done [11:13:01]ExternCall_PrintAddStr [11:13:01]wPrintStart [11:13:01]Write to MH i2c: 01 00 00 31 00 31 [11:13:01]Write i2c OK [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: 01 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: 01 07 00 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [11:13:01]RasterBufferAndPrint [11:13:01]line Счет N : (1)918646 [11:13:01]line ИНН: 02508201610067 [11:13:01]line Контрольно-Кассовый Чек [11:13:01]line ПРОДАЖА [11:13:01]line ТРК (МРК, ГНК) : 22 [11:13:01]line Товар: 2710124130 [11:13:01]line Аи-92-К-4 [11:13:01]line 7.480 * 66.90 [11:13:01]line = 500.41 [11:13:01]line НДС 12% НСП 1% [11:13:01]line > о реализуемом товаре [11:13:01]line ОКРУГЛЕНИЕ: -0.41 [11:13:01]line ИТОГО: 500.00 [11:13:01]line Внесено: 500.00 [11:13:01]line СДАЧА: 0.00 [11:13:01]line НСП 1% : 4.43 [11:13:01]line НДС 12% : 53.14 [11:13:01]line Наличными: 500.00 [11:13:01]line Безнал.: 0.00 [11:13:01]line Место: АЗС № 114 "Партнер Нефть" [11:13:01]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:13:01]line СНО: Общий режим [11:13:01]line Чек 66 17.10.2024 11:12 [11:13:01]line Смена: 525 ФФД: 1.0 [11:13:01]line ЗНМ: 0300000086 [11:13:01]line РНМ: 0000000000091680 [11:13:01]line Версия ККМ: 001 [11:13:01]line ФМ: 0000000000871843 [11:13:01]line ФД: 82140 [11:13:01]line ФПД: 25628444583195 [11:13:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T111259&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82140&fm=25628444583195&tin=02508201610067®Number=0000000000091680&sum=50000 [11:13:01]written 0, free lines is 4095 [11:13:01]OFD Sender: Processing packet 82140 [packets to send 254, broken 253] [11:13:01]ProducePacketName [11:13:01]name=ofd_packets/00082140 [11:13:01]OFD Sender: To server: pG, [11:13:01]CommunicateWithHost lk.salyk.kg:30040 [11:13:01]ConnectInit lk.salyk.kg [11:13:01]Write to MH i2c: 01 00 00 5C 00 5C [11:13:01]Write i2c OK [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: 01 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: 01 07 00 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 E7 0C 56 [11:13:01]RasterBufferAndPrint [11:13:01]line [11:13:01]line [11:13:01]line [11:13:01]line [11:13:01]line [11:13:01]written 0, free lines is 3331 [11:13:01]MH_Cut [11:13:01]Write to MH i2c: D1 01 00 63 00 01 35 [11:13:01]Write i2c OK [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: D1 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: D1 01 00 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: D1 01 00 63 00 00 34 [11:13:01]Write to MH i2c: 01 00 00 64 00 64 [11:13:01]Write i2c OK [11:13:01]MH_I2C_Read... [11:13:02]recv_with_timeout no data received [11:13:02]*** Cut start [11:13:02]*** Partial cut [11:13:02]*** CUTSNS_PIN = 1 [11:13:02]Connected sock=11 [11:13:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 9F A4 07 01 1A A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 *** CUTSNS_PIN = 0 [11:13:02]31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 3B F1 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DC 40 01 00 35 04 06 00 17 4F 16 55 E5 1B C2 A2 FB C0 A1 4F 8E 43 [11:13:02]*** Brake cut motor [11:13:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 C0 34 47 00 AC F0 A5 07 01 00 07 00 3B 00 F9 03 0E *** Stop cut motor [11:13:03]00 *** Cut end [11:13:03]37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DC 40 01 00 F4 03 04 00 7B 96 10 67 B6 04 01 00 00 0F 0B F7 8E C4 6D CB 89 [11:13:03]CommunicateWithHost err = 0 [11:13:03]CheckOFDResponse [11:13:03]1017 (14) - 77093643461234 [11:13:03]1041 (16) - 0000000000871843 [11:13:03]1040 (4) - 82140 [11:13:03]1012 (4) - 17.10.2024 04:45 [11:13:03]1206 (1) - 0 [11:13:03]OFD Sender: Remove packet 82140 [11:13:03]ProducePacketName [11:13:03]name=ofd_packets/00082140 [11:13:03]NVStorageDeleteData [11:13:03]Read from MH i2c: 01 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: 01 07 00 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [11:13:03]process_action close_receipt done [11:13:03]requested_data is exist [11:13:03]produce_requested_data [11:13:03]requested_item fm.sn is exist - process it [11:13:03]wFMCommunicate request_size=4 [11:13:03]MH_SAM_APDU [11:13:03]CAPDU: 80 11 00 00 [11:13:03]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [11:13:03]Write i2c OK [11:13:03]MH_I2C_Read... [11:13:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:03]Read from MH i2c: E2 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 17 00 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 31 [11:13:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:13:03]wFMCommunicate OK [11:13:03]requested_item fd.num is exist - process it [11:13:03]SAM_PROTO_GetFieldsCounters [11:13:03]wFMCommunicate request_size=4 [11:13:03]MH_SAM_APDU [11:13:03]CAPDU: 80 13 00 00 [11:13:03]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [11:13:03]Write i2c OK [11:13:03]MH_I2C_Read... [11:13:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:03]Read from MH i2c: E2 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 62 00 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 DC 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [11:13:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 DC 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:13:03]wFMCommunicate OK [11:13:03]SAM_PROTO_GetFieldsCounters done [11:13:03]requested_item shift.num is exist - process it [11:13:03]requested_item shift.opened is exist - process it [11:13:03]req_shift_opened [11:13:03]FM_GetShiftState [11:13:03]SAM_PROTO_GetShiftState [11:13:03]wFMCommunicate request_size=4 [11:13:03]MH_SAM_APDU [11:13:03]CAPDU: 80 13 01 00 [11:13:03]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [11:13:03]Write i2c OK [11:13:03]MH_I2C_Read... [11:13:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:03]Read from MH i2c: E2 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 0E 00 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 EC [11:13:03]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [11:13:03]wFMCommunicate OK [11:13:03]SAM_PROTO_GetShiftState done [11:13:03]FM_GetShiftState done [11:13:03]req_shift_opened done [11:13:03]requested_item shift.open_date is exist - process it [11:13:03]req_shift_open_date [11:13:03]req_shift_open_date done [11:13:03]produce_requested_data done [11:13:03]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82140,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [11:13:03]process_action_free close_receipt [11:13:03]json_value_free [11:13:03]json_value_free done [11:13:03]process_json_proto returns [11:13:03]Send response to host [11:13:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82140,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [11:13:03]free response buf [11:13:03]execute_script done [11:13:03]execute_script returns [11:13:03]free content buf [11:13:03]Sock 9.Close socket [11:13:03]Sock 9.Thread stoped [11:13:03]OFD Sender: No OFD packet to send [11:13:08]OFD Sender: No OFD packet to send [11:13:13]OFD Sender: No OFD packet to send [11:13:18]OFD Sender: No OFD packet to send [11:13:23]OFD Sender: No OFD packet to send [11:13:28]OFD Sender: No OFD packet to send [11:13:33]OFD Sender: No OFD packet to send [11:13:38]OFD Sender: No OFD packet to send [11:13:43]OFD Sender: No OFD packet to send [11:13:48]OFD Sender: No OFD packet to send [11:13:53]OFD Sender: No OFD packet to send [11:13:54]recv_with_timeout no data received [11:13:58]OFD Sender: No OFD packet to send [11:14:03]OFD Sender: No OFD packet to send [11:14:05]recv_with_timeout no data received [11:14:08]OFD Sender: No OFD packet to send [11:14:13]OFD Sender: No OFD packet to send [11:14:18]OFD Sender: No OFD packet to send [11:14:23]OFD Sender: No OFD packet to send [11:14:28]OFD Sender: No OFD packet to send [11:14:33]OFD Sender: No OFD packet to send [11:14:39]OFD Sender: No OFD packet to send [11:14:44]OFD Sender: No OFD packet to send [11:14:49]OFD Sender: No OFD packet to send [11:14:53]accept exits with 10 [11:14:53]New connection [11:14:53]New thread 3067002212 created [11:14:53]Thread 3067145572 joined [11:14:53]Waiting for new connection... [11:14:53] Sock 10.Parse request [11:14:53]Sock 10.Check first char [11:14:53]Sock 10.First char is OK [11:14:53]request: POST /json_proto HTTP/1.0 [11:14:53]Method: POST [11:14:53]URL: /json_proto [11:14:53]Method is POST - this is cgi request [11:14:53]url: /json_proto [11:14:53]query_string will be loaded in cgi processing [11:14:53]execute_cgi json_proto POST (null) [11:14:53]execute_cgi path=json_proto method=POST [11:14:53]POST find Content-Length [11:14:53]Host: 172.17.44.67:8080 [11:14:53]Content-Length: 754 [11:14:53]Content-Type: application/json [11:14:53] [11:14:53]POST finish read [11:14:53]Found Content-Length = 754 [11:14:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 33.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101150", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:53]execute_script... [11:14:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 33.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101150", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:53]POST & json_proto [11:14:53]process_json_proto [11:14:53]json parsed OK: [11:14:53]protocol is kg_v1.0 [11:14:53]action value=close_receipt [11:14:53]process_action close_receipt [11:14:53]cmd_close_receipt [11:14:53]MH_GetDate [11:14:53]Write to MH i2c: F0 00 00 68 00 57 [11:14:53]Write i2c OK [11:14:53]MH_I2C_Read... [11:14:53]Read from MH i2c: F0 [11:14:53]MH_I2C_Read... [11:14:53]Read from MH i2c: F0 09 00 [11:14:53]MH_I2C_Read... [11:14:53]Read from MH i2c: F0 09 00 68 00 00 AD F1 10 67 F1 C7 6B 64 FC [11:14:53]GetLastDocTimeStamp 1729163579 [11:14:53]current date 1729163693 [11:14:53]FM_GetShiftState [11:14:53]SAM_PROTO_GetShiftState [11:14:53]wFMCommunicate request_size=4 [11:14:53]MH_SAM_APDU [11:14:53]CAPDU: 80 13 01 00 [11:14:53]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [11:14:53]Write i2c OK [11:14:53]MH_I2C_Read... [11:14:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:53]Read from MH i2c: E2 [11:14:53]MH_I2C_Read... [11:14:53]Read from MH i2c: E2 0E 00 [11:14:53]MH_I2C_Read... [11:14:53]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 EE [11:14:53]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [11:14:53]wFMCommunicate OK [11:14:53]SAM_PROTO_GetShiftState done [11:14:53]FM_GetShiftState done [11:14:53]opened in 1729125927 [11:14:53]opened+sec_in_day 1729212327 [11:14:53]quantity*price = 0 [11:14:53]sum+1 = 1 [11:14:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 67 17.10.2024 11:14 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30101150 ФМ: 0000000000871843 ФД: 82141 ФПД: 82426172167951 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T111453&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82141&fm=82426172167951&tin=02508201610067®Number=0000000000091680&sum=0 [11:14:54]StoreToDocumentArchive [11:14:54]shift 525 fd 82141 [11:14:54]save to /storage/0525/doc_00082141 [11:14:54]save last doc name /storage/0525/doc_00082141 to /storage/kkm_last_doc_name [11:14:54]save OK [11:14:54]Clear old archive folders... [11:14:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:14:54]tlvbuf is 01D85D50 [11:14:54]SAM_PROTO_ClearQueue [11:14:54]wFMCommunicate request_size=4 [11:14:54]MH_SAM_APDU [11:14:54]CAPDU: 80 09 00 00 [11:14:54]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [11:14:54]Write i2c OK [11:14:54]MH_I2C_Read... [11:14:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:54]Read from MH i2c: E2 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: E2 03 00 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [11:14:54]RAPDU: 90 00 [11:14:54]wFMCommunicate OK [11:14:54]SAM_PROTO_ClearQueue done [11:14:54]KKMCreateOFDPacket [11:14:54]OFDProtocolAddRootSTLVToBuf [11:14:54]FM_MakeSignedData [11:14:54]FM_MakeSignedData [11:14:54]SAM_PROTO_SignData [11:14:54]wFMCommunicate request_size=4 [11:14:54]MH_SAM_APDU [11:14:54]CAPDU: 80 0D 01 02 [11:14:54]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [11:14:54]Write i2c OK [11:14:54]MH_I2C_Read... [11:14:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:54]Read from MH i2c: E2 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: E2 03 00 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [11:14:54]RAPDU: 90 00 [11:14:54]wFMCommunicate OK [11:14:54]wFMCommunicate request_size=255 [11:14:54]MH_SAM_APDU [11:14:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E8 80 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 AD F1 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DD 40 01 00 35 04 06 00 4A [11:14:54]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E8 80 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 AD F1 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DD 40 01 00 35 04 06 00 4A 00 00 2E [11:14:54]Write i2c OK [11:14:54]MH_I2C_Read... [11:14:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:55]Read from MH i2c: E2 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: E2 03 00 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [11:14:55]RAPDU: 90 00 [11:14:55]wFMCommunicate OK [11:14:55]wFMCommunicate request_size=10 [11:14:55]MH_SAM_APDU [11:14:55]CAPDU: 80 0D 02 02 05 F7 56 B6 57 0F [11:14:55]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 F7 56 B6 57 0F 00 00 66 [11:14:55]Write i2c OK [11:14:55]MH_I2C_Read... [11:14:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:55]Read from MH i2c: E2 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: E2 03 00 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [11:14:55]RAPDU: 90 00 [11:14:55]wFMCommunicate OK [11:14:55]wFMCommunicate request_size=4 [11:14:55]MH_SAM_APDU [11:14:55]CAPDU: 80 0D 03 02 [11:14:55]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [11:14:55]Write i2c OK [11:14:55]MH_I2C_Read... [11:14:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:55]Read from MH i2c: E2 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: E2 0B 00 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: E2 0B 00 7A 00 00 A5 16 A0 28 BC 49 FA FA 90 00 72 [11:14:55]RAPDU: A5 16 A0 28 BC 49 FA FA 90 00 [11:14:55]wFMCommunicate OK [11:14:55]SAM_PROTO_SignData done [11:14:55]FM_MakeSignedData done [11:14:55]CreateOFDProtocolMessage [11:14:55]wFMCommunicate request_size=4 [11:14:55]MH_SAM_APDU [11:14:55]CAPDU: 80 11 00 00 [11:14:55]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [11:14:55]Write i2c OK [11:14:55]MH_I2C_Read... [11:14:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:55]Read from MH i2c: E2 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: E2 17 00 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 47 [11:14:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:14:55]wFMCommunicate OK [11:14:55]CreateOFDProtocolMessage done [11:14:55]OFDSenderStorePacket 82141 [11:14:55]StoreOFDPacket docnum=82141 [11:14:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 FC 3D 07 01 B6 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E8 80 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 AD F1 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DD 40 01 00 35 04 06 00 4A F7 56 B6 57 0F A5 16 A0 28 BC 49 FA FA [11:14:55]CheckFolder [11:14:55]dirname=/storage/ofd_packets [11:14:55]CheckFolder done [11:14:55]ProducePacketName [11:14:55]name=ofd_packets/00082141 [11:14:55]NVStorageSaveData ofd_packets/00082141 [11:14:55]File name is /storage/ofd_packets/00082141 [11:14:55]Write 301 bytes [11:14:55]NVStorageSaveData done [11:14:55]OFDSenderStorePacket done [11:14:55]KKMCreateOFDPacket done [11:14:55]NVStorageSaveData kkm_last_timestamp [11:14:55]File name is /storage/kkm_last_timestamp [11:14:55]Write 4 bytes [11:14:55]NVStorageSaveData done [11:14:55]ExternCall_PrintAddStr [11:14:55]wPrintStart [11:14:55]Write to MH i2c: 01 00 00 7C 00 7C [11:14:55]Write i2c OK [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: 01 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: 01 07 00 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [11:14:55]RasterBufferAndPrint [11:14:55]line Счет N : (1)918647 [11:14:55]line ИНН: 02508201610067 [11:14:55]line Контрольно-Кассовый Чек [11:14:55]line ПРОДАЖА [11:14:55]line ТРК (МРК, ГНК) : 11 [11:14:55]line Товар: 2710124130 [11:14:55]line Аи-92-К-4 [11:14:55]line 33.000 * 0.00 [11:14:55]line = 0.00 [11:14:55]line НДС 12% НСП 1% [11:14:55]line > о реализуемом товаре [11:14:55]line ИТОГО: 0.00 [11:14:55]line НСП 1% : 0.00 [11:14:55]line НДС 12% : 0.00 [11:14:55]line Наличными: 0.00 [11:14:55]line Безнал.: 0.00 [11:14:55]line Место: АЗС № 114 "Партнер Нефть" [11:14:55]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:14:55]line СНО: Общий режим [11:14:55]line Чек 67 17.10.2024 11:14 [11:14:55]line Смена: 525 ФФД: 1.0 [11:14:55]line ЗНМ: 0300000086 [11:14:55]line РНМ: 0000000000091680 [11:14:55]line Версия ККМ: 001 [11:14:55]line Талоны: ТК ГПНА Online [11:14:55]line 30101150 [11:14:55]line ФМ: 0000000000871843 [11:14:55]line ФД: 82141 [11:14:55]line ФПД: 82426172167951 [11:14:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T111453&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82141&fm=82426172167951&tin=02508201610067®Number=0000000000091680&sum=0 [11:14:55]written 0, free lines is 4095 [11:14:55]OFD Sender: Processing packet 82141 [packets to send 254, broken 253] [11:14:55]ProducePacketName [11:14:55]name=ofd_packets/00082141 [11:14:55]OFD Sender: To server: pG, [11:14:55]CommunicateWithHost lk.salyk.kg:30040 [11:14:55]ConnectInit lk.salyk.kg [11:14:56]Write to MH i2c: 01 00 00 A6 00 A6 [11:14:56]Write i2c OK [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: 01 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: 01 07 00 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: 01 07 00 A6 00 00 00 00 00 00 D7 0C 90 [11:14:56]RasterBufferAndPrint [11:14:56]line [11:14:56]line [11:14:56]line [11:14:56]line [11:14:56]line [11:14:56]written 0, free lines is 3293 [11:14:56]MH_Cut [11:14:56]Write to MH i2c: D1 01 00 AD 00 01 7F [11:14:56]Write i2c OK [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: D1 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: D1 01 00 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: D1 01 00 AD 00 00 7E [11:14:56]Write to MH i2c: 01 00 00 AE 00 AE [11:14:56]Write i2c OK [11:14:56]MH_I2C_Read... [11:14:56]Connected sock=7 [11:14:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 FC 3D 07 01 B6 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E8 80 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 AD F1 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DD 40 01 00 35 04 06 00 4A F7 56 B6 57 0F A5 16 A0 28 BC 49 FA FA [11:14:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 1F 95 47 00 2E A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DD 40 01 00 F4 03 04 00 EC 96 10 67 B6 04 01 00 00 D5 82 F6 25 30 48 B1 5A [11:14:56]CommunicateWithHost err = 0 [11:14:56]CheckOFDResponse [11:14:56]1017 (14) - 77093643461234 [11:14:56]1041 (16) - 0000000000871843 [11:14:56]1040 (4) - 82141 [11:14:56]1012 (4) - 17.10.2024 04:47 [11:14:56]1206 (1) - 0 [11:14:56]OFD Sender: Remove packet 82141 [11:14:56]ProducePacketName [11:14:56]name=ofd_packets/00082141 [11:14:56]NVStorageDeleteData [11:14:56]*** Cut start [11:14:56]*** Partial cut [11:14:56]*** CUTSNS_PIN = 1 [11:14:56]*** CUTSNS_PIN = 0 [11:14:57]*** Brake cut motor [11:14:57]OFD Sender: No OFD packet to send [11:14:57]Read from MH i2c: 01 [11:14:57]MH_I2C_Read... [11:14:57]*** Stop cut motor [11:14:57]*** Cut end [11:14:57]Read from MH i2c: 01 07 00 [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [11:14:57]process_action close_receipt done [11:14:57]requested_data is exist [11:14:57]produce_requested_data [11:14:57]requested_item fm.sn is exist - process it [11:14:57]wFMCommunicate request_size=4 [11:14:57]MH_SAM_APDU [11:14:57]CAPDU: 80 11 00 00 [11:14:57]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [11:14:57]Write i2c OK [11:14:57]MH_I2C_Read... [11:14:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:57]Read from MH i2c: E2 [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: E2 17 00 [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 7B [11:14:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:14:57]wFMCommunicate OK [11:14:57]requested_item fd.num is exist - process it [11:14:57]SAM_PROTO_GetFieldsCounters [11:14:57]wFMCommunicate request_size=4 [11:14:57]MH_SAM_APDU [11:14:57]CAPDU: 80 13 00 00 [11:14:57]Write to MH i2c: E2 08 00 B0 00 80 13 00 00 00 00 00 00 2C [11:14:57]Write i2c OK [11:14:57]MH_I2C_Read... [11:14:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:57]Read from MH i2c: E2 [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: E2 62 00 [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: E2 62 00 B0 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 DD 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [11:14:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 DD 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:14:57]wFMCommunicate OK [11:14:57]SAM_PROTO_GetFieldsCounters done [11:14:57]requested_item shift.num is exist - process it [11:14:57]requested_item shift.opened is exist - process it [11:14:57]req_shift_opened [11:14:57]FM_GetShiftState [11:14:57]SAM_PROTO_GetShiftState [11:14:57]wFMCommunicate request_size=4 [11:14:57]MH_SAM_APDU [11:14:57]CAPDU: 80 13 01 00 [11:14:57]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [11:14:57]Write i2c OK [11:14:57]MH_I2C_Read... [11:14:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:57]Read from MH i2c: E2 [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: E2 0E 00 [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 36 [11:14:57]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [11:14:57]wFMCommunicate OK [11:14:57]SAM_PROTO_GetShiftState done [11:14:57]FM_GetShiftState done [11:14:57]req_shift_opened done [11:14:57]requested_item shift.open_date is exist - process it [11:14:57]req_shift_open_date [11:14:57]req_shift_open_date done [11:14:57]produce_requested_data done [11:14:57]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82141,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [11:14:57]process_action_free close_receipt [11:14:57]json_value_free [11:14:57]json_value_free done [11:14:57]process_json_proto returns [11:14:57]Send response to host [11:14:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82141,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [11:14:57]free response buf [11:14:57]execute_script done [11:14:57]execute_script returns [11:14:57]free content buf [11:14:57]Sock 10.Close socket [11:14:57]Sock 10.Thread stoped [11:15:02]OFD Sender: No OFD packet to send [11:15:05]recv_with_timeout no data received [11:15:07]OFD Sender: No OFD packet to send [11:15:12]OFD Sender: No OFD packet to send [11:15:17]OFD Sender: No OFD packet to send [11:15:22]OFD Sender: No OFD packet to send [11:15:27]OFD Sender: No OFD packet to send [11:15:32]OFD Sender: No OFD packet to send [11:15:37]OFD Sender: No OFD packet to send [11:15:42]OFD Sender: No OFD packet to send [11:15:47]OFD Sender: No OFD packet to send [11:15:52]OFD Sender: No OFD packet to send [11:15:57]OFD Sender: No OFD packet to send [11:16:02]OFD Sender: No OFD packet to send [11:16:07]accept exits with 9 [11:16:07]New connection [11:16:07]New thread 3067145572 created [11:16:07]Thread 3067002212 joined [11:16:07]Waiting for new connection... [11:16:07] Sock 9.Parse request [11:16:07]Sock 9.Check first char [11:16:07]Sock 9.First char is OK [11:16:07]request: POST /json_proto HTTP/1.0 [11:16:07]Method: POST [11:16:07]URL: /json_proto [11:16:07]Method is POST - this is cgi request [11:16:07]url: /json_proto [11:16:07]query_string will be loaded in cgi processing [11:16:07]execute_cgi json_proto POST (null) [11:16:07]execute_cgi path=json_proto method=POST [11:16:07]POST find Content-Length [11:16:07]Host: 172.17.44.67:8080 [11:16:07]Content-Length: 759 [11:16:07]Content-Type: application/json [11:16:07] [11:16:07]POST finish read [11:16:07]Found Content-Length = 759 [11:16:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30087227", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:07]execute_script... [11:16:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30087227", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:07]POST & json_proto [11:16:07]process_json_proto [11:16:07]json parsed OK: [11:16:07]protocol is kg_v1.0 [11:16:07]action value=close_receipt [11:16:07]process_action close_receipt [11:16:07]cmd_close_receipt [11:16:07]MH_GetDate [11:16:07]Write to MH i2c: F0 00 00 B2 00 A1 [11:16:07]Write i2c OK [11:16:07]MH_I2C_Read... [11:16:07]Read from MH i2c: F0 [11:16:07]MH_I2C_Read... [11:16:07]Read from MH i2c: F0 09 00 [11:16:07]MH_I2C_Read... [11:16:07]Read from MH i2c: F0 09 00 B2 00 00 F7 F1 10 67 F1 C7 6B 64 90 [11:16:07]GetLastDocTimeStamp 1729163693 [11:16:07]current date 1729163767 [11:16:07]FM_GetShiftState [11:16:07]SAM_PROTO_GetShiftState [11:16:07]wFMCommunicate request_size=4 [11:16:07]MH_SAM_APDU [11:16:07]CAPDU: 80 13 01 00 [11:16:07]Write to MH i2c: E2 08 00 B3 00 80 13 01 00 00 00 00 00 30 [11:16:07]Write i2c OK [11:16:07]MH_I2C_Read... [11:16:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:07]Read from MH i2c: E2 [11:16:07]MH_I2C_Read... [11:16:07]Read from MH i2c: E2 0E 00 [11:16:07]MH_I2C_Read... [11:16:07]Read from MH i2c: E2 0E 00 B3 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 38 [11:16:07]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [11:16:07]wFMCommunicate OK [11:16:07]SAM_PROTO_GetShiftState done [11:16:07]FM_GetShiftState done [11:16:07]opened in 1729125927 [11:16:07]opened+sec_in_day 1729212327 [11:16:07]quantity*price = 0 [11:16:07]sum+1 = 1 [11:16:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 68 17.10.2024 11:16 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30087227 ФМ: 0000000000871843 ФД: 82142 ФПД: 243053719341386 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T111607&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82142&fm=243053719341386&tin=02508201610067®Number=0000000000091680&sum=0 [11:16:08]StoreToDocumentArchive [11:16:08]shift 525 fd 82142 [11:16:08]save to /storage/0525/doc_00082142 [11:16:08]save last doc name /storage/0525/doc_00082142 to /storage/kkm_last_doc_name [11:16:08]save OK [11:16:08]Clear old archive folders... [11:16:08]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:16:08]tlvbuf is 01D07A80 [11:16:08]SAM_PROTO_ClearQueue [11:16:08]wFMCommunicate request_size=4 [11:16:08]MH_SAM_APDU [11:16:08]CAPDU: 80 09 00 00 [11:16:08]Write to MH i2c: E2 08 00 C0 00 80 09 00 00 00 00 00 00 32 [11:16:08]Write i2c OK [11:16:08]MH_I2C_Read... [11:16:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:08]Read from MH i2c: E2 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: E2 03 00 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [11:16:08]RAPDU: 90 00 [11:16:08]wFMCommunicate OK [11:16:08]SAM_PROTO_ClearQueue done [11:16:08]KKMCreateOFDPacket [11:16:08]OFDProtocolAddRootSTLVToBuf [11:16:08]FM_MakeSignedData [11:16:08]FM_MakeSignedData [11:16:08]SAM_PROTO_SignData [11:16:08]wFMCommunicate request_size=4 [11:16:08]MH_SAM_APDU [11:16:08]CAPDU: 80 0D 01 02 [11:16:08]Write to MH i2c: E2 08 00 C1 00 80 0D 01 02 00 00 00 00 3A [11:16:08]Write i2c OK [11:16:08]MH_I2C_Read... [11:16:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:08]Read from MH i2c: E2 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: E2 03 00 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [11:16:08]RAPDU: 90 00 [11:16:08]wFMCommunicate OK [11:16:08]wFMCommunicate request_size=255 [11:16:08]MH_SAM_APDU [11:16:08]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 F7 F1 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DE 40 01 00 35 04 06 00 [11:16:08]Write to MH i2c: E2 02 01 C2 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 F7 F1 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DE 40 01 00 35 04 06 00 00 00 85 [11:16:08]Write i2c OK [11:16:08]MH_I2C_Read... [11:16:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:08]Read from MH i2c: E2 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: E2 03 00 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [11:16:08]RAPDU: 90 00 [11:16:08]wFMCommunicate OK [11:16:08]wFMCommunicate request_size=11 [11:16:08]MH_SAM_APDU [11:16:08]CAPDU: 80 0D 02 02 06 DD 0E 5A 9A 49 4A [11:16:08]Write to MH i2c: E2 0E 00 C3 00 80 0D 02 02 06 00 DD 0E 5A 9A 49 4A 00 00 BB [11:16:08]Write i2c OK [11:16:08]MH_I2C_Read... [11:16:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:08]Read from MH i2c: E2 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: E2 03 00 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [11:16:08]RAPDU: 90 00 [11:16:08]wFMCommunicate OK [11:16:08]wFMCommunicate request_size=4 [11:16:08]MH_SAM_APDU [11:16:08]CAPDU: 80 0D 03 02 [11:16:08]Write to MH i2c: E2 08 00 C4 00 80 0D 03 02 00 00 00 00 3F [11:16:08]Write i2c OK [11:16:08]MH_I2C_Read... [11:16:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:08]Read from MH i2c: E2 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: E2 0B 00 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: E2 0B 00 C4 00 00 36 A6 B6 06 07 4D CB D1 90 00 C8 [11:16:08]RAPDU: 36 A6 B6 06 07 4D CB D1 90 00 [11:16:08]wFMCommunicate OK [11:16:08]SAM_PROTO_SignData done [11:16:08]FM_MakeSignedData done [11:16:08]CreateOFDProtocolMessage [11:16:08]wFMCommunicate request_size=4 [11:16:08]MH_SAM_APDU [11:16:08]CAPDU: 80 11 00 00 [11:16:08]Write to MH i2c: E2 08 00 C5 00 80 11 00 00 00 00 00 00 3F [11:16:08]Write i2c OK [11:16:08]MH_I2C_Read... [11:16:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:08]Read from MH i2c: E2 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: E2 17 00 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: E2 17 00 C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 91 [11:16:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:16:08]wFMCommunicate OK [11:16:08]CreateOFDProtocolMessage done [11:16:08]OFDSenderStorePacket 82142 [11:16:08]StoreOFDPacket docnum=82142 [11:16:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 88 B4 08 01 D4 CD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 F7 F1 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DE 40 01 00 35 04 06 00 DD 0E 5A 9A 49 4A 36 A6 B6 06 07 4D CB D1 [11:16:08]CheckFolder [11:16:08]dirname=/storage/ofd_packets [11:16:08]CheckFolder done [11:16:08]ProducePacketName [11:16:08]name=ofd_packets/00082142 [11:16:08]NVStorageSaveData ofd_packets/00082142 [11:16:08]File name is /storage/ofd_packets/00082142 [11:16:08]Write 302 bytes [11:16:08]NVStorageSaveData done [11:16:08]OFDSenderStorePacket done [11:16:08]KKMCreateOFDPacket done [11:16:08]NVStorageSaveData kkm_last_timestamp [11:16:08]File name is /storage/kkm_last_timestamp [11:16:08]Write 4 bytes [11:16:08]NVStorageSaveData done [11:16:08]ExternCall_PrintAddStr [11:16:08]wPrintStart [11:16:08]Write to MH i2c: 01 00 00 C6 00 C6 [11:16:08]Write i2c OK [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: 01 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: 01 07 00 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: 01 07 00 C6 00 00 00 00 00 00 FF 0F DB [11:16:08]RasterBufferAndPrint [11:16:08]line Счет N : (1)918648 [11:16:08]line ИНН: 02508201610067 [11:16:08]line Контрольно-Кассовый Чек [11:16:08]line ПРОДАЖА [11:16:08]line ТРК (МРК, ГНК) : 31 [11:16:08]line Товар: 2710194210 [11:16:08]line ДТ(л)-К-5 [11:16:08]line 10.000 * 0.00 [11:16:08]line = 0.00 [11:16:08]line НДС 12% НСП 1% [11:16:08]line > о реализуемом товаре [11:16:08]line ИТОГО: 0.00 [11:16:08]line НСП 1% : 0.00 [11:16:08]line НДС 12% : 0.00 [11:16:08]line Наличными: 0.00 [11:16:08]line Безнал.: 0.00 [11:16:08]line Место: АЗС № 114 "Партнер Нефть" [11:16:08]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:16:08]line СНО: Общий режим [11:16:08]line Чек 68 17.10.2024 11:16 [11:16:08]line Смена: 525 ФФД: 1.0 [11:16:08]line ЗНМ: 0300000086 [11:16:08]line РНМ: 0000000000091680 [11:16:08]line Версия ККМ: 001 [11:16:08]line Талоны: ТК ГПНА Online [11:16:08]line 30087227 [11:16:08]line ФМ: 0000000000871843 [11:16:08]line ФД: 82142 [11:16:08]line ФПД: 243053719341386 [11:16:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T111607&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82142&fm=243053719341386&tin=02508201610067®Number=0000000000091680&sum=0 [11:16:09]written 0, free lines is 4095 [11:16:09]OFD Sender: Processing packet 82142 [packets to send 254, broken 253] [11:16:09]ProducePacketName [11:16:09]name=ofd_packets/00082142 [11:16:09]OFD Sender: To server: pG, [11:16:09]CommunicateWithHost lk.salyk.kg:30040 [11:16:09]ConnectInit lk.salyk.kg [11:16:09]Write to MH i2c: 01 00 00 F0 00 F0 [11:16:09]Write i2c OK [11:16:09]MH_I2C_Read... [11:16:09]Read from MH i2c: 01 [11:16:09]MH_I2C_Read... [11:16:09]Read from MH i2c: 01 07 00 [11:16:09]MH_I2C_Read... [11:16:09]Read from MH i2c: 01 07 00 F0 00 00 00 00 00 00 E5 0C E8 [11:16:09]RasterBufferAndPrint [11:16:09]line [11:16:09]line [11:16:09]line [11:16:09]line [11:16:09]line [11:16:09]written 0, free lines is 3308 [11:16:09]MH_Cut [11:16:09]Write to MH i2c: D1 01 00 F7 00 01 C9 [11:16:09]Write i2c OK [11:16:09]MH_I2C_Read... [11:16:09]Read from MH i2c: D1 [11:16:09]MH_I2C_Read... [11:16:09]Read from MH i2c: D1 01 00 [11:16:09]MH_I2C_Read... [11:16:09]Read from MH i2c: D1 01 00 F7 00 00 C8 [11:16:09]Write to MH i2c: 01 00 00 F8 00 F8 [11:16:09]Write i2c OK [11:16:09]MH_I2C_Read... [11:16:09]Connected sock=7 [11:16:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 88 B4 08 01 D4 CD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 F7 F1 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DE 40 01 00 35 04 06 00 DD 0E 5A 9A 49 4A 36 A6 B6 06 07 4D CB D1 [11:16:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 82 89 47 00 58 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DE 40 01 00 F4 03 04 00 35 97 10 67 B6 04 01 00 00 C9 D8 88 3C 80 E5 BD F3 [11:16:10]CommunicateWithHost err = 0 [11:16:10]CheckOFDResponse [11:16:10]1017 (14) - 77093643461234 [11:16:10]1041 (16) - 0000000000871843 [11:16:10]1040 (4) - 82142 [11:16:10]1012 (4) - 17.10.2024 04:48 [11:16:10]1206 (1) - 0 [11:16:10]OFD Sender: Remove packet 82142 [11:16:10]ProducePacketName [11:16:10]name=ofd_packets/00082142 [11:16:10]NVStorageDeleteData [11:16:10]*** Cut start [11:16:10]*** Partial cut [11:16:10]*** CUTSNS_PIN = 1 [11:16:10]*** CUTSNS_PIN = 0 [11:16:10]*** Brake cut motor [11:16:10]OFD Sender: No OFD packet to send [11:16:11]Read from MH i2c: 01 [11:16:11]MH_I2C_Read... [11:16:11]*** Stop cut motor [11:16:11]*** Cut end [11:16:11]Read from MH i2c: 01 07 00 [11:16:11]MH_I2C_Read... [11:16:11]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 FF 0F 0D [11:16:11]process_action close_receipt done [11:16:11]requested_data is exist [11:16:11]produce_requested_data [11:16:11]requested_item fm.sn is exist - process it [11:16:11]wFMCommunicate request_size=4 [11:16:11]MH_SAM_APDU [11:16:11]CAPDU: 80 11 00 00 [11:16:11]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [11:16:11]Write i2c OK [11:16:11]MH_I2C_Read... [11:16:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:11]Read from MH i2c: E2 [11:16:11]MH_I2C_Read... [11:16:11]Read from MH i2c: E2 17 00 [11:16:11]MH_I2C_Read... [11:16:11]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C5 [11:16:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:16:11]wFMCommunicate OK [11:16:11]requested_item fd.num is exist - process it [11:16:11]SAM_PROTO_GetFieldsCounters [11:16:11]wFMCommunicate request_size=4 [11:16:11]MH_SAM_APDU [11:16:11]CAPDU: 80 13 00 00 [11:16:11]Write to MH i2c: E2 08 00 FA 00 80 13 00 00 00 00 00 00 76 [11:16:11]Write i2c OK [11:16:11]MH_I2C_Read... [11:16:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:11]Read from MH i2c: E2 [11:16:11]MH_I2C_Read... [11:16:11]Read from MH i2c: E2 62 00 [11:16:11]MH_I2C_Read... [11:16:11]Read from MH i2c: E2 62 00 FA 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 DE 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [11:16:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 DE 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:11]wFMCommunicate OK [11:16:11]SAM_PROTO_GetFieldsCounters done [11:16:11]requested_item shift.num is exist - process it [11:16:11]requested_item shift.opened is exist - process it [11:16:11]req_shift_opened [11:16:11]FM_GetShiftState [11:16:11]SAM_PROTO_GetShiftState [11:16:11]wFMCommunicate request_size=4 [11:16:11]MH_SAM_APDU [11:16:11]CAPDU: 80 13 01 00 [11:16:11]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [11:16:11]Write i2c OK [11:16:11]MH_I2C_Read... [11:16:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:11]Read from MH i2c: E2 [11:16:11]MH_I2C_Read... [11:16:11]Read from MH i2c: E2 0E 00 [11:16:11]MH_I2C_Read... [11:16:11]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 80 [11:16:11]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [11:16:11]wFMCommunicate OK [11:16:11]SAM_PROTO_GetShiftState done [11:16:11]FM_GetShiftState done [11:16:11]req_shift_opened done [11:16:11]requested_item shift.open_date is exist - process it [11:16:11]req_shift_open_date [11:16:11]req_shift_open_date done [11:16:11]produce_requested_data done [11:16:11]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82142,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [11:16:11]process_action_free close_receipt [11:16:11]json_value_free [11:16:11]json_value_free done [11:16:11]process_json_proto returns [11:16:11]Send response to host [11:16:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82142,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [11:16:11]free response buf [11:16:11]execute_script done [11:16:11]execute_script returns [11:16:11]free content buf [11:16:11]Sock 9.Close socket [11:16:11]Sock 9.Thread stoped [11:16:15]OFD Sender: No OFD packet to send [11:16:18]recv_with_timeout no data received [11:16:20]OFD Sender: No OFD packet to send [11:16:25]OFD Sender: No OFD packet to send [11:16:29]recv_with_timeout no data received [11:16:30]OFD Sender: No OFD packet to send [11:16:35]OFD Sender: No OFD packet to send [11:16:40]recv_with_timeout no data received [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]accept exits with 10 [11:17:00]New connection [11:17:00]New thread 3067002212 created [11:17:00]Thread 3067145572 joined [11:17:00]Waiting for new connection... [11:17:00] Sock 10.Parse request [11:17:00]Sock 10.Check first char [11:17:00]Sock 10.First char is OK [11:17:00]request: POST /json_proto HTTP/1.0 [11:17:00]Method: POST [11:17:00]URL: /json_proto [11:17:00]Method is POST - this is cgi request [11:17:00]url: /json_proto [11:17:00]query_string will be loaded in cgi processing [11:17:00]execute_cgi json_proto POST (null) [11:17:00]execute_cgi path=json_proto method=POST [11:17:00]POST find Content-Length [11:17:00]Host: 172.17.44.67:8080 [11:17:00]Content-Length: 677 [11:17:00]Content-Type: application/json [11:17:00] [11:17:00]POST finish read [11:17:00]Found Content-Length = 677 [11:17:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:00]execute_script... [11:17:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:00]POST & json_proto [11:17:00]process_json_proto [11:17:00]json parsed OK: [11:17:00]protocol is kg_v1.0 [11:17:00]action value=close_receipt [11:17:00]process_action close_receipt [11:17:00]cmd_close_receipt [11:17:00]MH_GetDate [11:17:00]Write to MH i2c: F0 00 00 FC 00 EB [11:17:00]Write i2c OK [11:17:00]MH_I2C_Read... [11:17:00]Read from MH i2c: F0 [11:17:00]MH_I2C_Read... [11:17:00]Read from MH i2c: F0 09 00 [11:17:00]MH_I2C_Read... [11:17:00]Read from MH i2c: F0 09 00 FC 00 00 2C F2 10 67 F1 C7 6B 64 10 [11:17:00]GetLastDocTimeStamp 1729163767 [11:17:00]current date 1729163820 [11:17:00]FM_GetShiftState [11:17:00]SAM_PROTO_GetShiftState [11:17:00]wFMCommunicate request_size=4 [11:17:00]MH_SAM_APDU [11:17:00]CAPDU: 80 13 01 00 [11:17:00]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [11:17:00]Write i2c OK [11:17:00]MH_I2C_Read... [11:17:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:00]Read from MH i2c: E2 [11:17:00]MH_I2C_Read... [11:17:00]Read from MH i2c: E2 0E 00 [11:17:00]MH_I2C_Read... [11:17:00]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 82 [11:17:00]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [11:17:00]wFMCommunicate OK [11:17:00]SAM_PROTO_GetShiftState done [11:17:00]FM_GetShiftState done [11:17:00]opened in 1729125927 [11:17:00]opened+sec_in_day 1729212327 [11:17:00]quantity*price = 50041 [11:17:00]sum+1 = 50042 [11:17:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 69 17.10.2024 11:17 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82143 ФПД: 275666607106432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T111700&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82143&fm=275666607106432&tin=02508201610067®Number=0000000000091680&sum=50000 [11:17:01]StoreToDocumentArchive [11:17:01]shift 525 fd 82143 [11:17:01]save to /storage/0525/doc_00082143 [11:17:01]save last doc name /storage/0525/doc_00082143 to /storage/kkm_last_doc_name [11:17:01]save OK [11:17:01]Clear old archive folders... [11:17:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:17:01]tlvbuf is 01D07920 [11:17:01]SAM_PROTO_ClearQueue [11:17:01]wFMCommunicate request_size=4 [11:17:01]MH_SAM_APDU [11:17:01]CAPDU: 80 09 00 00 [11:17:01]Write to MH i2c: E2 08 00 0A 01 80 09 00 00 00 00 00 00 7D [11:17:01]Write i2c OK [11:17:01]MH_I2C_Read... [11:17:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:01]Read from MH i2c: E2 [11:17:01]MH_I2C_Read... [11:17:01]Read from MH i2c: E2 03 00 [11:17:01]MH_I2C_Read... [11:17:01]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [11:17:01]RAPDU: 90 00 [11:17:01]wFMCommunicate OK [11:17:01]SAM_PROTO_ClearQueue done [11:17:01]KKMCreateOFDPacket [11:17:01]OFDProtocolAddRootSTLVToBuf [11:17:01]FM_MakeSignedData [11:17:01]FM_MakeSignedData [11:17:01]SAM_PROTO_SignData [11:17:01]wFMCommunicate request_size=4 [11:17:01]MH_SAM_APDU [11:17:01]CAPDU: 80 0D 01 02 [11:17:01]Write to MH i2c: E2 08 00 0B 01 80 0D 01 02 00 00 00 00 85 [11:17:01]Write i2c OK [11:17:01]MH_I2C_Read... [11:17:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:01]Read from MH i2c: E2 [11:17:01]MH_I2C_Read... [11:17:01]Read from MH i2c: E2 03 00 [11:17:01]MH_I2C_Read... [11:17:01]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [11:17:01]RAPDU: 90 00 [11:17:01]wFMCommunicate OK [11:17:01]wFMCommunicate request_size=255 [11:17:01]MH_SAM_APDU [11:17: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 2C F2 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DF 40 01 00 35 04 06 00 FA [11:17:01]Write to MH i2c: E2 02 01 0C 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 2C F2 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DF 40 01 00 35 04 06 00 FA 00 00 14 [11:17:02]Write i2c OK [11:17:02]MH_I2C_Read... [11:17:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:02]Read from MH i2c: E2 [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: E2 03 00 [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [11:17:02]RAPDU: 90 00 [11:17:02]wFMCommunicate OK [11:17:02]wFMCommunicate request_size=10 [11:17:02]MH_SAM_APDU [11:17:02]CAPDU: 80 0D 02 02 05 B7 A2 31 69 80 [11:17:02]Write to MH i2c: E2 0D 00 0D 01 80 0D 02 02 05 00 B7 A2 31 69 80 00 00 05 [11:17:02]Write i2c OK [11:17:02]MH_I2C_Read... [11:17:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:02]Read from MH i2c: E2 [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: E2 03 00 [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [11:17:02]RAPDU: 90 00 [11:17:02]wFMCommunicate OK [11:17:02]wFMCommunicate request_size=4 [11:17:02]MH_SAM_APDU [11:17:02]CAPDU: 80 0D 03 02 [11:17:02]Write to MH i2c: E2 08 00 0E 01 80 0D 03 02 00 00 00 00 8A [11:17:02]Write i2c OK [11:17:02]MH_I2C_Read... [11:17:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:02]Read from MH i2c: E2 [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: E2 0B 00 [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: E2 0B 00 0E 01 00 A4 CF 1C C9 9F 7E C5 FB 90 00 C0 [11:17:02]RAPDU: A4 CF 1C C9 9F 7E C5 FB 90 00 [11:17:02]wFMCommunicate OK [11:17:02]SAM_PROTO_SignData done [11:17:02]FM_MakeSignedData done [11:17:02]CreateOFDProtocolMessage [11:17:02]wFMCommunicate request_size=4 [11:17:02]MH_SAM_APDU [11:17:02]CAPDU: 80 11 00 00 [11:17:02]Write to MH i2c: E2 08 00 0F 01 80 11 00 00 00 00 00 00 8A [11:17:02]Write i2c OK [11:17:02]MH_I2C_Read... [11:17:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:02]Read from MH i2c: E2 [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: E2 17 00 [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: E2 17 00 0F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DC [11:17:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:17:02]wFMCommunicate OK [11:17:02]CreateOFDProtocolMessage done [11:17:02]OFDSenderStorePacket 82143 [11:17:02]StoreOFDPacket docnum=82143 [11:17:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 AA B5 07 01 86 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 2C F2 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DF 40 01 00 35 04 06 00 FA B7 A2 31 69 80 A4 CF 1C C9 9F 7E C5 FB [11:17:02]CheckFolder [11:17:02]dirname=/storage/ofd_packets [11:17:02]CheckFolder done [11:17:02]ProducePacketName [11:17:02]name=ofd_packets/00082143 [11:17:02]NVStorageSaveData ofd_packets/00082143 [11:17:02]File name is /storage/ofd_packets/00082143 [11:17:02]Write 301 bytes [11:17:02]NVStorageSaveData done [11:17:02]OFDSenderStorePacket done [11:17:02]KKMCreateOFDPacket done [11:17:02]NVStorageSaveData kkm_last_timestamp [11:17:02]File name is /storage/kkm_last_timestamp [11:17:02]Write 4 bytes [11:17:02]NVStorageSaveData done [11:17:02]ExternCall_PrintAddStr [11:17:02]wPrintStart [11:17:02]Write to MH i2c: 01 00 00 10 01 11 [11:17:02]Write i2c OK [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: 01 [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: 01 07 00 [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: 01 07 00 10 01 00 00 00 00 00 FF 0F 26 [11:17:02]RasterBufferAndPrint [11:17:02]line Счет N : (1)918649 [11:17:02]line ИНН: 02508201610067 [11:17:02]line Контрольно-Кассовый Чек [11:17:02]line ПРОДАЖА [11:17:02]line ТРК (МРК, ГНК) : 22 [11:17:02]line Товар: 2710124130 [11:17:02]line Аи-92-К-4 [11:17:02]line 7.480 * 66.90 [11:17:02]line = 500.41 [11:17:02]line НДС 12% НСП 1% [11:17:02]line > о реализуемом товаре [11:17:02]line ОКРУГЛЕНИЕ: -0.41 [11:17:02]line ИТОГО: 500.00 [11:17:02]line Внесено: 500.00 [11:17:02]line СДАЧА: 0.00 [11:17:02]line НСП 1% : 4.43 [11:17:02]line НДС 12% : 53.14 [11:17:02]line Наличными: 500.00 [11:17:02]line Безнал.: 0.00 [11:17:02]line Место: АЗС № 114 "Партнер Нефть" [11:17:02]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:17:02]line СНО: Общий режим [11:17:02]line Чек 69 17.10.2024 11:17 [11:17:02]line Смена: 525 ФФД: 1.0 [11:17:02]line ЗНМ: 0300000086 [11:17:02]line РНМ: 0000000000091680 [11:17:02]line Версия ККМ: 001 [11:17:02]line ФМ: 0000000000871843 [11:17:02]line ФД: 82143 [11:17:02]line ФПД: 275666607106432 [11:17:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T111700&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82143&fm=275666607106432&tin=02508201610067®Number=0000000000091680&sum=50000 [11:17:02]OFD Sender: Processing packet 82143 [packets to send 254, broken 253] [11:17:02]ProducePacketName [11:17:02]name=ofd_packets/00082143 [11:17:02]OFD Sender: To server: pG, [11:17:02]CommunicateWithHost lk.salyk.kg:30040 [11:17:02]ConnectInit lk.salyk.kg [11:17:02]written 0, free lines is 4095 [11:17:03]Write to MH i2c: 01 00 00 3B 01 3C [11:17:03]Write i2c OK [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: 01 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: 01 07 00 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: 01 07 00 3B 01 00 00 00 00 00 D1 0C 20 [11:17:03]RasterBufferAndPrint [11:17:03]line [11:17:03]line [11:17:03]line [11:17:03]line [11:17:03]line [11:17:03]written 0, free lines is 3288 [11:17:03]MH_Cut [11:17:03]Write to MH i2c: D1 01 00 42 01 01 15 [11:17:03]Write i2c OK [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: D1 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: D1 01 00 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: D1 01 00 42 01 00 14 [11:17:03]Write to MH i2c: 01 00 00 43 01 44 [11:17:03]Write i2c OK [11:17:03]MH_I2C_Read... [11:17:03]Connected sock=9 [11:17:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 AA B5 07 01 86 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 2C F2 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DF 40 01 00 35 04 06 00 FA B7 A2 31 69 80 A4 CF 1C C9 9F 7E C5 FB [11:17:03]*** Cut start [11:17:03]*** Partial cut [11:17:03]*** CUTSNS_PIN = 1 [11:17:04]*** CUTSNS_PIN = 0 [11:17:04]*** Brake cut motor [11:17:04]Read from MH i2c: 01 [11:17:04]MH_I2C_Read... [11:17:04]*** Stop cut motor [11:17:04]*** Cut end [11:17:04]Read from MH i2c: 01 07 00 [11:17:04]MH_I2C_Read... [11:17:04]Read from MH i2c: 01 07 00 43 01 00 00 00 00 00 FF 0F 59 [11:17:04]process_action close_receipt done [11:17:04]requested_data is exist [11:17:04]produce_requested_data [11:17:04]requested_item fm.sn is exist - process it [11:17:04]wFMCommunicate request_size=4 [11:17:04]MH_SAM_APDU [11:17:04]CAPDU: 80 11 00 00 [11:17:04]Write to MH i2c: E2 08 00 44 01 80 11 00 00 00 00 00 00 BF [11:17:04]Write i2c OK [11:17:04]MH_I2C_Read... [11:17:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 9C 31 47 00 E1 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DF 40 01 00 F4 03 04 00 6C 97 10 67 B6 04 01 00 00 73 45 BB 6A ED 8D 34 28 [11:17:04]CommunicateWithHost err = 0 [11:17:04]CheckOFDResponse [11:17:04]1017 (14) - 77093643461234 [11:17:04]1041 (16) - 0000000000871843 [11:17:04]1040 (4) - 82143 [11:17:04]1012 (4) - 17.10.2024 04:49 [11:17:04]1206 (1) - 0 [11:17:04]OFD Sender: Remove packet 82143 [11:17:04]ProducePacketName [11:17:04]name=ofd_packets/00082143 [11:17:04]NVStorageDeleteData [11:17:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:04]Read from MH i2c: E2 [11:17:04]MH_I2C_Read... [11:17:04]Read from MH i2c: E2 17 00 [11:17:04]MH_I2C_Read... [11:17:04]Read from MH i2c: E2 17 00 44 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 11 [11:17:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:17:04]wFMCommunicate OK [11:17:04]requested_item fd.num is exist - process it [11:17:04]SAM_PROTO_GetFieldsCounters [11:17:04]wFMCommunicate request_size=4 [11:17:04]MH_SAM_APDU [11:17:04]CAPDU: 80 13 00 00 [11:17:04]Write to MH i2c: E2 08 00 45 01 80 13 00 00 00 00 00 00 C2 [11:17:04]Write i2c OK [11:17:04]MH_I2C_Read... [11:17:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:04]Read from MH i2c: E2 [11:17:04]MH_I2C_Read... [11:17:04]Read from MH i2c: E2 62 00 [11:17:04]MH_I2C_Read... [11:17:04]Read from MH i2c: E2 62 00 45 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 DF 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [11:17:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 DF 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:04]wFMCommunicate OK [11:17:04]SAM_PROTO_GetFieldsCounters done [11:17:04]requested_item shift.num is exist - process it [11:17:04]requested_item shift.opened is exist - process it [11:17:04]req_shift_opened [11:17:04]FM_GetShiftState [11:17:04]SAM_PROTO_GetShiftState [11:17:04]wFMCommunicate request_size=4 [11:17:04]MH_SAM_APDU [11:17:04]CAPDU: 80 13 01 00 [11:17:04]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [11:17:04]Write i2c OK [11:17:04]MH_I2C_Read... [11:17:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:04]Read from MH i2c: E2 [11:17:04]MH_I2C_Read... [11:17:04]Read from MH i2c: E2 0E 00 [11:17:04]MH_I2C_Read... [11:17:04]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 CC [11:17:04]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [11:17:04]wFMCommunicate OK [11:17:04]SAM_PROTO_GetShiftState done [11:17:04]FM_GetShiftState done [11:17:04]req_shift_opened done [11:17:04]requested_item shift.open_date is exist - process it [11:17:04]req_shift_open_date [11:17:04]req_shift_open_date done [11:17:04]produce_requested_data done [11:17:04]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82143,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [11:17:04]process_action_free close_receipt [11:17:04]json_value_free [11:17:04]json_value_free done [11:17:04]process_json_proto returns [11:17:04]Send response to host [11:17:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82143,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [11:17:04]free response buf [11:17:04]execute_script done [11:17:04]execute_script returns [11:17:04]free content buf [11:17:04]Sock 10.Close socket [11:17:04]Sock 10.Thread stoped [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:50]OFD Sender: No OFD packet to send [11:17:55]OFD Sender: No OFD packet to send [11:18:00]OFD Sender: No OFD packet to send [11:18:05]OFD Sender: No OFD packet to send [11:18:10]OFD Sender: No OFD packet to send [11:18:15]OFD Sender: No OFD packet to send [11:18:20]OFD Sender: No OFD packet to send [11:18:25]OFD Sender: No OFD packet to send [11:18:30]OFD Sender: No OFD packet to send [11:18:35]OFD Sender: No OFD packet to send [11:18:36]accept exits with 7 [11:18:36]New connection [11:18:36]New thread 3067145572 created [11:18:36]Thread 3067002212 joined [11:18:36]Waiting for new connection... [11:18:36] Sock 7.Parse request [11:18:36]Sock 7.Check first char [11:18:36]Sock 7.First char is OK [11:18:36]request: POST /json_proto HTTP/1.0 [11:18:36]Method: POST [11:18:36]URL: /json_proto [11:18:36]Method is POST - this is cgi request [11:18:36]url: /json_proto [11:18:36]query_string will be loaded in cgi processing [11:18:36]execute_cgi json_proto POST (null) [11:18:36]execute_cgi path=json_proto method=POST [11:18:36]POST find Content-Length [11:18:36]Host: 172.17.44.67:8080 [11:18:36]Content-Length: 677 [11:18:36]Content-Type: application/json [11:18:36] [11:18:36]POST finish read [11:18:36]Found Content-Length = 677 [11:18:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.700, "sum" : 180.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 180.00, "total" : 180.00, "payments": [ { "type": 0, "sum" : 180.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:36]execute_script... [11:18:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.700, "sum" : 180.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 180.00, "total" : 180.00, "payments": [ { "type": 0, "sum" : 180.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:36]POST & json_proto [11:18:36]process_json_proto [11:18:36]json parsed OK: [11:18:36]protocol is kg_v1.0 [11:18:36]action value=close_receipt [11:18:36]process_action close_receipt [11:18:36]cmd_close_receipt [11:18:36]MH_GetDate [11:18:36]Write to MH i2c: F0 00 00 47 01 37 [11:18:36]Write i2c OK [11:18:36]MH_I2C_Read... [11:18:36]Read from MH i2c: F0 [11:18:36]MH_I2C_Read... [11:18:36]Read from MH i2c: F0 09 00 [11:18:36]MH_I2C_Read... [11:18:36]Read from MH i2c: F0 09 00 47 01 00 8C F2 10 67 F1 C7 6B 64 BC [11:18:36]GetLastDocTimeStamp 1729163820 [11:18:36]current date 1729163916 [11:18:36]FM_GetShiftState [11:18:36]SAM_PROTO_GetShiftState [11:18:36]wFMCommunicate request_size=4 [11:18:36]MH_SAM_APDU [11:18:36]CAPDU: 80 13 01 00 [11:18:36]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [11:18:36]Write i2c OK [11:18:36]MH_I2C_Read... [11:18:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:36]Read from MH i2c: E2 [11:18:36]MH_I2C_Read... [11:18:36]Read from MH i2c: E2 0E 00 [11:18:36]MH_I2C_Read... [11:18:36]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 CE [11:18:36]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [11:18:36]wFMCommunicate OK [11:18:36]SAM_PROTO_GetShiftState done [11:18:36]FM_GetShiftState done [11:18:36]opened in 1729125927 [11:18:36]opened+sec_in_day 1729212327 [11:18:36]quantity*price = 18063 [11:18:36]sum+1 = 18064 [11:18:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 180.00 Внесено: 180.00 СДАЧА: 0.00 НСП 1% : 1.60 НДС 12% : 19.18 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 70 17.10.2024 11:18 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82144 ФПД: 241136164345407 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T111836&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82144&fm=241136164345407&tin=02508201610067®Number=0000000000091680&sum=18000 [11:18:37]StoreToDocumentArchive [11:18:37]shift 525 fd 82144 [11:18:37]save to /storage/0525/doc_00082144 [11:18:37]save last doc name /storage/0525/doc_00082144 to /storage/kkm_last_doc_name [11:18:37]save OK [11:18:37]Clear old archive folders... [11:18:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:18:37]tlvbuf is 01D9F280 [11:18:37]SAM_PROTO_ClearQueue [11:18:37]wFMCommunicate request_size=4 [11:18:37]MH_SAM_APDU [11:18:37]CAPDU: 80 09 00 00 [11:18:37]Write to MH i2c: E2 08 00 55 01 80 09 00 00 00 00 00 00 C8 [11:18:37]Write i2c OK [11:18:37]MH_I2C_Read... [11:18:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:37]Read from MH i2c: E2 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: E2 03 00 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [11:18:37]RAPDU: 90 00 [11:18:37]wFMCommunicate OK [11:18:37]SAM_PROTO_ClearQueue done [11:18:37]KKMCreateOFDPacket [11:18:37]OFDProtocolAddRootSTLVToBuf [11:18:37]FM_MakeSignedData [11:18:37]FM_MakeSignedData [11:18:37]SAM_PROTO_SignData [11:18:37]wFMCommunicate request_size=4 [11:18:37]MH_SAM_APDU [11:18:37]CAPDU: 80 0D 01 02 [11:18:37]Write to MH i2c: E2 08 00 56 01 80 0D 01 02 00 00 00 00 D0 [11:18:37]Write i2c OK [11:18:37]MH_I2C_Read... [11:18:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:37]Read from MH i2c: E2 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: E2 03 00 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [11:18:37]RAPDU: 90 00 [11:18:37]wFMCommunicate OK [11:18:37]wFMCommunicate request_size=255 [11:18:37]MH_SAM_APDU [11:18:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8F 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 8C F2 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E0 40 01 00 35 04 06 00 DB [11:18:37]Write to MH i2c: E2 02 01 57 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8F 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 8C F2 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E0 40 01 00 35 04 06 00 DB 00 00 15 [11:18:37]Write i2c OK [11:18:37]MH_I2C_Read... [11:18:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:37]Read from MH i2c: E2 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: E2 03 00 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [11:18:37]RAPDU: 90 00 [11:18:37]wFMCommunicate OK [11:18:37]wFMCommunicate request_size=10 [11:18:37]MH_SAM_APDU [11:18:37]CAPDU: 80 0D 02 02 05 4F E3 6B 16 3F [11:18:37]Write to MH i2c: E2 0D 00 58 01 80 0D 02 02 05 00 4F E3 6B 16 3F 00 00 CF [11:18:37]Write i2c OK [11:18:37]MH_I2C_Read... [11:18:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:37]Read from MH i2c: E2 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: E2 03 00 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [11:18:37]RAPDU: 90 00 [11:18:37]wFMCommunicate OK [11:18:37]wFMCommunicate request_size=4 [11:18:37]MH_SAM_APDU [11:18:37]CAPDU: 80 0D 03 02 [11:18:37]Write to MH i2c: E2 08 00 59 01 80 0D 03 02 00 00 00 00 D5 [11:18:37]Write i2c OK [11:18:37]MH_I2C_Read... [11:18:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:37]Read from MH i2c: E2 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: E2 0B 00 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: E2 0B 00 59 01 00 5A 82 1D 06 B8 8C A7 E2 90 00 A2 [11:18:37]RAPDU: 5A 82 1D 06 B8 8C A7 E2 90 00 [11:18:37]wFMCommunicate OK [11:18:37]SAM_PROTO_SignData done [11:18:37]FM_MakeSignedData done [11:18:37]CreateOFDProtocolMessage [11:18:37]wFMCommunicate request_size=4 [11:18:37]MH_SAM_APDU [11:18:37]CAPDU: 80 11 00 00 [11:18:37]Write to MH i2c: E2 08 00 5A 01 80 11 00 00 00 00 00 00 D5 [11:18:37]Write i2c OK [11:18:37]MH_I2C_Read... [11:18:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:37]Read from MH i2c: E2 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: E2 17 00 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: E2 17 00 5A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 27 [11:18:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:18:37]wFMCommunicate OK [11:18:37]CreateOFDProtocolMessage done [11:18:37]OFDSenderStorePacket 82144 [11:18:37]StoreOFDPacket docnum=82144 [11:18:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 37 00 07 01 FE 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8F 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 8C F2 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E0 40 01 00 35 04 06 00 DB 4F E3 6B 16 3F 5A 82 1D 06 B8 8C A7 E2 [11:18:37]CheckFolder [11:18:37]dirname=/storage/ofd_packets [11:18:37]CheckFolder done [11:18:37]ProducePacketName [11:18:37]name=ofd_packets/00082144 [11:18:37]NVStorageSaveData ofd_packets/00082144 [11:18:37]File name is /storage/ofd_packets/00082144 [11:18:37]Write 301 bytes [11:18:37]NVStorageSaveData done [11:18:37]OFDSenderStorePacket done [11:18:37]KKMCreateOFDPacket done [11:18:37]NVStorageSaveData kkm_last_timestamp [11:18:37]File name is /storage/kkm_last_timestamp [11:18:37]Write 4 bytes [11:18:37]NVStorageSaveData done [11:18:37]ExternCall_PrintAddStr [11:18:37]wPrintStart [11:18:37]Write to MH i2c: 01 00 00 5B 01 5C [11:18:37]Write i2c OK [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: 01 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: 01 07 00 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: 01 07 00 5B 01 00 00 00 00 00 FF 0F 71 [11:18:37]RasterBufferAndPrint [11:18:37]line Счет N : (1)918650 [11:18:37]line ИНН: 02508201610067 [11:18:37]line Контрольно-Кассовый Чек [11:18:37]line ПРОДАЖА [11:18:37]line ТРК (МРК, ГНК) : 22 [11:18:37]line Товар: 2710124130 [11:18:37]line Аи-92-К-4 [11:18:37]line 2.700 * 66.90 [11:18:37]line = 180.63 [11:18:37]line НДС 12% НСП 1% [11:18:37]line > о реализуемом товаре [11:18:37]line ОКРУГЛЕНИЕ: -0.63 [11:18:37]line ИТОГО: 180.00 [11:18:37]line Внесено: 180.00 [11:18:37]line СДАЧА: 0.00 [11:18:37]line НСП 1% : 1.60 [11:18:37]line НДС 12% : 19.18 [11:18:37]line Наличными: 180.00 [11:18:37]line Безнал.: 0.00 [11:18:37]line Место: АЗС № 114 "Партнер Нефть" [11:18:37]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:18:37]line СНО: Общий режим [11:18:37]line Чек 70 17.10.2024 11:18 [11:18:37]line Смена: 525 ФФД: 1.0 [11:18:37]line ЗНМ: 0300000086 [11:18:37]line РНМ: 0000000000091680 [11:18:37]line Версия ККМ: 001 [11:18:37]line ФМ: 0000000000871843 [11:18:37]line ФД: 82144 [11:18:37]line ФПД: 241136164345407 [11:18:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T111836&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82144&fm=241136164345407&tin=02508201610067®Number=0000000000091680&sum=18000 [11:18:38]OFD Sender: Processing packet 82144 [packets to send 254, broken 253] [11:18:38]ProducePacketName [11:18:38]name=ofd_packets/00082144 [11:18:38]OFD Sender: To server: pG, [11:18:38]CommunicateWithHost lk.salyk.kg:30040 [11:18:38]ConnectInit lk.salyk.kg [11:18:38]written 0, free lines is 4095 [11:18:38]Write to MH i2c: 01 00 00 86 01 87 [11:18:38]Write i2c OK [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: 01 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: 01 07 00 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: 01 07 00 86 01 00 00 00 00 00 DA 0C 74 [11:18:38]RasterBufferAndPrint [11:18:38]line [11:18:38]line [11:18:38]line [11:18:38]line [11:18:38]line [11:18:38]written 0, free lines is 3298 [11:18:38]MH_Cut [11:18:38]Write to MH i2c: D1 01 00 8D 01 01 60 [11:18:38]Write i2c OK [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: D1 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: D1 01 00 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: D1 01 00 8D 01 00 5F [11:18:38]Write to MH i2c: 01 00 00 8E 01 8F [11:18:38]Write i2c OK [11:18:38]MH_I2C_Read... [11:18:38]Connected sock=10 [11:18:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 37 00 07 01 FE 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8F 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 8C F2 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E0 40 01 00 35 04 06 00 DB 4F E3 6B 16 3F 5A 82 1D 06 B8 8C A7 E2 [11:18:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 46 8D 47 00 E3 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E0 40 01 00 F4 03 04 00 CB 97 10 67 B6 04 01 00 00 21 8E ED 8F 44 C3 97 3A [11:18:39]CommunicateWithHost err = 0 [11:18:39]CheckOFDResponse [11:18:39]1017 (14) - 77093643461234 [11:18:39]1041 (16) - 0000000000871843 [11:18:39]1040 (4) - 82144 [11:18:39]1012 (4) - 17.10.2024 04:51 [11:18:39]1206 (1) - 0 [11:18:39]OFD Sender: Remove packet 82144 [11:18:39]ProducePacketName [11:18:39]name=ofd_packets/00082144 [11:18:39]NVStorageDeleteData [11:18:39]*** Cut start [11:18:39]*** Partial cut [11:18:39]*** CUTSNS_PIN = 1 [11:18:39]*** CUTSNS_PIN = 0 [11:18:39]*** Brake cut motor [11:18:39]OFD Sender: No OFD packet to send [11:18:40]Read from MH i2c: 01 [11:18:40]MH_I2C_Read... [11:18:40]*** Stop cut motor [11:18:40]*** Cut end [11:18:40]Read from MH i2c: 01 07 00 [11:18:40]MH_I2C_Read... [11:18:40]Read from MH i2c: 01 07 00 8E 01 00 00 00 00 00 FF 0F A4 [11:18:40]process_action close_receipt done [11:18:40]requested_data is exist [11:18:40]produce_requested_data [11:18:40]requested_item fm.sn is exist - process it [11:18:40]wFMCommunicate request_size=4 [11:18:40]MH_SAM_APDU [11:18:40]CAPDU: 80 11 00 00 [11:18:40]Write to MH i2c: E2 08 00 8F 01 80 11 00 00 00 00 00 00 0A [11:18:40]Write i2c OK [11:18:40]MH_I2C_Read... [11:18:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:40]Read from MH i2c: E2 [11:18:40]MH_I2C_Read... [11:18:40]Read from MH i2c: E2 17 00 [11:18:40]MH_I2C_Read... [11:18:40]Read from MH i2c: E2 17 00 8F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 5C [11:18:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:18:40]wFMCommunicate OK [11:18:40]requested_item fd.num is exist - process it [11:18:40]SAM_PROTO_GetFieldsCounters [11:18:40]wFMCommunicate request_size=4 [11:18:40]MH_SAM_APDU [11:18:40]CAPDU: 80 13 00 00 [11:18:40]Write to MH i2c: E2 08 00 90 01 80 13 00 00 00 00 00 00 0D [11:18:40]Write i2c OK [11:18:40]MH_I2C_Read... [11:18:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:40]Read from MH i2c: E2 [11:18:40]MH_I2C_Read... [11:18:40]Read from MH i2c: E2 62 00 [11:18:40]MH_I2C_Read... [11:18:40]Read from MH i2c: E2 62 00 90 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E0 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [11:18:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E0 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:18:40]wFMCommunicate OK [11:18:40]SAM_PROTO_GetFieldsCounters done [11:18:40]requested_item shift.num is exist - process it [11:18:40]requested_item shift.opened is exist - process it [11:18:40]req_shift_opened [11:18:40]FM_GetShiftState [11:18:40]SAM_PROTO_GetShiftState [11:18:40]wFMCommunicate request_size=4 [11:18:40]MH_SAM_APDU [11:18:40]CAPDU: 80 13 01 00 [11:18:40]Write to MH i2c: E2 08 00 91 01 80 13 01 00 00 00 00 00 0F [11:18:40]Write i2c OK [11:18:40]MH_I2C_Read... [11:18:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:40]Read from MH i2c: E2 [11:18:40]MH_I2C_Read... [11:18:40]Read from MH i2c: E2 0E 00 [11:18:40]MH_I2C_Read... [11:18:40]Read from MH i2c: E2 0E 00 91 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 17 [11:18:40]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [11:18:40]wFMCommunicate OK [11:18:40]SAM_PROTO_GetShiftState done [11:18:40]FM_GetShiftState done [11:18:40]req_shift_opened done [11:18:40]requested_item shift.open_date is exist - process it [11:18:40]req_shift_open_date [11:18:40]req_shift_open_date done [11:18:40]produce_requested_data done [11:18:40]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82144,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [11:18:40]process_action_free close_receipt [11:18:40]json_value_free [11:18:40]json_value_free done [11:18:40]process_json_proto returns [11:18:40]Send response to host [11:18:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82144,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [11:18:40]free response buf [11:18:40]execute_script done [11:18:40]execute_script returns [11:18:40]free content buf [11:18:40]Sock 7.Close socket [11:18:40]Sock 7.Thread stoped [11:18:44]OFD Sender: No OFD packet to send [11:18:49]OFD Sender: No OFD packet to send [11:18:54]OFD Sender: No OFD packet to send [11:18:59]OFD Sender: No OFD packet to send [11:19:04]OFD Sender: No OFD packet to send [11:19:09]OFD Sender: No OFD packet to send [11:19:14]OFD Sender: No OFD packet to send [11:19:19]OFD Sender: No OFD packet to send [11:19:24]OFD Sender: No OFD packet to send [11:19:29]OFD Sender: No OFD packet to send [11:19:34]OFD Sender: No OFD packet to send [11:19:39]OFD Sender: No OFD packet to send [11:19:44]OFD Sender: No OFD packet to send [11:19:49]OFD Sender: No OFD packet to send [11:19:54]OFD Sender: No OFD packet to send [11:19:59]OFD Sender: No OFD packet to send [11:20:04]OFD Sender: No OFD packet to send [11:20:09]OFD Sender: No OFD packet to send [11:20:14]OFD Sender: No OFD packet to send [11:20:19]OFD Sender: No OFD packet to send [11:20:24]OFD Sender: No OFD packet to send [11:20:29]OFD Sender: No OFD packet to send [11:20:34]OFD Sender: No OFD packet to send [11:20:40]OFD Sender: No OFD packet to send [11:20:45]OFD Sender: No OFD packet to send [11:20:50]OFD Sender: No OFD packet to send [11:20:55]OFD Sender: No OFD packet to send [11:21:00]OFD Sender: No OFD packet to send [11:21:05]OFD Sender: No OFD packet to send [11:21:10]OFD Sender: No OFD packet to send [11:21:15]OFD Sender: No OFD packet to send [11:21:20]OFD Sender: No OFD packet to send [11:21:25]OFD Sender: No OFD packet to send [11:21:30]OFD Sender: No OFD packet to send [11:21:35]OFD Sender: No OFD packet to send [11:21:40]OFD Sender: No OFD packet to send [11:21:41]accept exits with 9 [11:21:41]New connection [11:21:41]New thread 3067002212 created [11:21:41]Thread 3067145572 joined [11:21:41]Waiting for new connection... [11:21:41] Sock 9.Parse request [11:21:41]Sock 9.Check first char [11:21:41]Sock 9.First char is OK [11:21:41]request: POST /json_proto HTTP/1.0 [11:21:41]Method: POST [11:21:41]URL: /json_proto [11:21:41]Method is POST - this is cgi request [11:21:41]url: /json_proto [11:21:41]query_string will be loaded in cgi processing [11:21:41]execute_cgi json_proto POST (null) [11:21:41]execute_cgi path=json_proto method=POST [11:21:41]POST find Content-Length [11:21:41]Host: 172.17.44.67:8080 [11:21:41]Content-Length: 769 [11:21:41]Content-Type: application/json [11:21:41] [11:21:41]POST finish read [11:21:41]Found Content-Length = 769 [11:21:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 16.450, "sum" : 1100.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1100.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:41]execute_script... [11:21:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 16.450, "sum" : 1100.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1100.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:41]POST & json_proto [11:21:41]process_json_proto [11:21:41]json parsed OK: [11:21:41]protocol is kg_v1.0 [11:21:41]action value=close_receipt [11:21:41]process_action close_receipt [11:21:41]cmd_close_receipt [11:21:41]MH_GetDate [11:21:41]Write to MH i2c: F0 00 00 92 01 82 [11:21:41]Write i2c OK [11:21:41]MH_I2C_Read... [11:21:41]Read from MH i2c: F0 [11:21:41]MH_I2C_Read... [11:21:41]Read from MH i2c: F0 09 00 [11:21:41]MH_I2C_Read... [11:21:41]Read from MH i2c: F0 09 00 92 01 00 45 F3 10 67 F1 C7 6B 64 C1 [11:21:41]GetLastDocTimeStamp 1729163916 [11:21:41]current date 1729164101 [11:21:41]FM_GetShiftState [11:21:41]SAM_PROTO_GetShiftState [11:21:41]wFMCommunicate request_size=4 [11:21:41]MH_SAM_APDU [11:21:41]CAPDU: 80 13 01 00 [11:21:41]Write to MH i2c: E2 08 00 93 01 80 13 01 00 00 00 00 00 11 [11:21:41]Write i2c OK [11:21:41]MH_I2C_Read... [11:21:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:41]Read from MH i2c: E2 [11:21:41]MH_I2C_Read... [11:21:41]Read from MH i2c: E2 0E 00 [11:21:41]MH_I2C_Read... [11:21:41]Read from MH i2c: E2 0E 00 93 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 19 [11:21:41]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [11:21:41]wFMCommunicate OK [11:21:41]SAM_PROTO_GetShiftState done [11:21:41]FM_GetShiftState done [11:21:41]opened in 1729125927 [11:21:41]opened+sec_in_day 1729212327 [11:21:41]quantity*price = 110050 [11:21:41]sum+1 = 110052 [11:21:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1100.51 НСП 1% : 9.74 НДС 12% : 116.87 Наличными: 0.00 Безнал.: 1100.51 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 71 17.10.2024 11:21 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82145 ФПД: 268203608240920 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T112141&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82145&fm=268203608240920&tin=02508201610067®Number=0000000000091680&sum=110051 [11:21:42]StoreToDocumentArchive [11:21:42]shift 525 fd 82145 [11:21:42]save to /storage/0525/doc_00082145 [11:21:42]save last doc name /storage/0525/doc_00082145 to /storage/kkm_last_doc_name [11:21:42]save OK [11:21:42]Clear old archive folders... [11:21:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:21:42]tlvbuf is 01D94B50 [11:21:42]SAM_PROTO_ClearQueue [11:21:42]wFMCommunicate request_size=4 [11:21:42]MH_SAM_APDU [11:21:42]CAPDU: 80 09 00 00 [11:21:42]Write to MH i2c: E2 08 00 A0 01 80 09 00 00 00 00 00 00 13 [11:21:42]Write i2c OK [11:21:42]MH_I2C_Read... [11:21:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:21:42]Read from MH i2c: E2 [11:21:42]MH_I2C_Read... [11:21:42]Read from MH i2c: E2 03 00 [11:21:42]MH_I2C_Read... [11:21:42]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [11:21:42]RAPDU: 90 00 [11:21:42]wFMCommunicate OK [11:21:42]SAM_PROTO_ClearQueue done [11:21:42]KKMCreateOFDPacket [11:21:42]OFDProtocolAddRootSTLVToBuf [11:21:42]FM_MakeSignedData [11:21:42]FM_MakeSignedData [11:21:42]SAM_PROTO_SignData [11:21:42]wFMCommunicate request_size=4 [11:21:42]MH_SAM_APDU [11:21:42]CAPDU: 80 0D 01 02 [11:21:42]Write to MH i2c: E2 08 00 A1 01 80 0D 01 02 00 00 00 00 1B [11:21:42]Write i2c OK [11:21:42]MH_I2C_Read... [11:21:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:21:42]Read from MH i2c: E2 [11:21:42]MH_I2C_Read... [11:21:42]Read from MH i2c: E2 03 00 [11:21:42]MH_I2C_Read... [11:21:42]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [11:21:42]RAPDU: 90 00 [11:21:42]wFMCommunicate OK [11:21:42]wFMCommunicate request_size=255 [11:21:42]MH_SAM_APDU [11:21:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 42 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E3 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E3 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 45 F3 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E1 40 01 00 35 04 06 00 F3 [11:21:42]Write to MH i2c: E2 02 01 A2 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 42 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E3 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E3 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 45 F3 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E1 40 01 00 35 04 06 00 F3 00 00 52 [11:21:42]Write i2c OK [11:21:42]MH_I2C_Read... [11:21:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:43]Read from MH i2c: E2 [11:21:43]MH_I2C_Read... [11:21:43]Read from MH i2c: E2 03 00 [11:21:43]MH_I2C_Read... [11:21:43]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [11:21:43]RAPDU: 90 00 [11:21:43]wFMCommunicate OK [11:21:43]wFMCommunicate request_size=10 [11:21:43]MH_SAM_APDU [11:21:43]CAPDU: 80 0D 02 02 05 EE 04 CB F3 18 [11:21:43]Write to MH i2c: E2 0D 00 A3 01 80 0D 02 02 05 00 EE 04 CB F3 18 00 00 F0 [11:21:43]Write i2c OK [11:21:43]MH_I2C_Read... [11:21:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:43]Read from MH i2c: E2 [11:21:43]MH_I2C_Read... [11:21:43]Read from MH i2c: E2 03 00 [11:21:43]MH_I2C_Read... [11:21:43]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [11:21:43]RAPDU: 90 00 [11:21:43]wFMCommunicate OK [11:21:43]wFMCommunicate request_size=4 [11:21:43]MH_SAM_APDU [11:21:43]CAPDU: 80 0D 03 02 [11:21:43]Write to MH i2c: E2 08 00 A4 01 80 0D 03 02 00 00 00 00 20 [11:21:43]Write i2c OK [11:21:43]MH_I2C_Read... [11:21:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:21:43]Read from MH i2c: E2 [11:21:43]MH_I2C_Read... [11:21:43]Read from MH i2c: E2 0B 00 [11:21:43]MH_I2C_Read... [11:21:43]Read from MH i2c: E2 0B 00 A4 01 00 5A E2 FB A3 14 82 93 2C 90 00 50 [11:21:43]RAPDU: 5A E2 FB A3 14 82 93 2C 90 00 [11:21:43]wFMCommunicate OK [11:21:43]SAM_PROTO_SignData done [11:21:43]FM_MakeSignedData done [11:21:43]CreateOFDProtocolMessage [11:21:43]wFMCommunicate request_size=4 [11:21:43]MH_SAM_APDU [11:21:43]CAPDU: 80 11 00 00 [11:21:43]Write to MH i2c: E2 08 00 A5 01 80 11 00 00 00 00 00 00 20 [11:21:43]Write i2c OK [11:21:43]MH_I2C_Read... [11:21:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:43]Read from MH i2c: E2 [11:21:43]MH_I2C_Read... [11:21:43]Read from MH i2c: E2 17 00 [11:21:43]MH_I2C_Read... [11:21:43]Read from MH i2c: E2 17 00 A5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 72 [11:21:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:21:43]wFMCommunicate OK [11:21:43]CreateOFDProtocolMessage done [11:21:43]OFDSenderStorePacket 82145 [11:21:43]StoreOFDPacket docnum=82145 [11:21:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 37 D7 07 01 29 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 42 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E3 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E3 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 45 F3 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E1 40 01 00 35 04 06 00 F3 EE 04 CB F3 18 5A E2 FB A3 14 82 93 2C [11:21:43]CheckFolder [11:21:43]dirname=/storage/ofd_packets [11:21:43]CheckFolder done [11:21:43]ProducePacketName [11:21:43]name=ofd_packets/00082145 [11:21:43]NVStorageSaveData ofd_packets/00082145 [11:21:43]File name is /storage/ofd_packets/00082145 [11:21:43]Write 301 bytes [11:21:43]NVStorageSaveData done [11:21:43]OFDSenderStorePacket done [11:21:43]KKMCreateOFDPacket done [11:21:43]NVStorageSaveData kkm_last_timestamp [11:21:43]File name is /storage/kkm_last_timestamp [11:21:43]Write 4 bytes [11:21:43]NVStorageSaveData done [11:21:43]ExternCall_PrintAddStr [11:21:43]wPrintStart [11:21:43]Write to MH i2c: 01 00 00 A6 01 A7 [11:21:43]Write i2c OK [11:21:43]MH_I2C_Read... [11:21:43]Read from MH i2c: 01 [11:21:43]MH_I2C_Read... [11:21:43]Read from MH i2c: 01 07 00 [11:21:43]MH_I2C_Read... [11:21:43]Read from MH i2c: 01 07 00 A6 01 00 00 00 00 00 FF 0F BC [11:21:43]RasterBufferAndPrint [11:21:43]line Счет N : (1)918651 [11:21:43]line ИНН: 02508201610067 [11:21:43]line Контрольно-Кассовый Чек [11:21:43]line ПРОДАЖА [11:21:43]line ТРК (МРК, ГНК) : 11 [11:21:43]line Товар: 2710124130 [11:21:43]line Аи-92-К-4 [11:21:43]line 16.450 * 66.90 [11:21:43]line = 1100.51 [11:21:43]line НДС 12% НСП 1% [11:21:43]line > о реализуемом товаре [11:21:43]line ИТОГО: 1100.51 [11:21:43]line НСП 1% : 9.74 [11:21:43]line НДС 12% : 116.87 [11:21:43]line Наличными: 0.00 [11:21:43]line Безнал.: 1100.51 [11:21:43]line Место: АЗС № 114 "Партнер Нефть" [11:21:43]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:21:43]line СНО: Общий режим [11:21:43]line Чек 71 17.10.2024 11:21 [11:21:43]line Смена: 525 ФФД: 1.0 [11:21:43]line ЗНМ: 0300000086 [11:21:43]line РНМ: 0000000000091680 [11:21:43]line Версия ККМ: 001 [11:21:43]line Платежная система: Mbank [11:21:43]line ФМ: 0000000000871843 [11:21:43]line ФД: 82145 [11:21:43]line ФПД: 268203608240920 [11:21:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T112141&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82145&fm=268203608240920&tin=02508201610067®Number=0000000000091680&sum=110051 [11:21:43]OFD Sender: Processing packet 82145 [packets to send 254, broken 253] [11:21:43]ProducePacketName [11:21:43]name=ofd_packets/00082145 [11:21:43]OFD Sender: To server: pG, [11:21:43]CommunicateWithHost lk.salyk.kg:30040 [11:21:43]ConnectInit lk.salyk.kg [11:21:43]written 0, free lines is 4095 [11:21:44]Write to MH i2c: 01 00 00 CF 01 D0 [11:21:44]Write i2c OK [11:21:44]MH_I2C_Read... [11:21:44]Read from MH i2c: 01 [11:21:44]MH_I2C_Read... [11:21:44]Read from MH i2c: 01 07 00 [11:21:44]MH_I2C_Read... [11:21:44]Read from MH i2c: 01 07 00 CF 01 00 00 00 00 00 F8 0C DB [11:21:44]RasterBufferAndPrint [11:21:44]line [11:21:44]line [11:21:44]line [11:21:44]line [11:21:44]line [11:21:44]written 0, free lines is 3327 [11:21:44]MH_Cut [11:21:44]Write to MH i2c: D1 01 00 D6 01 01 A9 [11:21:44]Write i2c OK [11:21:44]MH_I2C_Read... [11:21:44]Read from MH i2c: D1 [11:21:44]MH_I2C_Read... [11:21:44]Read from MH i2c: D1 01 00 [11:21:44]MH_I2C_Read... [11:21:44]Read from MH i2c: D1 01 00 D6 01 00 A8 [11:21:44]Write to MH i2c: 01 00 00 D7 01 D8 [11:21:44]Write i2c OK [11:21:44]MH_I2C_Read... [11:21:44]*** Cut start [11:21:44]*** Partial cut [11:21:44]*** CUTSNS_PIN = 1 [11:21:44]*** CUTSNS_PIN = 0 [11:21:45]*** Brake cut motor [11:21:45]Read from MH i2c: 01 [11:21:45]MH_I2C_Read... [11:21:45]*** Stop cut motor [11:21:45]*** Cut end [11:21:45]Read from MH i2c: 01 07 00 [11:21:45]MH_I2C_Read... [11:21:45]Read from MH i2c: 01 07 00 D7 01 00 00 00 00 00 FF 0F ED [11:21:45]process_action close_receipt done [11:21:45]requested_data is exist [11:21:45]produce_requested_data [11:21:45]requested_item fm.sn is exist - process it [11:21:45]wFMCommunicate request_size=4 [11:21:45]MH_SAM_APDU [11:21:45]CAPDU: 80 11 00 00 [11:21:45]Write to MH i2c: E2 08 00 D8 01 80 11 00 00 00 00 00 00 53 [11:21:45]Write i2c OK [11:21:45]MH_I2C_Read... [11:21:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:45]Read from MH i2c: E2 [11:21:45]MH_I2C_Read... [11:21:45]Read from MH i2c: E2 17 00 [11:21:45]MH_I2C_Read... [11:21:45]Read from MH i2c: E2 17 00 D8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 A5 [11:21:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:21:45]wFMCommunicate OK [11:21:45]requested_item fd.num is exist - process it [11:21:45]SAM_PROTO_GetFieldsCounters [11:21:45]wFMCommunicate request_size=4 [11:21:45]MH_SAM_APDU [11:21:45]CAPDU: 80 13 00 00 [11:21:45]Write to MH i2c: E2 08 00 D9 01 80 13 00 00 00 00 00 00 56 [11:21:45]Write i2c OK [11:21:45]MH_I2C_Read... [11:21:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:21:45]Read from MH i2c: E2 [11:21:45]MH_I2C_Read... [11:21:45]Read from MH i2c: E2 62 00 [11:21:45]MH_I2C_Read... [11:21:45]Read from MH i2c: E2 62 00 D9 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E1 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [11:21:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E1 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:21:45]wFMCommunicate OK [11:21:45]SAM_PROTO_GetFieldsCounters done [11:21:45]requested_item shift.num is exist - process it [11:21:45]requested_item shift.opened is exist - process it [11:21:45]req_shift_opened [11:21:45]FM_GetShiftState [11:21:45]SAM_PROTO_GetShiftState [11:21:45]wFMCommunicate request_size=4 [11:21:45]MH_SAM_APDU [11:21:45]CAPDU: 80 13 01 00 [11:21:45]Write to MH i2c: E2 08 00 DA 01 80 13 01 00 00 00 00 00 58 [11:21:45]Write i2c OK [11:21:45]MH_I2C_Read... [11:21:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:45]Read from MH i2c: E2 [11:21:45]MH_I2C_Read... [11:21:45]Read from MH i2c: E2 0E 00 [11:21:45]MH_I2C_Read... [11:21:45]Read from MH i2c: E2 0E 00 DA 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 60 [11:21:45]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [11:21:45]wFMCommunicate OK [11:21:45]SAM_PROTO_GetShiftState done [11:21:45]FM_GetShiftState done [11:21:45]req_shift_opened done [11:21:45]requested_item shift.open_date is exist - process it [11:21:45]req_shift_open_date [11:21:45]req_shift_open_date done [11:21:45]produce_requested_data done [11:21:45]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82145,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [11:21:45]process_action_free close_receipt [11:21:45]json_value_free [11:21:45]json_value_free done [11:21:45]process_json_proto returns [11:21:45]Send response to host [11:21:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82145,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [11:21:45]free response buf [11:21:45]execute_script done [11:21:45]execute_script returns [11:21:45]free content buf [11:21:45]Sock 9.Close socket [11:21:45]Sock 9.Thread stoped [11:21:47]Connected sock=11 [11:21:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 37 D7 07 01 29 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 42 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E3 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E3 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 45 F3 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E1 40 01 00 35 04 06 00 F3 EE 04 CB F3 18 5A E2 FB A3 14 82 93 2C [11:21:47]recv_with_timeout no data received [11:21:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 90 37 47 00 98 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E1 40 01 00 F4 03 04 00 87 98 10 67 B6 04 01 00 00 FB D3 1F 94 EA 8B 1C A5 [11:21:51]CommunicateWithHost err = 0 [11:21:51]CheckOFDResponse [11:21:51]1017 (14) - 77093643461234 [11:21:51]1041 (16) - 0000000000871843 [11:21:51]1040 (4) - 82145 [11:21:51]1012 (4) - 17.10.2024 04:54 [11:21:51]1206 (1) - 0 [11:21:51]OFD Sender: Remove packet 82145 [11:21:51]ProducePacketName [11:21:51]name=ofd_packets/00082145 [11:21:51]NVStorageDeleteData [11:21:52]OFD Sender: No OFD packet to send [11:21:57]OFD Sender: No OFD packet to send [11:21:59]recv_with_timeout no data received [11:22:02]OFD Sender: No OFD packet to send [11:22:07]OFD Sender: No OFD packet to send [11:22:09]recv_with_timeout no data received [11:22:12]OFD Sender: No OFD packet to send [11:22:17]OFD Sender: No OFD packet to send [11:22:22]OFD Sender: No OFD packet to send [11:22:27]OFD Sender: No OFD packet to send [11:22:32]OFD Sender: No OFD packet to send [11:22:37]OFD Sender: No OFD packet to send [11:22:42]OFD Sender: No OFD packet to send [11:22:47]OFD Sender: No OFD packet to send [11:22:52]OFD Sender: No OFD packet to send [11:22:57]OFD Sender: No OFD packet to send [11:23:02]OFD Sender: No OFD packet to send [11:23:07]OFD Sender: No OFD packet to send [11:23:12]OFD Sender: No OFD packet to send [11:23:17]OFD Sender: No OFD packet to send [11:23:22]OFD Sender: No OFD packet to send [11:23:27]OFD Sender: No OFD packet to send [11:23:32]OFD Sender: No OFD packet to send [11:23:37]OFD Sender: No OFD packet to send [11:23:42]OFD Sender: No OFD packet to send [11:23:47]OFD Sender: No OFD packet to send [11:23:52]OFD Sender: No OFD packet to send [11:23:57]OFD Sender: No OFD packet to send [11:24:02]OFD Sender: No OFD packet to send [11:24:07]OFD Sender: No OFD packet to send [11:24:12]OFD Sender: No OFD packet to send [11:24:17]OFD Sender: No OFD packet to send [11:24:22]OFD Sender: No OFD packet to send [11:24:27]OFD Sender: No OFD packet to send [11:24:32]OFD Sender: No OFD packet to send [11:24:37]OFD Sender: No OFD packet to send [11:24:42]OFD Sender: No OFD packet to send [11:24:47]OFD Sender: No OFD packet to send [11:24:52]OFD Sender: No OFD packet to send [11:24:57]OFD Sender: No OFD packet to send [11:25:02]OFD Sender: No OFD packet to send [11:25:07]OFD Sender: No OFD packet to send [11:25:12]OFD Sender: No OFD packet to send [11:25:13]accept exits with 7 [11:25:13]New connection [11:25:13]New thread 3067145572 created [11:25:13]Thread 3067002212 joined [11:25:13]Waiting for new connection... [11:25:13] Sock 7.Parse request [11:25:13]Sock 7.Check first char [11:25:13]Sock 7.First char is OK [11:25:13]request: POST /json_proto HTTP/1.0 [11:25:13]Method: POST [11:25:13]URL: /json_proto [11:25:13]Method is POST - this is cgi request [11:25:13]url: /json_proto [11:25:13]query_string will be loaded in cgi processing [11:25:13]execute_cgi json_proto POST (null) [11:25:13]execute_cgi path=json_proto method=POST [11:25:13]POST find Content-Length [11:25:13]Host: 172.17.44.67:8080 [11:25:13]Content-Length: 678 [11:25:13]Content-Type: application/json [11:25:13] [11:25:13]POST finish read [11:25:13]Found Content-Length = 678 [11:25:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:13]execute_script... [11:25:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:13]POST & json_proto [11:25:13]process_json_proto [11:25:13]json parsed OK: [11:25:13]protocol is kg_v1.0 [11:25:13]action value=close_receipt [11:25:13]process_action close_receipt [11:25:13]cmd_close_receipt [11:25:13]MH_GetDate [11:25:13]Write to MH i2c: F0 00 00 DB 01 CB [11:25:13]Write i2c OK [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: F0 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: F0 09 00 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: F0 09 00 DB 01 00 1A F4 10 67 F1 C7 6B 64 E0 [11:25:13]GetLastDocTimeStamp 1729164101 [11:25:13]current date 1729164314 [11:25:13]FM_GetShiftState [11:25:13]SAM_PROTO_GetShiftState [11:25:13]wFMCommunicate request_size=4 [11:25:13]MH_SAM_APDU [11:25:13]CAPDU: 80 13 01 00 [11:25:13]Write to MH i2c: E2 08 00 DC 01 80 13 01 00 00 00 00 00 5A [11:25:13]Write i2c OK [11:25:13]MH_I2C_Read... [11:25:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:13]Read from MH i2c: E2 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 0E 00 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 0E 00 DC 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 62 [11:25:13]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [11:25:13]wFMCommunicate OK [11:25:13]SAM_PROTO_GetShiftState done [11:25:13]FM_GetShiftState done [11:25:13]opened in 1729125927 [11:25:13]opened+sec_in_day 1729212327 [11:25:13]quantity*price = 80061 [11:25:13]sum+1 = 80063 [11:25:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 72 17.10.2024 11:25 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82146 ФПД: 48631866171678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T112514&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82146&fm=48631866171678&tin=02508201610067®Number=0000000000091680&sum=80000 [11:25:15]StoreToDocumentArchive [11:25:15]shift 525 fd 82146 [11:25:15]save to /storage/0525/doc_00082146 [11:25:15]save last doc name /storage/0525/doc_00082146 to /storage/kkm_last_doc_name [11:25:15]save OK [11:25:15]Clear old archive folders... [11:25:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:25:15]tlvbuf is 01D8E710 [11:25:15]SAM_PROTO_ClearQueue [11:25:15]wFMCommunicate request_size=4 [11:25:15]MH_SAM_APDU [11:25:15]CAPDU: 80 09 00 00 [11:25:15]Write to MH i2c: E2 08 00 E9 01 80 09 00 00 00 00 00 00 5C [11:25:15]Write i2c OK [11:25:15]MH_I2C_Read... [11:25:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:15]Read from MH i2c: E2 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: E2 03 00 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [11:25:15]RAPDU: 90 00 [11:25:15]wFMCommunicate OK [11:25:15]SAM_PROTO_ClearQueue done [11:25:15]KKMCreateOFDPacket [11:25:15]OFDProtocolAddRootSTLVToBuf [11:25:15]FM_MakeSignedData [11:25:15]FM_MakeSignedData [11:25:15]SAM_PROTO_SignData [11:25:15]wFMCommunicate request_size=4 [11:25:15]MH_SAM_APDU [11:25:15]CAPDU: 80 0D 01 02 [11:25:15]Write to MH i2c: E2 08 00 EA 01 80 0D 01 02 00 00 00 00 64 [11:25:15]Write i2c OK [11:25:15]MH_I2C_Read... [11:25:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:15]Read from MH i2c: E2 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: E2 03 00 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [11:25:15]RAPDU: 90 00 [11:25:15]wFMCommunicate OK [11:25:15]wFMCommunicate request_size=255 [11:25:15]MH_SAM_APDU [11:25:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 1A F4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E2 40 01 00 35 04 06 00 2C [11:25:15]Write to MH i2c: E2 02 01 EB 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 1A F4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E2 40 01 00 35 04 06 00 2C 00 00 89 [11:25:15]Write i2c OK [11:25:15]MH_I2C_Read... [11:25:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:15]Read from MH i2c: E2 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: E2 03 00 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [11:25:15]RAPDU: 90 00 [11:25:15]wFMCommunicate OK [11:25:15]wFMCommunicate request_size=10 [11:25:15]MH_SAM_APDU [11:25:15]CAPDU: 80 0D 02 02 05 3A FD 1B A1 1E [11:25:15]Write to MH i2c: E2 0D 00 EC 01 80 0D 02 02 05 00 3A FD 1B A1 1E 00 00 82 [11:25:15]Write i2c OK [11:25:15]MH_I2C_Read... [11:25:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:15]Read from MH i2c: E2 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: E2 03 00 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [11:25:15]RAPDU: 90 00 [11:25:15]wFMCommunicate OK [11:25:15]wFMCommunicate request_size=4 [11:25:15]MH_SAM_APDU [11:25:15]CAPDU: 80 0D 03 02 [11:25:15]Write to MH i2c: E2 08 00 ED 01 80 0D 03 02 00 00 00 00 69 [11:25:15]Write i2c OK [11:25:15]MH_I2C_Read... [11:25:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:15]Read from MH i2c: E2 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: E2 0B 00 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: E2 0B 00 ED 01 00 7B 30 4F 8A A0 B7 C4 B6 90 00 BF [11:25:15]RAPDU: 7B 30 4F 8A A0 B7 C4 B6 90 00 [11:25:15]wFMCommunicate OK [11:25:15]SAM_PROTO_SignData done [11:25:15]FM_MakeSignedData done [11:25:15]CreateOFDProtocolMessage [11:25:15]wFMCommunicate request_size=4 [11:25:15]MH_SAM_APDU [11:25:15]CAPDU: 80 11 00 00 [11:25:15]Write to MH i2c: E2 08 00 EE 01 80 11 00 00 00 00 00 00 69 [11:25:15]Write i2c OK [11:25:15]MH_I2C_Read... [11:25:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:15]Read from MH i2c: E2 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: E2 17 00 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: E2 17 00 EE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 BB [11:25:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:25:15]wFMCommunicate OK [11:25:15]CreateOFDProtocolMessage done [11:25:15]OFDSenderStorePacket 82146 [11:25:15]StoreOFDPacket docnum=82146 [11:25:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 48 1F 07 01 73 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 1A F4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E2 40 01 00 35 04 06 00 2C 3A FD 1B A1 1E 7B 30 4F 8A A0 B7 C4 B6 [11:25:15]CheckFolder [11:25:15]dirname=/storage/ofd_packets [11:25:15]CheckFolder done [11:25:15]ProducePacketName [11:25:15]name=ofd_packets/00082146 [11:25:15]NVStorageSaveData ofd_packets/00082146 [11:25:15]File name is /storage/ofd_packets/00082146 [11:25:15]Write 301 bytes [11:25:15]NVStorageSaveData done [11:25:15]OFDSenderStorePacket done [11:25:15]KKMCreateOFDPacket done [11:25:15]NVStorageSaveData kkm_last_timestamp [11:25:15]File name is /storage/kkm_last_timestamp [11:25:15]Write 4 bytes [11:25:15]NVStorageSaveData done [11:25:15]ExternCall_PrintAddStr [11:25:15]wPrintStart [11:25:15]Write to MH i2c: 01 00 00 EF 01 F0 [11:25:15]Write i2c OK [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: 01 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: 01 07 00 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: 01 07 00 EF 01 00 00 00 00 00 FF 0F 05 [11:25:15]RasterBufferAndPrint [11:25:15]line Счет N : (1)918652 [11:25:15]line ИНН: 02508201610067 [11:25:15]line Контрольно-Кассовый Чек [11:25:15]line ПРОДАЖА [11:25:15]line ТРК (МРК, ГНК) : 12 [11:25:15]line Товар: 2710124500 [11:25:15]line Аи-95-К-5 [11:25:15]line 10.790 * 74.20 [11:25:15]line = 800.62 [11:25:15]line НДС 12% НСП 1% [11:25:15]line > о реализуемом товаре [11:25:15]line ОКРУГЛЕНИЕ: -0.62 [11:25:15]line ИТОГО: 800.00 [11:25:15]line Внесено: 800.00 [11:25:15]line СДАЧА: 0.00 [11:25:15]line НСП 1% : 7.08 [11:25:15]line НДС 12% : 85.02 [11:25:15]line Наличными: 800.00 [11:25:15]line Безнал.: 0.00 [11:25:15]line Место: АЗС № 114 "Партнер Нефть" [11:25:15]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:25:15]line СНО: Общий режим [11:25:15]line Чек 72 17.10.2024 11:25 [11:25:15]line Смена: 525 ФФД: 1.0 [11:25:15]line ЗНМ: 0300000086 [11:25:15]line РНМ: 0000000000091680 [11:25:15]line Версия ККМ: 001 [11:25:15]line ФМ: 0000000000871843 [11:25:15]line ФД: 82146 [11:25:15]line ФПД: 48631866171678 [11:25:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T112514&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82146&fm=48631866171678&tin=02508201610067®Number=0000000000091680&sum=80000 [11:25:15]OFD Sender: Processing packet 82146 [packets to send 254, broken 253] [11:25:15]ProducePacketName [11:25:15]name=ofd_packets/00082146 [11:25:15]OFD Sender: To server: pG, [11:25:15]CommunicateWithHost lk.salyk.kg:30040 [11:25:15]ConnectInit lk.salyk.kg [11:25:15]written 0, free lines is 4095 [11:25:16]Write to MH i2c: 01 00 00 1A 02 1C [11:25:16]Write i2c OK [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: 01 [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: 01 07 00 [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: 01 07 00 1A 02 00 00 00 00 00 D1 0C 00 [11:25:16]RasterBufferAndPrint [11:25:16]line [11:25:16]line [11:25:16]line [11:25:16]line [11:25:16]line [11:25:16]written 0, free lines is 3284 [11:25:16]MH_Cut [11:25:16]Write to MH i2c: D1 01 00 21 02 01 F5 [11:25:16]Write i2c OK [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: D1 [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: D1 01 00 [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: D1 01 00 21 02 00 F4 [11:25:16]Write to MH i2c: 01 00 00 22 02 24 [11:25:16]Write i2c OK [11:25:16]MH_I2C_Read... [11:25:17]*** Cut start [11:25:17]*** Partial cut [11:25:17]*** CUTSNS_PIN = 1 [11:25:17]*** CUTSNS_PIN = 0 [11:25:17]*** Brake cut motor [11:25:17]Read from MH i2c: 01 [11:25:17]MH_I2C_Read... [11:25:17]*** Stop cut motor [11:25:17]*** Cut end [11:25:17]Read from MH i2c: 01 07 00 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: 01 07 00 22 02 00 00 00 00 00 FF 0F 39 [11:25:17]process_action close_receipt done [11:25:17]requested_data is exist [11:25:17]produce_requested_data [11:25:17]requested_item fm.sn is exist - process it [11:25:17]wFMCommunicate request_size=4 [11:25:17]MH_SAM_APDU [11:25:17]CAPDU: 80 11 00 00 [11:25:17]Write to MH i2c: E2 08 00 23 02 80 11 00 00 00 00 00 00 9F [11:25:17]Write i2c OK [11:25:17]MH_I2C_Read... [11:25:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:17]Read from MH i2c: E2 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: E2 17 00 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: E2 17 00 23 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 F1 [11:25:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:25:17]wFMCommunicate OK [11:25:17]requested_item fd.num is exist - process it [11:25:17]SAM_PROTO_GetFieldsCounters [11:25:17]wFMCommunicate request_size=4 [11:25:17]MH_SAM_APDU [11:25:17]CAPDU: 80 13 00 00 [11:25:17]Write to MH i2c: E2 08 00 24 02 80 13 00 00 00 00 00 00 A2 [11:25:17]Write i2c OK [11:25:17]MH_I2C_Read... [11:25:17]Connected sock=11 [11:25:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 48 1F 07 01 73 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 1A F4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E2 40 01 00 35 04 06 00 2C 3A FD 1B A1 1E 7B 30 4F 8A A0 B7 C4 B6 [11:25:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:18]Read from MH i2c: E2 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: E2 62 00 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: E2 62 00 24 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E2 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [11:25:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E2 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:25:18]wFMCommunicate OK [11:25:18]SAM_PROTO_GetFieldsCounters done [11:25:18]requested_item shift.num is exist - process it [11:25:18]requested_item shift.opened is exist - process it [11:25:18]req_shift_opened [11:25:18]FM_GetShiftState [11:25:18]SAM_PROTO_GetShiftState [11:25:18]wFMCommunicate request_size=4 [11:25:18]MH_SAM_APDU [11:25:18]CAPDU: 80 13 01 00 [11:25:18]Write to MH i2c: E2 08 00 25 02 80 13 01 00 00 00 00 00 A4 [11:25:18]Write i2c OK [11:25:18]MH_I2C_Read... [11:25:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:18]Read from MH i2c: E2 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: E2 0E 00 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: E2 0E 00 25 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 AC [11:25:18]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [11:25:18]wFMCommunicate OK [11:25:18]SAM_PROTO_GetShiftState done [11:25:18]FM_GetShiftState done [11:25:18]req_shift_opened done [11:25:18]requested_item shift.open_date is exist - process it [11:25:18]req_shift_open_date [11:25:18]req_shift_open_date done [11:25:18]produce_requested_data done [11:25:18]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82146,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [11:25:18]process_action_free close_receipt [11:25:18]json_value_free [11:25:18]json_value_free done [11:25:18]process_json_proto returns [11:25:18]Send response to host [11:25:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82146,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [11:25:18]free response buf [11:25:18]execute_script done [11:25:18]execute_script returns [11:25:18]free content buf [11:25:18]Sock 7.Close socket [11:25:18]Sock 7.Thread stoped [11:25:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 85 82 47 00 D3 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E2 40 01 00 F4 03 04 00 5A 99 10 67 B6 04 01 00 00 DD C4 33 CF 11 DC FD 79 [11:25:18]CommunicateWithHost err = 0 [11:25:18]CheckOFDResponse [11:25:18]1017 (14) - 77093643461234 [11:25:18]1041 (16) - 0000000000871843 [11:25:18]1040 (4) - 82146 [11:25:18]1012 (4) - 17.10.2024 04:58 [11:25:18]1206 (1) - 0 [11:25:18]OFD Sender: Remove packet 82146 [11:25:18]ProducePacketName [11:25:18]name=ofd_packets/00082146 [11:25:18]NVStorageDeleteData [11:25:19]OFD Sender: No OFD packet to send [11:25:20]recv_with_timeout no data received [11:25:24]OFD Sender: No OFD packet to send [11:25:29]OFD Sender: No OFD packet to send [11:25:31]recv_with_timeout no data received [11:25:34]OFD Sender: No OFD packet to send [11:25:39]OFD Sender: No OFD packet to send [11:25:42]recv_with_timeout no data received [11:25:44]OFD Sender: No OFD packet to send [11:25:49]OFD Sender: No OFD packet to send [11:25:54]OFD Sender: No OFD packet to send [11:25:59]OFD Sender: No OFD packet to send [11:26:04]OFD Sender: No OFD packet to send [11:26:09]OFD Sender: No OFD packet to send [11:26:14]OFD Sender: No OFD packet to send [11:26:19]OFD Sender: No OFD packet to send [11:26:24]OFD Sender: No OFD packet to send [11:26:29]OFD Sender: No OFD packet to send [11:26:34]OFD Sender: No OFD packet to send [11:26:39]OFD Sender: No OFD packet to send [11:26:44]OFD Sender: No OFD packet to send [11:26:49]OFD Sender: No OFD packet to send [11:26:54]OFD Sender: No OFD packet to send [11:26:59]OFD Sender: No OFD packet to send [11:27:04]OFD Sender: No OFD packet to send [11:27:09]OFD Sender: No OFD packet to send [11:27:14]OFD Sender: No OFD packet to send [11:27:19]OFD Sender: No OFD packet to send [11:27:24]OFD Sender: No OFD packet to send [11:27:29]OFD Sender: No OFD packet to send [11:27:34]OFD Sender: No OFD packet to send [11:27:39]OFD Sender: No OFD packet to send [11:27:40]accept exits with 9 [11:27:40]New connection [11:27:40]New thread 3067002212 created [11:27:40]Thread 3067145572 joined [11:27:40]Waiting for new connection... [11:27:40] Sock 9.Parse request [11:27:40]Sock 9.Check first char [11:27:40]Sock 9.First char is OK [11:27:40]request: POST /json_proto HTTP/1.0 [11:27:40]Method: POST [11:27:40]URL: /json_proto [11:27:40]Method is POST - this is cgi request [11:27:40]url: /json_proto [11:27:40]query_string will be loaded in cgi processing [11:27:40]execute_cgi json_proto POST (null) [11:27:40]execute_cgi path=json_proto method=POST [11:27:40]POST find Content-Length [11:27:40]Host: 172.17.44.67:8080 [11:27:40]Content-Length: 687 [11:27:40]Content-Type: application/json [11:27:40] [11:27:40]POST finish read [11:27:40]Found Content-Length = 687 [11:27:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:40]execute_script... [11:27:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:40]POST & json_proto [11:27:40]process_json_proto [11:27:40]json parsed OK: [11:27:40]protocol is kg_v1.0 [11:27:40]action value=close_receipt [11:27:40]process_action close_receipt [11:27:40]cmd_close_receipt [11:27:40]MH_GetDate [11:27:40]Write to MH i2c: F0 00 00 26 02 17 [11:27:40]Write i2c OK [11:27:40]MH_I2C_Read... [11:27:40]Read from MH i2c: F0 [11:27:40]MH_I2C_Read... [11:27:40]Read from MH i2c: F0 09 00 [11:27:40]MH_I2C_Read... [11:27:40]Read from MH i2c: F0 09 00 26 02 00 AC F4 10 67 F1 C7 6B 64 BE [11:27:40]GetLastDocTimeStamp 1729164314 [11:27:40]current date 1729164460 [11:27:40]FM_GetShiftState [11:27:40]SAM_PROTO_GetShiftState [11:27:40]wFMCommunicate request_size=4 [11:27:40]MH_SAM_APDU [11:27:40]CAPDU: 80 13 01 00 [11:27:40]Write to MH i2c: E2 08 00 27 02 80 13 01 00 00 00 00 00 A6 [11:27:40]Write i2c OK [11:27:40]MH_I2C_Read... [11:27:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:40]Read from MH i2c: E2 [11:27:40]MH_I2C_Read... [11:27:40]Read from MH i2c: E2 0E 00 [11:27:40]MH_I2C_Read... [11:27:40]Read from MH i2c: E2 0E 00 27 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 AE [11:27:40]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [11:27:40]wFMCommunicate OK [11:27:40]SAM_PROTO_GetShiftState done [11:27:40]FM_GetShiftState done [11:27:40]opened in 1729125927 [11:27:40]opened+sec_in_day 1729212327 [11:27:40]quantity*price = 100050 [11:27:40]sum+1 = 100052 [11:27:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 73 17.10.2024 11:27 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82147 ФПД: 248491205251393 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T112740&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82147&fm=248491205251393&tin=02508201610067®Number=0000000000091680&sum=100000 [11:27:41]StoreToDocumentArchive [11:27:41]shift 525 fd 82147 [11:27:41]save to /storage/0525/doc_00082147 [11:27:41]save last doc name /storage/0525/doc_00082147 to /storage/kkm_last_doc_name [11:27:41]save OK [11:27:41]Clear old archive folders... [11:27:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:27:41]tlvbuf is 01D9BE40 [11:27:41]SAM_PROTO_ClearQueue [11:27:41]wFMCommunicate request_size=4 [11:27:41]MH_SAM_APDU [11:27:41]CAPDU: 80 09 00 00 [11:27:41]Write to MH i2c: E2 08 00 34 02 80 09 00 00 00 00 00 00 A8 [11:27:41]Write i2c OK [11:27:41]MH_I2C_Read... [11:27:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:41]Read from MH i2c: E2 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: E2 03 00 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [11:27:41]RAPDU: 90 00 [11:27:41]wFMCommunicate OK [11:27:41]SAM_PROTO_ClearQueue done [11:27:41]KKMCreateOFDPacket [11:27:41]OFDProtocolAddRootSTLVToBuf [11:27:41]FM_MakeSignedData [11:27:41]FM_MakeSignedData [11:27:41]SAM_PROTO_SignData [11:27:41]wFMCommunicate request_size=4 [11:27:41]MH_SAM_APDU [11:27:41]CAPDU: 80 0D 01 02 [11:27:41]Write to MH i2c: E2 08 00 35 02 80 0D 01 02 00 00 00 00 B0 [11:27:41]Write i2c OK [11:27:41]MH_I2C_Read... [11:27:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:41]Read from MH i2c: E2 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: E2 03 00 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [11:27:41]RAPDU: 90 00 [11:27:41]wFMCommunicate OK [11:27:41]wFMCommunicate request_size=255 [11:27:41]MH_SAM_APDU [11:27:41]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 AC F4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E3 40 01 00 35 04 06 00 [11:27:41]Write to MH i2c: E2 02 01 36 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 AC F4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E3 40 01 00 35 04 06 00 00 00 AE [11:27:41]Write i2c OK [11:27:41]MH_I2C_Read... [11:27:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:42]Read from MH i2c: E2 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: E2 03 00 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [11:27:42]RAPDU: 90 00 [11:27:42]wFMCommunicate OK [11:27:42]wFMCommunicate request_size=11 [11:27:42]MH_SAM_APDU [11:27:42]CAPDU: 80 0D 02 02 06 E2 00 5E 04 D1 41 [11:27:42]Write to MH i2c: E2 0E 00 37 02 80 0D 02 02 06 00 E2 00 5E 04 D1 41 00 00 15 [11:27:42]Write i2c OK [11:27:42]MH_I2C_Read... [11:27:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:42]Read from MH i2c: E2 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: E2 03 00 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [11:27:42]RAPDU: 90 00 [11:27:42]wFMCommunicate OK [11:27:42]wFMCommunicate request_size=4 [11:27:42]MH_SAM_APDU [11:27:42]CAPDU: 80 0D 03 02 [11:27:42]Write to MH i2c: E2 08 00 38 02 80 0D 03 02 00 00 00 00 B5 [11:27:42]Write i2c OK [11:27:42]MH_I2C_Read... [11:27:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:42]Read from MH i2c: E2 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: E2 0B 00 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: E2 0B 00 38 02 00 A5 D8 60 00 FF D3 B7 9E 90 00 BA [11:27:42]RAPDU: A5 D8 60 00 FF D3 B7 9E 90 00 [11:27:42]wFMCommunicate OK [11:27:42]SAM_PROTO_SignData done [11:27:42]FM_MakeSignedData done [11:27:42]CreateOFDProtocolMessage [11:27:42]wFMCommunicate request_size=4 [11:27:42]MH_SAM_APDU [11:27:42]CAPDU: 80 11 00 00 [11:27:42]Write to MH i2c: E2 08 00 39 02 80 11 00 00 00 00 00 00 B5 [11:27:42]Write i2c OK [11:27:42]MH_I2C_Read... [11:27:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:42]Read from MH i2c: E2 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: E2 17 00 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: E2 17 00 39 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 07 [11:27:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:27:42]wFMCommunicate OK [11:27:42]CreateOFDProtocolMessage done [11:27:42]OFDSenderStorePacket 82147 [11:27:42]StoreOFDPacket docnum=82147 [11:27:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 CA 24 08 01 C8 1C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 AC F4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E3 40 01 00 35 04 06 00 E2 00 5E 04 D1 41 A5 D8 60 00 FF D3 B7 9E [11:27:42]CheckFolder [11:27:42]dirname=/storage/ofd_packets [11:27:42]CheckFolder done [11:27:42]ProducePacketName [11:27:42]name=ofd_packets/00082147 [11:27:42]NVStorageSaveData ofd_packets/00082147 [11:27:42]File name is /storage/ofd_packets/00082147 [11:27:42]Write 302 bytes [11:27:42]NVStorageSaveData done [11:27:42]OFDSenderStorePacket done [11:27:42]KKMCreateOFDPacket done [11:27:42]NVStorageSaveData kkm_last_timestamp [11:27:42]File name is /storage/kkm_last_timestamp [11:27:42]Write 4 bytes [11:27:42]NVStorageSaveData done [11:27:42]ExternCall_PrintAddStr [11:27:42]wPrintStart [11:27:42]Write to MH i2c: 01 00 00 3A 02 3C [11:27:42]Write i2c OK [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: 01 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: 01 07 00 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: 01 07 00 3A 02 00 00 00 00 00 FF 0F 51 [11:27:42]RasterBufferAndPrint [11:27:42]line Счет N : (1)918653 [11:27:42]line ИНН: 02508201610067 [11:27:42]line Контрольно-Кассовый Чек [11:27:42]line ПРОДАЖА [11:27:42]line ТРК (МРК, ГНК) : 31 [11:27:42]line Товар: 2710194210 [11:27:42]line ДТ(л)-К-5 [11:27:42]line 13.130 * 76.20 [11:27:42]line = 1000.51 [11:27:42]line НДС 12% НСП 1% [11:27:42]line > о реализуемом товаре [11:27:42]line ОКРУГЛЕНИЕ: -0.51 [11:27:42]line ИТОГО: 1000.00 [11:27:42]line Внесено: 1000.00 [11:27:42]line СДАЧА: 0.00 [11:27:42]line НСП 1% : 8.85 [11:27:42]line НДС 12% : 106.25 [11:27:42]line Наличными: 1000.00 [11:27:42]line Безнал.: 0.00 [11:27:42]line Место: АЗС № 114 "Партнер Нефть" [11:27:42]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:27:42]line СНО: Общий режим [11:27:42]line Чек 73 17.10.2024 11:27 [11:27:42]line Смена: 525 ФФД: 1.0 [11:27:42]line ЗНМ: 0300000086 [11:27:42]line РНМ: 0000000000091680 [11:27:42]line Версия ККМ: 001 [11:27:42]line ФМ: 0000000000871843 [11:27:42]line ФД: 82147 [11:27:42]line ФПД: 248491205251393 [11:27:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T112740&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82147&fm=248491205251393&tin=02508201610067®Number=0000000000091680&sum=100000 [11:27:42]OFD Sender: Processing packet 82147 [packets to send 254, broken 253] [11:27:42]ProducePacketName [11:27:42]name=ofd_packets/00082147 [11:27:42]OFD Sender: To server: pG, [11:27:42]CommunicateWithHost lk.salyk.kg:30040 [11:27:42]ConnectInit lk.salyk.kg [11:27:42]written 0, free lines is 4095 [11:27:43]Write to MH i2c: 01 00 00 65 02 67 [11:27:43]Write i2c OK [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: 01 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: 01 07 00 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: 01 07 00 65 02 00 00 00 00 00 CD 0C 47 [11:27:43]RasterBufferAndPrint [11:27:43]line [11:27:43]line [11:27:43]line [11:27:43]line [11:27:43]line [11:27:43]written 0, free lines is 3283 [11:27:43]MH_Cut [11:27:43]Write to MH i2c: D1 01 00 6C 02 01 40 [11:27:43]Write i2c OK [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: D1 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: D1 01 00 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: D1 01 00 6C 02 00 3F [11:27:43]Write to MH i2c: 01 00 00 6D 02 6F [11:27:43]Write i2c OK [11:27:43]MH_I2C_Read... [11:27:43]*** Cut start [11:27:43]*** Partial cut [11:27:43]*** CUTSNS_PIN = 1 [11:27:43]*** CUTSNS_PIN = 0 [11:27:44]*** Brake cut motor [11:27:44]Read from MH i2c: 01 [11:27:44]MH_I2C_Read... [11:27:44]*** Stop cut motor [11:27:44]*** Cut end [11:27:44]Read from MH i2c: 01 07 00 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: 01 07 00 6D 02 00 00 00 00 00 FF 0F 84 [11:27:44]process_action close_receipt done [11:27:44]requested_data is exist [11:27:44]produce_requested_data [11:27:44]requested_item fm.sn is exist - process it [11:27:44]wFMCommunicate request_size=4 [11:27:44]MH_SAM_APDU [11:27:44]CAPDU: 80 11 00 00 [11:27:44]Write to MH i2c: E2 08 00 6E 02 80 11 00 00 00 00 00 00 EA [11:27:44]Write i2c OK [11:27:44]MH_I2C_Read... [11:27:44]Connected sock=11 [11:27:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 CA 24 08 01 C8 1C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 AC F4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E3 40 01 00 35 04 06 00 E2 00 5E 04 D1 41 A5 D8 60 00 FF D3 B7 9E [11:27:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:44]Read from MH i2c: E2 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: E2 17 00 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: E2 17 00 6E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 3C [11:27:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:27:44]wFMCommunicate OK [11:27:44]requested_item fd.num is exist - process it [11:27:44]SAM_PROTO_GetFieldsCounters [11:27:44]wFMCommunicate request_size=4 [11:27:44]MH_SAM_APDU [11:27:44]CAPDU: 80 13 00 00 [11:27:44]Write to MH i2c: E2 08 00 6F 02 80 13 00 00 00 00 00 00 ED [11:27:44]Write i2c OK [11:27:44]MH_I2C_Read... [11:27:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:44]Read from MH i2c: E2 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: E2 62 00 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: E2 62 00 6F 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E3 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [11:27:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E3 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:27:44]wFMCommunicate OK [11:27:44]SAM_PROTO_GetFieldsCounters done [11:27:44]requested_item shift.num is exist - process it [11:27:44]requested_item shift.opened is exist - process it [11:27:44]req_shift_opened [11:27:44]FM_GetShiftState [11:27:44]SAM_PROTO_GetShiftState [11:27:44]wFMCommunicate request_size=4 [11:27:44]MH_SAM_APDU [11:27:44]CAPDU: 80 13 01 00 [11:27:44]Write to MH i2c: E2 08 00 70 02 80 13 01 00 00 00 00 00 EF [11:27:44]Write i2c OK [11:27:44]MH_I2C_Read... [11:27:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:44]Read from MH i2c: E2 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: E2 0E 00 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: E2 0E 00 70 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 F7 [11:27:44]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [11:27:44]wFMCommunicate OK [11:27:44]SAM_PROTO_GetShiftState done [11:27:44]FM_GetShiftState done [11:27:44]req_shift_opened done [11:27:44]requested_item shift.open_date is exist - process it [11:27:44]req_shift_open_date [11:27:44]req_shift_open_date done [11:27:44]produce_requested_data done [11:27:44]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82147,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [11:27:44]process_action_free close_receipt [11:27:44]json_value_free [11:27:44]json_value_free done [11:27:44]process_json_proto returns [11:27:44]Send response to host [11:27:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82147,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [11:27:44]free response buf [11:27:44]execute_script done [11:27:44]execute_script returns [11:27:44]free content buf [11:27:44]Sock 9.Close socket [11:27:44]Sock 9.Thread stoped [11:27:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 BB 3D 47 00 78 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E3 40 01 00 F4 03 04 00 EC 99 10 67 B6 04 01 00 00 4F 0D CE 5A 5C 7A 0B 2D [11:27:44]CommunicateWithHost err = 0 [11:27:44]CheckOFDResponse [11:27:44]1017 (14) - 77093643461234 [11:27:44]1041 (16) - 0000000000871843 [11:27:44]1040 (4) - 82147 [11:27:44]1012 (4) - 17.10.2024 05:00 [11:27:44]1206 (1) - 0 [11:27:44]OFD Sender: Remove packet 82147 [11:27:44]ProducePacketName [11:27:44]name=ofd_packets/00082147 [11:27:44]NVStorageDeleteData [11:27:45]OFD Sender: No OFD packet to send [11:27:50]OFD Sender: No OFD packet to send [11:27:55]OFD Sender: No OFD packet to send [11:28:00]OFD Sender: No OFD packet to send [11:28:05]OFD Sender: No OFD packet to send [11:28:10]OFD Sender: No OFD packet to send [11:28:15]OFD Sender: No OFD packet to send [11:28:20]OFD Sender: No OFD packet to send [11:28:25]OFD Sender: No OFD packet to send [11:28:30]OFD Sender: No OFD packet to send [11:28:35]OFD Sender: No OFD packet to send [11:28:36]accept exits with 7 [11:28:36]New connection [11:28:36]New thread 3067145572 created [11:28:36]Thread 3067002212 joined [11:28:36]Waiting for new connection... [11:28:36] Sock 7.Parse request [11:28:36]Sock 7.Check first char [11:28:36]Sock 7.First char is OK [11:28:36]request: POST /json_proto HTTP/1.0 [11:28:36]Method: POST [11:28:36]URL: /json_proto [11:28:36]Method is POST - this is cgi request [11:28:36]url: /json_proto [11:28:36]query_string will be loaded in cgi processing [11:28:36]execute_cgi json_proto POST (null) [11:28:36]execute_cgi path=json_proto method=POST [11:28:36]POST find Content-Length [11:28:36]Host: 172.17.44.67:8080 [11:28:36]Content-Length: 678 [11:28:36]Content-Type: application/json [11:28:36] [11:28:36]POST finish read [11:28:36]Found Content-Length = 678 [11:28:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:36]execute_script... [11:28:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:36]POST & json_proto [11:28:36]process_json_proto [11:28:36]json parsed OK: [11:28:36]protocol is kg_v1.0 [11:28:36]action value=close_receipt [11:28:36]process_action close_receipt [11:28:36]cmd_close_receipt [11:28:36]MH_GetDate [11:28:36]Write to MH i2c: F0 00 00 71 02 62 [11:28:36]Write i2c OK [11:28:36]MH_I2C_Read... [11:28:36]Read from MH i2c: F0 [11:28:36]MH_I2C_Read... [11:28:36]Read from MH i2c: F0 09 00 [11:28:36]MH_I2C_Read... [11:28:36]Read from MH i2c: F0 09 00 71 02 00 E5 F4 10 67 F1 C7 6B 64 42 [11:28:36]GetLastDocTimeStamp 1729164460 [11:28:36]current date 1729164517 [11:28:36]FM_GetShiftState [11:28:36]SAM_PROTO_GetShiftState [11:28:36]wFMCommunicate request_size=4 [11:28:36]MH_SAM_APDU [11:28:36]CAPDU: 80 13 01 00 [11:28:36]Write to MH i2c: E2 08 00 72 02 80 13 01 00 00 00 00 00 F1 [11:28:36]Write i2c OK [11:28:36]MH_I2C_Read... [11:28:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:36]Read from MH i2c: E2 [11:28:36]MH_I2C_Read... [11:28:36]Read from MH i2c: E2 0E 00 [11:28:36]MH_I2C_Read... [11:28:36]Read from MH i2c: E2 0E 00 72 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 F9 [11:28:36]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [11:28:36]wFMCommunicate OK [11:28:36]SAM_PROTO_GetShiftState done [11:28:36]FM_GetShiftState done [11:28:36]opened in 1729125927 [11:28:36]opened+sec_in_day 1729212327 [11:28:36]quantity*price = 80061 [11:28:36]sum+1 = 80063 [11:28:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 74 17.10.2024 11:28 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82148 ФПД: 153641799581547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T112837&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82148&fm=153641799581547&tin=02508201610067®Number=0000000000091680&sum=80000 [11:28:37]StoreToDocumentArchive [11:28:37]shift 525 fd 82148 [11:28:37]save to /storage/0525/doc_00082148 [11:28:37]save last doc name /storage/0525/doc_00082148 to /storage/kkm_last_doc_name [11:28:37]save OK [11:28:37]Clear old archive folders... [11:28:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:28:37]tlvbuf is 01D9F750 [11:28:37]SAM_PROTO_ClearQueue [11:28:37]wFMCommunicate request_size=4 [11:28:37]MH_SAM_APDU [11:28:37]CAPDU: 80 09 00 00 [11:28:37]Write to MH i2c: E2 08 00 7F 02 80 09 00 00 00 00 00 00 F3 [11:28:37]Write i2c OK [11:28:37]MH_I2C_Read... [11:28:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:38]Read from MH i2c: E2 [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: E2 03 00 [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: E2 03 00 7F 02 00 90 00 F5 [11:28:38]RAPDU: 90 00 [11:28:38]wFMCommunicate OK [11:28:38]SAM_PROTO_ClearQueue done [11:28:38]KKMCreateOFDPacket [11:28:38]OFDProtocolAddRootSTLVToBuf [11:28:38]FM_MakeSignedData [11:28:38]FM_MakeSignedData [11:28:38]SAM_PROTO_SignData [11:28:38]wFMCommunicate request_size=4 [11:28:38]MH_SAM_APDU [11:28:38]CAPDU: 80 0D 01 02 [11:28:38]Write to MH i2c: E2 08 00 80 02 80 0D 01 02 00 00 00 00 FB [11:28:38]Write i2c OK [11:28:38]MH_I2C_Read... [11:28:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:38]Read from MH i2c: E2 [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: E2 03 00 [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [11:28:38]RAPDU: 90 00 [11:28:38]wFMCommunicate OK [11:28:38]wFMCommunicate request_size=255 [11:28:38]MH_SAM_APDU [11:28:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 E5 F4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E4 40 01 00 35 04 06 00 8B [11:28:38]Write to MH i2c: E2 02 01 81 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 E5 F4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E4 40 01 00 35 04 06 00 8B 00 00 4E [11:28:38]Write i2c OK [11:28:38]MH_I2C_Read... [11:28:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:38]Read from MH i2c: E2 [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: E2 03 00 [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: E2 03 00 81 02 00 90 00 F7 [11:28:38]RAPDU: 90 00 [11:28:38]wFMCommunicate OK [11:28:38]wFMCommunicate request_size=10 [11:28:38]MH_SAM_APDU [11:28:38]CAPDU: 80 0D 02 02 05 BC 84 E2 FF 6B [11:28:38]Write to MH i2c: E2 0D 00 82 02 80 0D 02 02 05 00 BC 84 E2 FF 6B 00 00 94 [11:28:38]Write i2c OK [11:28:38]MH_I2C_Read... [11:28:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:38]Read from MH i2c: E2 [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: E2 03 00 [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [11:28:38]RAPDU: 90 00 [11:28:38]wFMCommunicate OK [11:28:38]wFMCommunicate request_size=4 [11:28:38]MH_SAM_APDU [11:28:38]CAPDU: 80 0D 03 02 [11:28:38]Write to MH i2c: E2 08 00 83 02 80 0D 03 02 00 00 00 00 00 [11:28:38]Write i2c OK [11:28:38]MH_I2C_Read... [11:28:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:38]Read from MH i2c: E2 [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: E2 0B 00 [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: E2 0B 00 83 02 00 5D 4B 75 B9 0B F3 F5 AC 90 00 76 [11:28:38]RAPDU: 5D 4B 75 B9 0B F3 F5 AC 90 00 [11:28:38]wFMCommunicate OK [11:28:38]SAM_PROTO_SignData done [11:28:38]FM_MakeSignedData done [11:28:38]CreateOFDProtocolMessage [11:28:38]wFMCommunicate request_size=4 [11:28:38]MH_SAM_APDU [11:28:38]CAPDU: 80 11 00 00 [11:28:38]Write to MH i2c: E2 08 00 84 02 80 11 00 00 00 00 00 00 00 [11:28:38]Write i2c OK [11:28:38]MH_I2C_Read... [11:28:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:38]Read from MH i2c: E2 [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: E2 17 00 [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: E2 17 00 84 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 52 [11:28:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:28:38]wFMCommunicate OK [11:28:38]CreateOFDProtocolMessage done [11:28:38]OFDSenderStorePacket 82148 [11:28:38]StoreOFDPacket docnum=82148 [11:28:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 1A AC 07 01 E7 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 E5 F4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E4 40 01 00 35 04 06 00 8B BC 84 E2 FF 6B 5D 4B 75 B9 0B F3 F5 AC [11:28:38]CheckFolder [11:28:38]dirname=/storage/ofd_packets [11:28:38]CheckFolder done [11:28:38]ProducePacketName [11:28:38]name=ofd_packets/00082148 [11:28:38]NVStorageSaveData ofd_packets/00082148 [11:28:38]File name is /storage/ofd_packets/00082148 [11:28:38]Write 301 bytes [11:28:38]NVStorageSaveData done [11:28:38]OFDSenderStorePacket done [11:28:38]KKMCreateOFDPacket done [11:28:38]NVStorageSaveData kkm_last_timestamp [11:28:38]File name is /storage/kkm_last_timestamp [11:28:38]Write 4 bytes [11:28:38]NVStorageSaveData done [11:28:38]ExternCall_PrintAddStr [11:28:38]wPrintStart [11:28:38]Write to MH i2c: 01 00 00 85 02 87 [11:28:38]Write i2c OK [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: 01 [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: 01 07 00 [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: 01 07 00 85 02 00 00 00 00 00 FF 0F 9C [11:28:38]RasterBufferAndPrint [11:28:38]line Счет N : (1)918654 [11:28:38]line ИНН: 02508201610067 [11:28:38]line Контрольно-Кассовый Чек [11:28:38]line ПРОДАЖА [11:28:38]line ТРК (МРК, ГНК) : 12 [11:28:38]line Товар: 2710124500 [11:28:38]line Аи-95-К-5 [11:28:38]line 10.790 * 74.20 [11:28:38]line = 800.62 [11:28:38]line НДС 12% НСП 1% [11:28:38]line > о реализуемом товаре [11:28:38]line ОКРУГЛЕНИЕ: -0.62 [11:28:38]line ИТОГО: 800.00 [11:28:38]line Внесено: 800.00 [11:28:38]line СДАЧА: 0.00 [11:28:38]line НСП 1% : 7.08 [11:28:38]line НДС 12% : 85.02 [11:28:38]line Наличными: 800.00 [11:28:38]line Безнал.: 0.00 [11:28:38]line Место: АЗС № 114 "Партнер Нефть" [11:28:38]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:28:38]line СНО: Общий режим [11:28:38]line Чек 74 17.10.2024 11:28 [11:28:38]line Смена: 525 ФФД: 1.0 [11:28:38]line ЗНМ: 0300000086 [11:28:38]line РНМ: 0000000000091680 [11:28:38]line Версия ККМ: 001 [11:28:38]line ФМ: 0000000000871843 [11:28:38]line ФД: 82148 [11:28:38]line ФПД: 153641799581547 [11:28:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T112837&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82148&fm=153641799581547&tin=02508201610067®Number=0000000000091680&sum=80000 [11:28:38]OFD Sender: Processing packet 82148 [packets to send 254, broken 253] [11:28:38]ProducePacketName [11:28:38]name=ofd_packets/00082148 [11:28:38]OFD Sender: To server: pG, [11:28:38]CommunicateWithHost lk.salyk.kg:30040 [11:28:38]ConnectInit lk.salyk.kg [11:28:38]written 0, free lines is 4095 [11:28:39]Write to MH i2c: 01 00 00 B0 02 B2 [11:28:39]Write i2c OK [11:28:39]MH_I2C_Read... [11:28:39]Read from MH i2c: 01 [11:28:39]MH_I2C_Read... [11:28:39]Read from MH i2c: 01 07 00 [11:28:39]MH_I2C_Read... [11:28:39]Read from MH i2c: 01 07 00 B0 02 00 00 00 00 00 D5 0C 9A [11:28:39]RasterBufferAndPrint [11:28:39]line [11:28:39]line [11:28:39]line [11:28:39]line [11:28:39]line [11:28:39]written 0, free lines is 3292 [11:28:39]MH_Cut [11:28:39]Write to MH i2c: D1 01 00 B7 02 01 8B [11:28:39]Write i2c OK [11:28:39]MH_I2C_Read... [11:28:39]Read from MH i2c: D1 [11:28:39]MH_I2C_Read... [11:28:39]Read from MH i2c: D1 01 00 [11:28:39]MH_I2C_Read... [11:28:39]Read from MH i2c: D1 01 00 B7 02 00 8A [11:28:39]Write to MH i2c: 01 00 00 B8 02 BA [11:28:39]Write i2c OK [11:28:39]MH_I2C_Read... [11:28:39]Connected sock=10 [11:28:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 1A AC 07 01 E7 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 E5 F4 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E4 40 01 00 35 04 06 00 8B BC 84 E2 FF 6B 5D 4B 75 B9 0B F3 F5 AC [11:28:40]*** Cut start [11:28:40]*** Partial cut [11:28:40]*** CUTSNS_PIN = 1 [11:28:40]*** CUTSNS_PIN = 0 [11:28:40]*** Brake cut motor [11:28:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 70 24 47 00 DC EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E4 40 01 00 F4 03 04 00 24 9A 10 67 B6 04 01 00 00 26 63 A3 4B 5E 67 52 3A [11:28:40]CommunicateWithHost err = 0 [11:28:40]CheckOFDResponse [11:28:40]1017 (14) - 77093643461234 [11:28:40]1041 (16) - 0000000000871843 [11:28:40]1040 (4) - 82148 [11:28:40]1012 (4) - 17.10.2024 05:01 [11:28:40]1206 (1) - 0 [11:28:40]OFD Sender: Remove packet 82148 [11:28:40]ProducePacketName [11:28:40]name=ofd_packets/00082148 [11:28:40]NVStorageDeleteData [11:28:40]Read from MH i2c: 01 [11:28:40]MH_I2C_Read... [11:28:40]*** Stop cut motor [11:28:40]*** Cut end [11:28:40]Read from MH i2c: 01 07 00 [11:28:40]MH_I2C_Read... [11:28:40]Read from MH i2c: 01 07 00 B8 02 00 00 00 00 00 FF 0F CF [11:28:40]process_action close_receipt done [11:28:40]requested_data is exist [11:28:40]produce_requested_data [11:28:40]requested_item fm.sn is exist - process it [11:28:40]wFMCommunicate request_size=4 [11:28:40]MH_SAM_APDU [11:28:40]CAPDU: 80 11 00 00 [11:28:40]Write to MH i2c: E2 08 00 B9 02 80 11 00 00 00 00 00 00 35 [11:28:40]Write i2c OK [11:28:40]MH_I2C_Read... [11:28:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:40]Read from MH i2c: E2 [11:28:40]MH_I2C_Read... [11:28:40]Read from MH i2c: E2 17 00 [11:28:40]MH_I2C_Read... [11:28:40]Read from MH i2c: E2 17 00 B9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 87 [11:28:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:28:40]wFMCommunicate OK [11:28:40]requested_item fd.num is exist - process it [11:28:40]SAM_PROTO_GetFieldsCounters [11:28:40]wFMCommunicate request_size=4 [11:28:40]MH_SAM_APDU [11:28:40]CAPDU: 80 13 00 00 [11:28:40]Write to MH i2c: E2 08 00 BA 02 80 13 00 00 00 00 00 00 38 [11:28:40]Write i2c OK [11:28:40]MH_I2C_Read... [11:28:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:40]Read from MH i2c: E2 [11:28:40]MH_I2C_Read... [11:28:40]Read from MH i2c: E2 62 00 [11:28:40]MH_I2C_Read... [11:28:40]Read from MH i2c: E2 62 00 BA 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E4 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [11:28:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E4 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:40]wFMCommunicate OK [11:28:40]SAM_PROTO_GetFieldsCounters done [11:28:40]requested_item shift.num is exist - process it [11:28:40]requested_item shift.opened is exist - process it [11:28:40]req_shift_opened [11:28:40]FM_GetShiftState [11:28:40]SAM_PROTO_GetShiftState [11:28:40]wFMCommunicate request_size=4 [11:28:40]MH_SAM_APDU [11:28:40]CAPDU: 80 13 01 00 [11:28:40]Write to MH i2c: E2 08 00 BB 02 80 13 01 00 00 00 00 00 3A [11:28:40]Write i2c OK [11:28:40]MH_I2C_Read... [11:28:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:40]Read from MH i2c: E2 [11:28:40]MH_I2C_Read... [11:28:40]Read from MH i2c: E2 0E 00 [11:28:40]MH_I2C_Read... [11:28:40]Read from MH i2c: E2 0E 00 BB 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 42 [11:28:40]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [11:28:40]wFMCommunicate OK [11:28:40]SAM_PROTO_GetShiftState done [11:28:40]FM_GetShiftState done [11:28:40]req_shift_opened done [11:28:40]requested_item shift.open_date is exist - process it [11:28:40]req_shift_open_date [11:28:40]req_shift_open_date done [11:28:40]produce_requested_data done [11:28:40]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82148,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [11:28:40]process_action_free close_receipt [11:28:40]json_value_free [11:28:40]json_value_free done [11:28:40]process_json_proto returns [11:28:40]Send response to host [11:28:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82148,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [11:28:40]free response buf [11:28:40]execute_script done [11:28:40]execute_script returns [11:28:40]free content buf [11:28:40]Sock 7.Close socket [11:28:40]Sock 7.Thread stoped [11:28:41]OFD Sender: No OFD packet to send [11:28:46]OFD Sender: No OFD packet to send [11:28:51]OFD Sender: No OFD packet to send [11:28:56]OFD Sender: No OFD packet to send [11:29:01]OFD Sender: No OFD packet to send [11:29:04]recv_with_timeout no data received [11:29:06]OFD Sender: No OFD packet to send [11:29:11]OFD Sender: No OFD packet to send [11:29:16]OFD Sender: No OFD packet to send [11:29:21]OFD Sender: No OFD packet to send [11:29:26]OFD Sender: No OFD packet to send [11:29:31]OFD Sender: No OFD packet to send [11:29:36]OFD Sender: No OFD packet to send [11:29:41]OFD Sender: No OFD packet to send [11:29:46]OFD Sender: No OFD packet to send [11:29:51]OFD Sender: No OFD packet to send [11:29:56]OFD Sender: No OFD packet to send [11:30:01]OFD Sender: No OFD packet to send [11:30:06]OFD Sender: No OFD packet to send [11:30:11]OFD Sender: No OFD packet to send [11:30:16]OFD Sender: No OFD packet to send [11:30:21]OFD Sender: No OFD packet to send [11:30:26]OFD Sender: No OFD packet to send [11:30:31]OFD Sender: No OFD packet to send [11:30:36]OFD Sender: No OFD packet to send [11:30:41]OFD Sender: No OFD packet to send [11:30:46]OFD Sender: No OFD packet to send [11:30:51]OFD Sender: No OFD packet to send [11:30:56]OFD Sender: No OFD packet to send [11:31:01]OFD Sender: No OFD packet to send [11:31:06]OFD Sender: No OFD packet to send [11:31:11]OFD Sender: No OFD packet to send [11:31:16]OFD Sender: No OFD packet to send [11:31:21]OFD Sender: No OFD packet to send [11:31:26]OFD Sender: No OFD packet to send [11:31:31]OFD Sender: No OFD packet to send [11:31:36]OFD Sender: No OFD packet to send [11:31:41]OFD Sender: No OFD packet to send [11:31:46]OFD Sender: No OFD packet to send [11:31:51]OFD Sender: No OFD packet to send [11:31:56]OFD Sender: No OFD packet to send [11:32:01]OFD Sender: No OFD packet to send [11:32:06]OFD Sender: No OFD packet to send [11:32:11]OFD Sender: No OFD packet to send [11:32:16]OFD Sender: No OFD packet to send [11:32:21]OFD Sender: No OFD packet to send [11:32:26]OFD Sender: No OFD packet to send [11:32:31]OFD Sender: No OFD packet to send [11:32:36]OFD Sender: No OFD packet to send [11:32:41]OFD Sender: No OFD packet to send [11:32:46]OFD Sender: No OFD packet to send [11:32:51]OFD Sender: No OFD packet to send [11:32:56]OFD Sender: No OFD packet to send [11:32:59]accept exits with 9 [11:32:59]New connection [11:32:59]New thread 3067002212 created [11:32:59]Thread 3067145572 joined [11:32:59]Waiting for new connection... [11:32:59] Sock 9.Parse request [11:32:59]Sock 9.Check first char [11:32:59]Sock 9.First char is OK [11:32:59]request: POST /json_proto HTTP/1.0 [11:32:59]Method: POST [11:32:59]URL: /json_proto [11:32:59]Method is POST - this is cgi request [11:32:59]url: /json_proto [11:32:59]query_string will be loaded in cgi processing [11:32:59]execute_cgi json_proto POST (null) [11:32:59]execute_cgi path=json_proto method=POST [11:32:59]POST find Content-Length [11:32:59]Host: 172.17.44.67:8080 [11:32:59]Content-Length: 677 [11:32:59]Content-Type: application/json [11:32:59] [11:32:59]POST finish read [11:32:59]Found Content-Length = 677 [11:32:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:59]execute_script... [11:32:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:59]POST & json_proto [11:32:59]process_json_proto [11:32:59]json parsed OK: [11:32:59]protocol is kg_v1.0 [11:32:59]action value=close_receipt [11:32:59]process_action close_receipt [11:32:59]cmd_close_receipt [11:32:59]MH_GetDate [11:32:59]Write to MH i2c: F0 00 00 BC 02 AD [11:32:59]Write i2c OK [11:32:59]MH_I2C_Read... [11:32:59]Read from MH i2c: F0 [11:32:59]MH_I2C_Read... [11:32:59]Read from MH i2c: F0 09 00 [11:32:59]MH_I2C_Read... [11:32:59]Read from MH i2c: F0 09 00 BC 02 00 EC F5 10 67 F1 C7 6B 64 95 [11:32:59]GetLastDocTimeStamp 1729164517 [11:32:59]current date 1729164780 [11:32:59]FM_GetShiftState [11:32:59]SAM_PROTO_GetShiftState [11:32:59]wFMCommunicate request_size=4 [11:32:59]MH_SAM_APDU [11:32:59]CAPDU: 80 13 01 00 [11:32:59]Write to MH i2c: E2 08 00 BD 02 80 13 01 00 00 00 00 00 3C [11:32:59]Write i2c OK [11:32:59]MH_I2C_Read... [11:32:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:59]Read from MH i2c: E2 [11:32:59]MH_I2C_Read... [11:32:59]Read from MH i2c: E2 0E 00 [11:32:59]MH_I2C_Read... [11:32:59]Read from MH i2c: E2 0E 00 BD 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 44 [11:32:59]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [11:32:59]wFMCommunicate OK [11:32:59]SAM_PROTO_GetShiftState done [11:32:59]FM_GetShiftState done [11:32:59]opened in 1729125927 [11:32:59]opened+sec_in_day 1729212327 [11:32:59]quantity*price = 40006 [11:32:59]sum+1 = 40007 [11:32:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 75 17.10.2024 11:33 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82149 ФПД: 10517264456646 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T113300&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82149&fm=10517264456646&tin=02508201610067®Number=0000000000091680&sum=40000 [11:33:01]StoreToDocumentArchive [11:33:01]shift 525 fd 82149 [11:33:01]save to /storage/0525/doc_00082149 [11:33:01]save last doc name /storage/0525/doc_00082149 to /storage/kkm_last_doc_name [11:33:01]save OK [11:33:01]Clear old archive folders... [11:33:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:33:01]tlvbuf is 01D02A10 [11:33:01]SAM_PROTO_ClearQueue [11:33:01]wFMCommunicate request_size=4 [11:33:01]MH_SAM_APDU [11:33:01]CAPDU: 80 09 00 00 [11:33:01]Write to MH i2c: E2 08 00 CA 02 80 09 00 00 00 00 00 00 3E [11:33:01]Write i2c OK [11:33:01]MH_I2C_Read... [11:33:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:01]Read from MH i2c: E2 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 03 00 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 03 00 CA 02 00 90 00 40 [11:33:01]RAPDU: 90 00 [11:33:01]wFMCommunicate OK [11:33:01]SAM_PROTO_ClearQueue done [11:33:01]KKMCreateOFDPacket [11:33:01]OFDProtocolAddRootSTLVToBuf [11:33:01]FM_MakeSignedData [11:33:01]FM_MakeSignedData [11:33:01]SAM_PROTO_SignData [11:33:01]wFMCommunicate request_size=4 [11:33:01]MH_SAM_APDU [11:33:01]CAPDU: 80 0D 01 02 [11:33:01]Write to MH i2c: E2 08 00 CB 02 80 0D 01 02 00 00 00 00 46 [11:33:01]Write i2c OK [11:33:01]MH_I2C_Read... [11:33:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:01]Read from MH i2c: E2 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 03 00 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 03 00 CB 02 00 90 00 41 [11:33:01]RAPDU: 90 00 [11:33:01]wFMCommunicate OK [11:33:01]wFMCommunicate request_size=255 [11:33:01]MH_SAM_APDU [11:33: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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 EC F5 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E5 40 01 00 35 04 06 00 09 [11:33:01]Write to MH i2c: E2 02 01 CC 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 EC F5 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E5 40 01 00 35 04 06 00 09 00 00 82 [11:33:01]Write i2c OK [11:33:01]MH_I2C_Read... [11:33:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:01]Read from MH i2c: E2 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 03 00 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 03 00 CC 02 00 90 00 42 [11:33:01]RAPDU: 90 00 [11:33:01]wFMCommunicate OK [11:33:01]wFMCommunicate request_size=10 [11:33:01]MH_SAM_APDU [11:33:01]CAPDU: 80 0D 02 02 05 90 BD CF DB C6 [11:33:01]Write to MH i2c: E2 0D 00 CD 02 80 0D 02 02 05 00 90 BD CF DB C6 00 00 10 [11:33:01]Write i2c OK [11:33:01]MH_I2C_Read... [11:33:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:01]Read from MH i2c: E2 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 03 00 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 03 00 CD 02 00 90 00 43 [11:33:01]RAPDU: 90 00 [11:33:01]wFMCommunicate OK [11:33:01]wFMCommunicate request_size=4 [11:33:01]MH_SAM_APDU [11:33:01]CAPDU: 80 0D 03 02 [11:33:01]Write to MH i2c: E2 08 00 CE 02 80 0D 03 02 00 00 00 00 4B [11:33:01]Write i2c OK [11:33:01]MH_I2C_Read... [11:33:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:01]Read from MH i2c: E2 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 0B 00 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 0B 00 CE 02 00 F4 EB 19 6E 34 98 FB 17 90 00 90 [11:33:01]RAPDU: F4 EB 19 6E 34 98 FB 17 90 00 [11:33:01]wFMCommunicate OK [11:33:01]SAM_PROTO_SignData done [11:33:01]FM_MakeSignedData done [11:33:01]CreateOFDProtocolMessage [11:33:01]wFMCommunicate request_size=4 [11:33:01]MH_SAM_APDU [11:33:01]CAPDU: 80 11 00 00 [11:33:01]Write to MH i2c: E2 08 00 CF 02 80 11 00 00 00 00 00 00 4B [11:33:01]Write i2c OK [11:33:01]MH_I2C_Read... [11:33:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:01]OFD Sender: No OFD packet to send [11:33:01]Read from MH i2c: E2 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 17 00 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 17 00 CF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 9D [11:33:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:33:01]wFMCommunicate OK [11:33:01]CreateOFDProtocolMessage done [11:33:01]OFDSenderStorePacket 82149 [11:33:01]StoreOFDPacket docnum=82149 [11:33:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 62 A6 07 01 54 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 EC F5 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E5 40 01 00 35 04 06 00 09 90 BD CF DB C6 F4 EB 19 6E 34 98 FB 17 [11:33:01]CheckFolder [11:33:01]dirname=/storage/ofd_packets [11:33:01]CheckFolder done [11:33:01]ProducePacketName [11:33:01]name=ofd_packets/00082149 [11:33:01]NVStorageSaveData ofd_packets/00082149 [11:33:01]File name is /storage/ofd_packets/00082149 [11:33:01]Write 301 bytes [11:33:01]NVStorageSaveData done [11:33:01]OFDSenderStorePacket done [11:33:01]KKMCreateOFDPacket done [11:33:01]NVStorageSaveData kkm_last_timestamp [11:33:01]File name is /storage/kkm_last_timestamp [11:33:01]Write 4 bytes [11:33:01]NVStorageSaveData done [11:33:01]ExternCall_PrintAddStr [11:33:01]wPrintStart [11:33:01]Write to MH i2c: 01 00 00 D0 02 D2 [11:33:01]Write i2c OK [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: 01 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: 01 07 00 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: 01 07 00 D0 02 00 00 00 00 00 FF 0F E7 [11:33:01]RasterBufferAndPrint [11:33:01]line Счет N : (1)918655 [11:33:01]line ИНН: 02508201610067 [11:33:01]line Контрольно-Кассовый Чек [11:33:01]line ПРОДАЖА [11:33:01]line ТРК (МРК, ГНК) : 22 [11:33:01]line Товар: 2710124130 [11:33:01]line Аи-92-К-4 [11:33:01]line 5.980 * 66.90 [11:33:01]line = 400.06 [11:33:01]line НДС 12% НСП 1% [11:33:01]line > о реализуемом товаре [11:33:01]line ОКРУГЛЕНИЕ: -0.06 [11:33:01]line ИТОГО: 400.00 [11:33:01]line Внесено: 400.00 [11:33:01]line СДАЧА: 0.00 [11:33:01]line НСП 1% : 3.54 [11:33:01]line НДС 12% : 42.48 [11:33:01]line Наличными: 400.00 [11:33:01]line Безнал.: 0.00 [11:33:01]line Место: АЗС № 114 "Партнер Нефть" [11:33:01]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:33:01]line СНО: Общий режим [11:33:01]line Чек 75 17.10.2024 11:33 [11:33:01]line Смена: 525 ФФД: 1.0 [11:33:01]line ЗНМ: 0300000086 [11:33:01]line РНМ: 0000000000091680 [11:33:01]line Версия ККМ: 001 [11:33:01]line ФМ: 0000000000871843 [11:33:01]line ФД: 82149 [11:33:01]line ФПД: 10517264456646 [11:33:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T113300&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82149&fm=10517264456646&tin=02508201610067®Number=0000000000091680&sum=40000 [11:33:01]OFD Sender: Processing packet 82149 [packets to send 254, broken 253] [11:33:01]ProducePacketName [11:33:01]name=ofd_packets/00082149 [11:33:01]OFD Sender: To server: pG, [11:33:01]CommunicateWithHost lk.salyk.kg:30040 [11:33:01]ConnectInit lk.salyk.kg [11:33:01]written 0, free lines is 4095 [11:33:02]Write to MH i2c: 01 00 00 FB 02 FD [11:33:02]Write i2c OK [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: 01 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: 01 07 00 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: 01 07 00 FB 02 00 00 00 00 00 D1 0C E1 [11:33:02]RasterBufferAndPrint [11:33:02]line [11:33:02]line [11:33:02]line [11:33:02]line [11:33:02]line [11:33:02]written 0, free lines is 3285 [11:33:02]MH_Cut [11:33:02]Write to MH i2c: D1 01 00 02 03 01 D7 [11:33:02]Write i2c OK [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: D1 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: D1 01 00 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: D1 01 00 02 03 00 D6 [11:33:02]Write to MH i2c: 01 00 00 03 03 06 [11:33:02]Write i2c OK [11:33:02]MH_I2C_Read... [11:33:03]*** Cut start [11:33:03]*** Partial cut [11:33:03]*** CUTSNS_PIN = 1 [11:33:03]*** CUTSNS_PIN = 0 [11:33:03]*** Brake cut motor [11:33:03]Read from MH i2c: 01 [11:33:03]MH_I2C_Read... [11:33:03]*** Stop cut motor [11:33:03]*** Cut end [11:33:03]Read from MH i2c: 01 07 00 [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: 01 07 00 03 03 00 00 00 00 00 FF 0F 1B [11:33:03]process_action close_receipt done [11:33:03]requested_data is exist [11:33:03]produce_requested_data [11:33:03]requested_item fm.sn is exist - process it [11:33:03]wFMCommunicate request_size=4 [11:33:03]MH_SAM_APDU [11:33:03]CAPDU: 80 11 00 00 [11:33:03]Write to MH i2c: E2 08 00 04 03 80 11 00 00 00 00 00 00 81 [11:33:03]Write i2c OK [11:33:03]MH_I2C_Read... [11:33:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:03]Read from MH i2c: E2 [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: E2 17 00 [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: E2 17 00 04 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D3 [11:33:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:33:03]wFMCommunicate OK [11:33:03]requested_item fd.num is exist - process it [11:33:03]SAM_PROTO_GetFieldsCounters [11:33:03]wFMCommunicate request_size=4 [11:33:03]MH_SAM_APDU [11:33:03]CAPDU: 80 13 00 00 [11:33:03]Write to MH i2c: E2 08 00 05 03 80 13 00 00 00 00 00 00 84 [11:33:03]Write i2c OK [11:33:03]MH_I2C_Read... [11:33:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:03]Read from MH i2c: E2 [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: E2 62 00 [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: E2 62 00 05 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E5 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [11:33:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E5 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:33:03]wFMCommunicate OK [11:33:03]SAM_PROTO_GetFieldsCounters done [11:33:03]requested_item shift.num is exist - process it [11:33:03]requested_item shift.opened is exist - process it [11:33:03]req_shift_opened [11:33:03]FM_GetShiftState [11:33:03]SAM_PROTO_GetShiftState [11:33:03]wFMCommunicate request_size=4 [11:33:03]MH_SAM_APDU [11:33:03]CAPDU: 80 13 01 00 [11:33:03]Write to MH i2c: E2 08 00 06 03 80 13 01 00 00 00 00 00 86 [11:33:03]Write i2c OK [11:33:03]MH_I2C_Read... [11:33:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:04]Read from MH i2c: E2 [11:33:04]MH_I2C_Read... [11:33:04]Read from MH i2c: E2 0E 00 [11:33:04]MH_I2C_Read... [11:33:04]Read from MH i2c: E2 0E 00 06 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 8E [11:33:04]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [11:33:04]wFMCommunicate OK [11:33:04]SAM_PROTO_GetShiftState done [11:33:04]FM_GetShiftState done [11:33:04]req_shift_opened done [11:33:04]requested_item shift.open_date is exist - process it [11:33:04]req_shift_open_date [11:33:04]req_shift_open_date done [11:33:04]produce_requested_data done [11:33:04]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82149,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [11:33:04]process_action_free close_receipt [11:33:04]json_value_free [11:33:04]json_value_free done [11:33:04]process_json_proto returns [11:33:04]Send response to host [11:33:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82149,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [11:33:04]free response buf [11:33:04]execute_script done [11:33:04]execute_script returns [11:33:04]free content buf [11:33:04]Sock 9.Close socket [11:33:04]Sock 9.Thread stoped [11:33:05]Connected sock=11 [11:33:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 62 A6 07 01 54 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 EC F5 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E5 40 01 00 35 04 06 00 09 90 BD CF DB C6 F4 EB 19 6E 34 98 FB 17 [11:33:06]recv_with_timeout no data received [11:33:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 93 7F 47 00 BE CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E5 40 01 00 F4 03 04 00 2E 9B 10 67 B6 04 01 00 00 E4 50 F2 C0 4C 09 B4 C1 [11:33:08]CommunicateWithHost err = 0 [11:33:08]CheckOFDResponse [11:33:08]1017 (14) - 77093643461234 [11:33:08]1041 (16) - 0000000000871843 [11:33:08]1040 (4) - 82149 [11:33:08]1012 (4) - 17.10.2024 05:05 [11:33:08]1206 (1) - 0 [11:33:08]OFD Sender: Remove packet 82149 [11:33:08]ProducePacketName [11:33:08]name=ofd_packets/00082149 [11:33:08]NVStorageDeleteData [11:33:08]OFD Sender: No OFD packet to send [11:33:13]OFD Sender: No OFD packet to send [11:33:17]recv_with_timeout no data received [11:33:18]OFD Sender: No OFD packet to send [11:33:23]OFD Sender: No OFD packet to send [11:33:28]OFD Sender: No OFD packet to send [11:33:31]recv_with_timeout no data received [11:33:33]OFD Sender: No OFD packet to send [11:33:38]OFD Sender: No OFD packet to send [11:33:43]OFD Sender: No OFD packet to send [11:33:48]OFD Sender: No OFD packet to send [11:33:53]OFD Sender: No OFD packet to send [11:33:58]OFD Sender: No OFD packet to send [11:34:03]OFD Sender: No OFD packet to send [11:34:08]OFD Sender: No OFD packet to send [11:34:13]OFD Sender: No OFD packet to send [11:34:18]OFD Sender: No OFD packet to send [11:34:19]recv_with_timeout no data received [11:34:23]OFD Sender: No OFD packet to send [11:34:28]OFD Sender: No OFD packet to send [11:34:33]OFD Sender: No OFD packet to send [11:34:38]OFD Sender: No OFD packet to send [11:34:39]recv_with_timeout no data received [11:34:43]OFD Sender: No OFD packet to send [11:34:48]OFD Sender: No OFD packet to send [11:34:53]OFD Sender: No OFD packet to send [11:34:59]OFD Sender: No OFD packet to send [11:35:04]OFD Sender: No OFD packet to send [11:35:09]OFD Sender: No OFD packet to send [11:35:14]OFD Sender: No OFD packet to send [11:35:19]OFD Sender: No OFD packet to send [11:35:24]OFD Sender: No OFD packet to send [11:35:29]OFD Sender: No OFD packet to send [11:35:44]OFD Sender: No OFD packet to send [11:35:49]OFD Sender: No OFD packet to send [11:35:54]OFD Sender: No OFD packet to send [11:35:59]OFD Sender: No OFD packet to send [11:36:04]OFD Sender: No OFD packet to send [11:36:09]OFD Sender: No OFD packet to send [11:36:14]OFD Sender: No OFD packet to send [11:36:19]OFD Sender: No OFD packet to send [11:36:22]recv_with_timeout no data received [11:36:24]OFD Sender: No OFD packet to send [11:36:29]OFD Sender: No OFD packet to send [11:36:34]OFD Sender: No OFD packet to send [11:36:39]OFD Sender: No OFD packet to send [11:36:44]OFD Sender: No OFD packet to send [11:36:49]OFD Sender: No OFD packet to send [11:36:54]OFD Sender: No OFD packet to send [11:36:56]recv_with_timeout no data received [11:36:59]OFD Sender: No OFD packet to send [11:37:04]OFD Sender: No OFD packet to send [11:37:09]OFD Sender: No OFD packet to send [11:37:14]OFD Sender: No OFD packet to send [11:37:19]OFD Sender: No OFD packet to send [11:37:24]OFD Sender: No OFD packet to send [11:37:29]OFD Sender: No OFD packet to send [11:37:34]OFD Sender: No OFD packet to send [11:37:39]OFD Sender: No OFD packet to send [11:37:44]OFD Sender: No OFD packet to send [11:37:47]recv_with_timeout no data received [11:37:49]OFD Sender: No OFD packet to send [11:37:54]OFD Sender: No OFD packet to send [11:37:59]OFD Sender: No OFD packet to send [11:38:04]OFD Sender: No OFD packet to send [11:38:09]OFD Sender: No OFD packet to send [11:38:11]recv_with_timeout no data received [11:38:14]OFD Sender: No OFD packet to send [11:38:19]OFD Sender: No OFD packet to send [11:38:24]OFD Sender: No OFD packet to send [11:38:29]OFD Sender: No OFD packet to send [11:38:34]OFD Sender: No OFD packet to send [11:38:39]OFD Sender: No OFD packet to send [11:38:44]OFD Sender: No OFD packet to send [11:38:49]OFD Sender: No OFD packet to send [11:38:54]OFD Sender: No OFD packet to send [11:38:59]OFD Sender: No OFD packet to send [11:39:04]OFD Sender: No OFD packet to send [11:39:09]OFD Sender: No OFD packet to send [11:39:14]OFD Sender: No OFD packet to send [11:39:19]OFD Sender: No OFD packet to send [11:39:24]OFD Sender: No OFD packet to send [11:39:29]OFD Sender: No OFD packet to send [11:39:34]OFD Sender: No OFD packet to send [11:39:39]OFD Sender: No OFD packet to send [11:39:44]OFD Sender: No OFD packet to send [11:39:47]recv_with_timeout no data received [11:39:49]OFD Sender: No OFD packet to send [11:39:54]OFD Sender: No OFD packet to send [11:39:59]OFD Sender: No OFD packet to send [11:40:04]OFD Sender: No OFD packet to send [11:40:09]OFD Sender: No OFD packet to send [11:40:14]OFD Sender: No OFD packet to send [11:40:19]OFD Sender: No OFD packet to send [11:40:24]OFD Sender: No OFD packet to send [11:40:29]OFD Sender: No OFD packet to send [11:40:34]OFD Sender: No OFD packet to send [11:40:39]OFD Sender: No OFD packet to send [11:40:44]OFD Sender: No OFD packet to send [11:40:49]OFD Sender: No OFD packet to send [11:40:54]OFD Sender: No OFD packet to send [11:40:59]OFD Sender: No OFD packet to send [11:41:04]OFD Sender: No OFD packet to send [11:41:09]OFD Sender: No OFD packet to send [11:41:14]OFD Sender: No OFD packet to send [11:41:19]OFD Sender: No OFD packet to send [11:41:24]OFD Sender: No OFD packet to send [11:41:27]recv_with_timeout no data received [11:41:29]OFD Sender: No OFD packet to send [11:41:34]OFD Sender: No OFD packet to send [11:41:39]OFD Sender: No OFD packet to send [11:41:44]OFD Sender: No OFD packet to send [11:41:49]OFD Sender: No OFD packet to send [11:41:54]OFD Sender: No OFD packet to send [11:41:59]OFD Sender: No OFD packet to send [11:42:04]OFD Sender: No OFD packet to send [11:42:09]OFD Sender: No OFD packet to send [11:42:14]OFD Sender: No OFD packet to send [11:42:19]OFD Sender: No OFD packet to send [11:42:24]OFD Sender: No OFD packet to send [11:42:29]OFD Sender: No OFD packet to send [11:42:34]OFD Sender: No OFD packet to send [11:42:39]OFD Sender: No OFD packet to send [11:42:44]OFD Sender: No OFD packet to send [11:42:49]OFD Sender: No OFD packet to send [11:42:54]OFD Sender: No OFD packet to send [11:42:59]OFD Sender: No OFD packet to send [11:43:04]OFD Sender: No OFD packet to send [11:43:09]OFD Sender: No OFD packet to send [11:43:14]OFD Sender: No OFD packet to send [11:43:18]accept exits with 7 [11:43:18]New connection [11:43:18]New thread 3067145572 created [11:43:18]Thread 3067002212 joined [11:43:18]Waiting for new connection... [11:43:18] Sock 7.Parse request [11:43:18]Sock 7.Check first char [11:43:18]Sock 7.First char is OK [11:43:18]request: POST /json_proto HTTP/1.0 [11:43:18]Method: POST [11:43:18]URL: /json_proto [11:43:18]Method is POST - this is cgi request [11:43:18]url: /json_proto [11:43:18]query_string will be loaded in cgi processing [11:43:18]execute_cgi json_proto POST (null) [11:43:18]execute_cgi path=json_proto method=POST [11:43:18]POST find Content-Length [11:43:18]Host: 172.17.44.67:8080 [11:43:18]Content-Length: 799 [11:43:18]Content-Type: application/json [11:43:18] [11:43:18]POST finish read [11:43:18]Found Content-Length = 799 [11:43:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4865449", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:18]execute_script... [11:43:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4865449", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:18]POST & json_proto [11:43:18]process_json_proto [11:43:18]json parsed OK: [11:43:18]protocol is kg_v1.0 [11:43:18]action value=close_receipt [11:43:18]process_action close_receipt [11:43:18]cmd_close_receipt [11:43:18]MH_GetDate [11:43:18]Write to MH i2c: F0 00 00 07 03 F9 [11:43:18]Write i2c OK [11:43:18]MH_I2C_Read... [11:43:18]Read from MH i2c: F0 [11:43:18]MH_I2C_Read... [11:43:18]Read from MH i2c: F0 09 00 [11:43:18]MH_I2C_Read... [11:43:18]Read from MH i2c: F0 09 00 07 03 00 56 F8 10 67 F1 C7 6B 64 4E [11:43:18]GetLastDocTimeStamp 1729164780 [11:43:18]current date 1729165398 [11:43:18]FM_GetShiftState [11:43:18]SAM_PROTO_GetShiftState [11:43:18]wFMCommunicate request_size=4 [11:43:18]MH_SAM_APDU [11:43:18]CAPDU: 80 13 01 00 [11:43:18]Write to MH i2c: E2 08 00 08 03 80 13 01 00 00 00 00 00 88 [11:43:18]Write i2c OK [11:43:18]MH_I2C_Read... [11:43:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:18]Read from MH i2c: E2 [11:43:18]MH_I2C_Read... [11:43:18]Read from MH i2c: E2 0E 00 [11:43:18]MH_I2C_Read... [11:43:18]Read from MH i2c: E2 0E 00 08 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 90 [11:43:18]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [11:43:18]wFMCommunicate OK [11:43:18]SAM_PROTO_GetShiftState done [11:43:18]FM_GetShiftState done [11:43:18]opened in 1729125927 [11:43:18]opened+sec_in_day 1729212327 [11:43:18]quantity*price = 0 [11:43:18]sum+1 = 1 [11:43:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 76 17.10.2024 11:43 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 4865449 ФМ: 0000000000871843 ФД: 82150 ФПД: 248826053449871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T114318&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82150&fm=248826053449871&tin=02508201610067®Number=0000000000091680&sum=0 [11:43:19]StoreToDocumentArchive [11:43:19]shift 525 fd 82150 [11:43:19]save to /storage/0525/doc_00082150 [11:43:19]save last doc name /storage/0525/doc_00082150 to /storage/kkm_last_doc_name [11:43:19]save OK [11:43:19]Clear old archive folders... [11:43:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:43:19]tlvbuf is 01D039A0 [11:43:19]SAM_PROTO_ClearQueue [11:43:19]wFMCommunicate request_size=4 [11:43:19]MH_SAM_APDU [11:43:19]CAPDU: 80 09 00 00 [11:43:19]Write to MH i2c: E2 08 00 15 03 80 09 00 00 00 00 00 00 8A [11:43:19]Write i2c OK [11:43:19]MH_I2C_Read... [11:43:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:19]Read from MH i2c: E2 [11:43:19]MH_I2C_Read... [11:43:19]Read from MH i2c: E2 03 00 [11:43:19]MH_I2C_Read... [11:43:19]Read from MH i2c: E2 03 00 15 03 00 90 00 8C [11:43:19]RAPDU: 90 00 [11:43:19]wFMCommunicate OK [11:43:19]SAM_PROTO_ClearQueue done [11:43:19]KKMCreateOFDPacket [11:43:19]OFDProtocolAddRootSTLVToBuf [11:43:19]FM_MakeSignedData [11:43:19]FM_MakeSignedData [11:43:19]SAM_PROTO_SignData [11:43:19]wFMCommunicate request_size=4 [11:43:19]MH_SAM_APDU [11:43:19]CAPDU: 80 0D 01 02 [11:43:19]Write to MH i2c: E2 08 00 16 03 80 0D 01 02 00 00 00 00 92 [11:43:19]Write i2c OK [11:43:19]MH_I2C_Read... [11:43:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:19]Read from MH i2c: E2 [11:43:19]MH_I2C_Read... [11:43:19]Read from MH i2c: E2 03 00 [11:43:19]MH_I2C_Read... [11:43:19]Read from MH i2c: E2 03 00 16 03 00 90 00 8D [11:43:19]RAPDU: 90 00 [11:43:19]wFMCommunicate OK [11:43:19]wFMCommunicate request_size=255 [11:43:19]MH_SAM_APDU [11:43:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 56 F8 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E6 40 01 00 35 04 06 00 E2 [11:43:19]Write to MH i2c: E2 02 01 17 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 56 F8 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E6 40 01 00 35 04 06 00 E2 00 00 5D [11:43:19]Write i2c OK [11:43:19]MH_I2C_Read... [11:43:19]OFD Sender: No OFD packet to send [11:43:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:19]Read from MH i2c: E2 [11:43:19]MH_I2C_Read... [11:43:19]Read from MH i2c: E2 03 00 [11:43:19]MH_I2C_Read... [11:43:19]Read from MH i2c: E2 03 00 17 03 00 90 00 8E [11:43:19]RAPDU: 90 00 [11:43:19]wFMCommunicate OK [11:43:19]wFMCommunicate request_size=10 [11:43:19]MH_SAM_APDU [11:43:19]CAPDU: 80 0D 02 02 05 4E 54 86 D8 8F [11:43:19]Write to MH i2c: E2 0D 00 18 03 80 0D 02 02 05 00 4E 54 86 D8 8F 00 00 2E [11:43:19]Write i2c OK [11:43:19]MH_I2C_Read... [11:43:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:19]Read from MH i2c: E2 [11:43:19]MH_I2C_Read... [11:43:19]Read from MH i2c: E2 03 00 [11:43:19]MH_I2C_Read... [11:43:19]Read from MH i2c: E2 03 00 18 03 00 90 00 8F [11:43:19]RAPDU: 90 00 [11:43:19]wFMCommunicate OK [11:43:19]wFMCommunicate request_size=4 [11:43:19]MH_SAM_APDU [11:43:19]CAPDU: 80 0D 03 02 [11:43:19]Write to MH i2c: E2 08 00 19 03 80 0D 03 02 00 00 00 00 97 [11:43:19]Write i2c OK [11:43:19]MH_I2C_Read... [11:43:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:19]Read from MH i2c: E2 [11:43:19]MH_I2C_Read... [11:43:19]Read from MH i2c: E2 0B 00 [11:43:19]MH_I2C_Read... [11:43:19]Read from MH i2c: E2 0B 00 19 03 00 AF 1A 70 50 24 CE 40 80 90 00 D3 [11:43:19]RAPDU: AF 1A 70 50 24 CE 40 80 90 00 [11:43:19]wFMCommunicate OK [11:43:19]SAM_PROTO_SignData done [11:43:19]FM_MakeSignedData done [11:43:19]CreateOFDProtocolMessage [11:43:19]wFMCommunicate request_size=4 [11:43:19]MH_SAM_APDU [11:43:19]CAPDU: 80 11 00 00 [11:43:19]Write to MH i2c: E2 08 00 1A 03 80 11 00 00 00 00 00 00 97 [11:43:19]Write i2c OK [11:43:19]MH_I2C_Read... [11:43:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:19]Read from MH i2c: E2 [11:43:19]MH_I2C_Read... [11:43:19]Read from MH i2c: E2 17 00 [11:43:19]MH_I2C_Read... [11:43:19]Read from MH i2c: E2 17 00 1A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 E9 [11:43:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:43:20]wFMCommunicate OK [11:43:20]CreateOFDProtocolMessage done [11:43:20]OFDSenderStorePacket 82150 [11:43:20]StoreOFDPacket docnum=82150 [11:43:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 F1 48 07 01 C1 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 56 F8 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E6 40 01 00 35 04 06 00 E2 4E 54 86 D8 8F AF 1A 70 50 24 CE 40 80 [11:43:20]CheckFolder [11:43:20]dirname=/storage/ofd_packets [11:43:20]CheckFolder done [11:43:20]ProducePacketName [11:43:20]name=ofd_packets/00082150 [11:43:20]NVStorageSaveData ofd_packets/00082150 [11:43:20]File name is /storage/ofd_packets/00082150 [11:43:20]Write 301 bytes [11:43:20]NVStorageSaveData done [11:43:20]OFDSenderStorePacket done [11:43:20]KKMCreateOFDPacket done [11:43:20]NVStorageSaveData kkm_last_timestamp [11:43:20]File name is /storage/kkm_last_timestamp [11:43:20]Write 4 bytes [11:43:20]NVStorageSaveData done [11:43:20]ExternCall_PrintAddStr [11:43:20]wPrintStart [11:43:20]Write to MH i2c: 01 00 00 1B 03 1E [11:43:20]Write i2c OK [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: 01 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: 01 07 00 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: 01 07 00 1B 03 00 00 00 00 00 FF 0F 33 [11:43:20]RasterBufferAndPrint [11:43:20]line Счет N : (1)918656 [11:43:20]line ИНН: 02508201610067 [11:43:20]line Контрольно-Кассовый Чек [11:43:20]line ПРОДАЖА [11:43:20]line ТРК (МРК, ГНК) : 22 [11:43:20]line Товар: 2710124130 [11:43:20]line Аи-92-К-4 [11:43:20]line 5.000 * 0.00 [11:43:20]line = 0.00 [11:43:20]line НДС 12% НСП 1% [11:43:20]line > о реализуемом товаре [11:43:20]line ИТОГО: 0.00 [11:43:20]line НСП 1% : 0.00 [11:43:20]line НДС 12% : 0.00 [11:43:20]line Наличными: 0.00 [11:43:20]line Безнал.: 0.00 [11:43:20]line Место: АЗС № 114 "Партнер Нефть" [11:43:20]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:43:20]line СНО: Общий режим [11:43:20]line Чек 76 17.10.2024 11:43 [11:43:20]line Смена: 525 ФФД: 1.0 [11:43:20]line ЗНМ: 0300000086 [11:43:20]line РНМ: 0000000000091680 [11:43:20]line Версия ККМ: 001 [11:43:20]line Талоны: Топливные Талоны [11:43:20]line 4865449 [11:43:20]line ФМ: 0000000000871843 [11:43:20]line ФД: 82150 [11:43:20]line ФПД: 248826053449871 [11:43:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T114318&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82150&fm=248826053449871&tin=02508201610067®Number=0000000000091680&sum=0 [11:43:20]written 0, free lines is 4095 [11:43:20]OFD Sender: Processing packet 82150 [packets to send 254, broken 253] [11:43:20]ProducePacketName [11:43:20]name=ofd_packets/00082150 [11:43:20]OFD Sender: To server: pG, [11:43:20]CommunicateWithHost lk.salyk.kg:30040 [11:43:20]ConnectInit lk.salyk.kg [11:43:20]Write to MH i2c: 01 00 00 45 03 48 [11:43:20]Write i2c OK [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: 01 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: 01 07 00 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: 01 07 00 45 03 00 00 00 00 00 DF 0C 3A [11:43:20]RasterBufferAndPrint [11:43:20]line [11:43:20]line [11:43:20]line [11:43:20]line [11:43:20]line [11:43:20]written 0, free lines is 3301 [11:43:20]MH_Cut [11:43:20]Write to MH i2c: D1 01 00 4C 03 01 21 [11:43:20]Write i2c OK [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: D1 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: D1 01 00 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: D1 01 00 4C 03 00 20 [11:43:20]Write to MH i2c: 01 00 00 4D 03 50 [11:43:20]Write i2c OK [11:43:20]MH_I2C_Read... [11:43:21]*** Cut start [11:43:21]*** Partial cut [11:43:21]*** CUTSNS_PIN = 1 [11:43:21]*** CUTSNS_PIN = 0 [11:43:21]*** Brake cut motor [11:43:21]Connected sock=10 [11:43:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 F1 48 07 01 C1 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 56 F8 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E6 40 01 00 35 04 06 00 E2 4E 54 86 D8 8F AF 1A 70 50 24 CE 40 80 [11:43:21]Read from MH i2c: 01 [11:43:21]MH_I2C_Read... [11:43:21]*** Stop cut motor [11:43:21]*** Cut end [11:43:21]Read from MH i2c: 01 07 00 [11:43:21]MH_I2C_Read... [11:43:21]Read from MH i2c: 01 07 00 4D 03 00 00 00 00 00 FF 0F 65 [11:43:21]process_action close_receipt done [11:43:21]requested_data is exist [11:43:21]produce_requested_data [11:43:21]requested_item fm.sn is exist - process it [11:43:21]wFMCommunicate request_size=4 [11:43:21]MH_SAM_APDU [11:43:21]CAPDU: 80 11 00 00 [11:43:21]Write to MH i2c: E2 08 00 4E 03 80 11 00 00 00 00 00 00 CB [11:43:21]Write i2c OK [11:43:21]MH_I2C_Read... [11:43:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:21]Read from MH i2c: E2 [11:43:21]MH_I2C_Read... [11:43:21]Read from MH i2c: E2 17 00 [11:43:21]MH_I2C_Read... [11:43:21]Read from MH i2c: E2 17 00 4E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 1D [11:43:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:43:21]wFMCommunicate OK [11:43:21]requested_item fd.num is exist - process it [11:43:21]SAM_PROTO_GetFieldsCounters [11:43:21]wFMCommunicate request_size=4 [11:43:21]MH_SAM_APDU [11:43:21]CAPDU: 80 13 00 00 [11:43:21]Write to MH i2c: E2 08 00 4F 03 80 13 00 00 00 00 00 00 CE [11:43:21]Write i2c OK [11:43:21]MH_I2C_Read... [11:43:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:22]Read from MH i2c: E2 [11:43:22]MH_I2C_Read... [11:43:22]Read from MH i2c: E2 62 00 [11:43:22]MH_I2C_Read... [11:43:22]Read from MH i2c: E2 62 00 4F 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E6 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [11:43:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E6 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:43:22]wFMCommunicate OK [11:43:22]SAM_PROTO_GetFieldsCounters done [11:43:22]requested_item shift.num is exist - process it [11:43:22]requested_item shift.opened is exist - process it [11:43:22]req_shift_opened [11:43:22]FM_GetShiftState [11:43:22]SAM_PROTO_GetShiftState [11:43:22]wFMCommunicate request_size=4 [11:43:22]MH_SAM_APDU [11:43:22]CAPDU: 80 13 01 00 [11:43:22]Write to MH i2c: E2 08 00 50 03 80 13 01 00 00 00 00 00 D0 [11:43:22]Write i2c OK [11:43:22]MH_I2C_Read... [11:43:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:22]Read from MH i2c: E2 [11:43:22]MH_I2C_Read... [11:43:22]Read from MH i2c: E2 0E 00 [11:43:22]MH_I2C_Read... [11:43:22]Read from MH i2c: E2 0E 00 50 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 D8 [11:43:22]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [11:43:22]wFMCommunicate OK [11:43:22]SAM_PROTO_GetShiftState done [11:43:22]FM_GetShiftState done [11:43:22]req_shift_opened done [11:43:22]requested_item shift.open_date is exist - process it [11:43:22]req_shift_open_date [11:43:22]req_shift_open_date done [11:43:22]produce_requested_data done [11:43:22]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82150,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [11:43:22]process_action_free close_receipt [11:43:22]json_value_free [11:43:22]json_value_free done [11:43:22]process_json_proto returns [11:43:22]Send response to host [11:43:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82150,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [11:43:22]free response buf [11:43:22]execute_script done [11:43:22]execute_script returns [11:43:22]free content buf [11:43:22]Sock 7.Close socket [11:43:22]Sock 7.Thread stoped [11:43:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 F5 40 47 00 C8 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E6 40 01 00 F4 03 04 00 96 9D 10 67 B6 04 01 00 00 8E 22 73 28 31 52 98 25 [11:43:22]CommunicateWithHost err = 0 [11:43:22]CheckOFDResponse [11:43:22]1017 (14) - 77093643461234 [11:43:22]1041 (16) - 0000000000871843 [11:43:22]1040 (4) - 82150 [11:43:22]1012 (4) - 17.10.2024 05:16 [11:43:22]1206 (1) - 0 [11:43:22]OFD Sender: Remove packet 82150 [11:43:22]ProducePacketName [11:43:22]name=ofd_packets/00082150 [11:43:22]NVStorageDeleteData [11:43:22]OFD Sender: No OFD packet to send [11:43:28]OFD Sender: No OFD packet to send [11:43:33]OFD Sender: No OFD packet to send [11:43:38]OFD Sender: No OFD packet to send [11:43:43]OFD Sender: No OFD packet to send [11:43:48]OFD Sender: No OFD packet to send [11:43:53]OFD Sender: No OFD packet to send [11:43:58]OFD Sender: No OFD packet to send [11:44:03]OFD Sender: No OFD packet to send [11:44:08]OFD Sender: No OFD packet to send [11:44:13]OFD Sender: No OFD packet to send [11:44:18]OFD Sender: No OFD packet to send [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:08]OFD Sender: No OFD packet to send [11:45:13]OFD Sender: No OFD packet to send [11:45:18]OFD Sender: No OFD packet to send [11:45:23]OFD Sender: No OFD packet to send [11:45:28]OFD Sender: No OFD packet to send [11:45:33]OFD Sender: No OFD packet to send [11:45:38]OFD Sender: No OFD packet to send [11:45:43]OFD Sender: No OFD packet to send [11:45:48]OFD Sender: No OFD packet to send [11:45:53]OFD Sender: No OFD packet to send [11:45:58]OFD Sender: No OFD packet to send [11:46:03]OFD Sender: No OFD packet to send [11:46:08]OFD Sender: No OFD packet to send [11:46:13]OFD Sender: No OFD packet to send [11:46:18]OFD Sender: No OFD packet to send [11:46:23]OFD Sender: No OFD packet to send [11:46:28]OFD Sender: No OFD packet to send [11:46:33]OFD Sender: No OFD packet to send [11:46:38]OFD Sender: No OFD packet to send [11:46:43]OFD Sender: No OFD packet to send [11:46:48]OFD Sender: No OFD packet to send [11:46:53]OFD Sender: No OFD packet to send [11:46:58]OFD Sender: No OFD packet to send [11:47:03]OFD Sender: No OFD packet to send [11:47:08]OFD Sender: No OFD packet to send [11:47:13]OFD Sender: No OFD packet to send [11:47:18]OFD Sender: No OFD packet to send [11:47:23]OFD Sender: No OFD packet to send [11:47:28]OFD Sender: No OFD packet to send [11:47:33]OFD Sender: No OFD packet to send [11:47:38]OFD Sender: No OFD packet to send [11:47:43]OFD Sender: No OFD packet to send [11:47:48]OFD Sender: No OFD packet to send [11:47:53]OFD Sender: No OFD packet to send [11:47:58]OFD Sender: No OFD packet to send [11:48:03]OFD Sender: No OFD packet to send [11:48:08]OFD Sender: No OFD packet to send [11:48:13]OFD Sender: No OFD packet to send [11:48:18]OFD Sender: No OFD packet to send [11:48:23]OFD Sender: No OFD packet to send [11:48:28]OFD Sender: No OFD packet to send [11:48:33]OFD Sender: No OFD packet to send [11:48:38]OFD Sender: No OFD packet to send [11:48:43]OFD Sender: No OFD packet to send [11:48:48]OFD Sender: No OFD packet to send [11:48:53]OFD Sender: No OFD packet to send [11:48:58]OFD Sender: No OFD packet to send [11:49:03]OFD Sender: No OFD packet to send [11:49:08]OFD Sender: No OFD packet to send [11:49:13]OFD Sender: No OFD packet to send [11:49:18]OFD Sender: No OFD packet to send [11:49:23]OFD Sender: No OFD packet to send [11:49:28]OFD Sender: No OFD packet to send [11:49:33]OFD Sender: No OFD packet to send [11:49:38]OFD Sender: No OFD packet to send [11:49:41]accept exits with 9 [11:49:41]New connection [11:49:41]New thread 3067002212 created [11:49:41]Thread 3067145572 joined [11:49:41]Waiting for new connection... [11:49:41] Sock 9.Parse request [11:49:41]Sock 9.Check first char [11:49:41]Sock 9.First char is OK [11:49:41]request: POST /json_proto HTTP/1.0 [11:49:41]Method: POST [11:49:41]URL: /json_proto [11:49:41]Method is POST - this is cgi request [11:49:41]url: /json_proto [11:49:41]query_string will be loaded in cgi processing [11:49:41]execute_cgi json_proto POST (null) [11:49:41]execute_cgi path=json_proto method=POST [11:49:41]POST find Content-Length [11:49:41]Host: 172.17.44.67:8080 [11:49:41]Content-Length: 678 [11:49:41]Content-Type: application/json [11:49:41] [11:49:41]POST finish read [11:49:41]Found Content-Length = 678 [11:49:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:41]execute_script... [11: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 : (1)918657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:41]POST & json_proto [11:49:41]process_json_proto [11:49:41]json parsed OK: [11:49:41]protocol is kg_v1.0 [11:49:41]action value=close_receipt [11:49:41]process_action close_receipt [11:49:41]cmd_close_receipt [11:49:41]MH_GetDate [11:49:41]Write to MH i2c: F0 00 00 51 03 43 [11:49:41]Write i2c OK [11:49:41]MH_I2C_Read... [11:49:41]Read from MH i2c: F0 [11:49:41]MH_I2C_Read... [11:49:41]Read from MH i2c: F0 09 00 [11:49:41]MH_I2C_Read... [11:49:41]Read from MH i2c: F0 09 00 51 03 00 D6 F9 10 67 F1 C7 6B 64 19 [11:49:41]GetLastDocTimeStamp 1729165398 [11:49:41]current date 1729165782 [11:49:41]FM_GetShiftState [11:49:41]SAM_PROTO_GetShiftState [11:49:41]wFMCommunicate request_size=4 [11:49:41]MH_SAM_APDU [11:49:41]CAPDU: 80 13 01 00 [11:49:41]Write to MH i2c: E2 08 00 52 03 80 13 01 00 00 00 00 00 D2 [11:49:41]Write i2c OK [11:49:41]MH_I2C_Read... [11:49:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:41]Read from MH i2c: E2 [11:49:41]MH_I2C_Read... [11:49:41]Read from MH i2c: E2 0E 00 [11:49:41]MH_I2C_Read... [11:49:41]Read from MH i2c: E2 0E 00 52 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 DA [11:49:41]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [11:49:41]wFMCommunicate OK [11:49:41]SAM_PROTO_GetShiftState done [11:49:41]FM_GetShiftState done [11:49:41]opened in 1729125927 [11:49:41]opened+sec_in_day 1729212327 [11:49:41]quantity*price = 70044 [11:49:41]sum+1 = 70045 [11:49:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 77 17.10.2024 11:49 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82151 ФПД: 149927903274804 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T114942&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82151&fm=149927903274804&tin=02508201610067®Number=0000000000091680&sum=70000 [11:49:42]StoreToDocumentArchive [11:49:42]shift 525 fd 82151 [11:49:42]save to /storage/0525/doc_00082151 [11:49:42]save last doc name /storage/0525/doc_00082151 to /storage/kkm_last_doc_name [11:49:42]save OK [11:49:42]Clear old archive folders... [11:49:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:49:42]tlvbuf is 01D054A0 [11:49:42]SAM_PROTO_ClearQueue [11:49:42]wFMCommunicate request_size=4 [11:49:42]MH_SAM_APDU [11:49:42]CAPDU: 80 09 00 00 [11:49:42]Write to MH i2c: E2 08 00 5F 03 80 09 00 00 00 00 00 00 D4 [11:49:42]Write i2c OK [11:49:42]MH_I2C_Read... [11:49:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:42]Read from MH i2c: E2 [11:49:42]MH_I2C_Read... [11:49:42]Read from MH i2c: E2 03 00 [11:49:42]MH_I2C_Read... [11:49:42]Read from MH i2c: E2 03 00 5F 03 00 90 00 D6 [11:49:42]RAPDU: 90 00 [11:49:42]wFMCommunicate OK [11:49:42]SAM_PROTO_ClearQueue done [11:49:42]KKMCreateOFDPacket [11:49:42]OFDProtocolAddRootSTLVToBuf [11:49:42]FM_MakeSignedData [11:49:42]FM_MakeSignedData [11:49:42]SAM_PROTO_SignData [11:49:42]wFMCommunicate request_size=4 [11:49:42]MH_SAM_APDU [11:49:42]CAPDU: 80 0D 01 02 [11:49:42]Write to MH i2c: E2 08 00 60 03 80 0D 01 02 00 00 00 00 DC [11:49:42]Write i2c OK [11:49:42]MH_I2C_Read... [11:49:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:42]Read from MH i2c: E2 [11:49:42]MH_I2C_Read... [11:49:42]Read from MH i2c: E2 03 00 [11:49:42]MH_I2C_Read... [11:49:42]Read from MH i2c: E2 03 00 60 03 00 90 00 D7 [11:49:42]RAPDU: 90 00 [11:49:42]wFMCommunicate OK [11:49:42]wFMCommunicate request_size=255 [11:49:42]MH_SAM_APDU [11:49:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 D6 F9 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E7 40 01 00 35 04 06 00 88 [11:49:42]Write to MH i2c: E2 02 01 61 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 D6 F9 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E7 40 01 00 35 04 06 00 88 00 00 CA [11:49:43]Write i2c OK [11:49:43]MH_I2C_Read... [11:49:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:43]Read from MH i2c: E2 [11:49:43]MH_I2C_Read... [11:49:43]Read from MH i2c: E2 03 00 [11:49:43]MH_I2C_Read... [11:49:43]Read from MH i2c: E2 03 00 61 03 00 90 00 D8 [11:49:43]RAPDU: 90 00 [11:49:43]wFMCommunicate OK [11:49:43]wFMCommunicate request_size=10 [11:49:43]MH_SAM_APDU [11:49:43]CAPDU: 80 0D 02 02 05 5B CF 6A A7 34 [11:49:43]Write to MH i2c: E2 0D 00 62 03 80 0D 02 02 05 00 5B CF 6A A7 34 00 00 58 [11:49:43]Write i2c OK [11:49:43]MH_I2C_Read... [11:49:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:43]Read from MH i2c: E2 [11:49:43]MH_I2C_Read... [11:49:43]Read from MH i2c: E2 03 00 [11:49:43]MH_I2C_Read... [11:49:43]Read from MH i2c: E2 03 00 62 03 00 90 00 D9 [11:49:43]RAPDU: 90 00 [11:49:43]wFMCommunicate OK [11:49:43]wFMCommunicate request_size=4 [11:49:43]MH_SAM_APDU [11:49:43]CAPDU: 80 0D 03 02 [11:49:43]Write to MH i2c: E2 08 00 63 03 80 0D 03 02 00 00 00 00 E1 [11:49:43]Write i2c OK [11:49:43]MH_I2C_Read... [11:49:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:43]Read from MH i2c: E2 [11:49:43]MH_I2C_Read... [11:49:43]Read from MH i2c: E2 0B 00 [11:49:43]MH_I2C_Read... [11:49:43]Read from MH i2c: E2 0B 00 63 03 00 D6 95 82 F9 67 DC 75 EA 90 00 6A [11:49:43]RAPDU: D6 95 82 F9 67 DC 75 EA 90 00 [11:49:43]wFMCommunicate OK [11:49:43]SAM_PROTO_SignData done [11:49:43]FM_MakeSignedData done [11:49:43]CreateOFDProtocolMessage [11:49:43]wFMCommunicate request_size=4 [11:49:43]MH_SAM_APDU [11:49:43]CAPDU: 80 11 00 00 [11:49:43]Write to MH i2c: E2 08 00 64 03 80 11 00 00 00 00 00 00 E1 [11:49:43]Write i2c OK [11:49:43]MH_I2C_Read... [11:49:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:43]Read from MH i2c: E2 [11:49:43]MH_I2C_Read... [11:49:43]Read from MH i2c: E2 17 00 [11:49:43]MH_I2C_Read... [11:49:43]Read from MH i2c: E2 17 00 64 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 33 [11:49:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:49:43]wFMCommunicate OK [11:49:43]CreateOFDProtocolMessage done [11:49:43]OFDSenderStorePacket 82151 [11:49:43]StoreOFDPacket docnum=82151 [11:49:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 44 4A 07 01 92 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 D6 F9 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E7 40 01 00 35 04 06 00 88 5B CF 6A A7 34 D6 95 82 F9 67 DC 75 EA [11:49:43]CheckFolder [11:49:43]dirname=/storage/ofd_packets [11:49:43]CheckFolder done [11:49:43]ProducePacketName [11:49:43]name=ofd_packets/00082151 [11:49:43]NVStorageSaveData ofd_packets/00082151 [11:49:43]File name is /storage/ofd_packets/00082151 [11:49:43]Write 301 bytes [11:49:43]NVStorageSaveData done [11:49:43]OFDSenderStorePacket done [11:49:43]KKMCreateOFDPacket done [11:49:43]NVStorageSaveData kkm_last_timestamp [11:49:43]File name is /storage/kkm_last_timestamp [11:49:43]Write 4 bytes [11:49:43]NVStorageSaveData done [11:49:43]ExternCall_PrintAddStr [11:49:43]wPrintStart [11:49:43]Write to MH i2c: 01 00 00 65 03 68 [11:49:43]Write i2c OK [11:49:43]MH_I2C_Read... [11:49:43]Read from MH i2c: 01 [11:49:43]MH_I2C_Read... [11:49:43]Read from MH i2c: 01 07 00 [11:49:43]MH_I2C_Read... [11:49:43]Read from MH i2c: 01 07 00 65 03 00 00 00 00 00 FF 0F 7D [11:49:43]RasterBufferAndPrint [11:49:43]line Счет N : (1)918657 [11:49:43]line ИНН: 02508201610067 [11:49:43]line Контрольно-Кассовый Чек [11:49:43]line ПРОДАЖА [11:49:43]line ТРК (МРК, ГНК) : 22 [11:49:43]line Товар: 2710124130 [11:49:43]line Аи-92-К-4 [11:49:43]line 10.470 * 66.90 [11:49:43]line = 700.44 [11:49:43]line НДС 12% НСП 1% [11:49:43]line > о реализуемом товаре [11:49:43]line ОКРУГЛЕНИЕ: -0.44 [11:49:43]line ИТОГО: 700.00 [11:49:43]line Внесено: 700.00 [11:49:43]line СДАЧА: 0.00 [11:49:43]line НСП 1% : 6.20 [11:49:43]line НДС 12% : 74.38 [11:49:43]line Наличными: 700.00 [11:49:43]line Безнал.: 0.00 [11:49:43]line Место: АЗС № 114 "Партнер Нефть" [11:49:43]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:49:43]line СНО: Общий режим [11:49:43]line Чек 77 17.10.2024 11:49 [11:49:43]line Смена: 525 ФФД: 1.0 [11:49:43]line ЗНМ: 0300000086 [11:49:43]line РНМ: 0000000000091680 [11:49:43]line Версия ККМ: 001 [11:49:43]line ФМ: 0000000000871843 [11:49:43]line ФД: 82151 [11:49:43]line ФПД: 149927903274804 [11:49:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T114942&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82151&fm=149927903274804&tin=02508201610067®Number=0000000000091680&sum=70000 [11:49:43]OFD Sender: Processing packet 82151 [packets to send 254, broken 253] [11:49:43]ProducePacketName [11:49:43]name=ofd_packets/00082151 [11:49:43]OFD Sender: To server: pG, [11:49:43]CommunicateWithHost lk.salyk.kg:30040 [11:49:43]ConnectInit lk.salyk.kg [11:49:43]written 0, free lines is 4095 [11:49:44]Write to MH i2c: 01 00 00 90 03 93 [11:49:44]Write i2c OK [11:49:44]MH_I2C_Read... [11:49:44]Read from MH i2c: 01 [11:49:44]MH_I2C_Read... [11:49:44]Read from MH i2c: 01 07 00 [11:49:44]MH_I2C_Read... [11:49:44]Read from MH i2c: 01 07 00 90 03 00 00 00 00 00 D4 0C 7A [11:49:44]RasterBufferAndPrint [11:49:44]line [11:49:44]line [11:49:44]line [11:49:44]line [11:49:44]line [11:49:44]written 0, free lines is 3288 [11:49:44]MH_Cut [11:49:44]Write to MH i2c: D1 01 00 97 03 01 6C [11:49:44]Write i2c OK [11:49:44]MH_I2C_Read... [11:49:44]Read from MH i2c: D1 [11:49:44]MH_I2C_Read... [11:49:44]Read from MH i2c: D1 01 00 [11:49:44]MH_I2C_Read... [11:49:44]Read from MH i2c: D1 01 00 97 03 00 6B [11:49:44]Write to MH i2c: 01 00 00 98 03 9B [11:49:44]Write i2c OK [11:49:44]MH_I2C_Read... [11:49:44]Connected sock=11 [11:49:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 44 4A 07 01 92 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 D6 F9 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E7 40 01 00 35 04 06 00 88 5B CF 6A A7 34 D6 95 82 F9 67 DC 75 EA [11:49:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 AE 4D 47 00 FA 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E7 40 01 00 F4 03 04 00 14 9F 10 67 B6 04 01 00 00 8A C3 3B 75 BA C7 15 5E [11:49:44]CommunicateWithHost err = 0 [11:49:44]CheckOFDResponse [11:49:44]1017 (14) - 77093643461234 [11:49:44]1041 (16) - 0000000000871843 [11:49:44]1040 (4) - 82151 [11:49:44]1012 (4) - 17.10.2024 05:22 [11:49:44]1206 (1) - 0 [11:49:44]OFD Sender: Remove packet 82151 [11:49:44]ProducePacketName [11:49:44]name=ofd_packets/00082151 [11:49:44]NVStorageDeleteData [11:49:45]*** Cut start [11:49:45]*** Partial cut [11:49:45]*** CUTSNS_PIN = 1 [11:49:45]*** CUTSNS_PIN = 0 [11:49:45]*** Brake cut motor [11:49:45]OFD Sender: No OFD packet to send [11:49:45]Read from MH i2c: 01 [11:49:45]MH_I2C_Read... [11:49:45]*** Stop cut motor [11:49:45]*** Cut end [11:49:45]Read from MH i2c: 01 07 00 [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: 01 07 00 98 03 00 00 00 00 00 FF 0F B0 [11:49:45]process_action close_receipt done [11:49:45]requested_data is exist [11:49:45]produce_requested_data [11:49:45]requested_item fm.sn is exist - process it [11:49:45]wFMCommunicate request_size=4 [11:49:45]MH_SAM_APDU [11:49:45]CAPDU: 80 11 00 00 [11:49:45]Write to MH i2c: E2 08 00 99 03 80 11 00 00 00 00 00 00 16 [11:49:45]Write i2c OK [11:49:45]MH_I2C_Read... [11:49:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:45]Read from MH i2c: E2 [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: E2 17 00 [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: E2 17 00 99 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 68 [11:49:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:49:45]wFMCommunicate OK [11:49:45]requested_item fd.num is exist - process it [11:49:45]SAM_PROTO_GetFieldsCounters [11:49:45]wFMCommunicate request_size=4 [11:49:45]MH_SAM_APDU [11:49:45]CAPDU: 80 13 00 00 [11:49:45]Write to MH i2c: E2 08 00 9A 03 80 13 00 00 00 00 00 00 19 [11:49:45]Write i2c OK [11:49:45]MH_I2C_Read... [11:49:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:45]Read from MH i2c: E2 [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: E2 62 00 [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: E2 62 00 9A 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E7 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [11:49:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E7 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:49:45]wFMCommunicate OK [11:49:45]SAM_PROTO_GetFieldsCounters done [11:49:45]requested_item shift.num is exist - process it [11:49:45]requested_item shift.opened is exist - process it [11:49:45]req_shift_opened [11:49:45]FM_GetShiftState [11:49:45]SAM_PROTO_GetShiftState [11:49:45]wFMCommunicate request_size=4 [11:49:45]MH_SAM_APDU [11:49:45]CAPDU: 80 13 01 00 [11:49:45]Write to MH i2c: E2 08 00 9B 03 80 13 01 00 00 00 00 00 1B [11:49:45]Write i2c OK [11:49:45]MH_I2C_Read... [11:49:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:45]Read from MH i2c: E2 [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: E2 0E 00 [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: E2 0E 00 9B 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 23 [11:49:45]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [11:49:45]wFMCommunicate OK [11:49:45]SAM_PROTO_GetShiftState done [11:49:45]FM_GetShiftState done [11:49:45]req_shift_opened done [11:49:45]requested_item shift.open_date is exist - process it [11:49:45]req_shift_open_date [11:49:45]req_shift_open_date done [11:49:45]produce_requested_data done [11:49:45]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82151,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [11:49:45]process_action_free close_receipt [11:49:45]json_value_free [11:49:45]json_value_free done [11:49:45]process_json_proto returns [11:49:45]Send response to host [11:49:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82151,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [11:49:45]free response buf [11:49:45]execute_script done [11:49:45]execute_script returns [11:49:45]free content buf [11:49:45]Sock 9.Close socket [11:49:45]Sock 9.Thread stoped [11:49:50]OFD Sender: No OFD packet to send [11:49:55]OFD Sender: No OFD packet to send [11:49:57]recv_with_timeout no data received [11:50:00]OFD Sender: No OFD packet to send [11:50:05]OFD Sender: No OFD packet to send [11:50:10]OFD Sender: No OFD packet to send [11:50:15]OFD Sender: No OFD packet to send [11:50:17]recv_with_timeout no data received [11:50:20]OFD Sender: No OFD packet to send [11:50:25]OFD Sender: No OFD packet to send [11:50:30]OFD Sender: No OFD packet to send [11:50:35]OFD Sender: No OFD packet to send [11:50:40]OFD Sender: No OFD packet to send [11:50:45]OFD Sender: No OFD packet to send [11:50:50]OFD Sender: No OFD packet to send [11:50:55]OFD Sender: No OFD packet to send [11:51:00]OFD Sender: No OFD packet to send [11:51:05]OFD Sender: No OFD packet to send [11:51:10]OFD Sender: No OFD packet to send [11:51:15]OFD Sender: No OFD packet to send [11:51:20]OFD Sender: No OFD packet to send [11:51:25]OFD Sender: No OFD packet to send [11:51:30]OFD Sender: No OFD packet to send [11:51:35]OFD Sender: No OFD packet to send [11:51:40]OFD Sender: No OFD packet to send [11:51:45]OFD Sender: No OFD packet to send [11:51:50]OFD Sender: No OFD packet to send [11:51:55]OFD Sender: No OFD packet to send [11:52:00]OFD Sender: No OFD packet to send [11:52:05]OFD Sender: No OFD packet to send [11:52:10]OFD Sender: No OFD packet to send [11:52:15]OFD Sender: No OFD packet to send [11:52:20]OFD Sender: No OFD packet to send [11:52:25]OFD Sender: No OFD packet to send [11:52:30]OFD Sender: No OFD packet to send [11:52:35]OFD Sender: No OFD packet to send [11:52:40]OFD Sender: No OFD packet to send [11:52:45]OFD Sender: No OFD packet to send [11:52:50]OFD Sender: No OFD packet to send [11:52:55]OFD Sender: No OFD packet to send [11:53:00]OFD Sender: No OFD packet to send [11:53:05]OFD Sender: No OFD packet to send [11:53:10]OFD Sender: No OFD packet to send [11:53:15]OFD Sender: No OFD packet to send [11:53:20]OFD Sender: No OFD packet to send [11:53:25]OFD Sender: No OFD packet to send [11:53:30]OFD Sender: No OFD packet to send [11:53:33]accept exits with 7 [11:53:33]New connection [11:53:33]New thread 3067145572 created [11:53:33]Thread 3067002212 joined [11:53:33]Waiting for new connection... [11:53:33] Sock 7.Parse request [11:53:33]Sock 7.Check first char [11:53:33]Sock 7.First char is OK [11:53:33]request: POST /json_proto HTTP/1.0 [11:53:33]Method: POST [11:53:33]URL: /json_proto [11:53:33]Method is POST - this is cgi request [11:53:33]url: /json_proto [11:53:33]query_string will be loaded in cgi processing [11:53:33]execute_cgi json_proto POST (null) [11:53:33]execute_cgi path=json_proto method=POST [11:53:33]POST find Content-Length [11:53:33]Host: 172.17.44.67:8080 [11:53:33]Content-Length: 708 [11:53:33]Content-Type: application/json [11:53:33] [11:53:33]POST finish read [11:53:33]Found Content-Length = 708 [11:53:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10588", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:33]execute_script... [11:53: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)10588", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:33]POST & json_proto [11:53:33]process_json_proto [11:53:33]json parsed OK: [11:53:33]protocol is kg_v1.0 [11:53:33]action value=close_receipt [11:53:33]process_action close_receipt [11:53:33]cmd_close_receipt [11:53:33]MH_GetDate [11:53:33]Write to MH i2c: F0 00 00 9C 03 8E [11:53:33]Write i2c OK [11:53:33]MH_I2C_Read... [11:53:33]Read from MH i2c: F0 [11:53:33]MH_I2C_Read... [11:53:33]Read from MH i2c: F0 09 00 [11:53:33]MH_I2C_Read... [11:53:33]Read from MH i2c: F0 09 00 9C 03 00 BE FA 10 67 F1 C7 6B 64 4D [11:53:33]GetLastDocTimeStamp 1729165782 [11:53:33]current date 1729166014 [11:53:33]FM_GetShiftState [11:53:33]SAM_PROTO_GetShiftState [11:53:33]wFMCommunicate request_size=4 [11:53:33]MH_SAM_APDU [11:53:33]CAPDU: 80 13 01 00 [11:53:33]Write to MH i2c: E2 08 00 9D 03 80 13 01 00 00 00 00 00 1D [11:53:33]Write i2c OK [11:53:33]MH_I2C_Read... [11:53:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:33]Read from MH i2c: E2 [11:53:33]MH_I2C_Read... [11:53:33]Read from MH i2c: E2 0E 00 [11:53:33]MH_I2C_Read... [11:53:33]Read from MH i2c: E2 0E 00 9D 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 25 [11:53:33]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [11:53:33]wFMCommunicate OK [11:53:33]SAM_PROTO_GetShiftState done [11:53:33]FM_GetShiftState done [11:53:33]opened in 1729125927 [11:53:33]opened+sec_in_day 1729212327 [11:53:33]quantity*price = 9500 [11:53:33]sum+1 = 9501 [11:53:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 78 17.10.2024 11:53 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82152 ФПД: 135041627404938 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T115334&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82152&fm=135041627404938&tin=02508201610067®Number=0000000000091680&sum=9500 0 [11:53:35]StoreToDocumentArchive [11:53:35]shift 525 fd 82152 [11:53:35]save to /storage/0525/doc_00082152 [11:53:35]save last doc name /storage/0525/doc_00082152 to /storage/kkm_last_doc_name [11:53:35]save OK [11:53:35]Clear old archive folders... [11:53:35]ProcessDocumentItem done err = 0, tmpTLVsize=304 [11:53:35]tlvbuf is 01D1BBA0 [11:53:35]SAM_PROTO_ClearQueue [11:53:35]wFMCommunicate request_size=4 [11:53:35]MH_SAM_APDU [11:53:35]CAPDU: 80 09 00 00 [11:53:35]Write to MH i2c: E2 08 00 AA 03 80 09 00 00 00 00 00 00 1F [11:53:35]Write i2c OK [11:53:35]MH_I2C_Read... [11:53:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:35]Read from MH i2c: E2 [11:53:35]MH_I2C_Read... [11:53:35]Read from MH i2c: E2 03 00 [11:53:35]MH_I2C_Read... [11:53:35]Read from MH i2c: E2 03 00 AA 03 00 90 00 21 [11:53:35]RAPDU: 90 00 [11:53:35]wFMCommunicate OK [11:53:35]SAM_PROTO_ClearQueue done [11:53:35]KKMCreateOFDPacket [11:53:35]OFDProtocolAddRootSTLVToBuf [11:53:35]FM_MakeSignedData [11:53:35]FM_MakeSignedData [11:53:35]SAM_PROTO_SignData [11:53:35]wFMCommunicate request_size=4 [11:53:35]MH_SAM_APDU [11:53:35]CAPDU: 80 0D 01 02 [11:53:35]Write to MH i2c: E2 08 00 AB 03 80 0D 01 02 00 00 00 00 27 [11:53:35]Write i2c OK [11:53:35]MH_I2C_Read... [11:53:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:35]Read from MH i2c: E2 [11:53:35]MH_I2C_Read... [11:53:35]Read from MH i2c: E2 03 00 [11:53:35]MH_I2C_Read... [11:53:35]Read from MH i2c: E2 03 00 AB 03 00 90 00 22 [11:53:35]RAPDU: 90 00 [11:53:35]wFMCommunicate OK [11:53:35]wFMCommunicate request_size=255 [11:53:35]MH_SAM_APDU [11:53:35]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 BE FA 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 [11:53:35]Write to MH i2c: E2 02 01 AC 03 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 BE FA 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 00 00 F9 [11:53:35]Write i2c OK [11:53:35]MH_I2C_Read... [11:53:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:35]Read from MH i2c: E2 [11:53:35]MH_I2C_Read... [11:53:35]Read from MH i2c: E2 03 00 [11:53:35]MH_I2C_Read... [11:53:35]Read from MH i2c: E2 03 00 AC 03 00 90 00 23 [11:53:35]RAPDU: 90 00 [11:53:35]wFMCommunicate OK [11:53:35]wFMCommunicate request_size=63 [11:53:35]MH_SAM_APDU [11:53:35]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E8 40 01 00 35 04 06 00 7A D1 D4 3B 3A 8A [11:53:35]Write to MH i2c: E2 42 00 AD 03 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E8 40 01 00 35 04 06 00 7A D1 D4 3B 3A 8A 00 00 B9 [11:53:35]Write i2c OK [11:53:35]MH_I2C_Read... [11:53:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:35]Read from MH i2c: E2 [11:53:35]MH_I2C_Read... [11:53:35]Read from MH i2c: E2 03 00 [11:53:35]MH_I2C_Read... [11:53:35]Read from MH i2c: E2 03 00 AD 03 00 90 00 24 [11:53:35]RAPDU: 90 00 [11:53:35]wFMCommunicate OK [11:53:35]wFMCommunicate request_size=4 [11:53:35]MH_SAM_APDU [11:53:35]CAPDU: 80 0D 03 02 [11:53:35]Write to MH i2c: E2 08 00 AE 03 80 0D 03 02 00 00 00 00 2C [11:53:35]Write i2c OK [11:53:35]MH_I2C_Read... [11:53:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:35]Read from MH i2c: E2 [11:53:35]MH_I2C_Read... [11:53:35]Read from MH i2c: E2 0B 00 [11:53:35]MH_I2C_Read... [11:53:35]Read from MH i2c: E2 0B 00 AE 03 00 75 8E EE AA 26 97 9E 7F 90 00 A2 [11:53:35]RAPDU: 75 8E EE AA 26 97 9E 7F 90 00 [11:53:35]wFMCommunicate OK [11:53:35]SAM_PROTO_SignData done [11:53:35]FM_MakeSignedData done [11:53:35]CreateOFDProtocolMessage [11:53:35]wFMCommunicate request_size=4 [11:53:35]MH_SAM_APDU [11:53:35]CAPDU: 80 11 00 00 [11:53:35]Write to MH i2c: E2 08 00 AF 03 80 11 00 00 00 00 00 00 2C [11:53:35]Write i2c OK [11:53:35]MH_I2C_Read... [11:53:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:35]Read from MH i2c: E2 [11:53:35]MH_I2C_Read... [11:53:35]Read from MH i2c: E2 17 00 [11:53:35]MH_I2C_Read... [11:53:35]Read from MH i2c: E2 17 00 AF 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 7E [11:53:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:53:35]wFMCommunicate OK [11:53:35]CreateOFDProtocolMessage done [11:53:35]OFDSenderStorePacket 82152 [11:53:35]StoreOFDPacket docnum=82152 [11:53:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 44 01 00 00 D5 48 3C 01 3B 9C 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 4E 00 00 00 F4 03 04 00 BE FA 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E8 40 01 00 35 04 06 00 7A D1 D4 3B 3A 8A 75 8E EE AA 26 97 9E 7F [11:53:35]CheckFolder [11:53:35]dirname=/storage/ofd_packets [11:53:35]CheckFolder done [11:53:35]ProducePacketName [11:53:35]name=ofd_packets/00082152 [11:53:35]NVStorageSaveData ofd_packets/00082152 [11:53:35]File name is /storage/ofd_packets/00082152 [11:53:35]Write 354 bytes [11:53:35]NVStorageSaveData done [11:53:35]OFDSenderStorePacket done [11:53:35]KKMCreateOFDPacket done [11:53:35]NVStorageSaveData kkm_last_timestamp [11:53:35]File name is /storage/kkm_last_timestamp [11:53:35]Write 4 bytes [11:53:35]NVStorageSaveData done [11:53:35]ExternCall_PrintAddStr [11:53:35]wPrintStart [11:53:35]Write to MH i2c: 01 00 00 B0 03 B3 [11:53:35]Write i2c OK [11:53:35]MH_I2C_Read... [11:53:35]Read from MH i2c: 01 [11:53:35]MH_I2C_Read... [11:53:35]Read from MH i2c: 01 07 00 [11:53:35]MH_I2C_Read... [11:53:35]Read from MH i2c: 01 07 00 B0 03 00 00 00 00 00 FF 0F C8 [11:53:35]RasterBufferAndPrint [11:53:35]line Счет N : (3)10588 [11:53:35]line ИНН: 02508201610067 [11:53:35]line Контрольно-Кассовый Чек [11:53:35]line ПРОДАЖА [11:53:35]line Товар: 4700000480302 [11:53:35]line Напиток энерг Nitro манго-клуб 0.45 ж/б [11:53:35]line 1.000 * 95.00 [11:53:35]line = 95.00 [11:53:35]line НДС 12% НСП 1% [11:53:35]line > о реализуемом товаре [11:53:35]line ИТОГО: 95.00 [11:53:35]line НСП 1% : 0.84 [11:53:35]line НДС 12% : 10.09 [11:53:35]line Наличными: 95.00 [11:53:35]line Безнал.: 0.00 [11:53:35]line Место: АЗС № 114 "Партнер Нефть" [11:53:35]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:53:35]line СНО: Общий режим [11:53:35]line Чек 78 17.10.2024 11:53 [11:53:35]line Смена: 525 ФФД: 1.0 [11:53:35]line ЗНМ: 0300000086 [11:53:35]line РНМ: 0000000000091680 [11:53:35]line Версия ККМ: 001 [11:53:35]line ФМ: 0000000000871843 [11:53:35]line ФД: 82152 [11:53:35]line ФПД: 135041627404938 [11:53:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T115334&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82152&fm=135041627404938&tin=02508201610067®Number=0000000000091680&sum=9500 [11:53:36]line 0 [11:53:36]OFD Sender: Processing packet 82152 [packets to send 254, broken 253] [11:53:36]ProducePacketName [11:53:36]name=ofd_packets/00082152 [11:53:36]OFD Sender: To server: pG, [11:53:36]CommunicateWithHost lk.salyk.kg:30040 [11:53:36]ConnectInit lk.salyk.kg [11:53:36]written 0, free lines is 4095 [11:53:36]Connected sock=9 [11:53:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 44 01 00 00 D5 48 3C 01 3B 9C 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 4E 00 00 00 F4 03 04 00 BE FA 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E8 40 01 00 35 04 06 00 7A D1 D4 3B 3A 8A 75 8E EE AA 26 97 9E 7F [11:53:36]Write to MH i2c: 01 00 00 D9 03 DC [11:53:36]Write i2c OK [11:53:36]MH_I2C_Read... [11:53:36]Read from MH i2c: 01 [11:53:36]MH_I2C_Read... [11:53:36]Read from MH i2c: 01 07 00 [11:53:36]MH_I2C_Read... [11:53:36]Read from MH i2c: 01 07 00 D9 03 00 00 00 00 00 EE 0C DD [11:53:36]RasterBufferAndPrint [11:53:36]line [11:53:36]line [11:53:36]line [11:53:36]line [11:53:36]line [11:53:36]written 0, free lines is 3316 [11:53:36]MH_Cut [11:53:36]Write to MH i2c: D1 01 00 E0 03 01 B5 [11:53:36]Write i2c OK [11:53:36]MH_I2C_Read... [11:53:36]Read from MH i2c: D1 [11:53:36]MH_I2C_Read... [11:53:36]Read from MH i2c: D1 01 00 [11:53:36]MH_I2C_Read... [11:53:36]Read from MH i2c: D1 01 00 E0 03 00 B4 [11:53:36]Write to MH i2c: 01 00 00 E1 03 E4 [11:53:36]Write i2c OK [11:53:36]MH_I2C_Read... [11:53:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 2E 6B 47 00 35 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E8 40 01 00 F4 03 04 00 FC 9F 10 67 B6 04 01 00 00 D1 4E B9 22 8C 09 F6 7B [11:53:36]CommunicateWithHost err = 0 [11:53:36]CheckOFDResponse [11:53:36]1017 (14) - 77093643461234 [11:53:36]1041 (16) - 0000000000871843 [11:53:36]1040 (4) - 82152 [11:53:36]1012 (4) - 17.10.2024 05:26 [11:53:36]1206 (1) - 0 [11:53:36]OFD Sender: Remove packet 82152 [11:53:36]ProducePacketName [11:53:36]name=ofd_packets/00082152 [11:53:36]NVStorageDeleteData [11:53:37]*** Cut start [11:53:37]*** Partial cut [11:53:37]*** CUTSNS_PIN = 1 [11:53:37]*** CUTSNS_PIN = 0 [11:53:37]OFD Sender: No OFD packet to send [11:53:37]*** Brake cut motor [11:53:37]Read from MH i2c: 01 [11:53:37]MH_I2C_Read... [11:53:37]*** Stop cut motor [11:53:37]*** Cut end [11:53:37]Read from MH i2c: 01 07 00 [11:53:37]MH_I2C_Read... [11:53:37]Read from MH i2c: 01 07 00 E1 03 00 00 00 00 00 FF 0F F9 [11:53:37]process_action close_receipt done [11:53:37]requested_data is exist [11:53:37]produce_requested_data [11:53:37]requested_item fm.sn is exist - process it [11:53:37]wFMCommunicate request_size=4 [11:53:37]MH_SAM_APDU [11:53:37]CAPDU: 80 11 00 00 [11:53:37]Write to MH i2c: E2 08 00 E2 03 80 11 00 00 00 00 00 00 5F [11:53:37]Write i2c OK [11:53:37]MH_I2C_Read... [11:53:37]Read from MH i2c: E2 [11:53:37]MH_I2C_Read... [11:53:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:37]Read from MH i2c: E2 17 00 [11:53:37]MH_I2C_Read... [11:53:37]Read from MH i2c: E2 17 00 E2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 B1 [11:53:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:53:37]wFMCommunicate OK [11:53:37]requested_item fd.num is exist - process it [11:53:37]SAM_PROTO_GetFieldsCounters [11:53:37]wFMCommunicate request_size=4 [11:53:37]MH_SAM_APDU [11:53:37]CAPDU: 80 13 00 00 [11:53:37]Write to MH i2c: E2 08 00 E3 03 80 13 00 00 00 00 00 00 62 [11:53:37]Write i2c OK [11:53:37]MH_I2C_Read... [11:53:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:38]Read from MH i2c: E2 [11:53:38]MH_I2C_Read... [11:53:38]Read from MH i2c: E2 62 00 [11:53:38]MH_I2C_Read... [11:53:38]Read from MH i2c: E2 62 00 E3 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E8 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [11:53:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E8 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:53:38]wFMCommunicate OK [11:53:38]SAM_PROTO_GetFieldsCounters done [11:53:38]requested_item shift.num is exist - process it [11:53:38]requested_item shift.opened is exist - process it [11:53:38]req_shift_opened [11:53:38]FM_GetShiftState [11:53:38]SAM_PROTO_GetShiftState [11:53:38]wFMCommunicate request_size=4 [11:53:38]MH_SAM_APDU [11:53:38]CAPDU: 80 13 01 00 [11:53:38]Write to MH i2c: E2 08 00 E4 03 80 13 01 00 00 00 00 00 64 [11:53:38]Write i2c OK [11:53:38]MH_I2C_Read... [11:53:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:38]Read from MH i2c: E2 [11:53:38]MH_I2C_Read... [11:53:38]Read from MH i2c: E2 0E 00 [11:53:38]MH_I2C_Read... [11:53:38]Read from MH i2c: E2 0E 00 E4 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 6C [11:53:38]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [11:53:38]wFMCommunicate OK [11:53:38]SAM_PROTO_GetShiftState done [11:53:38]FM_GetShiftState done [11:53:38]req_shift_opened done [11:53:38]requested_item shift.open_date is exist - process it [11:53:38]req_shift_open_date [11:53:38]req_shift_open_date done [11:53:38]produce_requested_data done [11:53:38]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82152,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [11:53:38]process_action_free close_receipt [11:53:38]json_value_free [11:53:38]json_value_free done [11:53:38]process_json_proto returns [11:53:38]Send response to host [11:53:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82152,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [11:53:38]free response buf [11:53:38]execute_script done [11:53:38]execute_script returns [11:53:38]free content buf [11:53:38]Sock 7.Close socket [11:53:38]Sock 7.Thread stoped [11:53:42]OFD Sender: No OFD packet to send [11:53:45]recv_with_timeout no data received [11:53:47]OFD Sender: No OFD packet to send [11:53:52]OFD Sender: No OFD packet to send [11:53:57]OFD Sender: No OFD packet to send [11:54:02]OFD Sender: No OFD packet to send [11:54:07]OFD Sender: No OFD packet to send [11:54:12]OFD Sender: No OFD packet to send [11:54:17]OFD Sender: No OFD packet to send [11:54:22]OFD Sender: No OFD packet to send [11:54:25]accept exits with 10 [11:54:25]New connection [11:54:25]New thread 3067002212 created [11:54:25]Thread 3067145572 joined [11:54:25]Waiting for new connection... [11:54:25] Sock 10.Parse request [11:54:25]Sock 10.Check first char [11:54:25]Sock 10.First char is OK [11:54:25]request: POST /json_proto HTTP/1.0 [11:54:25]Method: POST [11:54:25]URL: /json_proto [11:54:25]Method is POST - this is cgi request [11:54:25]url: /json_proto [11:54:25]query_string will be loaded in cgi processing [11:54:25]execute_cgi json_proto POST (null) [11:54:25]execute_cgi path=json_proto method=POST [11:54:25]POST find Content-Length [11:54:25]Host: 172.17.44.67:8080 [11:54:25]Content-Length: 677 [11:54:25]Content-Type: application/json [11:54:25] [11:54:25]POST finish read [11:54:25]Found Content-Length = 677 [11:54:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:25]execute_script... [11:54:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:25]POST & json_proto [11:54:25]process_json_proto [11:54:25]json parsed OK: [11:54:25]protocol is kg_v1.0 [11:54:25]action value=close_receipt [11:54:25]process_action close_receipt [11:54:25]cmd_close_receipt [11:54:25]MH_GetDate [11:54:25]Write to MH i2c: F0 00 00 E5 03 D7 [11:54:25]Write i2c OK [11:54:25]MH_I2C_Read... [11:54:25]Read from MH i2c: F0 [11:54:25]MH_I2C_Read... [11:54:25]Read from MH i2c: F0 09 00 [11:54:25]MH_I2C_Read... [11:54:25]Read from MH i2c: F0 09 00 E5 03 00 F1 FA 10 67 F1 C7 6B 64 C9 [11:54:25]GetLastDocTimeStamp 1729166014 [11:54:25]current date 1729166065 [11:54:25]FM_GetShiftState [11:54:25]SAM_PROTO_GetShiftState [11:54:25]wFMCommunicate request_size=4 [11:54:25]MH_SAM_APDU [11:54:25]CAPDU: 80 13 01 00 [11:54:25]Write to MH i2c: E2 08 00 E6 03 80 13 01 00 00 00 00 00 66 [11:54:25]Write i2c OK [11:54:25]MH_I2C_Read... [11:54:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:25]Read from MH i2c: E2 [11:54:25]MH_I2C_Read... [11:54:25]Read from MH i2c: E2 0E 00 [11:54:25]MH_I2C_Read... [11:54:25]Read from MH i2c: E2 0E 00 E6 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 6E [11:54:25]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [11:54:25]wFMCommunicate OK [11:54:25]SAM_PROTO_GetShiftState done [11:54:25]FM_GetShiftState done [11:54:25]opened in 1729125927 [11:54:25]opened+sec_in_day 1729212327 [11:54:25]quantity*price = 50041 [11:54:25]sum+1 = 50042 [11:54:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 79 17.10.2024 11:54 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82153 ФПД: 266509712034085 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T115425&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82153&fm=266509712034085&tin=02508201610067®Number=0000000000091680&sum=50000 [11:54:26]StoreToDocumentArchive [11:54:26]shift 525 fd 82153 [11:54:26]save to /storage/0525/doc_00082153 [11:54:26]save last doc name /storage/0525/doc_00082153 to /storage/kkm_last_doc_name [11:54:26]save OK [11:54:26]Clear old archive folders... [11:54:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:54:26]tlvbuf is 01D079C0 [11:54:26]SAM_PROTO_ClearQueue [11:54:26]wFMCommunicate request_size=4 [11:54:26]MH_SAM_APDU [11:54:26]CAPDU: 80 09 00 00 [11:54:26]Write to MH i2c: E2 08 00 F3 03 80 09 00 00 00 00 00 00 68 [11:54:26]Write i2c OK [11:54:26]MH_I2C_Read... [11:54:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:26]Read from MH i2c: E2 [11:54:26]MH_I2C_Read... [11:54:26]Read from MH i2c: E2 03 00 [11:54:26]MH_I2C_Read... [11:54:26]Read from MH i2c: E2 03 00 F3 03 00 90 00 6A [11:54:26]RAPDU: 90 00 [11:54:26]wFMCommunicate OK [11:54:26]SAM_PROTO_ClearQueue done [11:54:26]KKMCreateOFDPacket [11:54:26]OFDProtocolAddRootSTLVToBuf [11:54:26]FM_MakeSignedData [11:54:26]FM_MakeSignedData [11:54:26]SAM_PROTO_SignData [11:54:26]wFMCommunicate request_size=4 [11:54:26]MH_SAM_APDU [11:54:26]CAPDU: 80 0D 01 02 [11:54:26]Write to MH i2c: E2 08 00 F4 03 80 0D 01 02 00 00 00 00 70 [11:54:26]Write i2c OK [11:54:26]MH_I2C_Read... [11:54:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:26]Read from MH i2c: E2 [11:54:26]MH_I2C_Read... [11:54:26]Read from MH i2c: E2 03 00 [11:54:26]MH_I2C_Read... [11:54:26]Read from MH i2c: E2 03 00 F4 03 00 90 00 6B [11:54:26]RAPDU: 90 00 [11:54:26]wFMCommunicate OK [11:54:26]wFMCommunicate request_size=255 [11:54:26]MH_SAM_APDU [11:54:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 F1 FA 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E9 40 01 00 35 04 06 00 F2 [11:54:26]Write to MH i2c: E2 02 01 F5 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 F1 FA 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E9 40 01 00 35 04 06 00 F2 00 00 D8 [11:54:26]Write i2c OK [11:54:26]MH_I2C_Read... [11:54:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:26]Read from MH i2c: E2 [11:54:26]MH_I2C_Read... [11:54:26]Read from MH i2c: E2 03 00 [11:54:26]MH_I2C_Read... [11:54:26]Read from MH i2c: E2 03 00 F5 03 00 90 00 6C [11:54:26]RAPDU: 90 00 [11:54:26]wFMCommunicate OK [11:54:26]wFMCommunicate request_size=10 [11:54:26]MH_SAM_APDU [11:54:26]CAPDU: 80 0D 02 02 05 63 A0 B7 09 25 [11:54:26]Write to MH i2c: E2 0D 00 F6 03 80 0D 02 02 05 00 63 A0 B7 09 25 00 00 65 [11:54:26]Write i2c OK [11:54:26]MH_I2C_Read... [11:54:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:26]Read from MH i2c: E2 [11:54:26]MH_I2C_Read... [11:54:26]Read from MH i2c: E2 03 00 [11:54:26]MH_I2C_Read... [11:54:26]Read from MH i2c: E2 03 00 F6 03 00 90 00 6D [11:54:26]RAPDU: 90 00 [11:54:26]wFMCommunicate OK [11:54:26]wFMCommunicate request_size=4 [11:54:26]MH_SAM_APDU [11:54:26]CAPDU: 80 0D 03 02 [11:54:26]Write to MH i2c: E2 08 00 F7 03 80 0D 03 02 00 00 00 00 75 [11:54:26]Write i2c OK [11:54:26]MH_I2C_Read... [11:54:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:26]Read from MH i2c: E2 [11:54:26]MH_I2C_Read... [11:54:26]Read from MH i2c: E2 0B 00 [11:54:26]MH_I2C_Read... [11:54:26]Read from MH i2c: E2 0B 00 F7 03 00 36 9B D8 5B B2 5E 59 2C 90 00 0F [11:54:26]RAPDU: 36 9B D8 5B B2 5E 59 2C 90 00 [11:54:26]wFMCommunicate OK [11:54:26]SAM_PROTO_SignData done [11:54:26]FM_MakeSignedData done [11:54:26]CreateOFDProtocolMessage [11:54:26]wFMCommunicate request_size=4 [11:54:26]MH_SAM_APDU [11:54:26]CAPDU: 80 11 00 00 [11:54:26]Write to MH i2c: E2 08 00 F8 03 80 11 00 00 00 00 00 00 75 [11:54:26]Write i2c OK [11:54:26]MH_I2C_Read... [11:54:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:26]Read from MH i2c: E2 [11:54:26]MH_I2C_Read... [11:54:26]Read from MH i2c: E2 17 00 [11:54:26]MH_I2C_Read... [11:54:26]Read from MH i2c: E2 17 00 F8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C7 [11:54:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:54:26]wFMCommunicate OK [11:54:26]CreateOFDProtocolMessage done [11:54:26]OFDSenderStorePacket 82153 [11:54:26]StoreOFDPacket docnum=82153 [11:54:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 EF 22 07 01 6B AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 F1 FA 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E9 40 01 00 35 04 06 00 F2 63 A0 B7 09 25 36 9B D8 5B B2 5E 59 2C [11:54:26]CheckFolder [11:54:26]dirname=/storage/ofd_packets [11:54:26]CheckFolder done [11:54:26]ProducePacketName [11:54:26]name=ofd_packets/00082153 [11:54:26]NVStorageSaveData ofd_packets/00082153 [11:54:26]File name is /storage/ofd_packets/00082153 [11:54:26]Write 301 bytes [11:54:26]NVStorageSaveData done [11:54:26]OFDSenderStorePacket done [11:54:26]KKMCreateOFDPacket done [11:54:26]NVStorageSaveData kkm_last_timestamp [11:54:26]File name is /storage/kkm_last_timestamp [11:54:26]Write 4 bytes [11:54:26]NVStorageSaveData done [11:54:26]ExternCall_PrintAddStr [11:54:26]wPrintStart [11:54:26]Write to MH i2c: 01 00 00 F9 03 FC [11:54:26]Write i2c OK [11:54:26]MH_I2C_Read... [11:54:26]Read from MH i2c: 01 [11:54:26]MH_I2C_Read... [11:54:26]Read from MH i2c: 01 07 00 [11:54:26]MH_I2C_Read... [11:54:26]Read from MH i2c: 01 07 00 F9 03 00 00 00 00 00 FF 0F 11 [11:54:26]RasterBufferAndPrint [11:54:26]line Счет N : (1)918658 [11:54:26]line ИНН: 02508201610067 [11:54:26]line Контрольно-Кассовый Чек [11:54:26]line ПРОДАЖА [11:54:26]line ТРК (МРК, ГНК) : 22 [11:54:26]line Товар: 2710124130 [11:54:26]line Аи-92-К-4 [11:54:26]line 7.480 * 66.90 [11:54:26]line = 500.41 [11:54:26]line НДС 12% НСП 1% [11:54:26]line > о реализуемом товаре [11:54:26]line ОКРУГЛЕНИЕ: -0.41 [11:54:26]line ИТОГО: 500.00 [11:54:26]line Внесено: 500.00 [11:54:26]line СДАЧА: 0.00 [11:54:26]line НСП 1% : 4.43 [11:54:26]line НДС 12% : 53.14 [11:54:26]line Наличными: 500.00 [11:54:26]line Безнал.: 0.00 [11:54:26]line Место: АЗС № 114 "Партнер Нефть" [11:54:26]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:54:26]line СНО: Общий режим [11:54:26]line Чек 79 17.10.2024 11:54 [11:54:26]line Смена: 525 ФФД: 1.0 [11:54:26]line ЗНМ: 0300000086 [11:54:26]line РНМ: 0000000000091680 [11:54:26]line Версия ККМ: 001 [11:54:26]line ФМ: 0000000000871843 [11:54:26]line ФД: 82153 [11:54:26]line ФПД: 266509712034085 [11:54:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T115425&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82153&fm=266509712034085&tin=02508201610067®Number=0000000000091680&sum=50000 [11:54:27]OFD Sender: Processing packet 82153 [packets to send 254, broken 253] [11:54:27]ProducePacketName [11:54:27]name=ofd_packets/00082153 [11:54:27]OFD Sender: To server: pG, [11:54:27]CommunicateWithHost lk.salyk.kg:30040 [11:54:27]ConnectInit lk.salyk.kg [11:54:27]written 0, free lines is 4095 [11:54:27]Write to MH i2c: 01 00 00 24 04 28 [11:54:27]Write i2c OK [11:54:27]MH_I2C_Read... [11:54:27]Read from MH i2c: 01 [11:54:27]MH_I2C_Read... [11:54:27]Read from MH i2c: 01 07 00 [11:54:27]MH_I2C_Read... [11:54:27]Read from MH i2c: 01 07 00 24 04 00 00 00 00 00 CB 0C 06 [11:54:27]RasterBufferAndPrint [11:54:27]line [11:54:27]line [11:54:27]line [11:54:27]line [11:54:27]line [11:54:27]written 0, free lines is 3281 [11:54:27]MH_Cut [11:54:27]Write to MH i2c: D1 01 00 2B 04 01 01 [11:54:27]Write i2c OK [11:54:27]MH_I2C_Read... [11:54:27]Read from MH i2c: D1 [11:54:27]MH_I2C_Read... [11:54:27]Read from MH i2c: D1 01 00 [11:54:27]MH_I2C_Read... [11:54:27]Read from MH i2c: D1 01 00 2B 04 00 00 [11:54:27]Write to MH i2c: 01 00 00 2C 04 30 [11:54:27]Write i2c OK [11:54:27]MH_I2C_Read... [11:54:28]Connected sock=9 [11:54:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 EF 22 07 01 6B AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 F1 FA 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E9 40 01 00 35 04 06 00 F2 63 A0 B7 09 25 36 9B D8 5B B2 5E 59 2C [11:54:28]*** Cut start [11:54:28]*** Partial cut [11:54:28]*** CUTSNS_PIN = 1 [11:54:28]*** CUTSNS_PIN = 0 [11:54:28]*** Brake cut motor [11:54:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 E6 66 47 00 3B BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E9 40 01 00 F4 03 04 00 30 A0 10 67 B6 04 01 00 00 EF 2E 42 80 C3 9C 44 A6 [11:54:28]CommunicateWithHost err = 0 [11:54:28]CheckOFDResponse [11:54:28]1017 (14) - 77093643461234 [11:54:28]1041 (16) - 0000000000871843 [11:54:28]1040 (4) - 82153 [11:54:28]1012 (4) - 17.10.2024 05:27 [11:54:28]1206 (1) - 0 [11:54:28]OFD Sender: Remove packet 82153 [11:54:28]ProducePacketName [11:54:28]name=ofd_packets/00082153 [11:54:28]NVStorageDeleteData [11:54:29]Read from MH i2c: 01 [11:54:29]MH_I2C_Read... [11:54:29]*** Stop cut motor [11:54:29]*** Cut end [11:54:29]Read from MH i2c: 01 07 00 [11:54:29]MH_I2C_Read... [11:54:29]Read from MH i2c: 01 07 00 2C 04 00 00 00 00 00 FF 0F 45 [11:54:29]process_action close_receipt done [11:54:29]requested_data is exist [11:54:29]produce_requested_data [11:54:29]requested_item fm.sn is exist - process it [11:54:29]wFMCommunicate request_size=4 [11:54:29]MH_SAM_APDU [11:54:29]CAPDU: 80 11 00 00 [11:54:29]Write to MH i2c: E2 08 00 2D 04 80 11 00 00 00 00 00 00 AB [11:54:29]Write i2c OK [11:54:29]MH_I2C_Read... [11:54:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:29]Read from MH i2c: E2 [11:54:29]MH_I2C_Read... [11:54:29]Read from MH i2c: E2 17 00 [11:54:29]MH_I2C_Read... [11:54:29]Read from MH i2c: E2 17 00 2D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 FD [11:54:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:54:29]wFMCommunicate OK [11:54:29]requested_item fd.num is exist - process it [11:54:29]SAM_PROTO_GetFieldsCounters [11:54:29]wFMCommunicate request_size=4 [11:54:29]MH_SAM_APDU [11:54:29]CAPDU: 80 13 00 00 [11:54:29]Write to MH i2c: E2 08 00 2E 04 80 13 00 00 00 00 00 00 AE [11:54:29]Write i2c OK [11:54:29]MH_I2C_Read... [11:54:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:29]Read from MH i2c: E2 [11:54:29]MH_I2C_Read... [11:54:29]Read from MH i2c: E2 62 00 [11:54:29]MH_I2C_Read... [11:54:29]Read from MH i2c: E2 62 00 2E 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E9 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [11:54:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E9 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:54:29]wFMCommunicate OK [11:54:29]SAM_PROTO_GetFieldsCounters done [11:54:29]requested_item shift.num is exist - process it [11:54:29]requested_item shift.opened is exist - process it [11:54:29]req_shift_opened [11:54:29]FM_GetShiftState [11:54:29]SAM_PROTO_GetShiftState [11:54:29]wFMCommunicate request_size=4 [11:54:29]MH_SAM_APDU [11:54:29]CAPDU: 80 13 01 00 [11:54:29]Write to MH i2c: E2 08 00 2F 04 80 13 01 00 00 00 00 00 B0 [11:54:29]Write i2c OK [11:54:29]MH_I2C_Read... [11:54:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:29]Read from MH i2c: E2 [11:54:29]MH_I2C_Read... [11:54:29]Read from MH i2c: E2 0E 00 [11:54:29]MH_I2C_Read... [11:54:29]Read from MH i2c: E2 0E 00 2F 04 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 B8 [11:54:29]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [11:54:29]wFMCommunicate OK [11:54:29]SAM_PROTO_GetShiftState done [11:54:29]FM_GetShiftState done [11:54:29]req_shift_opened done [11:54:29]requested_item shift.open_date is exist - process it [11:54:29]req_shift_open_date [11:54:29]req_shift_open_date done [11:54:29]produce_requested_data done [11:54:29]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82153,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [11:54:29]process_action_free close_receipt [11:54:29]json_value_free [11:54:29]json_value_free done [11:54:29]process_json_proto returns [11:54:29]Send response to host [11:54:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82153,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [11:54:29]free response buf [11:54:29]execute_script done [11:54:29]execute_script returns [11:54:29]free content buf [11:54:29]Sock 10.Close socket [11:54:29]Sock 10.Thread stoped [11:54:29]OFD Sender: No OFD packet to send [11:54:33]recv_with_timeout no data received [11:54:34]OFD Sender: No OFD packet to send [11:54:39]OFD Sender: No OFD packet to send [11:54:44]OFD Sender: No OFD packet to send [11:54:49]OFD Sender: No OFD packet to send [11:54:51]recv_with_timeout no data received [11:54:54]OFD Sender: No OFD packet to send [11:54:59]OFD Sender: No OFD packet to send [11:55:04]OFD Sender: No OFD packet to send [11:55:09]OFD Sender: No OFD packet to send [11:55:14]OFD Sender: No OFD packet to send [11:55:19]OFD Sender: No OFD packet to send [11:55:24]OFD Sender: No OFD packet to send [11:55:29]OFD Sender: No OFD packet to send [11:55:34]OFD Sender: No OFD packet to send [11:55:39]OFD Sender: No OFD packet to send [11:55:44]accept exits with 7 [11:55:44]New connection [11:55:44]New thread 3067145572 created [11:55:44]Thread 3067002212 joined [11:55:44]Waiting for new connection... [11:55:44] Sock 7.Parse request [11:55:44]Sock 7.Check first char [11:55:44]Sock 7.First char is OK [11:55:44]request: POST /json_proto HTTP/1.0 [11:55:44]Method: POST [11:55:44]URL: /json_proto [11:55:44]Method is POST - this is cgi request [11:55:44]url: /json_proto [11:55:44]query_string will be loaded in cgi processing [11:55:44]execute_cgi json_proto POST (null) [11:55:44]execute_cgi path=json_proto method=POST [11:55:44]POST find Content-Length [11:55:44]Host: 172.17.44.67:8080 [11:55:44]Content-Length: 800 [11:55:44]Content-Type: application/json [11:55:44] [11:55:44]POST finish read [11:55:44]Found Content-Length = 800 [11:55:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4581704", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:44]execute_script... [11:55:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4581704", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:44]POST & json_proto [11:55:44]process_json_proto [11:55:44]json parsed OK: [11:55:44]protocol is kg_v1.0 [11:55:44]action value=close_receipt [11:55:44]process_action close_receipt [11:55:44]cmd_close_receipt [11:55:44]MH_GetDate [11:55:44]Write to MH i2c: F0 00 00 30 04 23 [11:55:44]Write i2c OK [11:55:44]MH_I2C_Read... [11:55:44]Read from MH i2c: F0 [11:55:44]MH_I2C_Read... [11:55:44]Read from MH i2c: F0 09 00 [11:55:44]MH_I2C_Read... [11:55:44]Read from MH i2c: F0 09 00 30 04 00 40 FB 10 67 F1 C7 6B 64 65 [11:55:44]GetLastDocTimeStamp 1729166065 [11:55:44]current date 1729166144 [11:55:44]FM_GetShiftState [11:55:44]SAM_PROTO_GetShiftState [11:55:44]wFMCommunicate request_size=4 [11:55:44]MH_SAM_APDU [11:55:44]CAPDU: 80 13 01 00 [11:55:44]Write to MH i2c: E2 08 00 31 04 80 13 01 00 00 00 00 00 B2 [11:55:44]Write i2c OK [11:55:44]MH_I2C_Read... [11:55:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:44]Read from MH i2c: E2 [11:55:44]MH_I2C_Read... [11:55:44]Read from MH i2c: E2 0E 00 [11:55:44]MH_I2C_Read... [11:55:44]Read from MH i2c: E2 0E 00 31 04 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 BA [11:55:44]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [11:55:44]wFMCommunicate OK [11:55:44]SAM_PROTO_GetShiftState done [11:55:44]FM_GetShiftState done [11:55:44]opened in 1729125927 [11:55:44]opened+sec_in_day 1729212327 [11:55:44]quantity*price = 0 [11:55:44]sum+1 = 1 [11:55:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 80 17.10.2024 11:55 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 4581704 ФМ: 0000000000871843 ФД: 82154 ФПД: 23544584778560 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T115544&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82154&fm=23544584778560&tin=02508201610067®Number=0000000000091680&sum=0 [11:55:45]StoreToDocumentArchive [11:55:45]shift 525 fd 82154 [11:55:45]save to /storage/0525/doc_00082154 [11:55:45]save last doc name /storage/0525/doc_00082154 to /storage/kkm_last_doc_name [11:55:45]save OK [11:55:45]Clear old archive folders... [11:55:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:55:45]tlvbuf is 01D20D80 [11:55:45]SAM_PROTO_ClearQueue [11:55:45]wFMCommunicate request_size=4 [11:55:45]MH_SAM_APDU [11:55:45]CAPDU: 80 09 00 00 [11:55:45]Write to MH i2c: E2 08 00 3E 04 80 09 00 00 00 00 00 00 B4 [11:55:45]Write i2c OK [11:55:45]MH_I2C_Read... [11:55:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:45]Read from MH i2c: E2 [11:55:45]MH_I2C_Read... [11:55:45]Read from MH i2c: E2 03 00 [11:55:45]MH_I2C_Read... [11:55:45]Read from MH i2c: E2 03 00 3E 04 00 90 00 B6 [11:55:45]RAPDU: 90 00 [11:55:45]wFMCommunicate OK [11:55:45]SAM_PROTO_ClearQueue done [11:55:45]KKMCreateOFDPacket [11:55:45]OFDProtocolAddRootSTLVToBuf [11:55:45]FM_MakeSignedData [11:55:45]FM_MakeSignedData [11:55:45]SAM_PROTO_SignData [11:55:45]wFMCommunicate request_size=4 [11:55:45]MH_SAM_APDU [11:55:45]CAPDU: 80 0D 01 02 [11:55:45]Write to MH i2c: E2 08 00 3F 04 80 0D 01 02 00 00 00 00 BC [11:55:45]Write i2c OK [11:55:45]MH_I2C_Read... [11:55:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:45]Read from MH i2c: E2 [11:55:45]MH_I2C_Read... [11:55:45]Read from MH i2c: E2 03 00 [11:55:45]MH_I2C_Read... [11:55:45]Read from MH i2c: E2 03 00 3F 04 00 90 00 B7 [11:55:45]RAPDU: 90 00 [11:55:45]wFMCommunicate OK [11:55:45]wFMCommunicate request_size=255 [11:55:45]MH_SAM_APDU [11:55:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 40 FB 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EA 40 01 00 35 04 06 00 15 [11:55:45]Write to MH i2c: E2 02 01 40 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 40 FB 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EA 40 01 00 35 04 06 00 15 00 00 B9 [11:55:45]Write i2c OK [11:55:45]MH_I2C_Read... [11:55:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:46]Read from MH i2c: E2 [11:55:46]MH_I2C_Read... [11:55:46]Read from MH i2c: E2 03 00 [11:55:46]MH_I2C_Read... [11:55:46]Read from MH i2c: E2 03 00 40 04 00 90 00 B8 [11:55:46]RAPDU: 90 00 [11:55:46]wFMCommunicate OK [11:55:46]wFMCommunicate request_size=10 [11:55:46]MH_SAM_APDU [11:55:46]CAPDU: 80 0D 02 02 05 69 E6 9C B3 40 [11:55:46]Write to MH i2c: E2 0D 00 41 04 80 0D 02 02 05 00 69 E6 9C B3 40 00 00 A7 [11:55:46]Write i2c OK [11:55:46]MH_I2C_Read... [11:55:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:46]Read from MH i2c: E2 [11:55:46]MH_I2C_Read... [11:55:46]Read from MH i2c: E2 03 00 [11:55:46]MH_I2C_Read... [11:55:46]Read from MH i2c: E2 03 00 41 04 00 90 00 B9 [11:55:46]RAPDU: 90 00 [11:55:46]wFMCommunicate OK [11:55:46]wFMCommunicate request_size=4 [11:55:46]MH_SAM_APDU [11:55:46]CAPDU: 80 0D 03 02 [11:55:46]Write to MH i2c: E2 08 00 42 04 80 0D 03 02 00 00 00 00 C1 [11:55:46]Write i2c OK [11:55:46]MH_I2C_Read... [11:55:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:46]Read from MH i2c: E2 [11:55:46]MH_I2C_Read... [11:55:46]Read from MH i2c: E2 0B 00 [11:55:46]MH_I2C_Read... [11:55:46]Read from MH i2c: E2 0B 00 42 04 00 B0 7C 75 9B 8B C7 1E 84 90 00 F2 [11:55:46]RAPDU: B0 7C 75 9B 8B C7 1E 84 90 00 [11:55:46]wFMCommunicate OK [11:55:46]SAM_PROTO_SignData done [11:55:46]FM_MakeSignedData done [11:55:46]CreateOFDProtocolMessage [11:55:46]wFMCommunicate request_size=4 [11:55:46]MH_SAM_APDU [11:55:46]CAPDU: 80 11 00 00 [11:55:46]Write to MH i2c: E2 08 00 43 04 80 11 00 00 00 00 00 00 C1 [11:55:46]Write i2c OK [11:55:46]MH_I2C_Read... [11:55:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:46]Read from MH i2c: E2 [11:55:46]MH_I2C_Read... [11:55:46]Read from MH i2c: E2 17 00 [11:55:46]MH_I2C_Read... [11:55:46]Read from MH i2c: E2 17 00 43 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 13 [11:55:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:55:46]wFMCommunicate OK [11:55:46]CreateOFDProtocolMessage done [11:55:46]OFDSenderStorePacket 82154 [11:55:46]StoreOFDPacket docnum=82154 [11:55:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 E4 5D 07 01 0B A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 40 FB 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EA 40 01 00 35 04 06 00 15 69 E6 9C B3 40 B0 7C 75 9B 8B C7 1E 84 [11:55:46]CheckFolder [11:55:46]dirname=/storage/ofd_packets [11:55:46]CheckFolder done [11:55:46]ProducePacketName [11:55:46]name=ofd_packets/00082154 [11:55:46]NVStorageSaveData ofd_packets/00082154 [11:55:46]File name is /storage/ofd_packets/00082154 [11:55:46]Write 301 bytes [11:55:46]NVStorageSaveData done [11:55:46]OFDSenderStorePacket done [11:55:46]KKMCreateOFDPacket done [11:55:46]NVStorageSaveData kkm_last_timestamp [11:55:46]File name is /storage/kkm_last_timestamp [11:55:46]Write 4 bytes [11:55:46]NVStorageSaveData done [11:55:46]ExternCall_PrintAddStr [11:55:46]wPrintStart [11:55:46]Write to MH i2c: 01 00 00 44 04 48 [11:55:46]Write i2c OK [11:55:46]MH_I2C_Read... [11:55:46]Read from MH i2c: 01 [11:55:46]MH_I2C_Read... [11:55:46]Read from MH i2c: 01 07 00 [11:55:46]MH_I2C_Read... [11:55:46]Read from MH i2c: 01 07 00 44 04 00 00 00 00 00 FF 0F 5D [11:55:46]RasterBufferAndPrint [11:55:46]line Счет N : (1)918659 [11:55:46]line ИНН: 02508201610067 [11:55:46]line Контрольно-Кассовый Чек [11:55:46]line ПРОДАЖА [11:55:46]line ТРК (МРК, ГНК) : 11 [11:55:46]line Товар: 2710124130 [11:55:46]line Аи-92-К-4 [11:55:46]line 30.000 * 0.00 [11:55:46]line = 0.00 [11:55:46]line НДС 12% НСП 1% [11:55:46]line > о реализуемом товаре [11:55:46]line ИТОГО: 0.00 [11:55:46]line НСП 1% : 0.00 [11:55:46]line НДС 12% : 0.00 [11:55:46]line Наличными: 0.00 [11:55:46]line Безнал.: 0.00 [11:55:46]line Место: АЗС № 114 "Партнер Нефть" [11:55:46]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:55:46]line СНО: Общий режим [11:55:46]line Чек 80 17.10.2024 11:55 [11:55:46]line Смена: 525 ФФД: 1.0 [11:55:46]line ЗНМ: 0300000086 [11:55:46]line РНМ: 0000000000091680 [11:55:46]line Версия ККМ: 001 [11:55:46]line Талоны: Топливные Талоны [11:55:46]line 4581704 [11:55:46]line ФМ: 0000000000871843 [11:55:46]line ФД: 82154 [11:55:46]line ФПД: 23544584778560 [11:55:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T115544&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82154&fm=23544584778560&tin=02508201610067®Number=0000000000091680&sum=0 [11:55:46]OFD Sender: Processing packet 82154 [packets to send 254, broken 253] [11:55:46]ProducePacketName [11:55:46]name=ofd_packets/00082154 [11:55:46]OFD Sender: To server: pG, [11:55:46]CommunicateWithHost lk.salyk.kg:30040 [11:55:46]ConnectInit lk.salyk.kg [11:55:46]written 0, free lines is 4095 [11:55:47]Write to MH i2c: 01 00 00 6E 04 72 [11:55:47]Write i2c OK [11:55:47]MH_I2C_Read... [11:55:47]Read from MH i2c: 01 [11:55:47]MH_I2C_Read... [11:55:47]Read from MH i2c: 01 07 00 [11:55:47]MH_I2C_Read... [11:55:47]Read from MH i2c: 01 07 00 6E 04 00 00 00 00 00 E3 0C 68 [11:55:47]RasterBufferAndPrint [11:55:47]line [11:55:47]line [11:55:47]line [11:55:47]line [11:55:47]line [11:55:47]written 0, free lines is 3305 [11:55:47]MH_Cut [11:55:47]Write to MH i2c: D1 01 00 75 04 01 4B [11:55:47]Write i2c OK [11:55:47]MH_I2C_Read... [11:55:47]Read from MH i2c: D1 [11:55:47]MH_I2C_Read... [11:55:47]Read from MH i2c: D1 01 00 [11:55:47]MH_I2C_Read... [11:55:47]Read from MH i2c: D1 01 00 75 04 00 4A [11:55:47]Write to MH i2c: 01 00 00 76 04 7A [11:55:47]Write i2c OK [11:55:47]MH_I2C_Read... [11:55:47]Connected sock=11 [11:55:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 E4 5D 07 01 0B A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 40 FB 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EA 40 01 00 35 04 06 00 15 69 E6 9C B3 40 B0 7C 75 9B 8B C7 1E 84 [11:55:47]*** Cut start [11:55:47]*** Partial cut [11:55:47]*** CUTSNS_PIN = 1 [11:55:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 B1 32 47 00 6D DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EA 40 01 00 F4 03 04 00 7F A0 10 67 B6 04 01 00 00 27 67 72 B8 D5 35 48 60 [11:55:47]CommunicateWithHost err = 0 [11:55:47]CheckOFDResponse [11:55:47]1017 (14) - 77093643461234 [11:55:47]1041 (16) - 0000000000871843 [11:55:47]1040 (4) - 82154 [11:55:47]1012 (4) - 17.10.2024 05:28 [11:55:47]1206 (1) - 0 [11:55:47]OFD Sender: Remove packet 82154 [11:55:47]ProducePacketName [11:55:47]name=ofd_packets/00082154 [11:55:47]NVStorageDeleteData [11:55:47]*** CUTSNS_PIN = 0 [11:55:48]*** Brake cut motor [11:55:48]OFD Sender: No OFD packet to send [11:55:48]Read from MH i2c: 01 [11:55:48]MH_I2C_Read... [11:55:48]*** Stop cut motor [11:55:48]*** Cut end [11:55:48]Read from MH i2c: 01 07 00 [11:55:48]MH_I2C_Read... [11:55:48]Read from MH i2c: 01 07 00 76 04 00 00 00 00 00 FF 0F 8F [11:55:48]process_action close_receipt done [11:55:48]requested_data is exist [11:55:48]produce_requested_data [11:55:48]requested_item fm.sn is exist - process it [11:55:48]wFMCommunicate request_size=4 [11:55:48]MH_SAM_APDU [11:55:48]CAPDU: 80 11 00 00 [11:55:48]Write to MH i2c: E2 08 00 77 04 80 11 00 00 00 00 00 00 F5 [11:55:48]Write i2c OK [11:55:48]MH_I2C_Read... [11:55:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:48]Read from MH i2c: E2 [11:55:48]MH_I2C_Read... [11:55:48]Read from MH i2c: E2 17 00 [11:55:48]MH_I2C_Read... [11:55:48]Read from MH i2c: E2 17 00 77 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 47 [11:55:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:55:48]wFMCommunicate OK [11:55:48]requested_item fd.num is exist - process it [11:55:48]SAM_PROTO_GetFieldsCounters [11:55:48]wFMCommunicate request_size=4 [11:55:48]MH_SAM_APDU [11:55:48]CAPDU: 80 13 00 00 [11:55:48]Write to MH i2c: E2 08 00 78 04 80 13 00 00 00 00 00 00 F8 [11:55:48]Write i2c OK [11:55:48]MH_I2C_Read... [11:55:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:48]Read from MH i2c: E2 [11:55:48]MH_I2C_Read... [11:55:48]Read from MH i2c: E2 62 00 [11:55:48]MH_I2C_Read... [11:55:48]Read from MH i2c: E2 62 00 78 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 EA 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [11:55:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 EA 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:55:48]wFMCommunicate OK [11:55:48]SAM_PROTO_GetFieldsCounters done [11:55:48]requested_item shift.num is exist - process it [11:55:48]requested_item shift.opened is exist - process it [11:55:48]req_shift_opened [11:55:48]FM_GetShiftState [11:55:48]SAM_PROTO_GetShiftState [11:55:48]wFMCommunicate request_size=4 [11:55:48]MH_SAM_APDU [11:55:48]CAPDU: 80 13 01 00 [11:55:48]Write to MH i2c: E2 08 00 79 04 80 13 01 00 00 00 00 00 FA [11:55:48]Write i2c OK [11:55:48]MH_I2C_Read... [11:55:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:48]Read from MH i2c: E2 [11:55:48]MH_I2C_Read... [11:55:48]Read from MH i2c: E2 0E 00 [11:55:48]MH_I2C_Read... [11:55:48]Read from MH i2c: E2 0E 00 79 04 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 02 [11:55:48]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [11:55:48]wFMCommunicate OK [11:55:48]SAM_PROTO_GetShiftState done [11:55:48]FM_GetShiftState done [11:55:48]req_shift_opened done [11:55:48]requested_item shift.open_date is exist - process it [11:55:48]req_shift_open_date [11:55:48]req_shift_open_date done [11:55:48]produce_requested_data done [11:55:48]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82154,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [11:55:48]process_action_free close_receipt [11:55:48]json_value_free [11:55:48]json_value_free done [11:55:48]process_json_proto returns [11:55:48]Send response to host [11:55:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82154,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [11:55:48]free response buf [11:55:48]execute_script done [11:55:48]execute_script returns [11:55:48]free content buf [11:55:48]Sock 7.Close socket [11:55:48]Sock 7.Thread stoped [11:55:53]OFD Sender: No OFD packet to send [11:55:58]OFD Sender: No OFD packet to send [11:56:03]OFD Sender: No OFD packet to send [11:56:08]OFD Sender: No OFD packet to send [11:56:13]OFD Sender: No OFD packet to send [11:56:18]OFD Sender: No OFD packet to send [11:56:23]OFD Sender: No OFD packet to send [11:56:28]OFD Sender: No OFD packet to send [11:56:33]OFD Sender: No OFD packet to send [11:56:38]OFD Sender: No OFD packet to send [11:56:43]OFD Sender: No OFD packet to send [11:56:48]OFD Sender: No OFD packet to send [11:56:53]OFD Sender: No OFD packet to send [11:56:58]OFD Sender: No OFD packet to send [11:57:03]OFD Sender: No OFD packet to send [11:57:08]OFD Sender: No OFD packet to send [11:57:13]OFD Sender: No OFD packet to send [11:57:18]OFD Sender: No OFD packet to send [11:57:23]OFD Sender: No OFD packet to send [11:57:28]OFD Sender: No OFD packet to send [11:57:33]OFD Sender: No OFD packet to send [11:57:38]OFD Sender: No OFD packet to send [11:57:43]OFD Sender: No OFD packet to send [11:57:48]OFD Sender: No OFD packet to send [11:57:53]OFD Sender: No OFD packet to send [11:57:58]OFD Sender: No OFD packet to send [11:58:03]OFD Sender: No OFD packet to send [11:58:08]OFD Sender: No OFD packet to send [11:58:13]OFD Sender: No OFD packet to send [11:58:18]OFD Sender: No OFD packet to send [11:58:23]OFD Sender: No OFD packet to send [11:58:28]OFD Sender: No OFD packet to send [11:58:33]OFD Sender: No OFD packet to send [11:58:38]OFD Sender: No OFD packet to send [11:58:43]OFD Sender: No OFD packet to send [11:58:48]OFD Sender: No OFD packet to send [11:58:53]OFD Sender: No OFD packet to send [11:58:58]OFD Sender: No OFD packet to send [11:59:03]OFD Sender: No OFD packet to send [11:59:08]OFD Sender: No OFD packet to send [11:59:13]OFD Sender: No OFD packet to send [11:59:18]OFD Sender: No OFD packet to send [11:59:23]OFD Sender: No OFD packet to send [11:59:28]OFD Sender: No OFD packet to send [11:59:33]OFD Sender: No OFD packet to send [11:59:38]OFD Sender: No OFD packet to send [11:59:43]OFD Sender: No OFD packet to send [11:59:48]OFD Sender: No OFD packet to send [11:59:53]OFD Sender: No OFD packet to send [11:59:58]OFD Sender: No OFD packet to send [12:00:03]OFD Sender: No OFD packet to send [12:00:08]OFD Sender: No OFD packet to send [12:00:13]OFD Sender: No OFD packet to send [12:00:18]OFD Sender: No OFD packet to send [12:00:23]OFD Sender: No OFD packet to send [12:00:28]OFD Sender: No OFD packet to send [12:00:33]OFD Sender: No OFD packet to send [12:00:38]OFD Sender: No OFD packet to send [12:00:43]OFD Sender: No OFD packet to send [12:00:48]OFD Sender: No OFD packet to send [12:00:53]OFD Sender: No OFD packet to send [12:00:58]OFD Sender: No OFD packet to send [12:01:03]OFD Sender: No OFD packet to send [12:01:08]OFD Sender: No OFD packet to send [12:01:13]OFD Sender: No OFD packet to send [12:01:18]OFD Sender: No OFD packet to send [12:01:23]OFD Sender: No OFD packet to send [12:01:28]OFD Sender: No OFD packet to send [12:01:33]OFD Sender: No OFD packet to send [12:01:38]OFD Sender: No OFD packet to send [12:01:43]OFD Sender: No OFD packet to send [12:01:48]OFD Sender: No OFD packet to send [12:01:53]OFD Sender: No OFD packet to send [12:01:58]OFD Sender: No OFD packet to send [12:02:03]OFD Sender: No OFD packet to send [12:02:08]OFD Sender: No OFD packet to send [12:02:14]OFD Sender: No OFD packet to send [12:02:19]OFD Sender: No OFD packet to send [12:02:24]OFD Sender: No OFD packet to send [12:02:29]OFD Sender: No OFD packet to send [12:02:34]OFD Sender: No OFD packet to send [12:02:39]OFD Sender: No OFD packet to send [12:02:44]OFD Sender: No OFD packet to send [12:02:49]OFD Sender: No OFD packet to send [12:02:54]OFD Sender: No OFD packet to send [12:02:59]OFD Sender: No OFD packet to send [12:03:04]OFD Sender: No OFD packet to send [12:03:09]OFD Sender: No OFD packet to send [12:03:14]OFD Sender: No OFD packet to send [12:03:19]OFD Sender: No OFD packet to send [12:03:24]OFD Sender: No OFD packet to send [12:03:29]OFD Sender: No OFD packet to send [12:03:34]OFD Sender: No OFD packet to send [12:03:39]OFD Sender: No OFD packet to send [12:03:44]OFD Sender: No OFD packet to send [12:03:49]OFD Sender: No OFD packet to send [12:03:54]OFD Sender: No OFD packet to send [12:03:59]OFD Sender: No OFD packet to send [12:04:04]OFD Sender: No OFD packet to send [12:04:09]OFD Sender: No OFD packet to send [12:04:14]OFD Sender: No OFD packet to send [12:04:19]OFD Sender: No OFD packet to send [12:04:24]OFD Sender: No OFD packet to send [12:04:29]OFD Sender: No OFD packet to send [12:04:34]OFD Sender: No OFD packet to send [12:04:39]OFD Sender: No OFD packet to send [12:04:44]OFD Sender: No OFD packet to send [12:04:49]OFD Sender: No OFD packet to send [12:04:54]OFD Sender: No OFD packet to send [12:04:59]OFD Sender: No OFD packet to send [12:05:04]OFD Sender: No OFD packet to send [12:05:09]OFD Sender: No OFD packet to send [12:05:14]OFD Sender: No OFD packet to send [12:05:19]OFD Sender: No OFD packet to send [12:05:24]OFD Sender: No OFD packet to send [12:05:29]OFD Sender: No OFD packet to send [12:05:34]OFD Sender: No OFD packet to send [12:05:39]OFD Sender: No OFD packet to send [12:05:44]OFD Sender: No OFD packet to send [12:05:49]OFD Sender: No OFD packet to send [12:05:54]OFD Sender: No OFD packet to send [12:05:59]OFD Sender: No OFD packet to send [12:06:04]OFD Sender: No OFD packet to send [12:06:09]OFD Sender: No OFD packet to send [12:06:14]OFD Sender: No OFD packet to send [12:06:19]OFD Sender: No OFD packet to send [12:06:24]OFD Sender: No OFD packet to send [12:06:29]OFD Sender: No OFD packet to send [12:06:34]OFD Sender: No OFD packet to send [12:06:39]OFD Sender: No OFD packet to send [12:06:44]OFD Sender: No OFD packet to send [12:06:49]OFD Sender: No OFD packet to send [12:06:54]OFD Sender: No OFD packet to send [12:06:59]OFD Sender: No OFD packet to send [12:07:04]OFD Sender: No OFD packet to send [12:07:09]OFD Sender: No OFD packet to send [12:07:14]OFD Sender: No OFD packet to send [12:07:17]accept exits with 9 [12:07:17]New connection [12:07:17]New thread 3067002212 created [12:07:17]Thread 3067145572 joined [12:07:17]Waiting for new connection... [12:07:17] Sock 9.Parse request [12:07:17]Sock 9.Check first char [12:07:17]Sock 9.First char is OK [12:07:17]request: POST /json_proto HTTP/1.0 [12:07:17]Method: POST [12:07:17]URL: /json_proto [12:07:17]Method is POST - this is cgi request [12:07:17]url: /json_proto [12:07:17]query_string will be loaded in cgi processing [12:07:17]execute_cgi json_proto POST (null) [12:07:17]execute_cgi path=json_proto method=POST [12:07:17]POST find Content-Length [12:07:17]Host: 172.17.44.67:8080 [12:07:17]Content-Length: 677 [12:07:17]Content-Type: application/json [12:07:17] [12:07:17]POST finish read [12:07:17]Found Content-Length = 677 [12:07:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:17]execute_script... [12:07:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:17]POST & json_proto [12:07:17]process_json_proto [12:07:17]json parsed OK: [12:07:17]protocol is kg_v1.0 [12:07:17]action value=close_receipt [12:07:17]process_action close_receipt [12:07:17]cmd_close_receipt [12:07:17]MH_GetDate [12:07:17]Write to MH i2c: F0 00 00 7A 04 6D [12:07:17]Write i2c OK [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: F0 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: F0 09 00 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: F0 09 00 7A 04 00 F5 FD 10 67 F1 C7 6B 64 66 [12:07:17]GetLastDocTimeStamp 1729166144 [12:07:17]current date 1729166837 [12:07:17]FM_GetShiftState [12:07:17]SAM_PROTO_GetShiftState [12:07:17]wFMCommunicate request_size=4 [12:07:17]MH_SAM_APDU [12:07:17]CAPDU: 80 13 01 00 [12:07:17]Write to MH i2c: E2 08 00 7B 04 80 13 01 00 00 00 00 00 FC [12:07:17]Write i2c OK [12:07:17]MH_I2C_Read... [12:07:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:17]Read from MH i2c: E2 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: E2 0E 00 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: E2 0E 00 7B 04 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 04 [12:07:17]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [12:07:17]wFMCommunicate OK [12:07:17]SAM_PROTO_GetShiftState done [12:07:17]FM_GetShiftState done [12:07:17]opened in 1729125927 [12:07:17]opened+sec_in_day 1729212327 [12:07:17]quantity*price = 30038 [12:07:17]sum+1 = 30039 [12:07:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 81 17.10.2024 12:07 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82155 ФПД: 144541425584601 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T120717&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82155&fm=144541425584601&tin=02508201610067®Number=0000000000091680&sum=30000 [12:07:18]StoreToDocumentArchive [12:07:18]shift 525 fd 82155 [12:07:18]save to /storage/0525/doc_00082155 [12:07:18]save last doc name /storage/0525/doc_00082155 to /storage/kkm_last_doc_name [12:07:18]save OK [12:07:18]Clear old archive folders... [12:07:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:07:18]tlvbuf is 01D26610 [12:07:18]SAM_PROTO_ClearQueue [12:07:18]wFMCommunicate request_size=4 [12:07:18]MH_SAM_APDU [12:07:18]CAPDU: 80 09 00 00 [12:07:18]Write to MH i2c: E2 08 00 88 04 80 09 00 00 00 00 00 00 FE [12:07:18]Write i2c OK [12:07:18]MH_I2C_Read... [12:07:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:18]Read from MH i2c: E2 [12:07:18]MH_I2C_Read... [12:07:18]Read from MH i2c: E2 03 00 [12:07:18]MH_I2C_Read... [12:07:18]Read from MH i2c: E2 03 00 88 04 00 90 00 00 [12:07:18]RAPDU: 90 00 [12:07:18]wFMCommunicate OK [12:07:18]SAM_PROTO_ClearQueue done [12:07:18]KKMCreateOFDPacket [12:07:18]OFDProtocolAddRootSTLVToBuf [12:07:18]FM_MakeSignedData [12:07:18]FM_MakeSignedData [12:07:18]SAM_PROTO_SignData [12:07:18]wFMCommunicate request_size=4 [12:07:18]MH_SAM_APDU [12:07:18]CAPDU: 80 0D 01 02 [12:07:18]Write to MH i2c: E2 08 00 89 04 80 0D 01 02 00 00 00 00 06 [12:07:18]Write i2c OK [12:07:18]MH_I2C_Read... [12:07:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:18]Read from MH i2c: E2 [12:07:18]MH_I2C_Read... [12:07:18]Read from MH i2c: E2 03 00 [12:07:18]MH_I2C_Read... [12:07:18]Read from MH i2c: E2 03 00 89 04 00 90 00 01 [12:07:18]RAPDU: 90 00 [12:07:18]wFMCommunicate OK [12:07:18]wFMCommunicate request_size=255 [12:07:18]MH_SAM_APDU [12:07:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 F5 FD 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EB 40 01 00 35 04 06 00 83 [12:07:18]Write to MH i2c: E2 02 01 8A 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 F5 FD 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EB 40 01 00 35 04 06 00 83 00 00 FE [12:07:18]Write i2c OK [12:07:18]MH_I2C_Read... [12:07:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:19]Read from MH i2c: E2 [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: E2 03 00 [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: E2 03 00 8A 04 00 90 00 02 [12:07:19]RAPDU: 90 00 [12:07:19]wFMCommunicate OK [12:07:19]wFMCommunicate request_size=10 [12:07:19]MH_SAM_APDU [12:07:19]CAPDU: 80 0D 02 02 05 75 AC 53 C9 D9 [12:07:19]Write to MH i2c: E2 0D 00 8B 04 80 0D 02 02 05 00 75 AC 53 C9 D9 00 00 29 [12:07:19]Write i2c OK [12:07:19]MH_I2C_Read... [12:07:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:19]Read from MH i2c: E2 [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: E2 03 00 [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: E2 03 00 8B 04 00 90 00 03 [12:07:19]RAPDU: 90 00 [12:07:19]wFMCommunicate OK [12:07:19]wFMCommunicate request_size=4 [12:07:19]MH_SAM_APDU [12:07:19]CAPDU: 80 0D 03 02 [12:07:19]Write to MH i2c: E2 08 00 8C 04 80 0D 03 02 00 00 00 00 0B [12:07:19]Write i2c OK [12:07:19]MH_I2C_Read... [12:07:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:19]Read from MH i2c: E2 [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: E2 0B 00 [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: E2 0B 00 8C 04 00 02 81 71 AE 4E 3E 46 04 90 00 84 [12:07:19]RAPDU: 02 81 71 AE 4E 3E 46 04 90 00 [12:07:19]wFMCommunicate OK [12:07:19]SAM_PROTO_SignData done [12:07:19]FM_MakeSignedData done [12:07:19]CreateOFDProtocolMessage [12:07:19]wFMCommunicate request_size=4 [12:07:19]MH_SAM_APDU [12:07:19]CAPDU: 80 11 00 00 [12:07:19]Write to MH i2c: E2 08 00 8D 04 80 11 00 00 00 00 00 00 0B [12:07:19]Write i2c OK [12:07:19]MH_I2C_Read... [12:07:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:19]Read from MH i2c: E2 [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: E2 17 00 [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: E2 17 00 8D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 5D [12:07:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:07:19]wFMCommunicate OK [12:07:19]CreateOFDProtocolMessage done [12:07:19]OFDSenderStorePacket 82155 [12:07:19]StoreOFDPacket docnum=82155 [12:07:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 1E 76 07 01 DA F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 F5 FD 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EB 40 01 00 35 04 06 00 83 75 AC 53 C9 D9 02 81 71 AE 4E 3E 46 04 [12:07:19]CheckFolder [12:07:19]dirname=/storage/ofd_packets [12:07:19]CheckFolder done [12:07:19]ProducePacketName [12:07:19]name=ofd_packets/00082155 [12:07:19]NVStorageSaveData ofd_packets/00082155 [12:07:19]File name is /storage/ofd_packets/00082155 [12:07:19]Write 301 bytes [12:07:19]NVStorageSaveData done [12:07:19]OFDSenderStorePacket done [12:07:19]KKMCreateOFDPacket done [12:07:19]NVStorageSaveData kkm_last_timestamp [12:07:19]File name is /storage/kkm_last_timestamp [12:07:19]Write 4 bytes [12:07:19]NVStorageSaveData done [12:07:19]ExternCall_PrintAddStr [12:07:19]wPrintStart [12:07:19]Write to MH i2c: 01 00 00 8E 04 92 [12:07:19]Write i2c OK [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: 01 [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: 01 07 00 [12:07:19]MH_I2C_Read... [12:07:19]Read from MH i2c: 01 07 00 8E 04 00 00 00 00 00 FF 0F A7 [12:07:19]RasterBufferAndPrint [12:07:19]line Счет N : (1)918660 [12:07:19]line ИНН: 02508201610067 [12:07:19]line Контрольно-Кассовый Чек [12:07:19]line ПРОДАЖА [12:07:19]line ТРК (МРК, ГНК) : 11 [12:07:19]line Товар: 2710124130 [12:07:19]line Аи-92-К-4 [12:07:19]line 4.490 * 66.90 [12:07:19]line = 300.38 [12:07:19]line НДС 12% НСП 1% [12:07:19]line > о реализуемом товаре [12:07:19]line ОКРУГЛЕНИЕ: -0.38 [12:07:19]line ИТОГО: 300.00 [12:07:19]line Внесено: 300.00 [12:07:19]line СДАЧА: 0.00 [12:07:19]line НСП 1% : 2.66 [12:07:19]line НДС 12% : 31.90 [12:07:19]line Наличными: 300.00 [12:07:19]line Безнал.: 0.00 [12:07:19]line Место: АЗС № 114 "Партнер Нефть" [12:07:19]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:07:19]line СНО: Общий режим [12:07:19]line Чек 81 17.10.2024 12:07 [12:07:19]line Смена: 525 ФФД: 1.0 [12:07:19]line ЗНМ: 0300000086 [12:07:19]line РНМ: 0000000000091680 [12:07:19]line Версия ККМ: 001 [12:07:19]line ФМ: 0000000000871843 [12:07:19]line ФД: 82155 [12:07:19]line ФПД: 144541425584601 [12:07:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T120717&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82155&fm=144541425584601&tin=02508201610067®Number=0000000000091680&sum=30000 [12:07:19]OFD Sender: Processing packet 82155 [packets to send 254, broken 253] [12:07:19]ProducePacketName [12:07:19]name=ofd_packets/00082155 [12:07:19]OFD Sender: To server: pG, [12:07:19]CommunicateWithHost lk.salyk.kg:30040 [12:07:19]ConnectInit lk.salyk.kg [12:07:19]written 0, free lines is 4095 [12:07:20]Write to MH i2c: 01 00 00 B9 04 BD [12:07:20]Write i2c OK [12:07:20]MH_I2C_Read... [12:07:20]Read from MH i2c: 01 [12:07:20]MH_I2C_Read... [12:07:20]Read from MH i2c: 01 07 00 [12:07:20]MH_I2C_Read... [12:07:20]Read from MH i2c: 01 07 00 B9 04 00 00 00 00 00 E1 0C B1 [12:07:20]RasterBufferAndPrint [12:07:20]line [12:07:20]line [12:07:20]line [12:07:20]line [12:07:20]line [12:07:20]written 0, free lines is 3303 [12:07:20]MH_Cut [12:07:20]Write to MH i2c: D1 01 00 C0 04 01 96 [12:07:20]Write i2c OK [12:07:20]MH_I2C_Read... [12:07:20]Read from MH i2c: D1 [12:07:20]MH_I2C_Read... [12:07:20]Read from MH i2c: D1 01 00 [12:07:20]MH_I2C_Read... [12:07:20]Read from MH i2c: D1 01 00 C0 04 00 95 [12:07:20]Write to MH i2c: 01 00 00 C1 04 C5 [12:07:20]Write i2c OK [12:07:20]MH_I2C_Read... [12:07:20]*** Cut start [12:07:20]*** Partial cut [12:07:20]*** CUTSNS_PIN = 1 [12:07:20]*** CUTSNS_PIN = 0 [12:07:21]*** Brake cut motor [12:07:21]Read from MH i2c: 01 [12:07:21]MH_I2C_Read... [12:07:21]*** Stop cut motor [12:07:21]*** Cut end [12:07:21]Read from MH i2c: 01 07 00 [12:07:21]MH_I2C_Read... [12:07:21]Read from MH i2c: 01 07 00 C1 04 00 00 00 00 00 FF 0F DA [12:07:21]process_action close_receipt done [12:07:21]requested_data is exist [12:07:21]produce_requested_data [12:07:21]requested_item fm.sn is exist - process it [12:07:21]wFMCommunicate request_size=4 [12:07:21]MH_SAM_APDU [12:07:21]CAPDU: 80 11 00 00 [12:07:21]Write to MH i2c: E2 08 00 C2 04 80 11 00 00 00 00 00 00 40 [12:07:21]Write i2c OK [12:07:21]MH_I2C_Read... [12:07:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:21]Read from MH i2c: E2 [12:07:21]MH_I2C_Read... [12:07:21]Read from MH i2c: E2 17 00 [12:07:21]MH_I2C_Read... [12:07:21]Read from MH i2c: E2 17 00 C2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 92 [12:07:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:07:21]wFMCommunicate OK [12:07:21]requested_item fd.num is exist - process it [12:07:21]SAM_PROTO_GetFieldsCounters [12:07:21]wFMCommunicate request_size=4 [12:07:21]MH_SAM_APDU [12:07:21]CAPDU: 80 13 00 00 [12:07:21]Write to MH i2c: E2 08 00 C3 04 80 13 00 00 00 00 00 00 43 [12:07:21]Write i2c OK [12:07:21]MH_I2C_Read... [12:07:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:21]Read from MH i2c: E2 [12:07:21]MH_I2C_Read... [12:07:21]Read from MH i2c: E2 62 00 [12:07:21]MH_I2C_Read... [12:07:21]Read from MH i2c: E2 62 00 C3 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 EB 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [12:07:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 EB 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:07:21]wFMCommunicate OK [12:07:21]SAM_PROTO_GetFieldsCounters done [12:07:21]requested_item shift.num is exist - process it [12:07:21]requested_item shift.opened is exist - process it [12:07:21]req_shift_opened [12:07:21]FM_GetShiftState [12:07:21]SAM_PROTO_GetShiftState [12:07:21]wFMCommunicate request_size=4 [12:07:21]MH_SAM_APDU [12:07:21]CAPDU: 80 13 01 00 [12:07:21]Write to MH i2c: E2 08 00 C4 04 80 13 01 00 00 00 00 00 45 [12:07:21]Write i2c OK [12:07:21]MH_I2C_Read... [12:07:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:21]Read from MH i2c: E2 [12:07:21]MH_I2C_Read... [12:07:21]Read from MH i2c: E2 0E 00 [12:07:21]MH_I2C_Read... [12:07:21]Read from MH i2c: E2 0E 00 C4 04 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 4D [12:07:21]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [12:07:21]wFMCommunicate OK [12:07:21]SAM_PROTO_GetShiftState done [12:07:21]FM_GetShiftState done [12:07:21]req_shift_opened done [12:07:21]requested_item shift.open_date is exist - process it [12:07:21]req_shift_open_date [12:07:21]req_shift_open_date done [12:07:21]produce_requested_data done [12:07:21]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82155,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [12:07:21]process_action_free close_receipt [12:07:21]json_value_free [12:07:21]json_value_free done [12:07:21]process_json_proto returns [12:07:21]Send response to host [12:07:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82155,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [12:07:21]free response buf [12:07:21]execute_script done [12:07:21]execute_script returns [12:07:21]free content buf [12:07:21]Sock 9.Close socket [12:07:21]Sock 9.Thread stoped [12:09:32]ConnectInit Can't connect to host [12:09:32]CommunicateWithHost connect error [12:09:32]CommunicateWithHost err = -1 [12:09:32]OFD Sender: Server communicate error [12:09:37]OFD Sender: Processing packet 82155 [packets to send 254, broken 253] [12:09:37]ProducePacketName [12:09:37]name=ofd_packets/00082155 [12:09:37]OFD Sender: To server: pG, [12:09:37]CommunicateWithHost lk.salyk.kg:30040 [12:09:37]ConnectInit lk.salyk.kg [12:09:37]Connected sock=9 [12:09:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 1E 76 07 01 DA F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 F5 FD 10 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EB 40 01 00 35 04 06 00 83 75 AC 53 C9 D9 02 81 71 AE 4E 3E 46 04 [12:09:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 F0 01 47 00 82 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EB 40 01 00 F4 03 04 00 BD A3 10 67 B6 04 01 00 00 B6 B5 07 DF A4 84 61 35 [12:09:38]CommunicateWithHost err = 0 [12:09:38]CheckOFDResponse [12:09:38]1017 (14) - 77093643461234 [12:09:38]1041 (16) - 0000000000871843 [12:09:38]1040 (4) - 82155 [12:09:38]1012 (4) - 17.10.2024 05:42 [12:09:38]1206 (1) - 0 [12:09:38]OFD Sender: Remove packet 82155 [12:09:38]ProducePacketName [12:09:38]name=ofd_packets/00082155 [12:09:38]NVStorageDeleteData [12:09:38]OFD Sender: No OFD packet to send [12:09:43]OFD Sender: No OFD packet to send [12:09:48]OFD Sender: No OFD packet to send [12:09:53]OFD Sender: No OFD packet to send [12:09:58]OFD Sender: No OFD packet to send [12:10:03]OFD Sender: No OFD packet to send [12:10:08]OFD Sender: No OFD packet to send [12:10:13]OFD Sender: No OFD packet to send [12:10:18]OFD Sender: No OFD packet to send [12:10:23]OFD Sender: No OFD packet to send [12:10:28]OFD Sender: No OFD packet to send [12:10:33]OFD Sender: No OFD packet to send [12:10:38]OFD Sender: No OFD packet to send [12:10:43]OFD Sender: No OFD packet to send [12:10:48]OFD Sender: No OFD packet to send [12:10:53]OFD Sender: No OFD packet to send [12:10:58]OFD Sender: No OFD packet to send [12:11:03]OFD Sender: No OFD packet to send [12:11:08]OFD Sender: No OFD packet to send [12:11:13]OFD Sender: No OFD packet to send [12:11:18]OFD Sender: No OFD packet to send [12:11:23]OFD Sender: No OFD packet to send [12:11:28]OFD Sender: No OFD packet to send [12:11:33]OFD Sender: No OFD packet to send [12:11:38]OFD Sender: No OFD packet to send [12:11:43]OFD Sender: No OFD packet to send [12:11:48]OFD Sender: No OFD packet to send [12:11:53]OFD Sender: No OFD packet to send [12:11:58]OFD Sender: No OFD packet to send [12:12:03]OFD Sender: No OFD packet to send [12:12:08]OFD Sender: No OFD packet to send [12:12:13]OFD Sender: No OFD packet to send [12:12:18]OFD Sender: No OFD packet to send [12:12:23]OFD Sender: No OFD packet to send [12:12:28]OFD Sender: No OFD packet to send [12:12:33]OFD Sender: No OFD packet to send [12:12:38]OFD Sender: No OFD packet to send [12:12:43]OFD Sender: No OFD packet to send [12:12:48]OFD Sender: No OFD packet to send [12:12:53]OFD Sender: No OFD packet to send [12:12:58]OFD Sender: No OFD packet to send [12:13:03]OFD Sender: No OFD packet to send [12:13:08]OFD Sender: No OFD packet to send [12:13:13]OFD Sender: No OFD packet to send [12:13:18]OFD Sender: No OFD packet to send [12:13:23]OFD Sender: No OFD packet to send [12:13:28]OFD Sender: No OFD packet to send [12:13:33]OFD Sender: No OFD packet to send [12:13:38]OFD Sender: No OFD packet to send [12:13:44]OFD Sender: No OFD packet to send [12:13:49]OFD Sender: No OFD packet to send [12:13:54]OFD Sender: No OFD packet to send [12:13:59]OFD Sender: No OFD packet to send [12:14:04]OFD Sender: No OFD packet to send [12:14:09]OFD Sender: No OFD packet to send [12:14:14]OFD Sender: No OFD packet to send [12:14:19]OFD Sender: No OFD packet to send [12:14:24]OFD Sender: No OFD packet to send [12:14:29]OFD Sender: No OFD packet to send [12:14:34]OFD Sender: No OFD packet to send [12:14:39]OFD Sender: No OFD packet to send [12:14:44]OFD Sender: No OFD packet to send [12:14:49]OFD Sender: No OFD packet to send [12:14:54]OFD Sender: No OFD packet to send [12:14:59]OFD Sender: No OFD packet to send [12:15:04]OFD Sender: No OFD packet to send [12:15:09]OFD Sender: No OFD packet to send [12:15:14]OFD Sender: No OFD packet to send [12:15:19]OFD Sender: No OFD packet to send [12:15:24]OFD Sender: No OFD packet to send [12:15:29]OFD Sender: No OFD packet to send [12:15:34]OFD Sender: No OFD packet to send [12:15:39]OFD Sender: No OFD packet to send [12:15:44]OFD Sender: No OFD packet to send [12:15:49]OFD Sender: No OFD packet to send [12:15:54]OFD Sender: No OFD packet to send [12:15:59]OFD Sender: No OFD packet to send [12:16:04]OFD Sender: No OFD packet to send [12:16:09]OFD Sender: No OFD packet to send [12:16:14]OFD Sender: No OFD packet to send [12:16:19]OFD Sender: No OFD packet to send [12:16:24]OFD Sender: No OFD packet to send [12:16:29]OFD Sender: No OFD packet to send [12:16:34]OFD Sender: No OFD packet to send [12:16:39]OFD Sender: No OFD packet to send [12:16:44]OFD Sender: No OFD packet to send [12:16:49]OFD Sender: No OFD packet to send [12:16:54]OFD Sender: No OFD packet to send [12:16:59]OFD Sender: No OFD packet to send [12:17:04]OFD Sender: No OFD packet to send [12:17:09]OFD Sender: No OFD packet to send [12:17:14]OFD Sender: No OFD packet to send [12:17:19]OFD Sender: No OFD packet to send [12:17:24]OFD Sender: No OFD packet to send [12:17:29]OFD Sender: No OFD packet to send [12:17:34]OFD Sender: No OFD packet to send [12:17:39]OFD Sender: No OFD packet to send [12:17:44]OFD Sender: No OFD packet to send [12:17:49]OFD Sender: No OFD packet to send [12:17:54]OFD Sender: No OFD packet to send [12:17:59]OFD Sender: No OFD packet to send [12:18:04]OFD Sender: No OFD packet to send [12:18:09]OFD Sender: No OFD packet to send [12:18:14]OFD Sender: No OFD packet to send [12:18:19]OFD Sender: No OFD packet to send [12:18:24]OFD Sender: No OFD packet to send [12:18:29]OFD Sender: No OFD packet to send [12:18:34]OFD Sender: No OFD packet to send [12:18:39]OFD Sender: No OFD packet to send [12:18:44]OFD Sender: No OFD packet to send [12:18:49]OFD Sender: No OFD packet to send [12:18:54]OFD Sender: No OFD packet to send [12:18:59]OFD Sender: No OFD packet to send [12:19:04]OFD Sender: No OFD packet to send [12:19:09]OFD Sender: No OFD packet to send [12:19:14]OFD Sender: No OFD packet to send [12:19:19]OFD Sender: No OFD packet to send [12:19:24]OFD Sender: No OFD packet to send [12:19:29]OFD Sender: No OFD packet to send [12:19:34]OFD Sender: No OFD packet to send [12:19:39]OFD Sender: No OFD packet to send [12:19:44]OFD Sender: No OFD packet to send [12:19:46]recv_with_timeout no data received [12:19:49]OFD Sender: No OFD packet to send [12:19:54]OFD Sender: No OFD packet to send [12:19:59]OFD Sender: No OFD packet to send [12:20:04]OFD Sender: No OFD packet to send [12:20:09]OFD Sender: No OFD packet to send [12:20:14]OFD Sender: No OFD packet to send [12:20:19]OFD Sender: No OFD packet to send [12:20:24]OFD Sender: No OFD packet to send [12:20:29]OFD Sender: No OFD packet to send [12:20:34]OFD Sender: No OFD packet to send [12:20:39]OFD Sender: No OFD packet to send [12:20:44]OFD Sender: No OFD packet to send [12:20:49]OFD Sender: No OFD packet to send [12:20:54]OFD Sender: No OFD packet to send [12:20:59]OFD Sender: No OFD packet to send [12:21:04]OFD Sender: No OFD packet to send [12:21:09]OFD Sender: No OFD packet to send [12:21:14]OFD Sender: No OFD packet to send [12:21:19]OFD Sender: No OFD packet to send [12:21:24]OFD Sender: No OFD packet to send [12:21:29]OFD Sender: No OFD packet to send [12:21:34]OFD Sender: No OFD packet to send [12:21:39]OFD Sender: No OFD packet to send [12:21:44]OFD Sender: No OFD packet to send [12:21:49]OFD Sender: No OFD packet to send [12:21:54]OFD Sender: No OFD packet to send [12:21:59]OFD Sender: No OFD packet to send [12:22:04]OFD Sender: No OFD packet to send [12:22:09]OFD Sender: No OFD packet to send [12:22:14]OFD Sender: No OFD packet to send [12:22:19]OFD Sender: No OFD packet to send [12:22:24]OFD Sender: No OFD packet to send [12:22:29]OFD Sender: No OFD packet to send [12:22:34]OFD Sender: No OFD packet to send [12:22:39]OFD Sender: No OFD packet to send [12:22:44]OFD Sender: No OFD packet to send [12:22:49]OFD Sender: No OFD packet to send [12:22:54]OFD Sender: No OFD packet to send [12:22:59]OFD Sender: No OFD packet to send [12:23:04]OFD Sender: No OFD packet to send [12:23:09]OFD Sender: No OFD packet to send [12:23:14]OFD Sender: No OFD packet to send [12:23:19]OFD Sender: No OFD packet to send [12:23:24]OFD Sender: No OFD packet to send [12:23:26]accept exits with 7 [12:23:26]New connection [12:23:26]New thread 3067145572 created [12:23:26]Thread 3067002212 joined [12:23:26]Waiting for new connection... [12:23:26] Sock 7.Parse request [12:23:26]Sock 7.Check first char [12:23:26]Sock 7.First char is OK [12:23:26]request: POST /json_proto HTTP/1.0 [12:23:26]Method: POST [12:23:26]URL: /json_proto [12:23:26]Method is POST - this is cgi request [12:23:26]url: /json_proto [12:23:26]query_string will be loaded in cgi processing [12:23:26]execute_cgi json_proto POST (null) [12:23:26]execute_cgi path=json_proto method=POST [12:23:26]POST find Content-Length [12:23:26]Host: 172.17.44.67:8080 [12:23:26]Content-Length: 682 [12:23:26]Content-Type: application/json [12:23:26] [12:23:26]POST finish read [12:23:26]Found Content-Length = 682 [12:23:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:26]execute_script... [12:23:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:26]POST & json_proto [12:23:26]process_json_proto [12:23:26]json parsed OK: [12:23:26]protocol is kg_v1.0 [12:23:26]action value=close_receipt [12:23:26]process_action close_receipt [12:23:26]cmd_close_receipt [12:23:26]MH_GetDate [12:23:26]Write to MH i2c: F0 00 00 C5 04 B8 [12:23:26]Write i2c OK [12:23:26]MH_I2C_Read... [12:23:26]Read from MH i2c: F0 [12:23:26]MH_I2C_Read... [12:23:26]Read from MH i2c: F0 09 00 [12:23:26]MH_I2C_Read... [12:23:26]Read from MH i2c: F0 09 00 C5 04 00 BF 01 11 67 F1 C7 6B 64 80 [12:23:26]GetLastDocTimeStamp 1729166837 [12:23:26]current date 1729167807 [12:23:26]FM_GetShiftState [12:23:26]SAM_PROTO_GetShiftState [12:23:26]wFMCommunicate request_size=4 [12:23:26]MH_SAM_APDU [12:23:26]CAPDU: 80 13 01 00 [12:23:26]Write to MH i2c: E2 08 00 C6 04 80 13 01 00 00 00 00 00 47 [12:23:26]Write i2c OK [12:23:26]MH_I2C_Read... [12:23:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:26]Read from MH i2c: E2 [12:23:26]MH_I2C_Read... [12:23:26]Read from MH i2c: E2 0E 00 [12:23:26]MH_I2C_Read... [12:23:26]Read from MH i2c: E2 0E 00 C6 04 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 4F [12:23:26]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [12:23:26]wFMCommunicate OK [12:23:26]SAM_PROTO_GetShiftState done [12:23:26]FM_GetShiftState done [12:23:26]opened in 1729125927 [12:23:26]opened+sec_in_day 1729212327 [12:23:26]quantity*price = 100015 [12:23:26]sum+1 = 100017 [12:23:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 82 17.10.2024 12:23 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82156 ФПД: 171259759420117 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T122327&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82156&fm=171259759420117&tin=02508201610067®Number=0000000000091680&sum=100000 [12:23:27]StoreToDocumentArchive [12:23:27]shift 525 fd 82156 [12:23:27]save to /storage/0525/doc_00082156 [12:23:27]save last doc name /storage/0525/doc_00082156 to /storage/kkm_last_doc_name [12:23:27]save OK [12:23:27]Clear old archive folders... [12:23:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:23:27]tlvbuf is 01D281F0 [12:23:27]SAM_PROTO_ClearQueue [12:23:27]wFMCommunicate request_size=4 [12:23:27]MH_SAM_APDU [12:23:27]CAPDU: 80 09 00 00 [12:23:27]Write to MH i2c: E2 08 00 D3 04 80 09 00 00 00 00 00 00 49 [12:23:27]Write i2c OK [12:23:27]MH_I2C_Read... [12:23:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:27]Read from MH i2c: E2 [12:23:27]MH_I2C_Read... [12:23:27]Read from MH i2c: E2 03 00 [12:23:27]MH_I2C_Read... [12:23:27]Read from MH i2c: E2 03 00 D3 04 00 90 00 4B [12:23:27]RAPDU: 90 00 [12:23:27]wFMCommunicate OK [12:23:27]SAM_PROTO_ClearQueue done [12:23:27]KKMCreateOFDPacket [12:23:27]OFDProtocolAddRootSTLVToBuf [12:23:27]FM_MakeSignedData [12:23:27]FM_MakeSignedData [12:23:27]SAM_PROTO_SignData [12:23:27]wFMCommunicate request_size=4 [12:23:27]MH_SAM_APDU [12:23:27]CAPDU: 80 0D 01 02 [12:23:27]Write to MH i2c: E2 08 00 D4 04 80 0D 01 02 00 00 00 00 51 [12:23:27]Write i2c OK [12:23:27]MH_I2C_Read... [12:23:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:28]Read from MH i2c: E2 [12:23:28]MH_I2C_Read... [12:23:28]Read from MH i2c: E2 03 00 [12:23:28]MH_I2C_Read... [12:23:28]Read from MH i2c: E2 03 00 D4 04 00 90 00 4C [12:23:28]RAPDU: 90 00 [12:23:28]wFMCommunicate OK [12:23:28]wFMCommunicate request_size=255 [12:23:28]MH_SAM_APDU [12:23:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 BF 01 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EC 40 01 00 35 04 06 00 9B [12:23:28]Write to MH i2c: E2 02 01 D5 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 BF 01 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EC 40 01 00 35 04 06 00 9B 00 00 38 [12:23:28]Write i2c OK [12:23:28]MH_I2C_Read... [12:23:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:28]Read from MH i2c: E2 [12:23:28]MH_I2C_Read... [12:23:28]Read from MH i2c: E2 03 00 [12:23:28]MH_I2C_Read... [12:23:28]Read from MH i2c: E2 03 00 D5 04 00 90 00 4D [12:23:28]RAPDU: 90 00 [12:23:28]wFMCommunicate OK [12:23:28]wFMCommunicate request_size=10 [12:23:28]MH_SAM_APDU [12:23:28]CAPDU: 80 0D 02 02 05 C2 85 1F E2 D5 [12:23:28]Write to MH i2c: E2 0D 00 D6 04 80 0D 02 02 05 00 C2 85 1F E2 D5 00 00 7B [12:23:28]Write i2c OK [12:23:28]MH_I2C_Read... [12:23:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:28]Read from MH i2c: E2 [12:23:28]MH_I2C_Read... [12:23:28]Read from MH i2c: E2 03 00 [12:23:28]MH_I2C_Read... [12:23:28]Read from MH i2c: E2 03 00 D6 04 00 90 00 4E [12:23:28]RAPDU: 90 00 [12:23:28]wFMCommunicate OK [12:23:28]wFMCommunicate request_size=4 [12:23:28]MH_SAM_APDU [12:23:28]CAPDU: 80 0D 03 02 [12:23:28]Write to MH i2c: E2 08 00 D7 04 80 0D 03 02 00 00 00 00 56 [12:23:28]Write i2c OK [12:23:28]MH_I2C_Read... [12:23:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:28]Read from MH i2c: E2 [12:23:28]MH_I2C_Read... [12:23:28]Read from MH i2c: E2 0B 00 [12:23:28]MH_I2C_Read... [12:23:28]Read from MH i2c: E2 0B 00 D7 04 00 FA CD 5C A5 60 44 C2 02 90 00 87 [12:23:28]RAPDU: FA CD 5C A5 60 44 C2 02 90 00 [12:23:28]wFMCommunicate OK [12:23:28]SAM_PROTO_SignData done [12:23:28]FM_MakeSignedData done [12:23:28]CreateOFDProtocolMessage [12:23:28]wFMCommunicate request_size=4 [12:23:28]MH_SAM_APDU [12:23:28]CAPDU: 80 11 00 00 [12:23:28]Write to MH i2c: E2 08 00 D8 04 80 11 00 00 00 00 00 00 56 [12:23:28]Write i2c OK [12:23:28]MH_I2C_Read... [12:23:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:28]Read from MH i2c: E2 [12:23:28]MH_I2C_Read... [12:23:28]Read from MH i2c: E2 17 00 [12:23:28]MH_I2C_Read... [12:23:28]Read from MH i2c: E2 17 00 D8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 A8 [12:23:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:23:28]wFMCommunicate OK [12:23:28]CreateOFDProtocolMessage done [12:23:28]OFDSenderStorePacket 82156 [12:23:28]StoreOFDPacket docnum=82156 [12:23:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 C9 23 07 01 60 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 BF 01 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EC 40 01 00 35 04 06 00 9B C2 85 1F E2 D5 FA CD 5C A5 60 44 C2 02 [12:23:28]CheckFolder [12:23:28]dirname=/storage/ofd_packets [12:23:28]CheckFolder done [12:23:28]ProducePacketName [12:23:28]name=ofd_packets/00082156 [12:23:28]NVStorageSaveData ofd_packets/00082156 [12:23:28]File name is /storage/ofd_packets/00082156 [12:23:28]Write 301 bytes [12:23:28]NVStorageSaveData done [12:23:28]OFDSenderStorePacket done [12:23:28]KKMCreateOFDPacket done [12:23:28]NVStorageSaveData kkm_last_timestamp [12:23:28]File name is /storage/kkm_last_timestamp [12:23:28]Write 4 bytes [12:23:28]NVStorageSaveData done [12:23:28]ExternCall_PrintAddStr [12:23:28]wPrintStart [12:23:28]Write to MH i2c: 01 00 00 D9 04 DD [12:23:28]Write i2c OK [12:23:28]MH_I2C_Read... [12:23:28]Read from MH i2c: 01 [12:23:28]MH_I2C_Read... [12:23:28]Read from MH i2c: 01 07 00 [12:23:28]MH_I2C_Read... [12:23:28]Read from MH i2c: 01 07 00 D9 04 00 00 00 00 00 FF 0F F2 [12:23:28]RasterBufferAndPrint [12:23:28]line Счет N : (1)918661 [12:23:28]line ИНН: 02508201610067 [12:23:28]line Контрольно-Кассовый Чек [12:23:28]line ПРОДАЖА [12:23:28]line ТРК (МРК, ГНК) : 11 [12:23:28]line Товар: 2710124130 [12:23:28]line Аи-92-К-4 [12:23:28]line 14.950 * 66.90 [12:23:28]line = 1000.16 [12:23:28]line НДС 12% НСП 1% [12:23:28]line > о реализуемом товаре [12:23:28]line ОКРУГЛЕНИЕ: -0.16 [12:23:28]line ИТОГО: 1000.00 [12:23:28]line Внесено: 1000.00 [12:23:28]line СДАЧА: 0.00 [12:23:28]line НСП 1% : 8.85 [12:23:28]line НДС 12% : 106.21 [12:23:28]line Наличными: 1000.00 [12:23:28]line Безнал.: 0.00 [12:23:28]line Место: АЗС № 114 "Партнер Нефть" [12:23:28]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:23:28]line СНО: Общий режим [12:23:28]line Чек 82 17.10.2024 12:23 [12:23:28]line Смена: 525 ФФД: 1.0 [12:23:28]line ЗНМ: 0300000086 [12:23:28]line РНМ: 0000000000091680 [12:23:28]line Версия ККМ: 001 [12:23:28]line ФМ: 0000000000871843 [12:23:28]line ФД: 82156 [12:23:28]line ФПД: 171259759420117 [12:23:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T122327&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82156&fm=171259759420117&tin=02508201610067®Number=0000000000091680&sum=100000 [12:23:28]OFD Sender: Processing packet 82156 [packets to send 254, broken 253] [12:23:28]ProducePacketName [12:23:28]name=ofd_packets/00082156 [12:23:28]OFD Sender: To server: pG, [12:23:28]CommunicateWithHost lk.salyk.kg:30040 [12:23:28]ConnectInit lk.salyk.kg [12:23:28]written 0, free lines is 4095 [12:23:29]Write to MH i2c: 01 00 00 04 05 09 [12:23:29]Write i2c OK [12:23:29]MH_I2C_Read... [12:23:29]Read from MH i2c: 01 [12:23:29]MH_I2C_Read... [12:23:29]Read from MH i2c: 01 07 00 [12:23:29]MH_I2C_Read... [12:23:29]Read from MH i2c: 01 07 00 04 05 00 00 00 00 00 D4 0C F0 [12:23:29]RasterBufferAndPrint [12:23:29]line [12:23:29]line [12:23:29]line [12:23:29]line [12:23:29]line [12:23:29]written 0, free lines is 3288 [12:23:29]MH_Cut [12:23:29]Write to MH i2c: D1 01 00 0B 05 01 E2 [12:23:29]Write i2c OK [12:23:29]MH_I2C_Read... [12:23:29]Read from MH i2c: D1 [12:23:29]MH_I2C_Read... [12:23:29]Read from MH i2c: D1 01 00 [12:23:29]MH_I2C_Read... [12:23:29]Read from MH i2c: D1 01 00 0B 05 00 E1 [12:23:29]Write to MH i2c: 01 00 00 0C 05 11 [12:23:29]Write i2c OK [12:23:29]MH_I2C_Read... [12:23:30]*** Cut start [12:23:30]*** Partial cut [12:23:30]*** CUTSNS_PIN = 1 [12:23:30]*** CUTSNS_PIN = 0 [12:23:30]Connected sock=11 [12:23:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 C9 23 07 01 60 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 BF 01 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EC 40 01 00 35 04 06 00 9B C2 85 1F E2 D5 FA CD 5C A5 60 44 C2 02 [12:23:30]*** Brake cut motor [12:23:30]Read from MH i2c: 01 [12:23:30]MH_I2C_Read... [12:23:30]*** Stop cut motor [12:23:30]*** Cut end [12:23:30]Read from MH i2c: 01 07 00 [12:23:30]MH_I2C_Read... [12:23:30]Read from MH i2c: 01 07 00 0C 05 00 00 00 00 00 FF 0F 26 [12:23:30]process_action close_receipt done [12:23:30]requested_data is exist [12:23:30]produce_requested_data [12:23:30]requested_item fm.sn is exist - process it [12:23:30]wFMCommunicate request_size=4 [12:23:30]MH_SAM_APDU [12:23:30]CAPDU: 80 11 00 00 [12:23:30]Write to MH i2c: E2 08 00 0D 05 80 11 00 00 00 00 00 00 8C [12:23:30]Write i2c OK [12:23:30]MH_I2C_Read... [12:23:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:30]Read from MH i2c: E2 [12:23:30]MH_I2C_Read... [12:23:30]Read from MH i2c: E2 17 00 [12:23:30]MH_I2C_Read... [12:23:30]Read from MH i2c: E2 17 00 0D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DE [12:23:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:23:30]wFMCommunicate OK [12:23:30]requested_item fd.num is exist - process it [12:23:30]SAM_PROTO_GetFieldsCounters [12:23:30]wFMCommunicate request_size=4 [12:23:30]MH_SAM_APDU [12:23:30]CAPDU: 80 13 00 00 [12:23:30]Write to MH i2c: E2 08 00 0E 05 80 13 00 00 00 00 00 00 8F [12:23:30]Write i2c OK [12:23:30]MH_I2C_Read... [12:23:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:30]Read from MH i2c: E2 [12:23:30]Received data: MH_I2C_Read... [12:23:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 5A 5B 47 00 BF 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EC 40 01 00 F4 03 04 00 FE A6 10 67 B6 04 01 00 00 64 E1 27 86 9A 03 A0 39 [12:23:30]CommunicateWithHost err = 0 [12:23:30]CheckOFDResponse [12:23:30]1017 (14) - 77093643461234 [12:23:30]1041 (16) - 0000000000871843 [12:23:30]1040 (4) - 82156 [12:23:30]1012 (4) - 17.10.2024 05:56 [12:23:30]1206 (1) - 0 [12:23:30]OFD Sender: Remove packet 82156 [12:23:30]ProducePacketName [12:23:30]name=ofd_packets/00082156 [12:23:30]NVStorageDeleteData [12:23:30]Read from MH i2c: E2 62 00 [12:23:30]MH_I2C_Read... [12:23:30]Read from MH i2c: E2 62 00 0E 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 EC 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [12:23:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 EC 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:23:30]wFMCommunicate OK [12:23:30]SAM_PROTO_GetFieldsCounters done [12:23:30]requested_item shift.num is exist - process it [12:23:30]requested_item shift.opened is exist - process it [12:23:30]req_shift_opened [12:23:30]FM_GetShiftState [12:23:30]SAM_PROTO_GetShiftState [12:23:30]wFMCommunicate request_size=4 [12:23:30]MH_SAM_APDU [12:23:30]CAPDU: 80 13 01 00 [12:23:30]Write to MH i2c: E2 08 00 0F 05 80 13 01 00 00 00 00 00 91 [12:23:30]Write i2c OK [12:23:30]MH_I2C_Read... [12:23:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:30]Read from MH i2c: E2 [12:23:30]MH_I2C_Read... [12:23:30]Read from MH i2c: E2 0E 00 [12:23:30]MH_I2C_Read... [12:23:30]Read from MH i2c: E2 0E 00 0F 05 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 99 [12:23:30]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [12:23:30]wFMCommunicate OK [12:23:30]SAM_PROTO_GetShiftState done [12:23:30]FM_GetShiftState done [12:23:30]req_shift_opened done [12:23:30]requested_item shift.open_date is exist - process it [12:23:30]req_shift_open_date [12:23:30]req_shift_open_date done [12:23:30]produce_requested_data done [12:23:30]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82156,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [12:23:30]process_action_free close_receipt [12:23:30]json_value_free [12:23:30]json_value_free done [12:23:30]process_json_proto returns [12:23:30]Send response to host [12:23:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82156,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [12:23:30]free response buf [12:23:30]execute_script done [12:23:30]execute_script returns [12:23:30]free content buf [12:23:30]Sock 7.Close socket [12:23:30]Sock 7.Thread stoped [12:23:31]OFD Sender: No OFD packet to send [12:23:36]OFD Sender: No OFD packet to send [12:23:41]OFD Sender: No OFD packet to send [12:23:42]recv_with_timeout no data received [12:23:46]OFD Sender: No OFD packet to send [12:23:51]OFD Sender: No OFD packet to send [12:23:56]OFD Sender: No OFD packet to send [12:24:01]OFD Sender: No OFD packet to send [12:24:06]OFD Sender: No OFD packet to send [12:24:11]OFD Sender: No OFD packet to send [12:24:16]OFD Sender: No OFD packet to send [12:24:21]OFD Sender: No OFD packet to send [12:24:26]OFD Sender: No OFD packet to send [12:24:31]OFD Sender: No OFD packet to send [12:24:36]OFD Sender: No OFD packet to send [12:24:41]OFD Sender: No OFD packet to send [12:24:46]OFD Sender: No OFD packet to send [12:24:51]OFD Sender: No OFD packet to send [12:24:56]OFD Sender: No OFD packet to send [12:25:01]OFD Sender: No OFD packet to send [12:25:06]OFD Sender: No OFD packet to send [12:25:11]OFD Sender: No OFD packet to send [12:25:16]OFD Sender: No OFD packet to send [12:25:21]OFD Sender: No OFD packet to send [12:25:26]OFD Sender: No OFD packet to send [12:25:31]OFD Sender: No OFD packet to send [12:25:36]OFD Sender: No OFD packet to send [12:25:41]OFD Sender: No OFD packet to send [12:25:46]OFD Sender: No OFD packet to send [12:25:51]OFD Sender: No OFD packet to send [12:25:56]OFD Sender: No OFD packet to send [12:26:01]OFD Sender: No OFD packet to send [12:26:06]OFD Sender: No OFD packet to send [12:26:11]OFD Sender: No OFD packet to send [12:26:16]OFD Sender: No OFD packet to send [12:26:21]OFD Sender: No OFD packet to send [12:26:26]OFD Sender: No OFD packet to send [12:26:31]OFD Sender: No OFD packet to send [12:26:36]OFD Sender: No OFD packet to send [12:26:41]OFD Sender: No OFD packet to send [12:26:46]OFD Sender: No OFD packet to send [12:26:51]OFD Sender: No OFD packet to send [12:26:53]accept exits with 9 [12:26:53]New connection [12:26:53]New thread 3067002212 created [12:26:53]Thread 3067145572 joined [12:26:53]Waiting for new connection... [12:26:53] Sock 9.Parse request [12:26:53]Sock 9.Check first char [12:26:53]Sock 9.First char is OK [12:26:53]request: POST /json_proto HTTP/1.0 [12:26:53]Method: POST [12:26:53]URL: /json_proto [12:26:53]Method is POST - this is cgi request [12:26:53]url: /json_proto [12:26:53]query_string will be loaded in cgi processing [12:26:53]execute_cgi json_proto POST (null) [12:26:53]execute_cgi path=json_proto method=POST [12:26:53]POST find Content-Length [12:26:53]Host: 172.17.44.67:8080 [12:26:53]Content-Length: 799 [12:26:53]Content-Type: application/json [12:26:53] [12:26:53]POST finish read [12:26:53]Found Content-Length = 799 [12:26:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4865565", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:53]execute_script... [12:26:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4865565", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:53]POST & json_proto [12:26:53]process_json_proto [12:26:53]json parsed OK: [12:26:53]protocol is kg_v1.0 [12:26:53]action value=close_receipt [12:26:53]process_action close_receipt [12:26:53]cmd_close_receipt [12:26:53]MH_GetDate [12:26:53]Write to MH i2c: F0 00 00 10 05 04 [12:26:53]Write i2c OK [12:26:53]MH_I2C_Read... [12:26:53]Read from MH i2c: F0 [12:26:53]MH_I2C_Read... [12:26:53]Read from MH i2c: F0 09 00 [12:26:53]MH_I2C_Read... [12:26:53]Read from MH i2c: F0 09 00 10 05 00 8D 02 11 67 F1 C7 6B 64 9B [12:26:53]GetLastDocTimeStamp 1729167807 [12:26:53]current date 1729168013 [12:26:53]FM_GetShiftState [12:26:53]SAM_PROTO_GetShiftState [12:26:53]wFMCommunicate request_size=4 [12:26:53]MH_SAM_APDU [12:26:53]CAPDU: 80 13 01 00 [12:26:53]Write to MH i2c: E2 08 00 11 05 80 13 01 00 00 00 00 00 93 [12:26:53]Write i2c OK [12:26:53]MH_I2C_Read... [12:26:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:53]Read from MH i2c: E2 [12:26:53]MH_I2C_Read... [12:26:53]Read from MH i2c: E2 0E 00 [12:26:53]MH_I2C_Read... [12:26:53]Read from MH i2c: E2 0E 00 11 05 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 9B [12:26:53]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [12:26:53]wFMCommunicate OK [12:26:53]SAM_PROTO_GetShiftState done [12:26:53]FM_GetShiftState done [12:26:53]opened in 1729125927 [12:26:53]opened+sec_in_day 1729212327 [12:26:53]quantity*price = 0 [12:26:53]sum+1 = 1 [12:26:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 83 17.10.2024 12:26 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 4865565 ФМ: 0000000000871843 ФД: 82157 ФПД: 234064528647352 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T122653&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82157&fm=234064528647352&tin=02508201610067®Number=0000000000091680&sum=0 [12:26:54]StoreToDocumentArchive [12:26:54]shift 525 fd 82157 [12:26:54]save to /storage/0525/doc_00082157 [12:26:54]save last doc name /storage/0525/doc_00082157 to /storage/kkm_last_doc_name [12:26:54]save OK [12:26:54]Clear old archive folders... [12:26:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:26:54]tlvbuf is 01D999A0 [12:26:54]SAM_PROTO_ClearQueue [12:26:54]wFMCommunicate request_size=4 [12:26:54]MH_SAM_APDU [12:26:54]CAPDU: 80 09 00 00 [12:26:54]Write to MH i2c: E2 08 00 1E 05 80 09 00 00 00 00 00 00 95 [12:26:54]Write i2c OK [12:26:54]MH_I2C_Read... [12:26:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:26:54]Read from MH i2c: E2 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: E2 03 00 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: E2 03 00 1E 05 00 90 00 97 [12:26:54]RAPDU: 90 00 [12:26:54]wFMCommunicate OK [12:26:54]SAM_PROTO_ClearQueue done [12:26:54]KKMCreateOFDPacket [12:26:54]OFDProtocolAddRootSTLVToBuf [12:26:54]FM_MakeSignedData [12:26:54]FM_MakeSignedData [12:26:54]SAM_PROTO_SignData [12:26:54]wFMCommunicate request_size=4 [12:26:54]MH_SAM_APDU [12:26:54]CAPDU: 80 0D 01 02 [12:26:54]Write to MH i2c: E2 08 00 1F 05 80 0D 01 02 00 00 00 00 9D [12:26:54]Write i2c OK [12:26:54]MH_I2C_Read... [12:26:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:26:54]Read from MH i2c: E2 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: E2 03 00 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: E2 03 00 1F 05 00 90 00 98 [12:26:54]RAPDU: 90 00 [12:26:54]wFMCommunicate OK [12:26:54]wFMCommunicate request_size=255 [12:26:54]MH_SAM_APDU [12:26:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 8D 02 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 ED 40 01 00 35 04 06 00 D4 [12:26:54]Write to MH i2c: E2 02 01 20 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 8D 02 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 ED 40 01 00 35 04 06 00 D4 00 00 AA [12:26:54]Write i2c OK [12:26:54]MH_I2C_Read... [12:26:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:54]Read from MH i2c: E2 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: E2 03 00 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: E2 03 00 20 05 00 90 00 99 [12:26:54]RAPDU: 90 00 [12:26:54]wFMCommunicate OK [12:26:54]wFMCommunicate request_size=10 [12:26:54]MH_SAM_APDU [12:26:54]CAPDU: 80 0D 02 02 05 E1 65 15 A4 B8 [12:26:54]Write to MH i2c: E2 0D 00 21 05 80 0D 02 02 05 00 E1 65 15 A4 B8 00 00 61 [12:26:54]Write i2c OK [12:26:54]MH_I2C_Read... [12:26:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:54]Read from MH i2c: E2 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: E2 03 00 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: E2 03 00 21 05 00 90 00 9A [12:26:54]RAPDU: 90 00 [12:26:54]wFMCommunicate OK [12:26:54]wFMCommunicate request_size=4 [12:26:54]MH_SAM_APDU [12:26:54]CAPDU: 80 0D 03 02 [12:26:54]Write to MH i2c: E2 08 00 22 05 80 0D 03 02 00 00 00 00 A2 [12:26:54]Write i2c OK [12:26:54]MH_I2C_Read... [12:26:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:26:55]Read from MH i2c: E2 [12:26:55]MH_I2C_Read... [12:26:55]Read from MH i2c: E2 0B 00 [12:26:55]MH_I2C_Read... [12:26:55]Read from MH i2c: E2 0B 00 22 05 00 3E B1 B5 84 89 29 F4 F8 90 00 69 [12:26:55]RAPDU: 3E B1 B5 84 89 29 F4 F8 90 00 [12:26:55]wFMCommunicate OK [12:26:55]SAM_PROTO_SignData done [12:26:55]FM_MakeSignedData done [12:26:55]CreateOFDProtocolMessage [12:26:55]wFMCommunicate request_size=4 [12:26:55]MH_SAM_APDU [12:26:55]CAPDU: 80 11 00 00 [12:26:55]Write to MH i2c: E2 08 00 23 05 80 11 00 00 00 00 00 00 A2 [12:26:55]Write i2c OK [12:26:55]MH_I2C_Read... [12:26:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:55]Read from MH i2c: E2 [12:26:55]MH_I2C_Read... [12:26:55]Read from MH i2c: E2 17 00 [12:26:55]MH_I2C_Read... [12:26:55]Read from MH i2c: E2 17 00 23 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 F4 [12:26:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:26:55]wFMCommunicate OK [12:26:55]CreateOFDProtocolMessage done [12:26:55]OFDSenderStorePacket 82157 [12:26:55]StoreOFDPacket docnum=82157 [12:26:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 67 39 07 01 92 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 8D 02 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 ED 40 01 00 35 04 06 00 D4 E1 65 15 A4 B8 3E B1 B5 84 89 29 F4 F8 [12:26:55]CheckFolder [12:26:55]dirname=/storage/ofd_packets [12:26:55]CheckFolder done [12:26:55]ProducePacketName [12:26:55]name=ofd_packets/00082157 [12:26:55]NVStorageSaveData ofd_packets/00082157 [12:26:55]File name is /storage/ofd_packets/00082157 [12:26:55]Write 301 bytes [12:26:55]NVStorageSaveData done [12:26:55]OFDSenderStorePacket done [12:26:55]KKMCreateOFDPacket done [12:26:55]NVStorageSaveData kkm_last_timestamp [12:26:55]File name is /storage/kkm_last_timestamp [12:26:55]Write 4 bytes [12:26:55]NVStorageSaveData done [12:26:55]ExternCall_PrintAddStr [12:26:55]wPrintStart [12:26:55]Write to MH i2c: 01 00 00 24 05 29 [12:26:55]Write i2c OK [12:26:55]MH_I2C_Read... [12:26:55]Read from MH i2c: 01 [12:26:55]MH_I2C_Read... [12:26:55]Read from MH i2c: 01 07 00 [12:26:55]MH_I2C_Read... [12:26:55]Read from MH i2c: 01 07 00 24 05 00 00 00 00 00 FF 0F 3E [12:26:55]RasterBufferAndPrint [12:26:55]line Счет N : (1)918662 [12:26:55]line ИНН: 02508201610067 [12:26:55]line Контрольно-Кассовый Чек [12:26:55]line ПРОДАЖА [12:26:55]line ТРК (МРК, ГНК) : 22 [12:26:55]line Товар: 2710124130 [12:26:55]line Аи-92-К-4 [12:26:55]line 5.000 * 0.00 [12:26:55]line = 0.00 [12:26:55]line НДС 12% НСП 1% [12:26:55]line > о реализуемом товаре [12:26:55]line ИТОГО: 0.00 [12:26:55]line НСП 1% : 0.00 [12:26:55]line НДС 12% : 0.00 [12:26:55]line Наличными: 0.00 [12:26:55]line Безнал.: 0.00 [12:26:55]line Место: АЗС № 114 "Партнер Нефть" [12:26:55]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:26:55]line СНО: Общий режим [12:26:55]line Чек 83 17.10.2024 12:26 [12:26:55]line Смена: 525 ФФД: 1.0 [12:26:55]line ЗНМ: 0300000086 [12:26:55]line РНМ: 0000000000091680 [12:26:55]line Версия ККМ: 001 [12:26:55]line Талоны: Топливные Талоны [12:26:55]line 4865565 [12:26:55]line ФМ: 0000000000871843 [12:26:55]line ФД: 82157 [12:26:55]line ФПД: 234064528647352 [12:26:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T122653&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82157&fm=234064528647352&tin=02508201610067®Number=0000000000091680&sum=0 [12:26:55]written 0, free lines is 4095 [12:26:55]OFD Sender: Processing packet 82157 [packets to send 254, broken 253] [12:26:55]ProducePacketName [12:26:55]name=ofd_packets/00082157 [12:26:55]OFD Sender: To server: pG, [12:26:55]CommunicateWithHost lk.salyk.kg:30040 [12:26:55]ConnectInit lk.salyk.kg [12:26:55]Write to MH i2c: 01 00 00 4E 05 53 [12:26:55]Write i2c OK [12:26:55]MH_I2C_Read... [12:26:55]Read from MH i2c: 01 [12:26:55]MH_I2C_Read... [12:26:55]Read from MH i2c: 01 07 00 [12:26:55]MH_I2C_Read... [12:26:55]Read from MH i2c: 01 07 00 4E 05 00 00 00 00 00 E4 0C 4A [12:26:55]RasterBufferAndPrint [12:26:55]line [12:26:55]line [12:26:55]line [12:26:55]line [12:26:55]line [12:26:55]written 0, free lines is 3306 [12:26:55]MH_Cut [12:26:55]Write to MH i2c: D1 01 00 55 05 01 2C [12:26:55]Write i2c OK [12:26:55]MH_I2C_Read... [12:26:55]Read from MH i2c: D1 [12:26:55]MH_I2C_Read... [12:26:55]Read from MH i2c: D1 01 00 [12:26:55]MH_I2C_Read... [12:26:55]Read from MH i2c: D1 01 00 55 05 00 2B [12:26:55]Write to MH i2c: 01 00 00 56 05 5B [12:26:55]Write i2c OK [12:26:55]MH_I2C_Read... [12:26:56]Connected sock=11 [12:26:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 67 39 07 01 92 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 8D 02 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 ED 40 01 00 35 04 06 00 D4 E1 65 15 A4 B8 3E B1 B5 84 89 29 F4 F8 [12:26:56]*** Cut start [12:26:56]*** Partial cut [12:26:56]*** CUTSNS_PIN = 1 [12:26:56]*** CUTSNS_PIN = 0 [12:26:56]*** Brake cut motor [12:26:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 B1 F8 47 00 4B 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 ED 40 01 00 F4 03 04 00 CC A7 10 67 B6 04 01 00 00 CF 3A 5F AF 6E 9D 3C 82 [12:26:56]CommunicateWithHost err = 0 [12:26:56]CheckOFDResponse [12:26:56]1017 (14) - 77093643461234 [12:26:56]1041 (16) - 0000000000871843 [12:26:56]1040 (4) - 82157 [12:26:56]1012 (4) - 17.10.2024 05:59 [12:26:56]1206 (1) - 0 [12:26:56]OFD Sender: Remove packet 82157 [12:26:56]ProducePacketName [12:26:56]name=ofd_packets/00082157 [12:26:56]NVStorageDeleteData [12:26:57]Read from MH i2c: 01 [12:26:57]MH_I2C_Read... [12:26:57]*** Stop cut motor [12:26:57]*** Cut end [12:26:57]Read from MH i2c: 01 07 00 [12:26:57]MH_I2C_Read... [12:26:57]Read from MH i2c: 01 07 00 56 05 00 00 00 00 00 FF 0F 70 [12:26:57]process_action close_receipt done [12:26:57]requested_data is exist [12:26:57]produce_requested_data [12:26:57]requested_item fm.sn is exist - process it [12:26:57]wFMCommunicate request_size=4 [12:26:57]MH_SAM_APDU [12:26:57]CAPDU: 80 11 00 00 [12:26:57]Write to MH i2c: E2 08 00 57 05 80 11 00 00 00 00 00 00 D6 [12:26:57]Write i2c OK [12:26:57]MH_I2C_Read... [12:26:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:57]Read from MH i2c: E2 [12:26:57]MH_I2C_Read... [12:26:57]Read from MH i2c: E2 17 00 [12:26:57]MH_I2C_Read... [12:26:57]Read from MH i2c: E2 17 00 57 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 28 [12:26:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:26:57]wFMCommunicate OK [12:26:57]requested_item fd.num is exist - process it [12:26:57]SAM_PROTO_GetFieldsCounters [12:26:57]wFMCommunicate request_size=4 [12:26:57]MH_SAM_APDU [12:26:57]CAPDU: 80 13 00 00 [12:26:57]Write to MH i2c: E2 08 00 58 05 80 13 00 00 00 00 00 00 D9 [12:26:57]Write i2c OK [12:26:57]MH_I2C_Read... [12:26:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:57]Read from MH i2c: E2 [12:26:57]MH_I2C_Read... [12:26:57]Read from MH i2c: E2 62 00 [12:26:57]MH_I2C_Read... [12:26:57]Read from MH i2c: E2 62 00 58 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 ED 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [12:26:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 ED 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:26:57]wFMCommunicate OK [12:26:57]SAM_PROTO_GetFieldsCounters done [12:26:57]requested_item shift.num is exist - process it [12:26:57]requested_item shift.opened is exist - process it [12:26:57]req_shift_opened [12:26:57]FM_GetShiftState [12:26:57]SAM_PROTO_GetShiftState [12:26:57]wFMCommunicate request_size=4 [12:26:57]MH_SAM_APDU [12:26:57]CAPDU: 80 13 01 00 [12:26:57]Write to MH i2c: E2 08 00 59 05 80 13 01 00 00 00 00 00 DB [12:26:57]Write i2c OK [12:26:57]MH_I2C_Read... [12:26:57]OFD Sender: No OFD packet to send [12:26:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:57]Read from MH i2c: E2 [12:26:57]MH_I2C_Read... [12:26:57]Read from MH i2c: E2 0E 00 [12:26:57]MH_I2C_Read... [12:26:57]Read from MH i2c: E2 0E 00 59 05 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 E3 [12:26:57]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [12:26:57]wFMCommunicate OK [12:26:57]SAM_PROTO_GetShiftState done [12:26:57]FM_GetShiftState done [12:26:57]req_shift_opened done [12:26:57]requested_item shift.open_date is exist - process it [12:26:57]req_shift_open_date [12:26:57]req_shift_open_date done [12:26:57]produce_requested_data done [12:26:57]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82157,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [12:26:57]process_action_free close_receipt [12:26:57]json_value_free [12:26:57]json_value_free done [12:26:57]process_json_proto returns [12:26:57]Send response to host [12:26:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82157,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [12:26:57]free response buf [12:26:57]execute_script done [12:26:57]execute_script returns [12:26:57]free content buf [12:26:57]Sock 9.Close socket [12:26:57]Sock 9.Thread stoped [12:27:02]OFD Sender: No OFD packet to send [12:27:07]OFD Sender: No OFD packet to send [12:27:07]recv_with_timeout no data received [12:27:12]OFD Sender: No OFD packet to send [12:27:17]OFD Sender: No OFD packet to send [12:27:22]OFD Sender: No OFD packet to send [12:27:27]OFD Sender: No OFD packet to send [12:27:32]OFD Sender: No OFD packet to send [12:27:37]OFD Sender: No OFD packet to send [12:27:42]OFD Sender: No OFD packet to send [12:27:47]OFD Sender: No OFD packet to send [12:27:52]OFD Sender: No OFD packet to send [12:27:57]OFD Sender: No OFD packet to send [12:28:02]OFD Sender: No OFD packet to send [12:28:07]OFD Sender: No OFD packet to send [12:28:12]OFD Sender: No OFD packet to send [12:28:17]OFD Sender: No OFD packet to send [12:28:22]OFD Sender: No OFD packet to send [12:28:27]OFD Sender: No OFD packet to send [12:28:32]OFD Sender: No OFD packet to send [12:28:37]OFD Sender: No OFD packet to send [12:28:42]OFD Sender: No OFD packet to send [12:28:47]OFD Sender: No OFD packet to send [12:28:52]OFD Sender: No OFD packet to send [12:28:57]OFD Sender: No OFD packet to send [12:29:02]OFD Sender: No OFD packet to send [12:29:07]OFD Sender: No OFD packet to send [12:29:12]OFD Sender: No OFD packet to send [12:29:17]OFD Sender: No OFD packet to send [12:29:22]OFD Sender: No OFD packet to send [12:29:27]OFD Sender: No OFD packet to send [12:29:32]OFD Sender: No OFD packet to send [12:29:37]OFD Sender: No OFD packet to send [12:29:42]OFD Sender: No OFD packet to send [12:29:47]OFD Sender: No OFD packet to send [12:29:52]OFD Sender: No OFD packet to send [12:29:57]OFD Sender: No OFD packet to send [12:30:02]OFD Sender: No OFD packet to send [12:30:07]OFD Sender: No OFD packet to send [12:30:12]OFD Sender: No OFD packet to send [12:30:17]OFD Sender: No OFD packet to send [12:30:22]OFD Sender: No OFD packet to send [12:30:27]OFD Sender: No OFD packet to send [12:30:32]OFD Sender: No OFD packet to send [12:30:37]OFD Sender: No OFD packet to send [12:30:42]OFD Sender: No OFD packet to send [12:30:47]OFD Sender: No OFD packet to send [12:30:52]OFD Sender: No OFD packet to send [12:30:57]OFD Sender: No OFD packet to send [12:31:02]OFD Sender: No OFD packet to send [12:31:07]OFD Sender: No OFD packet to send [12:31:12]OFD Sender: No OFD packet to send [12:31:17]OFD Sender: No OFD packet to send [12:31:22]OFD Sender: No OFD packet to send [12:31:27]OFD Sender: No OFD packet to send [12:31:32]OFD Sender: No OFD packet to send [12:31:35]accept exits with 7 [12:31:35]New connection [12:31:35]New thread 3067145572 created [12:31:35]Thread 3067002212 joined [12:31:35]Waiting for new connection... [12:31:35] Sock 7.Parse request [12:31:35]Sock 7.Check first char [12:31:35]Sock 7.First char is OK [12:31:35]request: POST /json_proto HTTP/1.0 [12:31:35]Method: POST [12:31:35]URL: /json_proto [12:31:35]Method is POST - this is cgi request [12:31:35]url: /json_proto [12:31:35]query_string will be loaded in cgi processing [12:31:35]execute_cgi json_proto POST (null) [12:31:35]execute_cgi path=json_proto method=POST [12:31:35]POST find Content-Length [12:31:35]Host: 172.17.44.67:8080 [12:31:35]Content-Length: 766 [12:31:35]Content-Type: application/json [12:31:35] [12:31:35]POST finish read [12:31:35]Found Content-Length = 766 [12:31:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:35]execute_script... [12:31:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:35]POST & json_proto [12:31:35]process_json_proto [12:31:35]json parsed OK: [12:31:35]protocol is kg_v1.0 [12:31:35]action value=close_receipt [12:31:35]process_action close_receipt [12:31:35]cmd_close_receipt [12:31:35]MH_GetDate [12:31:35]Write to MH i2c: F0 00 00 5A 05 4E [12:31:35]Write i2c OK [12:31:35]MH_I2C_Read... [12:31:35]Read from MH i2c: F0 [12:31:35]MH_I2C_Read... [12:31:35]Read from MH i2c: F0 09 00 [12:31:35]MH_I2C_Read... [12:31:35]Read from MH i2c: F0 09 00 5A 05 00 A7 03 11 67 F1 C7 6B 64 00 [12:31:35]GetLastDocTimeStamp 1729168013 [12:31:35]current date 1729168295 [12:31:35]FM_GetShiftState [12:31:35]SAM_PROTO_GetShiftState [12:31:35]wFMCommunicate request_size=4 [12:31:35]MH_SAM_APDU [12:31:35]CAPDU: 80 13 01 00 [12:31:35]Write to MH i2c: E2 08 00 5B 05 80 13 01 00 00 00 00 00 DD [12:31:35]Write i2c OK [12:31:35]MH_I2C_Read... [12:31:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:35]Read from MH i2c: E2 [12:31:35]MH_I2C_Read... [12:31:35]Read from MH i2c: E2 0E 00 [12:31:35]MH_I2C_Read... [12:31:35]Read from MH i2c: E2 0E 00 5B 05 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 E5 [12:31:35]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [12:31:35]wFMCommunicate OK [12:31:35]SAM_PROTO_GetShiftState done [12:31:35]FM_GetShiftState done [12:31:35]opened in 1729125927 [12:31:35]opened+sec_in_day 1729212327 [12:31:35]quantity*price = 30038 [12:31:35]sum+1 = 30039 [12:31:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 84 17.10.2024 12:31 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82158 ФПД: 89413357545976 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T123135&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82158&fm=89413357545976&tin=02508201610067®Number=0000000000091680&sum=30038 [12:31:36]StoreToDocumentArchive [12:31:36]shift 525 fd 82158 [12:31:36]save to /storage/0525/doc_00082158 [12:31:36]save last doc name /storage/0525/doc_00082158 to /storage/kkm_last_doc_name [12:31:36]save OK [12:31:36]Clear old archive folders... [12:31:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:31:36]tlvbuf is 01CE9B30 [12:31:36]SAM_PROTO_ClearQueue [12:31:36]wFMCommunicate request_size=4 [12:31:36]MH_SAM_APDU [12:31:36]CAPDU: 80 09 00 00 [12:31:36]Write to MH i2c: E2 08 00 68 05 80 09 00 00 00 00 00 00 DF [12:31:36]Write i2c OK [12:31:36]MH_I2C_Read... [12:31:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:36]Read from MH i2c: E2 [12:31:36]MH_I2C_Read... [12:31:36]Read from MH i2c: E2 03 00 [12:31:36]MH_I2C_Read... [12:31:36]Read from MH i2c: E2 03 00 68 05 00 90 00 E1 [12:31:36]RAPDU: 90 00 [12:31:36]wFMCommunicate OK [12:31:36]SAM_PROTO_ClearQueue done [12:31:36]KKMCreateOFDPacket [12:31:36]OFDProtocolAddRootSTLVToBuf [12:31:36]FM_MakeSignedData [12:31:36]FM_MakeSignedData [12:31:36]SAM_PROTO_SignData [12:31:36]wFMCommunicate request_size=4 [12:31:36]MH_SAM_APDU [12:31:36]CAPDU: 80 0D 01 02 [12:31:36]Write to MH i2c: E2 08 00 69 05 80 0D 01 02 00 00 00 00 E7 [12:31:36]Write i2c OK [12:31:36]MH_I2C_Read... [12:31:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:36]Read from MH i2c: E2 [12:31:36]MH_I2C_Read... [12:31:36]Read from MH i2c: E2 03 00 [12:31:36]MH_I2C_Read... [12:31:36]Read from MH i2c: E2 03 00 69 05 00 90 00 E2 [12:31:36]RAPDU: 90 00 [12:31:36]wFMCommunicate OK [12:31:36]wFMCommunicate request_size=255 [12:31:36]MH_SAM_APDU [12:31:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 A7 03 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EE 40 01 00 35 04 06 00 51 [12:31:36]Write to MH i2c: E2 02 01 6A 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 A7 03 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EE 40 01 00 35 04 06 00 51 00 00 B8 [12:31:36]Write i2c OK [12:31:36]MH_I2C_Read... [12:31:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:36]Read from MH i2c: E2 [12:31:36]MH_I2C_Read... [12:31:36]Read from MH i2c: E2 03 00 [12:31:36]MH_I2C_Read... [12:31:36]Read from MH i2c: E2 03 00 6A 05 00 90 00 E3 [12:31:36]RAPDU: 90 00 [12:31:36]wFMCommunicate OK [12:31:36]wFMCommunicate request_size=10 [12:31:36]MH_SAM_APDU [12:31:36]CAPDU: 80 0D 02 02 05 52 2B 6A 29 F8 [12:31:36]Write to MH i2c: E2 0D 00 6B 05 80 0D 02 02 05 00 52 2B 6A 29 F8 00 00 FC [12:31:36]Write i2c OK [12:31:36]MH_I2C_Read... [12:31:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:36]Read from MH i2c: E2 [12:31:36]MH_I2C_Read... [12:31:36]Read from MH i2c: E2 03 00 [12:31:36]MH_I2C_Read... [12:31:36]Read from MH i2c: E2 03 00 6B 05 00 90 00 E4 [12:31:36]RAPDU: 90 00 [12:31:36]wFMCommunicate OK [12:31:36]wFMCommunicate request_size=4 [12:31:36]MH_SAM_APDU [12:31:36]CAPDU: 80 0D 03 02 [12:31:36]Write to MH i2c: E2 08 00 6C 05 80 0D 03 02 00 00 00 00 EC [12:31:36]Write i2c OK [12:31:36]MH_I2C_Read... [12:31:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:36]Read from MH i2c: E2 [12:31:36]MH_I2C_Read... [12:31:36]Read from MH i2c: E2 0B 00 [12:31:36]MH_I2C_Read... [12:31:36]Read from MH i2c: E2 0B 00 6C 05 00 EB F2 D9 B4 7D DA 2E 41 90 00 1D [12:31:36]RAPDU: EB F2 D9 B4 7D DA 2E 41 90 00 [12:31:36]wFMCommunicate OK [12:31:36]SAM_PROTO_SignData done [12:31:36]FM_MakeSignedData done [12:31:36]CreateOFDProtocolMessage [12:31:36]wFMCommunicate request_size=4 [12:31:36]MH_SAM_APDU [12:31:36]CAPDU: 80 11 00 00 [12:31:36]Write to MH i2c: E2 08 00 6D 05 80 11 00 00 00 00 00 00 EC [12:31:36]Write i2c OK [12:31:36]MH_I2C_Read... [12:31:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:36]Read from MH i2c: E2 [12:31:36]MH_I2C_Read... [12:31:36]Read from MH i2c: E2 17 00 [12:31:36]MH_I2C_Read... [12:31:36]Read from MH i2c: E2 17 00 6D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 3E [12:31:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:31:36]wFMCommunicate OK [12:31:36]CreateOFDProtocolMessage done [12:31:36]OFDSenderStorePacket 82158 [12:31:36]StoreOFDPacket docnum=82158 [12:31:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 21 B9 07 01 66 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 A7 03 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EE 40 01 00 35 04 06 00 51 52 2B 6A 29 F8 EB F2 D9 B4 7D DA 2E 41 [12:31:36]CheckFolder [12:31:36]dirname=/storage/ofd_packets [12:31:36]CheckFolder done [12:31:36]ProducePacketName [12:31:36]name=ofd_packets/00082158 [12:31:36]NVStorageSaveData ofd_packets/00082158 [12:31:36]File name is /storage/ofd_packets/00082158 [12:31:36]Write 301 bytes [12:31:36]NVStorageSaveData done [12:31:36]OFDSenderStorePacket done [12:31:36]KKMCreateOFDPacket done [12:31:36]NVStorageSaveData kkm_last_timestamp [12:31:36]File name is /storage/kkm_last_timestamp [12:31:36]Write 4 bytes [12:31:36]NVStorageSaveData done [12:31:36]ExternCall_PrintAddStr [12:31:36]wPrintStart [12:31:36]Write to MH i2c: 01 00 00 6E 05 73 [12:31:36]Write i2c OK [12:31:36]MH_I2C_Read... [12:31:36]Read from MH i2c: 01 [12:31:36]MH_I2C_Read... [12:31:36]Read from MH i2c: 01 07 00 [12:31:36]MH_I2C_Read... [12:31:36]Read from MH i2c: 01 07 00 6E 05 00 00 00 00 00 FF 0F 88 [12:31:36]RasterBufferAndPrint [12:31:36]line Счет N : (1)918663 [12:31:36]line ИНН: 02508201610067 [12:31:36]line Контрольно-Кассовый Чек [12:31:36]line ПРОДАЖА [12:31:36]line ТРК (МРК, ГНК) : 11 [12:31:36]line Товар: 2710124130 [12:31:36]line Аи-92-К-4 [12:31:36]line 4.490 * 66.90 [12:31:36]line = 300.38 [12:31:36]line НДС 12% НСП 1% [12:31:36]line > о реализуемом товаре [12:31:36]line ИТОГО: 300.38 [12:31:36]line НСП 1% : 2.66 [12:31:36]line НДС 12% : 31.90 [12:31:36]line Наличными: 0.00 [12:31:36]line Безнал.: 300.38 [12:31:36]line Место: АЗС № 114 "Партнер Нефть" [12:31:36]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:31:36]line СНО: Общий режим [12:31:36]line Чек 84 17.10.2024 12:31 [12:31:36]line Смена: 525 ФФД: 1.0 [12:31:36]line ЗНМ: 0300000086 [12:31:36]line РНМ: 0000000000091680 [12:31:36]line Версия ККМ: 001 [12:31:36]line Платежная система: Mbank [12:31:36]line ФМ: 0000000000871843 [12:31:36]line ФД: 82158 [12:31:36]line ФПД: 89413357545976 [12:31:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T123135&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82158&fm=89413357545976&tin=02508201610067®Number=0000000000091680&sum=30038 [12:31:36]written 0, free lines is 4095 [12:31:36]OFD Sender: Processing packet 82158 [packets to send 254, broken 253] [12:31:36]ProducePacketName [12:31:36]name=ofd_packets/00082158 [12:31:36]OFD Sender: To server: pG, [12:31:36]CommunicateWithHost lk.salyk.kg:30040 [12:31:36]ConnectInit lk.salyk.kg [12:31:37]Write to MH i2c: 01 00 00 97 05 9C [12:31:37]Write i2c OK [12:31:37]MH_I2C_Read... [12:31:37]Read from MH i2c: 01 [12:31:37]MH_I2C_Read... [12:31:37]Read from MH i2c: 01 07 00 [12:31:37]MH_I2C_Read... [12:31:37]Read from MH i2c: 01 07 00 97 05 00 00 00 00 00 FD 0C AC [12:31:37]RasterBufferAndPrint [12:31:37]line [12:31:37]line [12:31:37]line [12:31:37]line [12:31:37]line [12:31:37]written 0, free lines is 3331 [12:31:37]MH_Cut [12:31:37]Write to MH i2c: D1 01 00 9E 05 01 75 [12:31:37]Write i2c OK [12:31:37]MH_I2C_Read... [12:31:37]Read from MH i2c: D1 [12:31:37]MH_I2C_Read... [12:31:37]Read from MH i2c: D1 01 00 [12:31:37]MH_I2C_Read... [12:31:37]Read from MH i2c: D1 01 00 9E 05 00 74 [12:31:37]Write to MH i2c: 01 00 00 9F 05 A4 [12:31:37]Write i2c OK [12:31:37]MH_I2C_Read... [12:31:37]Connected sock=10 [12:31:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 21 B9 07 01 66 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 A7 03 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EE 40 01 00 35 04 06 00 51 52 2B 6A 29 F8 EB F2 D9 B4 7D DA 2E 41 [12:31:38]*** Cut start [12:31:38]*** Partial cut [12:31:38]*** CUTSNS_PIN = 1 [12:31:38]*** CUTSNS_PIN = 0 [12:31:38]*** Brake cut motor [12:31:38]Read from MH i2c: 01 [12:31:38]MH_I2C_Read... [12:31:38]*** Stop cut motor [12:31:38]*** Cut end [12:31:38]Read from MH i2c: 01 07 00 [12:31:38]MH_I2C_Read... [12:31:38]Read from MH i2c: 01 07 00 9F 05 00 00 00 00 00 FF 0F B9 [12:31:38]process_action close_receipt done [12:31:38]requested_data is exist [12:31:38]produce_requested_data [12:31:38]requested_item fm.sn is exist - process it [12:31:38]wFMCommunicate request_size=4 [12:31:38]MH_SAM_APDU [12:31:38]CAPDU: 80 11 00 00 [12:31:38]Write to MH i2c: E2 08 00 A0 05 80 11 00 00 00 00 00 00 1F [12:31:38]Write i2c OK [12:31:38]MH_I2C_Read... [12:31:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:38]Read from MH i2c: E2 [12:31:38]MH_I2C_Read... [12:31:38]Read from MH i2c: E2 17 00 [12:31:38]MH_I2C_Read... [12:31:38]Read from MH i2c: E2 17 00 A0 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 71 [12:31:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:31:38]wFMCommunicate OK [12:31:38]requested_item fd.num is exist - process it [12:31:38]SAM_PROTO_GetFieldsCounters [12:31:38]wFMCommunicate request_size=4 [12:31:38]MH_SAM_APDU [12:31:38]CAPDU: 80 13 00 00 [12:31:38]Write to MH i2c: E2 08 00 A1 05 80 13 00 00 00 00 00 00 22 [12:31:38]Write i2c OK [12:31:38]MH_I2C_Read... [12:31:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 9C A4 47 00 BF 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EE 40 01 00 F4 03 04 00 E6 A8 10 67 B6 04 01 00 00 04 95 D8 C7 04 C8 C3 D3 [12:31:38]CommunicateWithHost err = 0 [12:31:38]CheckOFDResponse [12:31:38]1017 (14) - 77093643461234 [12:31:38]1041 (16) - 0000000000871843 [12:31:38]1040 (4) - 82158 [12:31:38]1012 (4) - 17.10.2024 06:04 [12:31:38]1206 (1) - 0 [12:31:38]OFD Sender: Remove packet 82158 [12:31:38]ProducePacketName [12:31:38]name=ofd_packets/00082158 [12:31:38]NVStorageDeleteData [12:31:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:38]Read from MH i2c: E2 [12:31:38]MH_I2C_Read... [12:31:38]Read from MH i2c: E2 62 00 [12:31:38]MH_I2C_Read... [12:31:38]Read from MH i2c: E2 62 00 A1 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 EE 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [12:31:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 EE 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:31:38]wFMCommunicate OK [12:31:38]SAM_PROTO_GetFieldsCounters done [12:31:38]requested_item shift.num is exist - process it [12:31:38]requested_item shift.opened is exist - process it [12:31:38]req_shift_opened [12:31:38]FM_GetShiftState [12:31:38]SAM_PROTO_GetShiftState [12:31:38]wFMCommunicate request_size=4 [12:31:38]MH_SAM_APDU [12:31:38]CAPDU: 80 13 01 00 [12:31:38]Write to MH i2c: E2 08 00 A2 05 80 13 01 00 00 00 00 00 24 [12:31:38]Write i2c OK [12:31:38]MH_I2C_Read... [12:31:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:38]Read from MH i2c: E2 [12:31:38]MH_I2C_Read... [12:31:38]Read from MH i2c: E2 0E 00 [12:31:38]MH_I2C_Read... [12:31:38]Read from MH i2c: E2 0E 00 A2 05 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 2C [12:31:38]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [12:31:38]wFMCommunicate OK [12:31:38]SAM_PROTO_GetShiftState done [12:31:38]FM_GetShiftState done [12:31:38]req_shift_opened done [12:31:38]requested_item shift.open_date is exist - process it [12:31:38]req_shift_open_date [12:31:38]req_shift_open_date done [12:31:38]produce_requested_data done [12:31:38]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82158,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [12:31:38]process_action_free close_receipt [12:31:38]json_value_free [12:31:38]json_value_free done [12:31:38]process_json_proto returns [12:31:38]Send response to host [12:31:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82158,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [12:31:38]free response buf [12:31:38]execute_script done [12:31:38]execute_script returns [12:31:38]free content buf [12:31:38]Sock 7.Close socket [12:31:38]Sock 7.Thread stoped [12:31:39]OFD Sender: No OFD packet to send [12:31:44]recv_with_timeout no data received [12:31:44]OFD Sender: No OFD packet to send [12:31:49]OFD Sender: No OFD packet to send [12:31:54]OFD Sender: No OFD packet to send [12:31:59]OFD Sender: No OFD packet to send [12:32:04]OFD Sender: No OFD packet to send [12:32:09]OFD Sender: No OFD packet to send [12:32:14]OFD Sender: No OFD packet to send [12:32:19]OFD Sender: No OFD packet to send [12:32:24]OFD Sender: No OFD packet to send [12:32:29]OFD Sender: No OFD packet to send [12:32:34]OFD Sender: No OFD packet to send [12:32:39]OFD Sender: No OFD packet to send [12:32:44]OFD Sender: No OFD packet to send [12:32:49]OFD Sender: No OFD packet to send [12:32:54]OFD Sender: No OFD packet to send [12:32:59]OFD Sender: No OFD packet to send [12:33:04]OFD Sender: No OFD packet to send [12:33:09]OFD Sender: No OFD packet to send [12:33:14]OFD Sender: No OFD packet to send [12:33:19]OFD Sender: No OFD packet to send [12:33:24]OFD Sender: No OFD packet to send [12:33:29]OFD Sender: No OFD packet to send [12:33:34]OFD Sender: No OFD packet to send [12:33:39]OFD Sender: No OFD packet to send [12:33:44]OFD Sender: No OFD packet to send [12:33:49]OFD Sender: No OFD packet to send [12:33:54]OFD Sender: No OFD packet to send [12:33:59]OFD Sender: No OFD packet to send [12:34:04]OFD Sender: No OFD packet to send [12:34:09]OFD Sender: No OFD packet to send [12:34:14]OFD Sender: No OFD packet to send [12:34:19]OFD Sender: No OFD packet to send [12:34:24]OFD Sender: No OFD packet to send [12:34:29]OFD Sender: No OFD packet to send [12:34:32]accept exits with 9 [12:34:32]New connection [12:34:32]New thread 3067002212 created [12:34:32]Thread 3067145572 joined [12:34:32]Waiting for new connection... [12:34:32] Sock 9.Parse request [12:34:32]Sock 9.Check first char [12:34:32]Sock 9.First char is OK [12:34:32]request: POST /json_proto HTTP/1.0 [12:34:32]Method: POST [12:34:32]URL: /json_proto [12:34:32]Method is POST - this is cgi request [12:34:32]url: /json_proto [12:34:32]query_string will be loaded in cgi processing [12:34:32]execute_cgi json_proto POST (null) [12:34:32]execute_cgi path=json_proto method=POST [12:34:32]POST find Content-Length [12:34:32]Host: 172.17.44.67:8080 [12:34:32]Content-Length: 682 [12:34:32]Content-Type: application/json [12:34:32] [12:34:32]POST finish read [12:34:32]Found Content-Length = 682 [12:34:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:32]execute_script... [12:34:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:32]POST & json_proto [12:34:32]process_json_proto [12:34:32]json parsed OK: [12:34:32]protocol is kg_v1.0 [12:34:32]action value=close_receipt [12:34:32]process_action close_receipt [12:34:32]cmd_close_receipt [12:34:32]MH_GetDate [12:34:32]Write to MH i2c: F0 00 00 A3 05 97 [12:34:32]Write i2c OK [12:34:32]MH_I2C_Read... [12:34:32]Read from MH i2c: F0 [12:34:32]MH_I2C_Read... [12:34:32]Read from MH i2c: F0 09 00 [12:34:32]MH_I2C_Read... [12:34:32]Read from MH i2c: F0 09 00 A3 05 00 58 04 11 67 F1 C7 6B 64 FB [12:34:32]GetLastDocTimeStamp 1729168295 [12:34:32]current date 1729168472 [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 A4 05 80 13 01 00 00 00 00 00 26 [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 A4 05 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 2E [12:34:32]RAPDU: 09 00 01 27 5E 10 67 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]opened in 1729125927 [12:34:32]opened+sec_in_day 1729212327 [12:34:32]quantity*price = 200043 [12:34:32]sum+1 = 200044 [12:34:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 85 17.10.2024 12:34 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82159 ФПД: 74149127489215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T123432&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82159&fm=74149127489215&tin=02508201610067®Number=0000000000091680&sum=200000 [12:34:33]StoreToDocumentArchive [12:34:33]shift 525 fd 82159 [12:34:33]save to /storage/0525/doc_00082159 [12:34:33]save last doc name /storage/0525/doc_00082159 to /storage/kkm_last_doc_name [12:34:33]save OK [12:34:33]Clear old archive folders... [12:34:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:34:33]tlvbuf is 01D9E7C0 [12:34:33]SAM_PROTO_ClearQueue [12:34:33]wFMCommunicate request_size=4 [12:34:33]MH_SAM_APDU [12:34:33]CAPDU: 80 09 00 00 [12:34:33]Write to MH i2c: E2 08 00 B1 05 80 09 00 00 00 00 00 00 28 [12:34:33]Write i2c OK [12:34:33]MH_I2C_Read... [12:34:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:33]Read from MH i2c: E2 [12:34:33]MH_I2C_Read... [12:34:33]Read from MH i2c: E2 03 00 [12:34:33]MH_I2C_Read... [12:34:33]Read from MH i2c: E2 03 00 B1 05 00 90 00 2A [12:34:33]RAPDU: 90 00 [12:34:33]wFMCommunicate OK [12:34:33]SAM_PROTO_ClearQueue done [12:34:33]KKMCreateOFDPacket [12:34:33]OFDProtocolAddRootSTLVToBuf [12:34:33]FM_MakeSignedData [12:34:33]FM_MakeSignedData [12:34:33]SAM_PROTO_SignData [12:34:33]wFMCommunicate request_size=4 [12:34:33]MH_SAM_APDU [12:34:33]CAPDU: 80 0D 01 02 [12:34:33]Write to MH i2c: E2 08 00 B2 05 80 0D 01 02 00 00 00 00 30 [12:34:33]Write i2c OK [12:34:33]MH_I2C_Read... [12:34:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:33]Read from MH i2c: E2 [12:34:33]MH_I2C_Read... [12:34:33]Read from MH i2c: E2 03 00 [12:34:33]MH_I2C_Read... [12:34:33]Read from MH i2c: E2 03 00 B2 05 00 90 00 2B [12:34:33]RAPDU: 90 00 [12:34:33]wFMCommunicate OK [12:34:33]wFMCommunicate request_size=255 [12:34:33]MH_SAM_APDU [12:34:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 58 04 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EF 40 01 00 35 04 06 00 43 [12:34:33]Write to MH i2c: E2 02 01 B3 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 58 04 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EF 40 01 00 35 04 06 00 43 00 00 10 [12:34:33]Write i2c OK [12:34:33]MH_I2C_Read... [12:34:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:33]Read from MH i2c: E2 [12:34:33]MH_I2C_Read... [12:34:33]Read from MH i2c: E2 03 00 [12:34:33]MH_I2C_Read... [12:34:33]Read from MH i2c: E2 03 00 B3 05 00 90 00 2C [12:34:33]RAPDU: 90 00 [12:34:33]wFMCommunicate OK [12:34:33]wFMCommunicate request_size=10 [12:34:33]MH_SAM_APDU [12:34:33]CAPDU: 80 0D 02 02 05 70 30 67 86 BF [12:34:33]Write to MH i2c: E2 0D 00 B4 05 80 0D 02 02 05 00 70 30 67 86 BF 00 00 89 [12:34:33]Write i2c OK [12:34:33]MH_I2C_Read... [12:34:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:33]Read from MH i2c: E2 [12:34:33]MH_I2C_Read... [12:34:33]Read from MH i2c: E2 03 00 [12:34:33]MH_I2C_Read... [12:34:33]Read from MH i2c: E2 03 00 B4 05 00 90 00 2D [12:34:33]RAPDU: 90 00 [12:34:33]wFMCommunicate OK [12:34:33]wFMCommunicate request_size=4 [12:34:33]MH_SAM_APDU [12:34:33]CAPDU: 80 0D 03 02 [12:34:33]Write to MH i2c: E2 08 00 B5 05 80 0D 03 02 00 00 00 00 35 [12:34:33]Write i2c OK [12:34:33]MH_I2C_Read... [12:34:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:33]Read from MH i2c: E2 [12:34:33]MH_I2C_Read... [12:34:33]Read from MH i2c: E2 0B 00 [12:34:33]MH_I2C_Read... [12:34:33]Read from MH i2c: E2 0B 00 B5 05 00 61 05 2E 70 D2 AF CE C0 90 00 49 [12:34:33]RAPDU: 61 05 2E 70 D2 AF CE C0 90 00 [12:34:33]wFMCommunicate OK [12:34:33]SAM_PROTO_SignData done [12:34:33]FM_MakeSignedData done [12:34:33]CreateOFDProtocolMessage [12:34:33]wFMCommunicate request_size=4 [12:34:33]MH_SAM_APDU [12:34:33]CAPDU: 80 11 00 00 [12:34:33]Write to MH i2c: E2 08 00 B6 05 80 11 00 00 00 00 00 00 35 [12:34:33]Write i2c OK [12:34:33]MH_I2C_Read... [12:34:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:33]Read from MH i2c: E2 [12:34:33]MH_I2C_Read... [12:34:33]Read from MH i2c: E2 17 00 [12:34:33]MH_I2C_Read... [12:34:33]Read from MH i2c: E2 17 00 B6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 87 [12:34:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:34:33]wFMCommunicate OK [12:34:33]CreateOFDProtocolMessage done [12:34:33]OFDSenderStorePacket 82159 [12:34:33]StoreOFDPacket docnum=82159 [12:34:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 35 F1 07 01 78 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 58 04 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EF 40 01 00 35 04 06 00 43 70 30 67 86 BF 61 05 2E 70 D2 AF CE C0 [12:34:33]CheckFolder [12:34:33]dirname=/storage/ofd_packets [12:34:33]CheckFolder done [12:34:33]ProducePacketName [12:34:33]name=ofd_packets/00082159 [12:34:33]NVStorageSaveData ofd_packets/00082159 [12:34:33]File name is /storage/ofd_packets/00082159 [12:34:33]Write 301 bytes [12:34:33]NVStorageSaveData done [12:34:33]OFDSenderStorePacket done [12:34:33]KKMCreateOFDPacket done [12:34:33]NVStorageSaveData kkm_last_timestamp [12:34:33]File name is /storage/kkm_last_timestamp [12:34:33]Write 4 bytes [12:34:33]NVStorageSaveData done [12:34:33]ExternCall_PrintAddStr [12:34:33]wPrintStart [12:34:33]Write to MH i2c: 01 00 00 B7 05 BC [12:34:33]Write i2c OK [12:34:33]MH_I2C_Read... [12:34:33]Read from MH i2c: 01 [12:34:33]MH_I2C_Read... [12:34:33]Read from MH i2c: 01 07 00 [12:34:33]MH_I2C_Read... [12:34:33]Read from MH i2c: 01 07 00 B7 05 00 00 00 00 00 FF 0F D1 [12:34:33]RasterBufferAndPrint [12:34:33]line Счет N : (1)918665 [12:34:33]line ИНН: 02508201610067 [12:34:33]line Контрольно-Кассовый Чек [12:34:33]line ПРОДАЖА [12:34:33]line ТРК (МРК, ГНК) : 12 [12:34:33]line Товар: 2710124500 [12:34:33]line Аи-95-К-5 [12:34:33]line 26.960 * 74.20 [12:34:33]line = 2000.43 [12:34:33]line НДС 12% НСП 1% [12:34:33]line > о реализуемом товаре [12:34:33]line ОКРУГЛЕНИЕ: -0.43 [12:34:33]line ИТОГО: 2000.00 [12:34:33]line Внесено: 2000.00 [12:34:33]line СДАЧА: 0.00 [12:34:33]line НСП 1% : 17.70 [12:34:33]line НДС 12% : 212.43 [12:34:33]line Наличными: 2000.00 [12:34:33]line Безнал.: 0.00 [12:34:33]line Место: АЗС № 114 "Партнер Нефть" [12:34:33]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:34:33]line СНО: Общий режим [12:34:33]line Чек 85 17.10.2024 12:34 [12:34:33]line Смена: 525 ФФД: 1.0 [12:34:33]line ЗНМ: 0300000086 [12:34:33]line РНМ: 0000000000091680 [12:34:33]line Версия ККМ: 001 [12:34:33]line ФМ: 0000000000871843 [12:34:33]line ФД: 82159 [12:34:33]line ФПД: 74149127489215 [12:34:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T123432&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82159&fm=74149127489215&tin=02508201610067®Number=0000000000091680&sum=200000 [12:34:34]OFD Sender: Processing packet 82159 [packets to send 254, broken 253] [12:34:34]ProducePacketName [12:34:34]name=ofd_packets/00082159 [12:34:34]OFD Sender: To server: pG, [12:34:34]CommunicateWithHost lk.salyk.kg:30040 [12:34:34]ConnectInit lk.salyk.kg [12:34:34]written 0, free lines is 4095 [12:34:34]Write to MH i2c: 01 00 00 E2 05 E7 [12:34:34]Write i2c OK [12:34:34]MH_I2C_Read... [12:34:34]Read from MH i2c: 01 [12:34:34]MH_I2C_Read... [12:34:34]Read from MH i2c: 01 07 00 [12:34:34]MH_I2C_Read... [12:34:34]Read from MH i2c: 01 07 00 E2 05 00 00 00 00 00 CF 0C C9 [12:34:34]RasterBufferAndPrint [12:34:34]line [12:34:34]line [12:34:34]line [12:34:34]line [12:34:34]line [12:34:34]written 0, free lines is 3288 [12:34:34]MH_Cut [12:34:34]Write to MH i2c: D1 01 00 E9 05 01 C0 [12:34:34]Write i2c OK [12:34:34]MH_I2C_Read... [12:34:34]Read from MH i2c: D1 [12:34:34]MH_I2C_Read... [12:34:34]Read from MH i2c: D1 01 00 [12:34:34]MH_I2C_Read... [12:34:34]Read from MH i2c: D1 01 00 E9 05 00 BF [12:34:34]Write to MH i2c: 01 00 00 EA 05 EF [12:34:34]Write i2c OK [12:34:34]MH_I2C_Read... [12:34:34]Connected sock=7 [12:34:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 35 F1 07 01 78 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 58 04 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EF 40 01 00 35 04 06 00 43 70 30 67 86 BF 61 05 2E 70 D2 AF CE C0 [12:34:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 AB 0C 47 00 93 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EF 40 01 00 F4 03 04 00 97 A9 10 67 B6 04 01 00 00 75 BE 52 19 54 54 8E 93 [12:34:35]CommunicateWithHost err = 0 [12:34:35]CheckOFDResponse [12:34:35]1017 (14) - 77093643461234 [12:34:35]1041 (16) - 0000000000871843 [12:34:35]1040 (4) - 82159 [12:34:35]1012 (4) - 17.10.2024 06:07 [12:34:35]1206 (1) - 0 [12:34:35]OFD Sender: Remove packet 82159 [12:34:35]ProducePacketName [12:34:35]name=ofd_packets/00082159 [12:34:35]NVStorageDeleteData [12:34:35]*** Cut start [12:34:35]*** Partial cut [12:34:35]*** CUTSNS_PIN = 1 [12:34:35]*** CUTSNS_PIN = 0 [12:34:35]*** Brake cut motor [12:34:35]OFD Sender: No OFD packet to send [12:34:36]Read from MH i2c: 01 [12:34:36]MH_I2C_Read... [12:34:36]*** Stop cut motor [12:34:36]*** Cut end [12:34:36]Read from MH i2c: 01 07 00 [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: 01 07 00 EA 05 00 00 00 00 00 FF 0F 04 [12:34:36]process_action close_receipt done [12:34:36]requested_data is exist [12:34:36]produce_requested_data [12:34:36]requested_item fm.sn is exist - process it [12:34:36]wFMCommunicate request_size=4 [12:34:36]MH_SAM_APDU [12:34:36]CAPDU: 80 11 00 00 [12:34:36]Write to MH i2c: E2 08 00 EB 05 80 11 00 00 00 00 00 00 6A [12:34:36]Write i2c OK [12:34:36]MH_I2C_Read... [12:34:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:36]Read from MH i2c: E2 [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: E2 17 00 [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: E2 17 00 EB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 BC [12:34:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:34:36]wFMCommunicate OK [12:34:36]requested_item fd.num is exist - process it [12:34:36]SAM_PROTO_GetFieldsCounters [12:34:36]wFMCommunicate request_size=4 [12:34:36]MH_SAM_APDU [12:34:36]CAPDU: 80 13 00 00 [12:34:36]Write to MH i2c: E2 08 00 EC 05 80 13 00 00 00 00 00 00 6D [12:34:36]Write i2c OK [12:34:36]MH_I2C_Read... [12:34:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:36]Read from MH i2c: E2 [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: E2 62 00 [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: E2 62 00 EC 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 EF 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [12:34:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 EF 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:34:36]wFMCommunicate OK [12:34:36]SAM_PROTO_GetFieldsCounters done [12:34:36]requested_item shift.num is exist - process it [12:34:36]requested_item shift.opened is exist - process it [12:34:36]req_shift_opened [12:34:36]FM_GetShiftState [12:34:36]SAM_PROTO_GetShiftState [12:34:36]wFMCommunicate request_size=4 [12:34:36]MH_SAM_APDU [12:34:36]CAPDU: 80 13 01 00 [12:34:36]Write to MH i2c: E2 08 00 ED 05 80 13 01 00 00 00 00 00 6F [12:34:36]Write i2c OK [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: E2 [12:34:36]MH_I2C_Read... [12:34:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:36]Read from MH i2c: E2 0E 00 [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: E2 0E 00 ED 05 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 77 [12:34:36]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [12:34:36]wFMCommunicate OK [12:34:36]SAM_PROTO_GetShiftState done [12:34:36]FM_GetShiftState done [12:34:36]req_shift_opened done [12:34:36]requested_item shift.open_date is exist - process it [12:34:36]req_shift_open_date [12:34:36]req_shift_open_date done [12:34:36]produce_requested_data done [12:34:36]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82159,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [12:34:36]process_action_free close_receipt [12:34:36]json_value_free [12:34:36]json_value_free done [12:34:36]process_json_proto returns [12:34:36]Send response to host [12:34:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82159,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [12:34:36]free response buf [12:34:36]execute_script done [12:34:36]execute_script returns [12:34:36]free content buf [12:34:36]Sock 9.Close socket [12:34:36]Sock 9.Thread stoped [12:34:40]OFD Sender: No OFD packet to send [12:34:45]OFD Sender: No OFD packet to send [12:34:50]OFD Sender: No OFD packet to send [12:34:55]OFD Sender: No OFD packet to send [12:35:00]OFD Sender: No OFD packet to send [12:35:03]recv_with_timeout no data received [12:35:05]OFD Sender: No OFD packet to send [12:35:10]OFD Sender: No OFD packet to send [12:35:15]OFD Sender: No OFD packet to send [12:35:20]OFD Sender: No OFD packet to send [12:35:25]OFD Sender: No OFD packet to send [12:35:30]OFD Sender: No OFD packet to send [12:35:35]OFD Sender: No OFD packet to send [12:35:40]OFD Sender: No OFD packet to send [12:35:43]accept exits with 10 [12:35:43]New connection [12:35:43]New thread 3067145572 created [12:35:43]Thread 3067002212 joined [12:35:43]Waiting for new connection... [12:35:43] Sock 10.Parse request [12:35:43]Sock 10.Check first char [12:35:43]Sock 10.First char is OK [12:35:43]request: POST /json_proto HTTP/1.0 [12:35:43]Method: POST [12:35:43]URL: /json_proto [12:35:43]Method is POST - this is cgi request [12:35:43]url: /json_proto [12:35:43]query_string will be loaded in cgi processing [12:35:43]execute_cgi json_proto POST (null) [12:35:43]execute_cgi path=json_proto method=POST [12:35:43]POST find Content-Length [12:35:43]Host: 172.17.44.67:8080 [12:35:43]Content-Length: 797 [12:35:43]Content-Type: application/json [12:35:43] [12:35:43]POST finish read [12:35:43]Found Content-Length = 797 [12:35:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53322", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:43]execute_script... [12:35:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53322", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:43]POST & json_proto [12:35:43]process_json_proto [12:35:43]json parsed OK: [12:35:43]protocol is kg_v1.0 [12:35:43]action value=close_receipt [12:35:43]process_action close_receipt [12:35:43]cmd_close_receipt [12:35:43]MH_GetDate [12:35:43]Write to MH i2c: F0 00 00 EE 05 E2 [12:35:43]Write i2c OK [12:35:43]MH_I2C_Read... [12:35:43]Read from MH i2c: F0 [12:35:43]MH_I2C_Read... [12:35:43]Read from MH i2c: F0 09 00 [12:35:43]MH_I2C_Read... [12:35:43]Read from MH i2c: F0 09 00 EE 05 00 9F 04 11 67 F1 C7 6B 64 8D [12:35:43]GetLastDocTimeStamp 1729168472 [12:35:43]current date 1729168543 [12:35:43]FM_GetShiftState [12:35:43]SAM_PROTO_GetShiftState [12:35:43]wFMCommunicate request_size=4 [12:35:43]MH_SAM_APDU [12:35:43]CAPDU: 80 13 01 00 [12:35:43]Write to MH i2c: E2 08 00 EF 05 80 13 01 00 00 00 00 00 71 [12:35:43]Write i2c OK [12:35:43]MH_I2C_Read... [12:35:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:43]Read from MH i2c: E2 [12:35:43]MH_I2C_Read... [12:35:43]Read from MH i2c: E2 0E 00 [12:35:43]MH_I2C_Read... [12:35:43]Read from MH i2c: E2 0E 00 EF 05 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 79 [12:35:43]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [12:35:43]wFMCommunicate OK [12:35:43]SAM_PROTO_GetShiftState done [12:35:43]FM_GetShiftState done [12:35:43]opened in 1729125927 [12:35:43]opened+sec_in_day 1729212327 [12:35:43]quantity*price = 0 [12:35:43]sum+1 = 1 [12:35:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 86 17.10.2024 12:35 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливная Карта 53322 ФМ: 0000000000871843 ФД: 82160 ФПД: 132664901326458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T123543&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82160&fm=132664901326458&tin=02508201610067®Number=0000000000091680&sum=0 [12:35:44]StoreToDocumentArchive [12:35:44]shift 525 fd 82160 [12:35:44]save to /storage/0525/doc_00082160 [12:35:44]save last doc name /storage/0525/doc_00082160 to /storage/kkm_last_doc_name [12:35:44]save OK [12:35:44]Clear old archive folders... [12:35:44]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:35:44]tlvbuf is B6EF05D0 [12:35:44]SAM_PROTO_ClearQueue [12:35:44]wFMCommunicate request_size=4 [12:35:44]MH_SAM_APDU [12:35:44]CAPDU: 80 09 00 00 [12:35:44]Write to MH i2c: E2 08 00 FC 05 80 09 00 00 00 00 00 00 73 [12:35:44]Write i2c OK [12:35:44]MH_I2C_Read... [12:35:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:35:44]Read from MH i2c: E2 [12:35:44]MH_I2C_Read... [12:35:44]Read from MH i2c: E2 03 00 [12:35:44]MH_I2C_Read... [12:35:44]Read from MH i2c: E2 03 00 FC 05 00 90 00 75 [12:35:44]RAPDU: 90 00 [12:35:44]wFMCommunicate OK [12:35:44]SAM_PROTO_ClearQueue done [12:35:44]KKMCreateOFDPacket [12:35:44]OFDProtocolAddRootSTLVToBuf [12:35:44]FM_MakeSignedData [12:35:44]FM_MakeSignedData [12:35:44]SAM_PROTO_SignData [12:35:44]wFMCommunicate request_size=4 [12:35:44]MH_SAM_APDU [12:35:44]CAPDU: 80 0D 01 02 [12:35:44]Write to MH i2c: E2 08 00 FD 05 80 0D 01 02 00 00 00 00 7B [12:35:44]Write i2c OK [12:35:44]MH_I2C_Read... [12:35:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:35:44]Read from MH i2c: E2 [12:35:44]MH_I2C_Read... [12:35:44]Read from MH i2c: E2 03 00 [12:35:44]MH_I2C_Read... [12:35:44]Read from MH i2c: E2 03 00 FD 05 00 90 00 76 [12:35:44]RAPDU: 90 00 [12:35:44]wFMCommunicate OK [12:35:44]wFMCommunicate request_size=255 [12:35:44]MH_SAM_APDU [12:35:44]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 9F 04 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F0 40 01 00 35 04 06 00 [12:35:44]Write to MH i2c: E2 02 01 FE 05 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 9F 04 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F0 40 01 00 35 04 06 00 00 00 82 [12:35:44]Write i2c OK [12:35:44]MH_I2C_Read... [12:35:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:44]Read from MH i2c: E2 [12:35:44]MH_I2C_Read... [12:35:44]Read from MH i2c: E2 03 00 [12:35:44]MH_I2C_Read... [12:35:44]Read from MH i2c: E2 03 00 FE 05 00 90 00 77 [12:35:44]RAPDU: 90 00 [12:35:44]wFMCommunicate OK [12:35:44]wFMCommunicate request_size=11 [12:35:44]MH_SAM_APDU [12:35:44]CAPDU: 80 0D 02 02 06 78 A8 74 51 56 7A [12:35:44]Write to MH i2c: E2 0E 00 FF 05 80 0D 02 02 06 00 78 A8 74 51 56 7A 00 00 3F [12:35:44]Write i2c OK [12:35:44]MH_I2C_Read... [12:35:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:44]Read from MH i2c: E2 [12:35:44]MH_I2C_Read... [12:35:44]Read from MH i2c: E2 03 00 [12:35:44]MH_I2C_Read... [12:35:44]Read from MH i2c: E2 03 00 FF 05 00 90 00 78 [12:35:44]RAPDU: 90 00 [12:35:44]wFMCommunicate OK [12:35:44]wFMCommunicate request_size=4 [12:35:44]MH_SAM_APDU [12:35:44]CAPDU: 80 0D 03 02 [12:35:44]Write to MH i2c: E2 08 00 00 06 80 0D 03 02 00 00 00 00 81 [12:35:44]Write i2c OK [12:35:44]MH_I2C_Read... [12:35:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:35:44]Read from MH i2c: E2 [12:35:44]MH_I2C_Read... [12:35:44]Read from MH i2c: E2 0B 00 [12:35:44]MH_I2C_Read... [12:35:44]Read from MH i2c: E2 0B 00 00 06 00 58 6E BC 06 DD ED CB E6 90 00 85 [12:35:44]RAPDU: 58 6E BC 06 DD ED CB E6 90 00 [12:35:44]wFMCommunicate OK [12:35:44]SAM_PROTO_SignData done [12:35:44]FM_MakeSignedData done [12:35:44]CreateOFDProtocolMessage [12:35:44]wFMCommunicate request_size=4 [12:35:44]MH_SAM_APDU [12:35:44]CAPDU: 80 11 00 00 [12:35:44]Write to MH i2c: E2 08 00 01 06 80 11 00 00 00 00 00 00 81 [12:35:44]Write i2c OK [12:35:44]MH_I2C_Read... [12:35:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:44]Read from MH i2c: E2 [12:35:44]MH_I2C_Read... [12:35:44]Read from MH i2c: E2 17 00 [12:35:44]MH_I2C_Read... [12:35:44]Read from MH i2c: E2 17 00 01 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D3 [12:35:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:35:44]wFMCommunicate OK [12:35:44]CreateOFDProtocolMessage done [12:35:44]OFDSenderStorePacket 82160 [12:35:44]StoreOFDPacket docnum=82160 [12:35:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 CA 06 08 01 63 D4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 9F 04 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F0 40 01 00 35 04 06 00 78 A8 74 51 56 7A 58 6E BC 06 DD ED CB E6 [12:35:44]CheckFolder [12:35:44]dirname=/storage/ofd_packets [12:35:44]CheckFolder done [12:35:44]ProducePacketName [12:35:44]name=ofd_packets/00082160 [12:35:44]NVStorageSaveData ofd_packets/00082160 [12:35:44]File name is /storage/ofd_packets/00082160 [12:35:44]Write 302 bytes [12:35:44]NVStorageSaveData done [12:35:44]OFDSenderStorePacket done [12:35:44]KKMCreateOFDPacket done [12:35:44]NVStorageSaveData kkm_last_timestamp [12:35:44]File name is /storage/kkm_last_timestamp [12:35:44]Write 4 bytes [12:35:44]NVStorageSaveData done [12:35:44]ExternCall_PrintAddStr [12:35:44]wPrintStart [12:35:44]Write to MH i2c: 01 00 00 02 06 08 [12:35:44]Write i2c OK [12:35:44]MH_I2C_Read... [12:35:44]Read from MH i2c: 01 [12:35:44]MH_I2C_Read... [12:35:44]Read from MH i2c: 01 07 00 [12:35:44]MH_I2C_Read... [12:35:44]Read from MH i2c: 01 07 00 02 06 00 00 00 00 00 FF 0F 1D [12:35:44]RasterBufferAndPrint [12:35:44]line Счет N : (1)918664 [12:35:44]line ИНН: 02508201610067 [12:35:44]line Контрольно-Кассовый Чек [12:35:44]line ПРОДАЖА [12:35:44]line ТРК (МРК, ГНК) : 31 [12:35:44]line Товар: 2710194210 [12:35:44]line ДТ(л)-К-5 [12:35:44]line 50.000 * 0.00 [12:35:44]line = 0.00 [12:35:44]line НДС 12% НСП 1% [12:35:44]line > о реализуемом товаре [12:35:44]line ИТОГО: 0.00 [12:35:44]line НСП 1% : 0.00 [12:35:44]line НДС 12% : 0.00 [12:35:44]line Наличными: 0.00 [12:35:44]line Безнал.: 0.00 [12:35:44]line Место: АЗС № 114 "Партнер Нефть" [12:35:44]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:35:44]line СНО: Общий режим [12:35:44]line Чек 86 17.10.2024 12:35 [12:35:44]line Смена: 525 ФФД: 1.0 [12:35:44]line ЗНМ: 0300000086 [12:35:44]line РНМ: 0000000000091680 [12:35:44]line Версия ККМ: 001 [12:35:44]line Талоны: Топливная Карта [12:35:44]line 53322 [12:35:44]line ФМ: 0000000000871843 [12:35:44]line ФД: 82160 [12:35:44]line ФПД: 132664901326458 [12:35:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T123543&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82160&fm=132664901326458&tin=02508201610067®Number=0000000000091680&sum=0 [12:35:45]OFD Sender: Processing packet 82160 [packets to send 254, broken 253] [12:35:45]ProducePacketName [12:35:45]name=ofd_packets/00082160 [12:35:45]OFD Sender: To server: pG, [12:35:45]CommunicateWithHost lk.salyk.kg:30040 [12:35:45]ConnectInit lk.salyk.kg [12:35:45]written 0, free lines is 4095 [12:35:45]Write to MH i2c: 01 00 00 2C 06 32 [12:35:45]Write i2c OK [12:35:45]MH_I2C_Read... [12:35:45]Read from MH i2c: 01 [12:35:45]MH_I2C_Read... [12:35:45]Read from MH i2c: 01 07 00 [12:35:45]MH_I2C_Read... [12:35:45]Read from MH i2c: 01 07 00 2C 06 00 00 00 00 00 E6 0C 2B [12:35:45]RasterBufferAndPrint [12:35:45]line [12:35:45]line [12:35:45]line [12:35:45]line [12:35:45]line [12:35:45]written 0, free lines is 3306 [12:35:45]MH_Cut [12:35:45]Write to MH i2c: D1 01 00 33 06 01 0B [12:35:45]Write i2c OK [12:35:45]MH_I2C_Read... [12:35:45]Read from MH i2c: D1 [12:35:45]MH_I2C_Read... [12:35:45]Read from MH i2c: D1 01 00 [12:35:45]MH_I2C_Read... [12:35:45]Read from MH i2c: D1 01 00 33 06 00 0A [12:35:45]Write to MH i2c: 01 00 00 34 06 3A [12:35:45]Write i2c OK [12:35:45]MH_I2C_Read... [12:35:45]Connected sock=11 [12:35:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 CA 06 08 01 63 D4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 9F 04 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F0 40 01 00 35 04 06 00 78 A8 74 51 56 7A 58 6E BC 06 DD ED CB E6 [12:35:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 B9 8D 47 00 D0 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F0 40 01 00 F4 03 04 00 DE A9 10 67 B6 04 01 00 00 9C 99 C2 96 DC 9D E1 A8 [12:35:46]CommunicateWithHost err = 0 [12:35:46]CheckOFDResponse [12:35:46]1017 (14) - 77093643461234 [12:35:46]1041 (16) - 0000000000871843 [12:35:46]1040 (4) - 82160 [12:35:46]1012 (4) - 17.10.2024 06:08 [12:35:46]1206 (1) - 0 [12:35:46]OFD Sender: Remove packet 82160 [12:35:46]ProducePacketName [12:35:46]name=ofd_packets/00082160 [12:35:46]NVStorageDeleteData [12:35:46]*** Cut start [12:35:46]*** Partial cut [12:35:46]*** CUTSNS_PIN = 1 [12:35:46]*** CUTSNS_PIN = 0 [12:35:46]*** Brake cut motor [12:35:46]OFD Sender: No OFD packet to send [12:35:46]Read from MH i2c: 01 [12:35:46]MH_I2C_Read... [12:35:47]*** Stop cut motor [12:35:47]*** Cut end [12:35:47]Read from MH i2c: 01 07 00 [12:35:47]MH_I2C_Read... [12:35:47]Read from MH i2c: 01 07 00 34 06 00 00 00 00 00 FF 0F 4F [12:35:47]process_action close_receipt done [12:35:47]requested_data is exist [12:35:47]produce_requested_data [12:35:47]requested_item fm.sn is exist - process it [12:35:47]wFMCommunicate request_size=4 [12:35:47]MH_SAM_APDU [12:35:47]CAPDU: 80 11 00 00 [12:35:47]Write to MH i2c: E2 08 00 35 06 80 11 00 00 00 00 00 00 B5 [12:35:47]Write i2c OK [12:35:47]MH_I2C_Read... [12:35:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:47]Read from MH i2c: E2 [12:35:47]MH_I2C_Read... [12:35:47]Read from MH i2c: E2 17 00 [12:35:47]MH_I2C_Read... [12:35:47]Read from MH i2c: E2 17 00 35 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 07 [12:35:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:35:47]wFMCommunicate OK [12:35:47]requested_item fd.num is exist - process it [12:35:47]SAM_PROTO_GetFieldsCounters [12:35:47]wFMCommunicate request_size=4 [12:35:47]MH_SAM_APDU [12:35:47]CAPDU: 80 13 00 00 [12:35:47]Write to MH i2c: E2 08 00 36 06 80 13 00 00 00 00 00 00 B8 [12:35:47]Write i2c OK [12:35:47]MH_I2C_Read... [12:35:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:35:47]Read from MH i2c: E2 [12:35:47]MH_I2C_Read... [12:35:47]Read from MH i2c: E2 62 00 [12:35:47]MH_I2C_Read... [12:35:47]Read from MH i2c: E2 62 00 36 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F0 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [12:35:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F0 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:35:47]wFMCommunicate OK [12:35:47]SAM_PROTO_GetFieldsCounters done [12:35:47]requested_item shift.num is exist - process it [12:35:47]requested_item shift.opened is exist - process it [12:35:47]req_shift_opened [12:35:47]FM_GetShiftState [12:35:47]SAM_PROTO_GetShiftState [12:35:47]wFMCommunicate request_size=4 [12:35:47]MH_SAM_APDU [12:35:47]CAPDU: 80 13 01 00 [12:35:47]Write to MH i2c: E2 08 00 37 06 80 13 01 00 00 00 00 00 BA [12:35:47]Write i2c OK [12:35:47]MH_I2C_Read... [12:35:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:47]Read from MH i2c: E2 [12:35:47]MH_I2C_Read... [12:35:47]Read from MH i2c: E2 0E 00 [12:35:47]MH_I2C_Read... [12:35:47]Read from MH i2c: E2 0E 00 37 06 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 C2 [12:35:47]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [12:35:47]wFMCommunicate OK [12:35:47]SAM_PROTO_GetShiftState done [12:35:47]FM_GetShiftState done [12:35:47]req_shift_opened done [12:35:47]requested_item shift.open_date is exist - process it [12:35:47]req_shift_open_date [12:35:47]req_shift_open_date done [12:35:47]produce_requested_data done [12:35:47]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82160,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [12:35:47]process_action_free close_receipt [12:35:47]json_value_free [12:35:47]json_value_free done [12:35:47]process_json_proto returns [12:35:47]Send response to host [12:35:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82160,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [12:35:47]free response buf [12:35:47]execute_script done [12:35:47]execute_script returns [12:35:47]free content buf [12:35:47]Sock 10.Close socket [12:35:47]Sock 10.Thread stoped [12:35:49]recv_with_timeout no data received [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:02]OFD Sender: No OFD packet to send [12:39:07]OFD Sender: No OFD packet to send [12:39:12]OFD Sender: No OFD packet to send [12:39:17]OFD Sender: No OFD packet to send [12:39:22]OFD Sender: No OFD packet to send [12:39:27]OFD Sender: No OFD packet to send [12:39:32]OFD Sender: No OFD packet to send [12:39:37]OFD Sender: No OFD packet to send [12:39:42]OFD Sender: No OFD packet to send [12:39:47]OFD Sender: No OFD packet to send [12:39:52]OFD Sender: No OFD packet to send [12:39:57]OFD Sender: No OFD packet to send [12:40:02]OFD Sender: No OFD packet to send [12:40:07]OFD Sender: No OFD packet to send [12:40:12]OFD Sender: No OFD packet to send [12:40:17]OFD Sender: No OFD packet to send [12:40:22]OFD Sender: No OFD packet to send [12:40:27]OFD Sender: No OFD packet to send [12:40:32]OFD Sender: No OFD packet to send [12:40:37]OFD Sender: No OFD packet to send [12:40:42]OFD Sender: No OFD packet to send [12:40:47]OFD Sender: No OFD packet to send [12:40:52]OFD Sender: No OFD packet to send [12:40:57]OFD Sender: No OFD packet to send [12:41:02]OFD Sender: No OFD packet to send [12:41:07]OFD Sender: No OFD packet to send [12:41:12]OFD Sender: No OFD packet to send [12:41:17]OFD Sender: No OFD packet to send [12:41:22]OFD Sender: No OFD packet to send [12:41:27]OFD Sender: No OFD packet to send [12:41:32]OFD Sender: No OFD packet to send [12:41:37]OFD Sender: No OFD packet to send [12:41:42]OFD Sender: No OFD packet to send [12:41:47]OFD Sender: No OFD packet to send [12:41:52]OFD Sender: No OFD packet to send [12:41:57]OFD Sender: No OFD packet to send [12:42:02]OFD Sender: No OFD packet to send [12:42:07]OFD Sender: No OFD packet to send [12:42:12]OFD Sender: No OFD packet to send [12:42:17]OFD Sender: No OFD packet to send [12:42:22]OFD Sender: No OFD packet to send [12:42:27]OFD Sender: No OFD packet to send [12:42:32]OFD Sender: No OFD packet to send [12:42:37]OFD Sender: No OFD packet to send [12:42:42]OFD Sender: No OFD packet to send [12:42:47]OFD Sender: No OFD packet to send [12:42:52]OFD Sender: No OFD packet to send [12:42:57]OFD Sender: No OFD packet to send [12:43:02]OFD Sender: No OFD packet to send [12:43:07]OFD Sender: No OFD packet to send [12:43:12]OFD Sender: No OFD packet to send [12:43:17]OFD Sender: No OFD packet to send [12:43:18]recv_with_timeout no data received [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:09]accept exits with 7 [12:45:09]New connection [12:45:09]New thread 3067002212 created [12:45:09]Thread 3067145572 joined [12:45:09]Waiting for new connection... [12:45:09] Sock 7.Parse request [12:45:09]Sock 7.Check first char [12:45:09]Sock 7.First char is OK [12:45:09]request: POST /json_proto HTTP/1.0 [12:45:09]Method: POST [12:45:09]URL: /json_proto [12:45:09]Method is POST - this is cgi request [12:45:09]url: /json_proto [12:45:09]query_string will be loaded in cgi processing [12:45:09]execute_cgi json_proto POST (null) [12:45:09]execute_cgi path=json_proto method=POST [12:45:09]POST find Content-Length [12:45:09]Host: 172.17.44.67:8080 [12:45:09]Content-Length: 799 [12:45:09]Content-Type: application/json [12:45:09] [12:45:09]POST finish read [12:45:09]Found Content-Length = 799 [12:45:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4868715", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:09]execute_script... [12:45: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)918666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4868715", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:09]POST & json_proto [12:45:09]process_json_proto [12:45:09]json parsed OK: [12:45:09]protocol is kg_v1.0 [12:45:09]action value=close_receipt [12:45:09]process_action close_receipt [12:45:09]cmd_close_receipt [12:45:09]MH_GetDate [12:45:09]Write to MH i2c: F0 00 00 38 06 2D [12:45:09]Write i2c OK [12:45:09]MH_I2C_Read... [12:45:09]Read from MH i2c: F0 [12:45:09]MH_I2C_Read... [12:45:09]Read from MH i2c: F0 09 00 [12:45:09]MH_I2C_Read... [12:45:09]Read from MH i2c: F0 09 00 38 06 00 D5 06 11 67 F1 C7 6B 64 10 [12:45:09]GetLastDocTimeStamp 1729168543 [12:45:09]current date 1729169109 [12:45:09]FM_GetShiftState [12:45:09]SAM_PROTO_GetShiftState [12:45:09]wFMCommunicate request_size=4 [12:45:09]MH_SAM_APDU [12:45:09]CAPDU: 80 13 01 00 [12:45:09]Write to MH i2c: E2 08 00 39 06 80 13 01 00 00 00 00 00 BC [12:45:09]Write i2c OK [12:45:09]MH_I2C_Read... [12:45:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:09]Read from MH i2c: E2 [12:45:09]MH_I2C_Read... [12:45:09]Read from MH i2c: E2 0E 00 [12:45:09]MH_I2C_Read... [12:45:09]Read from MH i2c: E2 0E 00 39 06 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 C4 [12:45:09]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [12:45:09]wFMCommunicate OK [12:45:09]SAM_PROTO_GetShiftState done [12:45:09]FM_GetShiftState done [12:45:09]opened in 1729125927 [12:45:09]opened+sec_in_day 1729212327 [12:45:09]quantity*price = 0 [12:45:09]sum+1 = 1 [12:45:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 87 17.10.2024 12:45 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 4868715 ФМ: 0000000000871843 ФД: 82161 ФПД: 75982954096862 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T124509&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82161&fm=75982954096862&tin=02508201610067®Number=0000000000091680&sum=0 [12:45:10]StoreToDocumentArchive [12:45:10]shift 525 fd 82161 [12:45:10]save to /storage/0525/doc_00082161 [12:45:10]save last doc name /storage/0525/doc_00082161 to /storage/kkm_last_doc_name [12:45:10]save OK [12:45:10]Clear old archive folders... [12:45:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:45:10]tlvbuf is 01D02CE0 [12:45:10]SAM_PROTO_ClearQueue [12:45:10]wFMCommunicate request_size=4 [12:45:10]MH_SAM_APDU [12:45:10]CAPDU: 80 09 00 00 [12:45:10]Write to MH i2c: E2 08 00 46 06 80 09 00 00 00 00 00 00 BE [12:45:10]Write i2c OK [12:45:10]MH_I2C_Read... [12:45:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:45:10]Read from MH i2c: E2 [12:45:10]MH_I2C_Read... [12:45:10]Read from MH i2c: E2 03 00 [12:45:10]MH_I2C_Read... [12:45:10]Read from MH i2c: E2 03 00 46 06 00 90 00 C0 [12:45:10]RAPDU: 90 00 [12:45:10]wFMCommunicate OK [12:45:10]SAM_PROTO_ClearQueue done [12:45:10]KKMCreateOFDPacket [12:45:10]OFDProtocolAddRootSTLVToBuf [12:45:10]FM_MakeSignedData [12:45:10]FM_MakeSignedData [12:45:10]SAM_PROTO_SignData [12:45:10]wFMCommunicate request_size=4 [12:45:10]MH_SAM_APDU [12:45:10]CAPDU: 80 0D 01 02 [12:45:10]Write to MH i2c: E2 08 00 47 06 80 0D 01 02 00 00 00 00 C6 [12:45:10]Write i2c OK [12:45:10]MH_I2C_Read... [12:45:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:45:10]Read from MH i2c: E2 [12:45:10]MH_I2C_Read... [12:45:10]Read from MH i2c: E2 03 00 [12:45:10]MH_I2C_Read... [12:45:10]Read from MH i2c: E2 03 00 47 06 00 90 00 C1 [12:45:10]RAPDU: 90 00 [12:45:10]wFMCommunicate OK [12:45:10]wFMCommunicate request_size=255 [12:45:10]MH_SAM_APDU [12:45:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 D5 06 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F1 40 01 00 35 04 06 00 45 [12:45:10]Write to MH i2c: E2 02 01 48 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 D5 06 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F1 40 01 00 35 04 06 00 45 00 00 98 [12:45:10]Write i2c OK [12:45:10]MH_I2C_Read... [12:45:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:10]Read from MH i2c: E2 [12:45:10]MH_I2C_Read... [12:45:10]Read from MH i2c: E2 03 00 [12:45:10]MH_I2C_Read... [12:45:10]Read from MH i2c: E2 03 00 48 06 00 90 00 C2 [12:45:10]RAPDU: 90 00 [12:45:10]wFMCommunicate OK [12:45:10]wFMCommunicate request_size=10 [12:45:10]MH_SAM_APDU [12:45:10]CAPDU: 80 0D 02 02 05 1B 28 FC E8 DE [12:45:10]Write to MH i2c: E2 0D 00 49 06 80 0D 02 02 05 00 1B 28 FC E8 DE 00 00 D8 [12:45:10]Write i2c OK [12:45:10]MH_I2C_Read... [12:45:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:10]Read from MH i2c: E2 [12:45:10]MH_I2C_Read... [12:45:10]Read from MH i2c: E2 03 00 [12:45:10]MH_I2C_Read... [12:45:10]Read from MH i2c: E2 03 00 49 06 00 90 00 C3 [12:45:10]RAPDU: 90 00 [12:45:10]wFMCommunicate OK [12:45:10]wFMCommunicate request_size=4 [12:45:10]MH_SAM_APDU [12:45:10]CAPDU: 80 0D 03 02 [12:45:10]Write to MH i2c: E2 08 00 4A 06 80 0D 03 02 00 00 00 00 CB [12:45:10]Write i2c OK [12:45:10]MH_I2C_Read... [12:45:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:10]Read from MH i2c: E2 [12:45:10]MH_I2C_Read... [12:45:10]Read from MH i2c: E2 0B 00 [12:45:10]MH_I2C_Read... [12:45:10]Read from MH i2c: E2 0B 00 4A 06 00 E7 93 25 AE 52 60 84 4F 90 00 9E [12:45:10]RAPDU: E7 93 25 AE 52 60 84 4F 90 00 [12:45:10]wFMCommunicate OK [12:45:10]SAM_PROTO_SignData done [12:45:10]FM_MakeSignedData done [12:45:10]CreateOFDProtocolMessage [12:45:10]wFMCommunicate request_size=4 [12:45:10]MH_SAM_APDU [12:45:10]CAPDU: 80 11 00 00 [12:45:10]Write to MH i2c: E2 08 00 4B 06 80 11 00 00 00 00 00 00 CB [12:45:10]Write i2c OK [12:45:10]MH_I2C_Read... [12:45:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:10]Read from MH i2c: E2 [12:45:10]MH_I2C_Read... [12:45:10]Read from MH i2c: E2 17 00 [12:45:10]MH_I2C_Read... [12:45:10]Read from MH i2c: E2 17 00 4B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 1D [12:45:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:45:10]wFMCommunicate OK [12:45:10]CreateOFDProtocolMessage done [12:45:10]OFDSenderStorePacket 82161 [12:45:10]StoreOFDPacket docnum=82161 [12:45:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 B8 AD 07 01 DA 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 D5 06 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F1 40 01 00 35 04 06 00 45 1B 28 FC E8 DE E7 93 25 AE 52 60 84 4F [12:45:10]CheckFolder [12:45:10]dirname=/storage/ofd_packets [12:45:10]CheckFolder done [12:45:10]ProducePacketName [12:45:10]name=ofd_packets/00082161 [12:45:10]NVStorageSaveData ofd_packets/00082161 [12:45:10]File name is /storage/ofd_packets/00082161 [12:45:10]Write 301 bytes [12:45:10]NVStorageSaveData done [12:45:10]OFDSenderStorePacket done [12:45:10]KKMCreateOFDPacket done [12:45:10]NVStorageSaveData kkm_last_timestamp [12:45:10]File name is /storage/kkm_last_timestamp [12:45:10]Write 4 bytes [12:45:10]NVStorageSaveData done [12:45:10]ExternCall_PrintAddStr [12:45:10]wPrintStart [12:45:10]Write to MH i2c: 01 00 00 4C 06 52 [12:45:10]Write i2c OK [12:45:10]MH_I2C_Read... [12:45:10]Read from MH i2c: 01 [12:45:10]MH_I2C_Read... [12:45:10]Read from MH i2c: 01 07 00 [12:45:10]MH_I2C_Read... [12:45:10]Read from MH i2c: 01 07 00 4C 06 00 00 00 00 00 FF 0F 67 [12:45:10]RasterBufferAndPrint [12:45:10]line Счет N : (1)918666 [12:45:10]line ИНН: 02508201610067 [12:45:10]line Контрольно-Кассовый Чек [12:45:10]line ПРОДАЖА [12:45:10]line ТРК (МРК, ГНК) : 22 [12:45:10]line Товар: 2710124130 [12:45:10]line Аи-92-К-4 [12:45:10]line 5.000 * 0.00 [12:45:10]line = 0.00 [12:45:10]line НДС 12% НСП 1% [12:45:10]line > о реализуемом товаре [12:45:10]line ИТОГО: 0.00 [12:45:10]line НСП 1% : 0.00 [12:45:10]line НДС 12% : 0.00 [12:45:10]line Наличными: 0.00 [12:45:10]line Безнал.: 0.00 [12:45:10]line Место: АЗС № 114 "Партнер Нефть" [12:45:10]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:45:10]line СНО: Общий режим [12:45:10]line Чек 87 17.10.2024 12:45 [12:45:10]line Смена: 525 ФФД: 1.0 [12:45:10]line ЗНМ: 0300000086 [12:45:10]line РНМ: 0000000000091680 [12:45:10]line Версия ККМ: 001 [12:45:10]line Талоны: Топливные Талоны [12:45:10]line 4868715 [12:45:10]line ФМ: 0000000000871843 [12:45:10]line ФД: 82161 [12:45:10]line ФПД: 75982954096862 [12:45:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T124509&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82161&fm=75982954096862&tin=02508201610067®Number=0000000000091680&sum=0 [12:45:11]written 0, free lines is 4095 [12:45:11]OFD Sender: Processing packet 82161 [packets to send 254, broken 253] [12:45:11]ProducePacketName [12:45:11]name=ofd_packets/00082161 [12:45:11]OFD Sender: To server: pG, [12:45:11]CommunicateWithHost lk.salyk.kg:30040 [12:45:11]ConnectInit lk.salyk.kg [12:45:11]Write to MH i2c: 01 00 00 76 06 7C [12:45:11]Write i2c OK [12:45:11]MH_I2C_Read... [12:45:11]Read from MH i2c: 01 [12:45:11]MH_I2C_Read... [12:45:11]Read from MH i2c: 01 07 00 [12:45:11]MH_I2C_Read... [12:45:11]Read from MH i2c: 01 07 00 76 06 00 00 00 00 00 E2 0C 71 [12:45:11]RasterBufferAndPrint [12:45:11]line [12:45:11]line [12:45:11]line [12:45:11]line [12:45:11]line [12:45:11]written 0, free lines is 3304 [12:45:11]MH_Cut [12:45:11]Write to MH i2c: D1 01 00 7D 06 01 55 [12:45:11]Write i2c OK [12:45:11]MH_I2C_Read... [12:45:11]Read from MH i2c: D1 [12:45:11]MH_I2C_Read... [12:45:11]Read from MH i2c: D1 01 00 [12:45:11]MH_I2C_Read... [12:45:11]Read from MH i2c: D1 01 00 7D 06 00 54 [12:45:11]Write to MH i2c: 01 00 00 7E 06 84 [12:45:11]Write i2c OK [12:45:11]MH_I2C_Read... [12:45:11]Connected sock=11 [12:45:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 B8 AD 07 01 DA 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 D5 06 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F1 40 01 00 35 04 06 00 45 1B 28 FC E8 DE E7 93 25 AE 52 60 84 4F [12:45:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 4C F5 47 00 92 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F1 40 01 00 F4 03 04 00 13 AC 10 67 B6 04 01 00 00 44 33 F8 9E F5 7A FB 4D [12:45:12]CommunicateWithHost err = 0 [12:45:12]CheckOFDResponse [12:45:12]1017 (14) - 77093643461234 [12:45:12]1041 (16) - 0000000000871843 [12:45:12]1040 (4) - 82161 [12:45:12]1012 (4) - 17.10.2024 06:17 [12:45:12]1206 (1) - 0 [12:45:12]OFD Sender: Remove packet 82161 [12:45:12]ProducePacketName [12:45:12]name=ofd_packets/00082161 [12:45:12]NVStorageDeleteData [12:45:12]*** Cut start [12:45:12]*** Partial cut [12:45:12]*** CUTSNS_PIN = 1 [12:45:12]*** CUTSNS_PIN = 0 [12:45:12]OFD Sender: No OFD packet to send [12:45:12]*** Brake cut motor [12:45:12]Read from MH i2c: 01 [12:45:12]MH_I2C_Read... [12:45:12]*** Stop cut motor [12:45:12]*** Cut end [12:45:12]Read from MH i2c: 01 07 00 [12:45:12]MH_I2C_Read... [12:45:12]Read from MH i2c: 01 07 00 7E 06 00 00 00 00 00 FF 0F 99 [12:45:12]process_action close_receipt done [12:45:12]requested_data is exist [12:45:12]produce_requested_data [12:45:12]requested_item fm.sn is exist - process it [12:45:12]wFMCommunicate request_size=4 [12:45:12]MH_SAM_APDU [12:45:12]CAPDU: 80 11 00 00 [12:45:12]Write to MH i2c: E2 08 00 7F 06 80 11 00 00 00 00 00 00 FF [12:45:12]Write i2c OK [12:45:12]MH_I2C_Read... [12:45:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:12]Read from MH i2c: E2 [12:45:12]MH_I2C_Read... [12:45:12]Read from MH i2c: E2 17 00 [12:45:12]MH_I2C_Read... [12:45:12]Read from MH i2c: E2 17 00 7F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 51 [12:45:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:45:12]wFMCommunicate OK [12:45:12]requested_item fd.num is exist - process it [12:45:12]SAM_PROTO_GetFieldsCounters [12:45:12]wFMCommunicate request_size=4 [12:45:12]MH_SAM_APDU [12:45:12]CAPDU: 80 13 00 00 [12:45:12]Write to MH i2c: E2 08 00 80 06 80 13 00 00 00 00 00 00 02 [12:45:12]Write i2c OK [12:45:12]MH_I2C_Read... [12:45:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:13]Read from MH i2c: E2 [12:45:13]MH_I2C_Read... [12:45:13]Read from MH i2c: E2 62 00 [12:45:13]MH_I2C_Read... [12:45:13]Read from MH i2c: E2 62 00 80 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F1 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [12:45:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F1 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:45:13]wFMCommunicate OK [12:45:13]SAM_PROTO_GetFieldsCounters done [12:45:13]requested_item shift.num is exist - process it [12:45:13]requested_item shift.opened is exist - process it [12:45:13]req_shift_opened [12:45:13]FM_GetShiftState [12:45:13]SAM_PROTO_GetShiftState [12:45:13]wFMCommunicate request_size=4 [12:45:13]MH_SAM_APDU [12:45:13]CAPDU: 80 13 01 00 [12:45:13]Write to MH i2c: E2 08 00 81 06 80 13 01 00 00 00 00 00 04 [12:45:13]Write i2c OK [12:45:13]MH_I2C_Read... [12:45:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:13]Read from MH i2c: E2 [12:45:13]MH_I2C_Read... [12:45:13]Read from MH i2c: E2 0E 00 [12:45:13]MH_I2C_Read... [12:45:13]Read from MH i2c: E2 0E 00 81 06 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 0C [12:45:13]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [12:45:13]wFMCommunicate OK [12:45:13]SAM_PROTO_GetShiftState done [12:45:13]FM_GetShiftState done [12:45:13]req_shift_opened done [12:45:13]requested_item shift.open_date is exist - process it [12:45:13]req_shift_open_date [12:45:13]req_shift_open_date done [12:45:13]produce_requested_data done [12:45:13]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82161,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [12:45:13]process_action_free close_receipt [12:45:13]json_value_free [12:45:13]json_value_free done [12:45:13]process_json_proto returns [12:45:13]Send response to host [12:45:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82161,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [12:45:13]free response buf [12:45:13]execute_script done [12:45:13]execute_script returns [12:45:13]free content buf [12:45:13]Sock 7.Close socket [12:45:13]Sock 7.Thread stoped [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:03]OFD Sender: No OFD packet to send [12:50:08]OFD Sender: No OFD packet to send [12:50:13]OFD Sender: No OFD packet to send [12:50:18]OFD Sender: No OFD packet to send [12:50:23]OFD Sender: No OFD packet to send [12:50:28]OFD Sender: No OFD packet to send [12:50:33]OFD Sender: No OFD packet to send [12:50:38]OFD Sender: No OFD packet to send [12:50:43]OFD Sender: No OFD packet to send [12:50:48]OFD Sender: No OFD packet to send [12:50:53]OFD Sender: No OFD packet to send [12:50:58]OFD Sender: No OFD packet to send [12:51:03]OFD Sender: No OFD packet to send [12:51:08]OFD Sender: No OFD packet to send [12:51:13]OFD Sender: No OFD packet to send [12:51:18]OFD Sender: No OFD packet to send [12:51:22]accept exits with 9 [12:51:22]New connection [12:51:22]New thread 3067145572 created [12:51:22]Thread 3067002212 joined [12:51:22]Waiting for new connection... [12:51:22] Sock 9.Parse request [12:51:22]Sock 9.Check first char [12:51:22]Sock 9.First char is OK [12:51:22]request: POST /json_proto HTTP/1.0 [12:51:22]Method: POST [12:51:22]URL: /json_proto [12:51:22]Method is POST - this is cgi request [12:51:22]url: /json_proto [12:51:22]query_string will be loaded in cgi processing [12:51:22]execute_cgi json_proto POST (null) [12:51:22]execute_cgi path=json_proto method=POST [12:51:22]POST find Content-Length [12:51:22]Host: 172.17.44.67:8080 [12:51:22]Content-Length: 805 [12:51:22]Content-Type: application/json [12:51:22] [12:51:22]POST finish read [12:51:22]Found Content-Length = 805 [12:51:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4360466", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:22]execute_script... [12:51:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4360466", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:22]POST & json_proto [12:51:22]process_json_proto [12:51:22]json parsed OK: [12:51:22]protocol is kg_v1.0 [12:51:22]action value=close_receipt [12:51:22]process_action close_receipt [12:51:22]cmd_close_receipt [12:51:22]MH_GetDate [12:51:22]Write to MH i2c: F0 00 00 82 06 77 [12:51:22]Write i2c OK [12:51:22]MH_I2C_Read... [12:51:22]Read from MH i2c: F0 [12:51:22]MH_I2C_Read... [12:51:22]Read from MH i2c: F0 09 00 [12:51:22]MH_I2C_Read... [12:51:22]Read from MH i2c: F0 09 00 82 06 00 4A 08 11 67 F1 C7 6B 64 D1 [12:51:22]GetLastDocTimeStamp 1729169109 [12:51:22]current date 1729169482 [12:51:22]FM_GetShiftState [12:51:22]SAM_PROTO_GetShiftState [12:51:22]wFMCommunicate request_size=4 [12:51:22]MH_SAM_APDU [12:51:22]CAPDU: 80 13 01 00 [12:51:22]Write to MH i2c: E2 08 00 83 06 80 13 01 00 00 00 00 00 06 [12:51:22]Write i2c OK [12:51:22]MH_I2C_Read... [12:51:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:22]Read from MH i2c: E2 [12:51:22]MH_I2C_Read... [12:51:22]Read from MH i2c: E2 0E 00 [12:51:22]MH_I2C_Read... [12:51:22]Read from MH i2c: E2 0E 00 83 06 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 0E [12:51:22]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [12:51:22]wFMCommunicate OK [12:51:22]SAM_PROTO_GetShiftState done [12:51:22]FM_GetShiftState done [12:51:22]opened in 1729125927 [12:51:22]opened+sec_in_day 1729212327 [12:51:22]quantity*price = 0 [12:51:22]sum+1 = 1 [12:51:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 88 17.10.2024 12:51 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 4360466 ФМ: 0000000000871843 ФД: 82162 ФПД: 247857786499015 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T125122&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82162&fm=247857786499015&tin=02508201610067®Number=0000000000091680&sum=0 [12:51:23]StoreToDocumentArchive [12:51:23]shift 525 fd 82162 [12:51:23]save to /storage/0525/doc_00082162 [12:51:23]save last doc name /storage/0525/doc_00082162 to /storage/kkm_last_doc_name [12:51:23]save OK [12:51:23]Clear old archive folders... [12:51:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:51:23]tlvbuf is 01D208C0 [12:51:23]SAM_PROTO_ClearQueue [12:51:23]wFMCommunicate request_size=4 [12:51:23]MH_SAM_APDU [12:51:23]CAPDU: 80 09 00 00 [12:51:23]Write to MH i2c: E2 08 00 90 06 80 09 00 00 00 00 00 00 08 [12:51:23]Write i2c OK [12:51:23]MH_I2C_Read... [12:51:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:23]Read from MH i2c: E2 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 03 00 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 03 00 90 06 00 90 00 0A [12:51:23]RAPDU: 90 00 [12:51:23]wFMCommunicate OK [12:51:23]SAM_PROTO_ClearQueue done [12:51:23]KKMCreateOFDPacket [12:51:23]OFDProtocolAddRootSTLVToBuf [12:51:23]FM_MakeSignedData [12:51:23]FM_MakeSignedData [12:51:23]SAM_PROTO_SignData [12:51:23]wFMCommunicate request_size=4 [12:51:23]MH_SAM_APDU [12:51:23]CAPDU: 80 0D 01 02 [12:51:23]Write to MH i2c: E2 08 00 91 06 80 0D 01 02 00 00 00 00 10 [12:51:23]Write i2c OK [12:51:23]MH_I2C_Read... [12:51:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:23]Read from MH i2c: E2 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 03 00 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 03 00 91 06 00 90 00 0B [12:51:23]RAPDU: 90 00 [12:51:23]wFMCommunicate OK [12:51:23]wFMCommunicate request_size=255 [12:51:23]MH_SAM_APDU [12:51:23]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 4A 08 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F2 40 01 00 35 04 06 00 [12:51:23]Write to MH i2c: E2 02 01 92 06 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 4A 08 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F2 40 01 00 35 04 06 00 00 00 25 [12:51:23]Write i2c OK [12:51:23]MH_I2C_Read... [12:51:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:23]Read from MH i2c: E2 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 03 00 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 03 00 92 06 00 90 00 0C [12:51:23]RAPDU: 90 00 [12:51:23]wFMCommunicate OK [12:51:23]wFMCommunicate request_size=11 [12:51:23]MH_SAM_APDU [12:51:23]CAPDU: 80 0D 02 02 06 E1 6C E3 51 AF C7 [12:51:23]Write to MH i2c: E2 0E 00 93 06 80 0D 02 02 06 00 E1 6C E3 51 AF C7 00 00 16 [12:51:23]Write i2c OK [12:51:23]MH_I2C_Read... [12:51:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:23]Read from MH i2c: E2 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 03 00 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 03 00 93 06 00 90 00 0D [12:51:23]RAPDU: 90 00 [12:51:23]wFMCommunicate OK [12:51:23]wFMCommunicate request_size=4 [12:51:23]MH_SAM_APDU [12:51:23]CAPDU: 80 0D 03 02 [12:51:23]Write to MH i2c: E2 08 00 94 06 80 0D 03 02 00 00 00 00 15 [12:51:23]Write i2c OK [12:51:23]MH_I2C_Read... [12:51:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:23]Read from MH i2c: E2 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 0B 00 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 0B 00 94 06 00 8A 63 0C A9 18 12 D5 A4 90 00 5B [12:51:23]RAPDU: 8A 63 0C A9 18 12 D5 A4 90 00 [12:51:23]wFMCommunicate OK [12:51:23]SAM_PROTO_SignData done [12:51:23]FM_MakeSignedData done [12:51:23]CreateOFDProtocolMessage [12:51:23]wFMCommunicate request_size=4 [12:51:23]MH_SAM_APDU [12:51:23]CAPDU: 80 11 00 00 [12:51:23]Write to MH i2c: E2 08 00 95 06 80 11 00 00 00 00 00 00 15 [12:51:23]Write i2c OK [12:51:23]MH_I2C_Read... [12:51:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:23]Read from MH i2c: E2 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 17 00 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: E2 17 00 95 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 67 [12:51:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:51:23]wFMCommunicate OK [12:51:23]CreateOFDProtocolMessage done [12:51:23]OFDSenderStorePacket 82162 [12:51:23]StoreOFDPacket docnum=82162 [12:51:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 F7 9D 08 01 75 68 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 4A 08 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F2 40 01 00 35 04 06 00 E1 6C E3 51 AF C7 8A 63 0C A9 18 12 D5 A4 [12:51:23]CheckFolder [12:51:23]dirname=/storage/ofd_packets [12:51:23]CheckFolder done [12:51:23]ProducePacketName [12:51:23]name=ofd_packets/00082162 [12:51:23]NVStorageSaveData ofd_packets/00082162 [12:51:23]File name is /storage/ofd_packets/00082162 [12:51:23]Write 302 bytes [12:51:23]NVStorageSaveData done [12:51:23]OFDSenderStorePacket done [12:51:23]KKMCreateOFDPacket done [12:51:23]NVStorageSaveData kkm_last_timestamp [12:51:23]File name is /storage/kkm_last_timestamp [12:51:23]Write 4 bytes [12:51:23]NVStorageSaveData done [12:51:23]ExternCall_PrintAddStr [12:51:23]wPrintStart [12:51:23]Write to MH i2c: 01 00 00 96 06 9C [12:51:23]OFD Sender: Processing packet 82162 [packets to send 254, broken 253] [12:51:23]ProducePacketName [12:51:23]name=ofd_packets/00082162 [12:51:23]OFD Sender: To server: pG, [12:51:23]CommunicateWithHost lk.salyk.kg:30040 [12:51:23]ConnectInit lk.salyk.kg [12:51:23]Write i2c OK [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: 01 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: 01 07 00 [12:51:23]MH_I2C_Read... [12:51:23]Read from MH i2c: 01 07 00 96 06 00 00 00 00 00 FF 0F B1 [12:51:23]RasterBufferAndPrint [12:51:23]line Счет N : (1)918667 [12:51:23]line ИНН: 02508201610067 [12:51:23]line Контрольно-Кассовый Чек [12:51:23]line ПРОДАЖА [12:51:23]line ТРК (МРК, ГНК) : 31 [12:51:23]line Товар: 2710194210 [12:51:23]line ДТ(л)-К-5 [12:51:23]line 20.000 * 0.00 [12:51:23]line = 0.00 [12:51:23]line НДС 12% НСП 1% [12:51:23]line > о реализуемом товаре [12:51:23]line ИТОГО: 0.00 [12:51:23]line НСП 1% : 0.00 [12:51:23]line НДС 12% : 0.00 [12:51:23]line Наличными: 0.00 [12:51:23]line Безнал.: 0.00 [12:51:23]line Место: АЗС № 114 "Партнер Нефть" [12:51:23]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:51:23]line СНО: Общий режим [12:51:23]line Чек 88 17.10.2024 12:51 [12:51:23]line Смена: 525 ФФД: 1.0 [12:51:23]line ЗНМ: 0300000086 [12:51:23]line РНМ: 0000000000091680 [12:51:23]line Версия ККМ: 001 [12:51:23]line Талоны: Топливные Талоны [12:51:23]line 4360466 [12:51:23]line ФМ: 0000000000871843 [12:51:23]line ФД: 82162 [12:51:23]line ФПД: 247857786499015 [12:51:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T125122&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82162&fm=247857786499015&tin=02508201610067®Number=0000000000091680&sum=0 [12:51:23]written 0, free lines is 4095 [12:51:24]Write to MH i2c: 01 00 00 C0 06 C6 [12:51:24]Write i2c OK [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: 01 [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: 01 07 00 [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: 01 07 00 C0 06 00 00 00 00 00 EE 0C C7 [12:51:24]RasterBufferAndPrint [12:51:24]line [12:51:24]line [12:51:24]line [12:51:24]line [12:51:24]line [12:51:24]written 0, free lines is 3317 [12:51:24]MH_Cut [12:51:24]Write to MH i2c: D1 01 00 C7 06 01 9F [12:51:24]Write i2c OK [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: D1 [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: D1 01 00 [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: D1 01 00 C7 06 00 9E [12:51:24]Write to MH i2c: 01 00 00 C8 06 CE [12:51:24]Write i2c OK [12:51:24]MH_I2C_Read... [12:51:25]*** Cut start [12:51:25]*** Partial cut [12:51:25]*** CUTSNS_PIN = 1 [12:51:25]*** CUTSNS_PIN = 0 [12:51:25]*** Brake cut motor [12:51:25]Read from MH i2c: 01 [12:51:25]MH_I2C_Read... [12:51:25]*** Stop cut motor [12:51:25]*** Cut end [12:51:25]Read from MH i2c: 01 07 00 [12:51:25]MH_I2C_Read... [12:51:25]Read from MH i2c: 01 07 00 C8 06 00 00 00 00 00 FF 0F E3 [12:51:25]process_action close_receipt done [12:51:25]requested_data is exist [12:51:25]produce_requested_data [12:51:25]requested_item fm.sn is exist - process it [12:51:25]wFMCommunicate request_size=4 [12:51:25]MH_SAM_APDU [12:51:25]CAPDU: 80 11 00 00 [12:51:25]Write to MH i2c: E2 08 00 C9 06 80 11 00 00 00 00 00 00 49 [12:51:25]Write i2c OK [12:51:25]MH_I2C_Read... [12:51:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:25]Read from MH i2c: E2 [12:51:25]MH_I2C_Read... [12:51:25]Read from MH i2c: E2 17 00 [12:51:25]MH_I2C_Read... [12:51:25]Read from MH i2c: E2 17 00 C9 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 9B [12:51:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:51:25]wFMCommunicate OK [12:51:25]requested_item fd.num is exist - process it [12:51:25]SAM_PROTO_GetFieldsCounters [12:51:25]wFMCommunicate request_size=4 [12:51:25]MH_SAM_APDU [12:51:25]CAPDU: 80 13 00 00 [12:51:25]Write to MH i2c: E2 08 00 CA 06 80 13 00 00 00 00 00 00 4C [12:51:25]Write i2c OK [12:51:25]MH_I2C_Read... [12:51:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:25]Read from MH i2c: E2 [12:51:25]MH_I2C_Read... [12:51:25]Read from MH i2c: E2 62 00 [12:51:25]MH_I2C_Read... [12:51:25]Read from MH i2c: E2 62 00 CA 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F2 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [12:51:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F2 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:51:25]wFMCommunicate OK [12:51:25]SAM_PROTO_GetFieldsCounters done [12:51:25]requested_item shift.num is exist - process it [12:51:25]requested_item shift.opened is exist - process it [12:51:25]req_shift_opened [12:51:25]FM_GetShiftState [12:51:25]SAM_PROTO_GetShiftState [12:51:25]wFMCommunicate request_size=4 [12:51:25]MH_SAM_APDU [12:51:25]CAPDU: 80 13 01 00 [12:51:25]Write to MH i2c: E2 08 00 CB 06 80 13 01 00 00 00 00 00 4E [12:51:25]Write i2c OK [12:51:25]MH_I2C_Read... [12:51:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:26]Read from MH i2c: E2 [12:51:26]MH_I2C_Read... [12:51:26]Read from MH i2c: E2 0E 00 [12:51:26]MH_I2C_Read... [12:51:26]Read from MH i2c: E2 0E 00 CB 06 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 56 [12:51:26]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [12:51:26]wFMCommunicate OK [12:51:26]SAM_PROTO_GetShiftState done [12:51:26]FM_GetShiftState done [12:51:26]req_shift_opened done [12:51:26]requested_item shift.open_date is exist - process it [12:51:26]req_shift_open_date [12:51:26]req_shift_open_date done [12:51:26]produce_requested_data done [12:51:26]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82162,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [12:51:26]process_action_free close_receipt [12:51:26]json_value_free [12:51:26]json_value_free done [12:51:26]process_json_proto returns [12:51:26]Send response to host [12:51:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82162,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [12:51:26]free response buf [12:51:26]execute_script done [12:51:26]execute_script returns [12:51:26]free content buf [12:51:26]Sock 9.Close socket [12:51:26]Sock 9.Thread stoped [12:51:37]recv_with_timeout no data received [12:51:47]recv_with_timeout no data received [12:52:35]accept exits with 7 [12:52:35]New connection [12:52:35]New thread 3067002212 created [12:52:35]Thread 3067145572 joined [12:52:35]Waiting for new connection... [12:52:35] Sock 7.Parse request [12:52:35]Sock 7.Check first char [12:52:35]Sock 7.First char is OK [12:52:35]request: POST /json_proto HTTP/1.0 [12:52:35]Method: POST [12:52:35]URL: /json_proto [12:52:35]Method is POST - this is cgi request [12:52:35]url: /json_proto [12:52:35]query_string will be loaded in cgi processing [12:52:35]execute_cgi json_proto POST (null) [12:52:35]execute_cgi path=json_proto method=POST [12:52:35]POST find Content-Length [12:52:35]Host: 172.17.44.67:8080 [12:52:35]Content-Length: 754 [12:52:35]Content-Type: application/json [12:52:35] [12:52:35]POST finish read [12:52:35]Found Content-Length = 754 [12:52:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100665", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:35]execute_script... [12:52:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100665", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:35]POST & json_proto [12:52:35]process_json_proto [12:52:35]json parsed OK: [12:52:35]protocol is kg_v1.0 [12:52:35]action value=close_receipt [12:52:35]process_action close_receipt [12:52:35]cmd_close_receipt [12:52:35]MH_GetDate [12:52:35]Write to MH i2c: F0 00 00 CC 06 C1 [12:52:35]Write i2c OK [12:52:35]MH_I2C_Read... [12:52:35]Read from MH i2c: F0 [12:52:35]MH_I2C_Read... [12:52:35]Read from MH i2c: F0 09 00 [12:52:35]MH_I2C_Read... [12:52:35]Read from MH i2c: F0 09 00 CC 06 00 94 08 11 67 F1 C7 6B 64 65 [12:52:35]GetLastDocTimeStamp 1729169482 [12:52:35]current date 1729169556 [12:52:35]FM_GetShiftState [12:52:35]SAM_PROTO_GetShiftState [12:52:35]wFMCommunicate request_size=4 [12:52:35]MH_SAM_APDU [12:52:35]CAPDU: 80 13 01 00 [12:52:35]Write to MH i2c: E2 08 00 CD 06 80 13 01 00 00 00 00 00 50 [12:52:35]Write i2c OK [12:52:35]MH_I2C_Read... [12:52:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:35]Read from MH i2c: E2 [12:52:35]MH_I2C_Read... [12:52:35]Read from MH i2c: E2 0E 00 [12:52:35]MH_I2C_Read... [12:52:35]Read from MH i2c: E2 0E 00 CD 06 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 58 [12:52:35]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [12:52:35]wFMCommunicate OK [12:52:35]SAM_PROTO_GetShiftState done [12:52:35]FM_GetShiftState done [12:52:35]opened in 1729125927 [12:52:35]opened+sec_in_day 1729212327 [12:52:35]quantity*price = 0 [12:52:35]sum+1 = 1 [12:52:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 89 17.10.2024 12:52 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30100665 ФМ: 0000000000871843 ФД: 82163 ФПД: 74343718319608 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T125236&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82163&fm=74343718319608&tin=02508201610067®Number=0000000000091680&sum=0 [12:52:37]StoreToDocumentArchive [12:52:37]shift 525 fd 82163 [12:52:37]save to /storage/0525/doc_00082163 [12:52:37]save last doc name /storage/0525/doc_00082163 to /storage/kkm_last_doc_name [12:52:37]save OK [12:52:37]Clear old archive folders... [12:52:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:52:37]tlvbuf is 01D10950 [12:52:37]SAM_PROTO_ClearQueue [12:52:37]wFMCommunicate request_size=4 [12:52:37]MH_SAM_APDU [12:52:37]CAPDU: 80 09 00 00 [12:52:37]Write to MH i2c: E2 08 00 DA 06 80 09 00 00 00 00 00 00 52 [12:52:37]Write i2c OK [12:52:37]MH_I2C_Read... [12:52:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:37]Read from MH i2c: E2 [12:52:37]MH_I2C_Read... [12:52:37]Read from MH i2c: E2 03 00 [12:52:37]MH_I2C_Read... [12:52:37]Read from MH i2c: E2 03 00 DA 06 00 90 00 54 [12:52:37]RAPDU: 90 00 [12:52:37]wFMCommunicate OK [12:52:37]SAM_PROTO_ClearQueue done [12:52:37]KKMCreateOFDPacket [12:52:37]OFDProtocolAddRootSTLVToBuf [12:52:37]FM_MakeSignedData [12:52:37]FM_MakeSignedData [12:52:37]SAM_PROTO_SignData [12:52:37]wFMCommunicate request_size=4 [12:52:37]MH_SAM_APDU [12:52:37]CAPDU: 80 0D 01 02 [12:52:37]Write to MH i2c: E2 08 00 DB 06 80 0D 01 02 00 00 00 00 5A [12:52:37]Write i2c OK [12:52:37]MH_I2C_Read... [12:52:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:37]Read from MH i2c: E2 [12:52:37]MH_I2C_Read... [12:52:37]Read from MH i2c: E2 03 00 [12:52:37]MH_I2C_Read... [12:52:37]Read from MH i2c: E2 03 00 DB 06 00 90 00 55 [12:52:37]RAPDU: 90 00 [12:52:37]wFMCommunicate OK [12:52:37]wFMCommunicate request_size=255 [12:52:37]MH_SAM_APDU [12:52:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 94 08 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F3 40 01 00 35 04 06 00 43 [12:52:37]Write to MH i2c: E2 02 01 DC 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 94 08 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F3 40 01 00 35 04 06 00 43 00 00 C2 [12:52:37]Write i2c OK [12:52:37]MH_I2C_Read... [12:52:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:37]Read from MH i2c: E2 [12:52:37]MH_I2C_Read... [12:52:37]Read from MH i2c: E2 03 00 [12:52:37]MH_I2C_Read... [12:52:37]Read from MH i2c: E2 03 00 DC 06 00 90 00 56 [12:52:37]RAPDU: 90 00 [12:52:37]wFMCommunicate OK [12:52:37]wFMCommunicate request_size=10 [12:52:37]MH_SAM_APDU [12:52:37]CAPDU: 80 0D 02 02 05 9D 7E EB F5 F8 [12:52:37]Write to MH i2c: E2 0D 00 DD 06 80 0D 02 02 05 00 9D 7E EB F5 F8 00 00 5A [12:52:37]Write i2c OK [12:52:37]MH_I2C_Read... [12:52:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:37]Read from MH i2c: E2 [12:52:37]MH_I2C_Read... [12:52:37]Read from MH i2c: E2 03 00 [12:52:37]MH_I2C_Read... [12:52:37]Read from MH i2c: E2 03 00 DD 06 00 90 00 57 [12:52:37]RAPDU: 90 00 [12:52:37]wFMCommunicate OK [12:52:37]wFMCommunicate request_size=4 [12:52:37]MH_SAM_APDU [12:52:37]CAPDU: 80 0D 03 02 [12:52:37]Write to MH i2c: E2 08 00 DE 06 80 0D 03 02 00 00 00 00 5F [12:52:37]Write i2c OK [12:52:37]MH_I2C_Read... [12:52:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:37]Read from MH i2c: E2 [12:52:37]MH_I2C_Read... [12:52:37]Read from MH i2c: E2 0B 00 [12:52:37]MH_I2C_Read... [12:52:37]Read from MH i2c: E2 0B 00 DE 06 00 A8 A4 3F C0 1D EE 9E 0E 90 00 62 [12:52:37]RAPDU: A8 A4 3F C0 1D EE 9E 0E 90 00 [12:52:37]wFMCommunicate OK [12:52:37]SAM_PROTO_SignData done [12:52:37]FM_MakeSignedData done [12:52:37]CreateOFDProtocolMessage [12:52:37]wFMCommunicate request_size=4 [12:52:37]MH_SAM_APDU [12:52:37]CAPDU: 80 11 00 00 [12:52:37]Write to MH i2c: E2 08 00 DF 06 80 11 00 00 00 00 00 00 5F [12:52:37]Write i2c OK [12:52:37]MH_I2C_Read... [12:52:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:37]Read from MH i2c: E2 [12:52:37]MH_I2C_Read... [12:52:37]Read from MH i2c: E2 17 00 [12:52:37]MH_I2C_Read... [12:52:37]Read from MH i2c: E2 17 00 DF 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 B1 [12:52:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:52:37]wFMCommunicate OK [12:52:37]CreateOFDProtocolMessage done [12:52:37]OFDSenderStorePacket 82163 [12:52:37]StoreOFDPacket docnum=82163 [12:52:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 BC 8B 07 01 F4 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 94 08 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F3 40 01 00 35 04 06 00 43 9D 7E EB F5 F8 A8 A4 3F C0 1D EE 9E 0E [12:52:37]CheckFolder [12:52:37]dirname=/storage/ofd_packets [12:52:37]CheckFolder done [12:52:37]ProducePacketName [12:52:37]name=ofd_packets/00082163 [12:52:37]NVStorageSaveData ofd_packets/00082163 [12:52:37]File name is /storage/ofd_packets/00082163 [12:52:37]Write 301 bytes [12:52:37]NVStorageSaveData done [12:52:37]OFDSenderStorePacket done [12:52:37]KKMCreateOFDPacket done [12:52:37]NVStorageSaveData kkm_last_timestamp [12:52:37]File name is /storage/kkm_last_timestamp [12:52:37]Write 4 bytes [12:52:37]NVStorageSaveData done [12:52:37]ExternCall_PrintAddStr [12:52:37]wPrintStart [12:52:37]Write to MH i2c: 01 00 00 E0 06 E6 [12:52:37]Write i2c OK [12:52:37]MH_I2C_Read... [12:52:37]Read from MH i2c: 01 [12:52:37]MH_I2C_Read... [12:52:37]Read from MH i2c: 01 07 00 [12:52:37]MH_I2C_Read... [12:52:37]Read from MH i2c: 01 07 00 E0 06 00 00 00 00 00 FF 0F FB [12:52:37]RasterBufferAndPrint [12:52:37]line Счет N : (1)918668 [12:52:37]line ИНН: 02508201610067 [12:52:37]line Контрольно-Кассовый Чек [12:52:37]line ПРОДАЖА [12:52:37]line ТРК (МРК, ГНК) : 11 [12:52:37]line Товар: 2710124130 [12:52:37]line Аи-92-К-4 [12:52:37]line 20.000 * 0.00 [12:52:37]line = 0.00 [12:52:37]line НДС 12% НСП 1% [12:52:37]line > о реализуемом товаре [12:52:37]line ИТОГО: 0.00 [12:52:37]line НСП 1% : 0.00 [12:52:37]line НДС 12% : 0.00 [12:52:37]line Наличными: 0.00 [12:52:37]line Безнал.: 0.00 [12:52:37]line Место: АЗС № 114 "Партнер Нефть" [12:52:37]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:52:37]line СНО: Общий режим [12:52:37]line Чек 89 17.10.2024 12:52 [12:52:37]line Смена: 525 ФФД: 1.0 [12:52:37]line ЗНМ: 0300000086 [12:52:37]line РНМ: 0000000000091680 [12:52:37]line Версия ККМ: 001 [12:52:37]line Талоны: ТК ГПНА Online [12:52:37]line 30100665 [12:52:37]line ФМ: 0000000000871843 [12:52:37]line ФД: 82163 [12:52:37]line ФПД: 74343718319608 [12:52:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T125236&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82163&fm=74343718319608&tin=02508201610067®Number=0000000000091680&sum=0 [12:52:37]written 0, free lines is 4095 [12:52:38]Write to MH i2c: 01 00 00 0A 07 11 [12:52:38]Write i2c OK [12:52:38]MH_I2C_Read... [12:52:38]Read from MH i2c: 01 [12:52:38]MH_I2C_Read... [12:52:38]Read from MH i2c: 01 07 00 [12:52:38]MH_I2C_Read... [12:52:38]Read from MH i2c: 01 07 00 0A 07 00 00 00 00 00 E1 0C 05 [12:52:38]RasterBufferAndPrint [12:52:38]line [12:52:38]line [12:52:38]line [12:52:38]line [12:52:38]line [12:52:38]written 0, free lines is 3304 [12:52:38]MH_Cut [12:52:38]Write to MH i2c: D1 01 00 11 07 01 EA [12:52:38]Write i2c OK [12:52:38]MH_I2C_Read... [12:52:38]Read from MH i2c: D1 [12:52:38]MH_I2C_Read... [12:52:38]Read from MH i2c: D1 01 00 [12:52:38]MH_I2C_Read... [12:52:38]Read from MH i2c: D1 01 00 11 07 00 E9 [12:52:38]Write to MH i2c: 01 00 00 12 07 19 [12:52:38]Write i2c OK [12:52:38]MH_I2C_Read... [12:52:39]*** Cut start [12:52:39]*** Partial cut [12:52:39]*** CUTSNS_PIN = 1 [12:52:39]*** CUTSNS_PIN = 0 [12:52:39]*** Brake cut motor [12:52:39]Read from MH i2c: 01 [12:52:39]MH_I2C_Read... [12:52:39]*** Stop cut motor [12:52:39]*** Cut end [12:52:39]Read from MH i2c: 01 07 00 [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: 01 07 00 12 07 00 00 00 00 00 FF 0F 2E [12:52:39]process_action close_receipt done [12:52:39]requested_data is exist [12:52:39]produce_requested_data [12:52:39]requested_item fm.sn is exist - process it [12:52:39]wFMCommunicate request_size=4 [12:52:39]MH_SAM_APDU [12:52:39]CAPDU: 80 11 00 00 [12:52:39]Write to MH i2c: E2 08 00 13 07 80 11 00 00 00 00 00 00 94 [12:52:39]Write i2c OK [12:52:39]MH_I2C_Read... [12:52:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:39]Read from MH i2c: E2 [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: E2 17 00 [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: E2 17 00 13 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 E6 [12:52:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:52:39]wFMCommunicate OK [12:52:39]requested_item fd.num is exist - process it [12:52:39]SAM_PROTO_GetFieldsCounters [12:52:39]wFMCommunicate request_size=4 [12:52:39]MH_SAM_APDU [12:52:39]CAPDU: 80 13 00 00 [12:52:39]Write to MH i2c: E2 08 00 14 07 80 13 00 00 00 00 00 00 97 [12:52:39]Write i2c OK [12:52:39]MH_I2C_Read... [12:52:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:39]Read from MH i2c: E2 [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: E2 62 00 [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: E2 62 00 14 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F3 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [12:52:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F3 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:52:39]wFMCommunicate OK [12:52:39]SAM_PROTO_GetFieldsCounters done [12:52:39]requested_item shift.num is exist - process it [12:52:39]requested_item shift.opened is exist - process it [12:52:39]req_shift_opened [12:52:39]FM_GetShiftState [12:52:39]SAM_PROTO_GetShiftState [12:52:39]wFMCommunicate request_size=4 [12:52:39]MH_SAM_APDU [12:52:39]CAPDU: 80 13 01 00 [12:52:39]Write to MH i2c: E2 08 00 15 07 80 13 01 00 00 00 00 00 99 [12:52:39]Write i2c OK [12:52:39]MH_I2C_Read... [12:52:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:39]Read from MH i2c: E2 [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: E2 0E 00 [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: E2 0E 00 15 07 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 A1 [12:52:39]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [12:52:39]wFMCommunicate OK [12:52:39]SAM_PROTO_GetShiftState done [12:52:39]FM_GetShiftState done [12:52:39]req_shift_opened done [12:52:39]requested_item shift.open_date is exist - process it [12:52:39]req_shift_open_date [12:52:39]req_shift_open_date done [12:52:39]produce_requested_data done [12:52:39]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82163,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [12:52:39]process_action_free close_receipt [12:52:39]json_value_free [12:52:39]json_value_free done [12:52:39]process_json_proto returns [12:52:39]Send response to host [12:52:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82163,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [12:52:39]free response buf [12:52:39]execute_script done [12:52:39]execute_script returns [12:52:39]free content buf [12:52:39]Sock 7.Close socket [12:52:39]Sock 7.Thread stoped [12:52:53]recv_with_timeout no data received [12:53:04]recv_with_timeout no data received [12:53:34]ConnectInit Can't connect to host [12:53:34]CommunicateWithHost connect error [12:53:34]CommunicateWithHost err = -1 [12:53:34]OFD Sender: Server communicate error [12:53:34]OFD Sender: Processing packet 82162 [packets to send 255, broken 253] [12:53:34]ProducePacketName [12:53:34]name=ofd_packets/00082162 [12:53:34]OFD Sender: To server: pG, [12:53:34]CommunicateWithHost lk.salyk.kg:30040 [12:53:34]ConnectInit lk.salyk.kg [12:53:34]Connected sock=7 [12:53:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 F7 9D 08 01 75 68 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 4A 08 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F2 40 01 00 35 04 06 00 E1 6C E3 51 AF C7 8A 63 0C A9 18 12 D5 A4 [12:53:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 D0 B7 47 00 AC 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F2 40 01 00 F4 03 04 00 0A AE 10 67 B6 04 01 00 00 91 93 C3 4D 57 DD 53 5B [12:53:35]CommunicateWithHost err = 0 [12:53:35]CheckOFDResponse [12:53:35]1017 (14) - 77093643461234 [12:53:35]1041 (16) - 0000000000871843 [12:53:35]1040 (4) - 82162 [12:53:35]1012 (4) - 17.10.2024 06:26 [12:53:35]1206 (1) - 0 [12:53:35]OFD Sender: Remove packet 82162 [12:53:35]ProducePacketName [12:53:35]name=ofd_packets/00082162 [12:53:35]NVStorageDeleteData [12:53:35]OFD Sender: Processing packet 82163 [packets to send 254, broken 253] [12:53:35]ProducePacketName [12:53:35]name=ofd_packets/00082163 [12:53:35]OFD Sender: To server: pG, [12:53:35]CommunicateWithHost lk.salyk.kg:30040 [12:53:35]ConnectInit lk.salyk.kg [12:53:37]accept exits with 9 [12:53:37]New connection [12:53:37]New thread 3067145572 created [12:53:37]Thread 3067002212 joined [12:53:37]Waiting for new connection... [12:53:37] Sock 9.Parse request [12:53:37]Sock 9.Check first char [12:53:37]Sock 9.First char is OK [12:53:37]request: POST /json_proto HTTP/1.0 [12:53:37]Method: POST [12:53:37]URL: /json_proto [12:53:37]Method is POST - this is cgi request [12:53:37]url: /json_proto [12:53:37]query_string will be loaded in cgi processing [12:53:37]execute_cgi json_proto POST (null) [12:53:37]execute_cgi path=json_proto method=POST [12:53:37]POST find Content-Length [12:53:37]Host: 172.17.44.67:8080 [12:53:37]Content-Length: 677 [12:53:37]Content-Type: application/json [12:53:37] [12:53:37]POST finish read [12:53:37]Found Content-Length = 677 [12:53:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:37]execute_script... [12:53: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)918669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:37]POST & json_proto [12:53:37]process_json_proto [12:53:37]json parsed OK: [12:53:37]protocol is kg_v1.0 [12:53:37]action value=close_receipt [12:53:37]process_action close_receipt [12:53:37]cmd_close_receipt [12:53:37]MH_GetDate [12:53:37]Write to MH i2c: F0 00 00 16 07 0C [12:53:37]Write i2c OK [12:53:37]MH_I2C_Read... [12:53:37]Read from MH i2c: F0 [12:53:37]MH_I2C_Read... [12:53:37]Read from MH i2c: F0 09 00 [12:53:37]MH_I2C_Read... [12:53:37]Read from MH i2c: F0 09 00 16 07 00 D2 08 11 67 F1 C7 6B 64 EE [12:53:37]GetLastDocTimeStamp 1729169556 [12:53:37]current date 1729169618 [12:53:37]FM_GetShiftState [12:53:37]SAM_PROTO_GetShiftState [12:53:37]wFMCommunicate request_size=4 [12:53:37]MH_SAM_APDU [12:53:37]CAPDU: 80 13 01 00 [12:53:37]Write to MH i2c: E2 08 00 17 07 80 13 01 00 00 00 00 00 9B [12:53:37]Write i2c OK [12:53:37]MH_I2C_Read... [12:53:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:37]Read from MH i2c: E2 [12:53:37]MH_I2C_Read... [12:53:37]Read from MH i2c: E2 0E 00 [12:53:37]MH_I2C_Read... [12:53:37]Read from MH i2c: E2 0E 00 17 07 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 A3 [12:53:37]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [12:53:37]wFMCommunicate OK [12:53:37]SAM_PROTO_GetShiftState done [12:53:37]FM_GetShiftState done [12:53:37]opened in 1729125927 [12:53:37]opened+sec_in_day 1729212327 [12:53:37]quantity*price = 50041 [12:53:37]sum+1 = 50042 [12:53:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 90 17.10.2024 12:53 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82164 ФПД: 207043075649123 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T125338&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82164&fm=207043075649123&tin=02508201610067®Number=0000000000091680&sum=50000 [12:53:38]StoreToDocumentArchive [12:53:38]shift 525 fd 82164 [12:53:38]save to /storage/0525/doc_00082164 [12:53:38]save last doc name /storage/0525/doc_00082164 to /storage/kkm_last_doc_name [12:53:38]save OK [12:53:38]Clear old archive folders... [12:53:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:53:38]tlvbuf is 01D1FA60 [12:53:38]SAM_PROTO_ClearQueue [12:53:38]wFMCommunicate request_size=4 [12:53:38]MH_SAM_APDU [12:53:38]CAPDU: 80 09 00 00 [12:53:38]Write to MH i2c: E2 08 00 24 07 80 09 00 00 00 00 00 00 9D [12:53:38]Write i2c OK [12:53:38]MH_I2C_Read... [12:53:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:38]Read from MH i2c: E2 [12:53:38]MH_I2C_Read... [12:53:38]Read from MH i2c: E2 03 00 [12:53:38]MH_I2C_Read... [12:53:38]Read from MH i2c: E2 03 00 24 07 00 90 00 9F [12:53:38]RAPDU: 90 00 [12:53:38]wFMCommunicate OK [12:53:38]SAM_PROTO_ClearQueue done [12:53:38]KKMCreateOFDPacket [12:53:38]OFDProtocolAddRootSTLVToBuf [12:53:38]FM_MakeSignedData [12:53:38]FM_MakeSignedData [12:53:38]SAM_PROTO_SignData [12:53:38]wFMCommunicate request_size=4 [12:53:38]MH_SAM_APDU [12:53:38]CAPDU: 80 0D 01 02 [12:53:38]Write to MH i2c: E2 08 00 25 07 80 0D 01 02 00 00 00 00 A5 [12:53:38]Write i2c OK [12:53:38]MH_I2C_Read... [12:53:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:38]Read from MH i2c: E2 [12:53:38]MH_I2C_Read... [12:53:38]Read from MH i2c: E2 03 00 [12:53:38]MH_I2C_Read... [12:53:38]Read from MH i2c: E2 03 00 25 07 00 90 00 A0 [12:53:38]RAPDU: 90 00 [12:53:38]wFMCommunicate OK [12:53:38]wFMCommunicate request_size=255 [12:53:38]MH_SAM_APDU [12:53:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 D2 08 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F4 40 01 00 35 04 06 00 BC [12:53:38]Write to MH i2c: E2 02 01 26 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 D2 08 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F4 40 01 00 35 04 06 00 BC 00 00 DD [12:53:38]Write i2c OK [12:53:38]MH_I2C_Read... [12:53:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:39]Read from MH i2c: E2 [12:53:39]MH_I2C_Read... [12:53:39]Read from MH i2c: E2 03 00 [12:53:39]MH_I2C_Read... [12:53:39]Read from MH i2c: E2 03 00 26 07 00 90 00 A1 [12:53:39]RAPDU: 90 00 [12:53:39]wFMCommunicate OK [12:53:39]wFMCommunicate request_size=10 [12:53:39]MH_SAM_APDU [12:53:39]CAPDU: 80 0D 02 02 05 4D F8 FA 2E 63 [12:53:39]Write to MH i2c: E2 0D 00 27 07 80 0D 02 02 05 00 4D F8 FA 2E 63 00 00 82 [12:53:39]Write i2c OK [12:53:39]MH_I2C_Read... [12:53:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:39]Read from MH i2c: E2 [12:53:39]MH_I2C_Read... [12:53:39]Read from MH i2c: E2 03 00 [12:53:39]MH_I2C_Read... [12:53:39]Read from MH i2c: E2 03 00 27 07 00 90 00 A2 [12:53:39]RAPDU: 90 00 [12:53:39]wFMCommunicate OK [12:53:39]wFMCommunicate request_size=4 [12:53:39]MH_SAM_APDU [12:53:39]CAPDU: 80 0D 03 02 [12:53:39]Write to MH i2c: E2 08 00 28 07 80 0D 03 02 00 00 00 00 AA [12:53:39]Write i2c OK [12:53:39]MH_I2C_Read... [12:53:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:39]Read from MH i2c: E2 [12:53:39]MH_I2C_Read... [12:53:39]Read from MH i2c: E2 0B 00 [12:53:39]MH_I2C_Read... [12:53:39]Read from MH i2c: E2 0B 00 28 07 00 CD 9F 55 66 76 72 CF 80 90 00 09 [12:53:39]RAPDU: CD 9F 55 66 76 72 CF 80 90 00 [12:53:39]wFMCommunicate OK [12:53:39]SAM_PROTO_SignData done [12:53:39]FM_MakeSignedData done [12:53:39]CreateOFDProtocolMessage [12:53:39]wFMCommunicate request_size=4 [12:53:39]MH_SAM_APDU [12:53:39]CAPDU: 80 11 00 00 [12:53:39]Write to MH i2c: E2 08 00 29 07 80 11 00 00 00 00 00 00 AA [12:53:39]Write i2c OK [12:53:39]MH_I2C_Read... [12:53:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:39]Read from MH i2c: E2 [12:53:39]MH_I2C_Read... [12:53:39]Read from MH i2c: E2 17 00 [12:53:39]MH_I2C_Read... [12:53:39]Read from MH i2c: E2 17 00 29 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 FC [12:53:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:53:39]wFMCommunicate OK [12:53:39]CreateOFDProtocolMessage done [12:53:39]OFDSenderStorePacket 82164 [12:53:39]StoreOFDPacket docnum=82164 [12:53:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 4B 29 07 01 41 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 D2 08 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F4 40 01 00 35 04 06 00 BC 4D F8 FA 2E 63 CD 9F 55 66 76 72 CF 80 [12:53:39]CheckFolder [12:53:39]dirname=/storage/ofd_packets [12:53:39]CheckFolder done [12:53:39]ProducePacketName [12:53:39]name=ofd_packets/00082164 [12:53:39]NVStorageSaveData ofd_packets/00082164 [12:53:39]File name is /storage/ofd_packets/00082164 [12:53:39]Write 301 bytes [12:53:39]NVStorageSaveData done [12:53:39]OFDSenderStorePacket done [12:53:39]KKMCreateOFDPacket done [12:53:39]NVStorageSaveData kkm_last_timestamp [12:53:39]File name is /storage/kkm_last_timestamp [12:53:39]Write 4 bytes [12:53:39]NVStorageSaveData done [12:53:39]ExternCall_PrintAddStr [12:53:39]wPrintStart [12:53:39]Write to MH i2c: 01 00 00 2A 07 31 [12:53:39]Write i2c OK [12:53:39]MH_I2C_Read... [12:53:39]Read from MH i2c: 01 [12:53:39]MH_I2C_Read... [12:53:39]Read from MH i2c: 01 07 00 [12:53:39]MH_I2C_Read... [12:53:39]Read from MH i2c: 01 07 00 2A 07 00 00 00 00 00 FF 0F 46 [12:53:39]RasterBufferAndPrint [12:53:39]line Счет N : (1)918669 [12:53:39]line ИНН: 02508201610067 [12:53:39]line Контрольно-Кассовый Чек [12:53:39]line ПРОДАЖА [12:53:39]line ТРК (МРК, ГНК) : 22 [12:53:39]line Товар: 2710124130 [12:53:39]line Аи-92-К-4 [12:53:39]line 7.480 * 66.90 [12:53:39]line = 500.41 [12:53:39]line НДС 12% НСП 1% [12:53:39]line > о реализуемом товаре [12:53:39]line ОКРУГЛЕНИЕ: -0.41 [12:53:39]line ИТОГО: 500.00 [12:53:39]line Внесено: 500.00 [12:53:39]line СДАЧА: 0.00 [12:53:39]line НСП 1% : 4.43 [12:53:39]line НДС 12% : 53.14 [12:53:39]line Наличными: 500.00 [12:53:39]line Безнал.: 0.00 [12:53:39]line Место: АЗС № 114 "Партнер Нефть" [12:53:39]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:53:39]line СНО: Общий режим [12:53:39]line Чек 90 17.10.2024 12:53 [12:53:39]line Смена: 525 ФФД: 1.0 [12:53:39]line ЗНМ: 0300000086 [12:53:39]line РНМ: 0000000000091680 [12:53:39]line Версия ККМ: 001 [12:53:39]line ФМ: 0000000000871843 [12:53:39]line ФД: 82164 [12:53:39]line ФПД: 207043075649123 [12:53:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T125338&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82164&fm=207043075649123&tin=02508201610067®Number=0000000000091680&sum=50000 [12:53:39]written 0, free lines is 4095 [12:53:40]Write to MH i2c: 01 00 00 55 07 5C [12:53:40]Write i2c OK [12:53:40]MH_I2C_Read... [12:53:40]Read from MH i2c: 01 [12:53:40]MH_I2C_Read... [12:53:40]Read from MH i2c: 01 07 00 [12:53:40]MH_I2C_Read... [12:53:40]Read from MH i2c: 01 07 00 55 07 00 00 00 00 00 DC 0C 4B [12:53:40]RasterBufferAndPrint [12:53:40]line [12:53:40]line [12:53:40]line [12:53:40]line [12:53:40]line [12:53:40]written 0, free lines is 3298 [12:53:40]MH_Cut [12:53:40]Write to MH i2c: D1 01 00 5C 07 01 35 [12:53:40]Write i2c OK [12:53:40]MH_I2C_Read... [12:53:40]Read from MH i2c: D1 [12:53:40]MH_I2C_Read... [12:53:40]Read from MH i2c: D1 01 00 [12:53:40]MH_I2C_Read... [12:53:40]Read from MH i2c: D1 01 00 5C 07 00 34 [12:53:40]Write to MH i2c: 01 00 00 5D 07 64 [12:53:40]Write i2c OK [12:53:40]MH_I2C_Read... [12:53:40]*** Cut start [12:53:40]*** Partial cut [12:53:40]*** CUTSNS_PIN = 1 [12:53:40]*** CUTSNS_PIN = 0 [12:53:41]*** Brake cut motor [12:53:41]Read from MH i2c: 01 [12:53:41]MH_I2C_Read... [12:53:41]*** Stop cut motor [12:53:41]*** Cut end [12:53:41]Read from MH i2c: 01 07 00 [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: 01 07 00 5D 07 00 00 00 00 00 FF 0F 79 [12:53:41]process_action close_receipt done [12:53:41]requested_data is exist [12:53:41]produce_requested_data [12:53:41]requested_item fm.sn is exist - process it [12:53:41]wFMCommunicate request_size=4 [12:53:41]MH_SAM_APDU [12:53:41]CAPDU: 80 11 00 00 [12:53:41]Write to MH i2c: E2 08 00 5E 07 80 11 00 00 00 00 00 00 DF [12:53:41]Write i2c OK [12:53:41]MH_I2C_Read... [12:53:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:41]Read from MH i2c: E2 [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: E2 17 00 [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: E2 17 00 5E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 31 [12:53:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:53:41]wFMCommunicate OK [12:53:41]requested_item fd.num is exist - process it [12:53:41]SAM_PROTO_GetFieldsCounters [12:53:41]wFMCommunicate request_size=4 [12:53:41]MH_SAM_APDU [12:53:41]CAPDU: 80 13 00 00 [12:53:41]Write to MH i2c: E2 08 00 5F 07 80 13 00 00 00 00 00 00 E2 [12:53:41]Write i2c OK [12:53:41]MH_I2C_Read... [12:53:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:41]Read from MH i2c: E2 [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: E2 62 00 [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: E2 62 00 5F 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F4 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [12:53:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F4 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:53:41]wFMCommunicate OK [12:53:41]SAM_PROTO_GetFieldsCounters done [12:53:41]requested_item shift.num is exist - process it [12:53:41]requested_item shift.opened is exist - process it [12:53:41]req_shift_opened [12:53:41]FM_GetShiftState [12:53:41]SAM_PROTO_GetShiftState [12:53:41]wFMCommunicate request_size=4 [12:53:41]MH_SAM_APDU [12:53:41]CAPDU: 80 13 01 00 [12:53:41]Write to MH i2c: E2 08 00 60 07 80 13 01 00 00 00 00 00 E4 [12:53:41]Write i2c OK [12:53:41]MH_I2C_Read... [12:53:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:41]Read from MH i2c: E2 [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: E2 0E 00 [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: E2 0E 00 60 07 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 EC [12:53:41]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [12:53:41]wFMCommunicate OK [12:53:41]SAM_PROTO_GetShiftState done [12:53:41]FM_GetShiftState done [12:53:41]req_shift_opened done [12:53:41]requested_item shift.open_date is exist - process it [12:53:41]req_shift_open_date [12:53:41]req_shift_open_date done [12:53:41]produce_requested_data done [12:53:41]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82164,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [12:53:41]process_action_free close_receipt [12:53:41]json_value_free [12:53:41]json_value_free done [12:53:41]process_json_proto returns [12:53:41]Send response to host [12:53:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82164,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [12:53:41]free response buf [12:53:41]execute_script done [12:53:41]execute_script returns [12:53:41]free content buf [12:53:41]Sock 9.Close socket [12:53:41]Sock 9.Thread stoped [12:53:47]recv_with_timeout no data received [12:53:48]accept exits with 10 [12:53:48]New connection [12:53:48]New thread 3067002212 created [12:53:48]Thread 3067145572 joined [12:53:48]Waiting for new connection... [12:53:48] Sock 10.Parse request [12:53:48]Sock 10.Check first char [12:53:48]Sock 10.First char is OK [12:53:48]request: POST /json_proto HTTP/1.0 [12:53:48]Method: POST [12:53:48]URL: /json_proto [12:53:48]Method is POST - this is cgi request [12:53:48]url: /json_proto [12:53:48]query_string will be loaded in cgi processing [12:53:48]execute_cgi json_proto POST (null) [12:53:48]execute_cgi path=json_proto method=POST [12:53:48]POST find Content-Length [12:53:48]Host: 172.17.44.67:8080 [12:53:48]Content-Length: 792 [12:53:48]Content-Type: application/json [12:53:48] [12:53:48]POST finish read [12:53:48]Found Content-Length = 792 [12:53:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A81794", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:48]execute_script... [12:53:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A81794", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:48]POST & json_proto [12:53:48]process_json_proto [12:53:48]json parsed OK: [12:53:48]protocol is kg_v1.0 [12:53:48]action value=close_receipt [12:53:48]process_action close_receipt [12:53:48]cmd_close_receipt [12:53:48]MH_GetDate [12:53:48]Write to MH i2c: F0 00 00 61 07 57 [12:53:48]Write i2c OK [12:53:48]MH_I2C_Read... [12:53:48]Read from MH i2c: F0 [12:53:48]MH_I2C_Read... [12:53:48]Read from MH i2c: F0 09 00 [12:53:48]MH_I2C_Read... [12:53:48]Read from MH i2c: F0 09 00 61 07 00 DD 08 11 67 F1 C7 6B 64 44 [12:53:48]GetLastDocTimeStamp 1729169618 [12:53:48]current date 1729169629 [12:53:48]FM_GetShiftState [12:53:48]SAM_PROTO_GetShiftState [12:53:48]wFMCommunicate request_size=4 [12:53:48]MH_SAM_APDU [12:53:48]CAPDU: 80 13 01 00 [12:53:48]Write to MH i2c: E2 08 00 62 07 80 13 01 00 00 00 00 00 E6 [12:53:48]Write i2c OK [12:53:48]MH_I2C_Read... [12:53:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:48]Read from MH i2c: E2 [12:53:48]MH_I2C_Read... [12:53:48]Read from MH i2c: E2 0E 00 [12:53:48]MH_I2C_Read... [12:53:48]Read from MH i2c: E2 0E 00 62 07 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 EE [12:53:48]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [12:53:48]wFMCommunicate OK [12:53:48]SAM_PROTO_GetShiftState done [12:53:48]FM_GetShiftState done [12:53:48]opened in 1729125927 [12:53:48]opened+sec_in_day 1729212327 [12:53:48]quantity*price = 0 [12:53:48]sum+1 = 1 [12:53:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 91 17.10.2024 12:53 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливная Карта 81794 ФМ: 0000000000871843 ФД: 82165 ФПД: 264067660838257 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T125349&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82165&fm=264067660838257&tin=02508201610067®Number=0000000000091680&sum=0 [12:53:49]StoreToDocumentArchive [12:53:49]shift 525 fd 82165 [12:53:49]save to /storage/0525/doc_00082165 [12:53:49]save last doc name /storage/0525/doc_00082165 to /storage/kkm_last_doc_name [12:53:49]save OK [12:53:49]Clear old archive folders... [12:53:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:53:49]tlvbuf is 01D215C0 [12:53:49]SAM_PROTO_ClearQueue [12:53:49]wFMCommunicate request_size=4 [12:53:49]MH_SAM_APDU [12:53:49]CAPDU: 80 09 00 00 [12:53:49]Write to MH i2c: E2 08 00 6F 07 80 09 00 00 00 00 00 00 E8 [12:53:49]Write i2c OK [12:53:49]MH_I2C_Read... [12:53:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:49]Read from MH i2c: E2 [12:53:49]MH_I2C_Read... [12:53:49]Read from MH i2c: E2 03 00 [12:53:49]MH_I2C_Read... [12:53:49]Read from MH i2c: E2 03 00 6F 07 00 90 00 EA [12:53:49]RAPDU: 90 00 [12:53:49]wFMCommunicate OK [12:53:49]SAM_PROTO_ClearQueue done [12:53:49]KKMCreateOFDPacket [12:53:49]OFDProtocolAddRootSTLVToBuf [12:53:49]FM_MakeSignedData [12:53:49]FM_MakeSignedData [12:53:49]SAM_PROTO_SignData [12:53:49]wFMCommunicate request_size=4 [12:53:49]MH_SAM_APDU [12:53:49]CAPDU: 80 0D 01 02 [12:53:49]Write to MH i2c: E2 08 00 70 07 80 0D 01 02 00 00 00 00 F0 [12:53:49]Write i2c OK [12:53:49]MH_I2C_Read... [12:53:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:49]Read from MH i2c: E2 [12:53:49]MH_I2C_Read... [12:53:49]Read from MH i2c: E2 03 00 [12:53:49]MH_I2C_Read... [12:53:49]Read from MH i2c: E2 03 00 70 07 00 90 00 EB [12:53:49]RAPDU: 90 00 [12:53:49]wFMCommunicate OK [12:53:49]wFMCommunicate request_size=255 [12:53:49]MH_SAM_APDU [12:53:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 DD 08 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F5 40 01 00 35 04 06 00 F0 [12:53:49]Write to MH i2c: E2 02 01 71 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 DD 08 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F5 40 01 00 35 04 06 00 F0 00 00 B6 [12:53:49]Write i2c OK [12:53:49]MH_I2C_Read... [12:53:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:50]Read from MH i2c: E2 [12:53:50]MH_I2C_Read... [12:53:50]Read from MH i2c: E2 03 00 [12:53:50]MH_I2C_Read... [12:53:50]Read from MH i2c: E2 03 00 71 07 00 90 00 EC [12:53:50]RAPDU: 90 00 [12:53:50]wFMCommunicate OK [12:53:50]wFMCommunicate request_size=10 [12:53:50]MH_SAM_APDU [12:53:50]CAPDU: 80 0D 02 02 05 2B 0B 1E F5 71 [12:53:50]Write to MH i2c: E2 0D 00 72 07 80 0D 02 02 05 00 2B 0B 1E F5 71 00 00 B7 [12:53:50]Write i2c OK [12:53:50]MH_I2C_Read... [12:53:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:50]Read from MH i2c: E2 [12:53:50]MH_I2C_Read... [12:53:50]Read from MH i2c: E2 03 00 [12:53:50]MH_I2C_Read... [12:53:50]Read from MH i2c: E2 03 00 72 07 00 90 00 ED [12:53:50]RAPDU: 90 00 [12:53:50]wFMCommunicate OK [12:53:50]wFMCommunicate request_size=4 [12:53:50]MH_SAM_APDU [12:53:50]CAPDU: 80 0D 03 02 [12:53:50]Write to MH i2c: E2 08 00 73 07 80 0D 03 02 00 00 00 00 F5 [12:53:50]Write i2c OK [12:53:50]MH_I2C_Read... [12:53:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:50]Read from MH i2c: E2 [12:53:50]MH_I2C_Read... [12:53:50]Read from MH i2c: E2 0B 00 [12:53:50]MH_I2C_Read... [12:53:50]Read from MH i2c: E2 0B 00 73 07 00 52 B1 C0 28 4E C9 B1 C8 90 00 71 [12:53:50]RAPDU: 52 B1 C0 28 4E C9 B1 C8 90 00 [12:53:50]wFMCommunicate OK [12:53:50]SAM_PROTO_SignData done [12:53:50]FM_MakeSignedData done [12:53:50]CreateOFDProtocolMessage [12:53:50]wFMCommunicate request_size=4 [12:53:50]MH_SAM_APDU [12:53:50]CAPDU: 80 11 00 00 [12:53:50]Write to MH i2c: E2 08 00 74 07 80 11 00 00 00 00 00 00 F5 [12:53:50]Write i2c OK [12:53:50]MH_I2C_Read... [12:53:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:50]Read from MH i2c: E2 [12:53:50]MH_I2C_Read... [12:53:50]Read from MH i2c: E2 17 00 [12:53:50]MH_I2C_Read... [12:53:50]Read from MH i2c: E2 17 00 74 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 47 [12:53:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:53:50]wFMCommunicate OK [12:53:50]CreateOFDProtocolMessage done [12:53:50]OFDSenderStorePacket 82165 [12:53:50]StoreOFDPacket docnum=82165 [12:53:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 98 F5 07 01 E5 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 DD 08 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F5 40 01 00 35 04 06 00 F0 2B 0B 1E F5 71 52 B1 C0 28 4E C9 B1 C8 [12:53:50]CheckFolder [12:53:50]dirname=/storage/ofd_packets [12:53:50]CheckFolder done [12:53:50]ProducePacketName [12:53:50]name=ofd_packets/00082165 [12:53:50]NVStorageSaveData ofd_packets/00082165 [12:53:50]File name is /storage/ofd_packets/00082165 [12:53:50]Write 301 bytes [12:53:50]NVStorageSaveData done [12:53:50]OFDSenderStorePacket done [12:53:50]KKMCreateOFDPacket done [12:53:50]NVStorageSaveData kkm_last_timestamp [12:53:50]File name is /storage/kkm_last_timestamp [12:53:50]Write 4 bytes [12:53:50]NVStorageSaveData done [12:53:50]ExternCall_PrintAddStr [12:53:50]wPrintStart [12:53:50]Write to MH i2c: 01 00 00 75 07 7C [12:53:50]Write i2c OK [12:53:50]MH_I2C_Read... [12:53:50]Read from MH i2c: 01 [12:53:50]MH_I2C_Read... [12:53:50]Read from MH i2c: 01 07 00 [12:53:50]MH_I2C_Read... [12:53:50]Read from MH i2c: 01 07 00 75 07 00 00 00 00 00 FF 0F 91 [12:53:50]RasterBufferAndPrint [12:53:50]line Счет N : (1)918670 [12:53:50]line ИНН: 02508201610067 [12:53:50]line Контрольно-Кассовый Чек [12:53:50]line ПРОДАЖА [12:53:50]line ТРК (МРК, ГНК) : 11 [12:53:50]line Товар: 2710124130 [12:53:50]line Аи-92-К-4 [12:53:50]line 15.000 * 0.00 [12:53:50]line = 0.00 [12:53:50]line НДС 12% НСП 1% [12:53:50]line > о реализуемом товаре [12:53:50]line ИТОГО: 0.00 [12:53:50]line НСП 1% : 0.00 [12:53:50]line НДС 12% : 0.00 [12:53:50]line Наличными: 0.00 [12:53:50]line Безнал.: 0.00 [12:53:50]line Место: АЗС № 114 "Партнер Нефть" [12:53:50]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:53:50]line СНО: Общий режим [12:53:50]line Чек 91 17.10.2024 12:53 [12:53:50]line Смена: 525 ФФД: 1.0 [12:53:50]line ЗНМ: 0300000086 [12:53:50]line РНМ: 0000000000091680 [12:53:50]line Версия ККМ: 001 [12:53:50]line Талоны: Топливная Карта [12:53:50]line 81794 [12:53:50]line ФМ: 0000000000871843 [12:53:50]line ФД: 82165 [12:53:50]line ФПД: 264067660838257 [12:53:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T125349&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82165&fm=264067660838257&tin=02508201610067®Number=0000000000091680&sum=0 [12:53:50]written 0, free lines is 4095 [12:53:50]Write to MH i2c: 01 00 00 9F 07 A6 [12:53:50]Write i2c OK [12:53:50]MH_I2C_Read... [12:53:50]Read from MH i2c: 01 [12:53:50]MH_I2C_Read... [12:53:50]Read from MH i2c: 01 07 00 [12:53:50]MH_I2C_Read... [12:53:50]Read from MH i2c: 01 07 00 9F 07 00 00 00 00 00 E5 0C 9E [12:53:50]RasterBufferAndPrint [12:53:50]line [12:53:50]line [12:53:50]line [12:53:50]line [12:53:50]line [12:53:50]written 0, free lines is 3314 [12:53:50]MH_Cut [12:53:50]Write to MH i2c: D1 01 00 A6 07 01 7F [12:53:50]Write i2c OK [12:53:50]MH_I2C_Read... [12:53:50]Read from MH i2c: D1 [12:53:50]MH_I2C_Read... [12:53:50]Read from MH i2c: D1 01 00 [12:53:50]MH_I2C_Read... [12:53:50]Read from MH i2c: D1 01 00 A6 07 00 7E [12:53:50]Write to MH i2c: 01 00 00 A7 07 AE [12:53:50]Write i2c OK [12:53:50]MH_I2C_Read... [12:53:51]*** Cut start [12:53:51]*** Partial cut [12:53:51]*** CUTSNS_PIN = 1 [12:53:51]*** CUTSNS_PIN = 0 [12:53:51]*** Brake cut motor [12:53:52]Read from MH i2c: 01 [12:53:52]MH_I2C_Read... [12:53:52]*** Stop cut motor [12:53:52]*** Cut end [12:53:52]Read from MH i2c: 01 07 00 [12:53:52]MH_I2C_Read... [12:53:52]Read from MH i2c: 01 07 00 A7 07 00 00 00 00 00 FF 0F C3 [12:53:52]process_action close_receipt done [12:53:52]requested_data is exist [12:53:52]produce_requested_data [12:53:52]requested_item fm.sn is exist - process it [12:53:52]wFMCommunicate request_size=4 [12:53:52]MH_SAM_APDU [12:53:52]CAPDU: 80 11 00 00 [12:53:52]Write to MH i2c: E2 08 00 A8 07 80 11 00 00 00 00 00 00 29 [12:53:52]Write i2c OK [12:53:52]MH_I2C_Read... [12:53:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:52]Read from MH i2c: E2 [12:53:52]MH_I2C_Read... [12:53:52]Read from MH i2c: E2 17 00 [12:53:52]MH_I2C_Read... [12:53:52]Read from MH i2c: E2 17 00 A8 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 7B [12:53:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:53:52]wFMCommunicate OK [12:53:52]requested_item fd.num is exist - process it [12:53:52]SAM_PROTO_GetFieldsCounters [12:53:52]wFMCommunicate request_size=4 [12:53:52]MH_SAM_APDU [12:53:52]CAPDU: 80 13 00 00 [12:53:52]Write to MH i2c: E2 08 00 A9 07 80 13 00 00 00 00 00 00 2C [12:53:52]Write i2c OK [12:53:52]MH_I2C_Read... [12:53:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:52]Read from MH i2c: E2 [12:53:52]MH_I2C_Read... [12:53:52]Read from MH i2c: E2 62 00 [12:53:52]MH_I2C_Read... [12:53:52]Read from MH i2c: E2 62 00 A9 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F5 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [12:53:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F5 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:53:52]wFMCommunicate OK [12:53:52]SAM_PROTO_GetFieldsCounters done [12:53:52]requested_item shift.num is exist - process it [12:53:52]requested_item shift.opened is exist - process it [12:53:52]req_shift_opened [12:53:52]FM_GetShiftState [12:53:52]SAM_PROTO_GetShiftState [12:53:52]wFMCommunicate request_size=4 [12:53:52]MH_SAM_APDU [12:53:52]CAPDU: 80 13 01 00 [12:53:52]Write to MH i2c: E2 08 00 AA 07 80 13 01 00 00 00 00 00 2E [12:53:52]Write i2c OK [12:53:52]MH_I2C_Read... [12:53:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:52]Read from MH i2c: E2 [12:53:52]MH_I2C_Read... [12:53:52]Read from MH i2c: E2 0E 00 [12:53:52]MH_I2C_Read... [12:53:52]Read from MH i2c: E2 0E 00 AA 07 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 36 [12:53:52]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [12:53:52]wFMCommunicate OK [12:53:52]SAM_PROTO_GetShiftState done [12:53:52]FM_GetShiftState done [12:53:52]req_shift_opened done [12:53:52]requested_item shift.open_date is exist - process it [12:53:52]req_shift_open_date [12:53:52]req_shift_open_date done [12:53:52]produce_requested_data done [12:53:52]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82165,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [12:53:52]process_action_free close_receipt [12:53:52]json_value_free [12:53:52]json_value_free done [12:53:52]process_json_proto returns [12:53:52]Send response to host [12:53:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82165,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [12:53:52]free response buf [12:53:52]execute_script done [12:53:52]execute_script returns [12:53:52]free content buf [12:53:52]Sock 10.Close socket [12:53:52]Sock 10.Thread stoped [12:54:06]recv_with_timeout no data received [12:54:17]recv_with_timeout no data received [12:55:47]ConnectInit Can't connect to host [12:55:47]CommunicateWithHost connect error [12:55:47]CommunicateWithHost err = -1 [12:55:47]OFD Sender: Server communicate error [12:55:47]OFD Sender: Processing packet 82163 [packets to send 256, broken 253] [12:55:47]ProducePacketName [12:55:47]name=ofd_packets/00082163 [12:55:47]OFD Sender: To server: pG, [12:55:47]CommunicateWithHost lk.salyk.kg:30040 [12:55:47]ConnectInit lk.salyk.kg [12:55:47]Connected sock=7 [12:55:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 BC 8B 07 01 F4 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 94 08 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F3 40 01 00 35 04 06 00 43 9D 7E EB F5 F8 A8 A4 3F C0 1D EE 9E 0E [12:55:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 AA B3 47 00 53 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F3 40 01 00 F4 03 04 00 90 AE 10 67 B6 04 01 00 00 0B D6 E5 2E AA 95 80 97 [12:55:49]CommunicateWithHost err = 0 [12:55:49]CheckOFDResponse [12:55:49]1017 (14) - 77093643461234 [12:55:49]1041 (16) - 0000000000871843 [12:55:49]1040 (4) - 82163 [12:55:49]1012 (4) - 17.10.2024 06:28 [12:55:49]1206 (1) - 0 [12:55:49]OFD Sender: Remove packet 82163 [12:55:49]ProducePacketName [12:55:49]name=ofd_packets/00082163 [12:55:49]NVStorageDeleteData [12:55:49]OFD Sender: Processing packet 82164 [packets to send 255, broken 253] [12:55:49]ProducePacketName [12:55:49]name=ofd_packets/00082164 [12:55:49]OFD Sender: To server: pG, [12:55:49]CommunicateWithHost lk.salyk.kg:30040 [12:55:49]ConnectInit lk.salyk.kg [12:55:50]Connected sock=7 [12:55:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 4B 29 07 01 41 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 D2 08 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F4 40 01 00 35 04 06 00 BC 4D F8 FA 2E 63 CD 9F 55 66 76 72 CF 80 [12:55:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 AE C0 47 00 92 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F4 40 01 00 F4 03 04 00 92 AE 10 67 B6 04 01 00 00 BD FE 99 EF 40 99 83 97 [12:55:50]CommunicateWithHost err = 0 [12:55:50]CheckOFDResponse [12:55:50]1017 (14) - 77093643461234 [12:55:50]1041 (16) - 0000000000871843 [12:55:50]1040 (4) - 82164 [12:55:50]1012 (4) - 17.10.2024 06:28 [12:55:50]1206 (1) - 0 [12:55:50]OFD Sender: Remove packet 82164 [12:55:50]ProducePacketName [12:55:50]name=ofd_packets/00082164 [12:55:50]NVStorageDeleteData [12:55:51]OFD Sender: Processing packet 82165 [packets to send 254, broken 253] [12:55:51]ProducePacketName [12:55:51]name=ofd_packets/00082165 [12:55:51]OFD Sender: To server: pG, [12:55:51]CommunicateWithHost lk.salyk.kg:30040 [12:55:51]ConnectInit lk.salyk.kg [12:55:51]Connected sock=7 [12:55:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 98 F5 07 01 E5 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 DD 08 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F5 40 01 00 35 04 06 00 F0 2B 0B 1E F5 71 52 B1 C0 28 4E C9 B1 C8 [12:55:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 59 07 47 00 97 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F5 40 01 00 F4 03 04 00 94 AE 10 67 B6 04 01 00 00 52 E1 5C 97 C8 2B 60 72 [12:55:52]CommunicateWithHost err = 0 [12:55:52]CheckOFDResponse [12:55:52]1017 (14) - 77093643461234 [12:55:52]1041 (16) - 0000000000871843 [12:55:52]1040 (4) - 82165 [12:55:52]1012 (4) - 17.10.2024 06:28 [12:55:52]1206 (1) - 0 [12:55:52]OFD Sender: Remove packet 82165 [12:55:52]ProducePacketName [12:55:52]name=ofd_packets/00082165 [12:55:52]NVStorageDeleteData [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:23]OFD Sender: No OFD packet to send [12:58:28]OFD Sender: No OFD packet to send [12:58:33]OFD Sender: No OFD packet to send [12:58:38]OFD Sender: No OFD packet to send [12:58:43]OFD Sender: No OFD packet to send [12:58:48]OFD Sender: No OFD packet to send [12:58:53]OFD Sender: No OFD packet to send [12:58:58]OFD Sender: No OFD packet to send [12:59:03]OFD Sender: No OFD packet to send [12:59:08]OFD Sender: No OFD packet to send [12:59:13]OFD Sender: No OFD packet to send [12:59:18]OFD Sender: No OFD packet to send [12:59:23]OFD Sender: No OFD packet to send [12:59:28]OFD Sender: No OFD packet to send [12:59:33]OFD Sender: No OFD packet to send [12:59:38]OFD Sender: No OFD packet to send [12:59:43]OFD Sender: No OFD packet to send [12:59:48]OFD Sender: No OFD packet to send [12:59:53]OFD Sender: No OFD packet to send [12:59:58]OFD Sender: No OFD packet to send [13:00:03]OFD Sender: No OFD packet to send [13:00:08]OFD Sender: No OFD packet to send [13:00:13]OFD Sender: No OFD packet to send [13:00:18]OFD Sender: No OFD packet to send [13:00:23]OFD Sender: No OFD packet to send [13:00:28]OFD Sender: No OFD packet to send [13:00:33]OFD Sender: No OFD packet to send [13:00:38]OFD Sender: No OFD packet to send [13:00:43]OFD Sender: No OFD packet to send [13:00:48]OFD Sender: No OFD packet to send [13:00:53]OFD Sender: No OFD packet to send [13:00:58]OFD Sender: No OFD packet to send [13:01:03]OFD Sender: No OFD packet to send [13:01:08]OFD Sender: No OFD packet to send [13:01:13]OFD Sender: No OFD packet to send [13:01:18]OFD Sender: No OFD packet to send [13:01:23]OFD Sender: No OFD packet to send [13:01:28]OFD Sender: No OFD packet to send [13:01:33]OFD Sender: No OFD packet to send [13:01:38]OFD Sender: No OFD packet to send [13:01:42]accept exits with 9 [13:01:42]New connection [13:01:42]New thread 3067145572 created [13:01:42]Thread 3067002212 joined [13:01:42]Waiting for new connection... [13:01:42] Sock 9.Parse request [13:01:42]Sock 9.Check first char [13:01:42]Sock 9.First char is OK [13:01:42]request: POST /json_proto HTTP/1.0 [13:01:42]Method: POST [13:01:42]URL: /json_proto [13:01:42]Method is POST - this is cgi request [13:01:42]url: /json_proto [13:01:42]query_string will be loaded in cgi processing [13:01:42]execute_cgi json_proto POST (null) [13:01:42]execute_cgi path=json_proto method=POST [13:01:42]POST find Content-Length [13:01:42]Host: 172.17.44.67:8080 [13:01:42]Content-Length: 797 [13:01:42]Content-Type: application/json [13:01:42] [13:01:42]POST finish read [13:01:42]Found Content-Length = 797 [13:01:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 11.810, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43256", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:42]execute_script... [13:01:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 11.810, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43256", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:42]POST & json_proto [13:01:42]process_json_proto [13:01:42]json parsed OK: [13:01:42]protocol is kg_v1.0 [13:01:42]action value=close_receipt [13:01:42]process_action close_receipt [13:01:42]cmd_close_receipt [13:01:42]MH_GetDate [13:01:42]Write to MH i2c: F0 00 00 AB 07 A1 [13:01:42]Write i2c OK [13:01:42]MH_I2C_Read... [13:01:42]Read from MH i2c: F0 [13:01:42]MH_I2C_Read... [13:01:42]Read from MH i2c: F0 09 00 [13:01:42]MH_I2C_Read... [13:01:42]Read from MH i2c: F0 09 00 AB 07 00 B6 0A 11 67 F1 C7 6B 64 69 [13:01:42]GetLastDocTimeStamp 1729169629 [13:01:42]current date 1729170102 [13:01:42]FM_GetShiftState [13:01:42]SAM_PROTO_GetShiftState [13:01:42]wFMCommunicate request_size=4 [13:01:42]MH_SAM_APDU [13:01:42]CAPDU: 80 13 01 00 [13:01:42]Write to MH i2c: E2 08 00 AC 07 80 13 01 00 00 00 00 00 30 [13:01:42]Write i2c OK [13:01:42]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 AC 07 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 38 [13:01:42]RAPDU: 09 00 01 27 5E 10 67 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 1729125927 [13:01:42]opened+sec_in_day 1729212327 [13:01:42]quantity*price = 0 [13:01:42]sum+1 = 1 [13:01:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 92 17.10.2024 13:01 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливная Карта 43256 ФМ: 0000000000871843 ФД: 82166 ФПД: 188470314304980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T130142&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82166&fm=188470314304980&tin=02508201610067®Number=0000000000091680&sum=0 [13:01:43]StoreToDocumentArchive [13:01:43]shift 525 fd 82166 [13:01:43]save to /storage/0525/doc_00082166 [13:01:43]save last doc name /storage/0525/doc_00082166 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=252 [13:01:43]tlvbuf is 01CEA380 [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 B9 07 80 09 00 00 00 00 00 00 32 [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 B9 07 00 90 00 34 [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 BA 07 80 0D 01 02 00 00 00 00 3A [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 BA 07 00 90 00 35 [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 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 22 2E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 B6 0A 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F6 40 01 00 35 04 06 00 [13:01:43]Write to MH i2c: E2 02 01 BB 07 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 22 2E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 B6 0A 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F6 40 01 00 35 04 06 00 00 00 A7 [13:01:43]Write i2c OK [13:01:43]MH_I2C_Read... [13:01:43]OFD Sender: No OFD packet to send [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 BB 07 00 90 00 36 [13:01:43]RAPDU: 90 00 [13:01:43]wFMCommunicate OK [13:01:43]wFMCommunicate request_size=11 [13:01:43]MH_SAM_APDU [13:01:43]CAPDU: 80 0D 02 02 06 AB 69 AA 22 85 D4 [13:01:43]Write to MH i2c: E2 0E 00 BC 07 80 0D 02 02 06 00 AB 69 AA 22 85 D4 00 00 82 [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 BC 07 00 90 00 37 [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 BD 07 80 0D 03 02 00 00 00 00 3F [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 BD 07 00 82 30 3F 43 31 92 6B F5 90 00 97 [13:01:43]RAPDU: 82 30 3F 43 31 92 6B F5 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 BE 07 80 11 00 00 00 00 00 00 3F [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 BE 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 91 [13:01:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:01:43]wFMCommunicate OK [13:01:43]CreateOFDProtocolMessage done [13:01:43]OFDSenderStorePacket 82166 [13:01:43]StoreOFDPacket docnum=82166 [13:01:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 BF E0 08 01 78 95 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 22 2E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 B6 0A 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F6 40 01 00 35 04 06 00 AB 69 AA 22 85 D4 82 30 3F 43 31 92 6B F5 [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/00082166 [13:01:43]NVStorageSaveData ofd_packets/00082166 [13:01:43]File name is /storage/ofd_packets/00082166 [13:01:43]Write 302 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 BF 07 C6 [13:01:43]Write i2c OK [13:01:43]MH_I2C_Read... [13:01:43]Read from MH i2c: 01 [13:01:43]MH_I2C_Read... [13:01:43]Read from MH i2c: 01 07 00 [13:01:43]MH_I2C_Read... [13:01:43]Read from MH i2c: 01 07 00 BF 07 00 00 00 00 00 FF 0F DB [13:01:43]RasterBufferAndPrint [13:01:43]line Счет N : (1)918671 [13:01:43]line ИНН: 02508201610067 [13:01:43]line Контрольно-Кассовый Чек [13:01:43]line ПРОДАЖА [13:01:43]line ТРК (МРК, ГНК) : 31 [13:01:43]line Товар: 2710194210 [13:01:43]line ДТ(л)-К-5 [13:01:43]line 11.810 * 0.00 [13:01:43]line = 0.00 [13:01:43]line НДС 12% НСП 1% [13:01:43]line > о реализуемом товаре [13:01:43]line ИТОГО: 0.00 [13:01:43]line НСП 1% : 0.00 [13:01:43]line НДС 12% : 0.00 [13:01:43]line Наличными: 0.00 [13:01:43]line Безнал.: 0.00 [13:01:43]line Место: АЗС № 114 "Партнер Нефть" [13:01:43]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [13:01:43]line СНО: Общий режим [13:01:43]line Чек 92 17.10.2024 13:01 [13:01:43]line Смена: 525 ФФД: 1.0 [13:01:43]line ЗНМ: 0300000086 [13:01:43]line РНМ: 0000000000091680 [13:01:43]line Версия ККМ: 001 [13:01:43]line Талоны: Топливная Карта [13:01:43]line 43256 [13:01:43]line ФМ: 0000000000871843 [13:01:43]line ФД: 82166 [13:01:43]line ФПД: 188470314304980 [13:01:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T130142&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82166&fm=188470314304980&tin=02508201610067®Number=0000000000091680&sum=0 [13:01:43]written 0, free lines is 4095 [13:01:43]OFD Sender: Processing packet 82166 [packets to send 254, broken 253] [13:01:43]ProducePacketName [13:01:43]name=ofd_packets/00082166 [13:01:43]OFD Sender: To server: pG, [13:01:43]CommunicateWithHost lk.salyk.kg:30040 [13:01:43]ConnectInit lk.salyk.kg [13:01:44]Write to MH i2c: 01 00 00 E9 07 F0 [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 E9 07 00 00 00 00 00 DF 0C E2 [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 3301 [13:01:44]MH_Cut [13:01:44]Write to MH i2c: D1 01 00 F0 07 01 C9 [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 F0 07 00 C8 [13:01:44]Write to MH i2c: 01 00 00 F1 07 F8 [13:01:44]Write i2c OK [13:01:44]MH_I2C_Read... [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 30 38 37 31 38 34 33 10 01 00 00 BF E0 08 01 78 95 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 22 2E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 B6 0A 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F6 40 01 00 35 04 06 00 AB 69 AA 22 85 D4 82 30 3F 43 31 92 6B F5 [13:01:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 74 E9 47 00 CE B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F6 40 01 00 F4 03 04 00 F4 AF 10 67 B6 04 01 00 00 86 66 A4 EB 09 8E CC 1A [13:01:44]CommunicateWithHost err = 0 [13:01:44]CheckOFDResponse [13:01:44]1017 (14) - 77093643461234 [13:01:44]1041 (16) - 0000000000871843 [13:01:44]1040 (4) - 82166 [13:01:44]1012 (4) - 17.10.2024 06:34 [13:01:44]1206 (1) - 0 [13:01:44]OFD Sender: Remove packet 82166 [13:01:44]ProducePacketName [13:01:44]name=ofd_packets/00082166 [13:01:44]NVStorageDeleteData [13:01:44]*** Cut start [13:01:44]*** Partial cut [13:01:44]*** CUTSNS_PIN = 1 [13:01:45]*** CUTSNS_PIN = 0 [13:01:45]OFD Sender: No OFD packet to send [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 F1 07 00 00 00 00 00 FF 0F 0D [13:01:45]process_action close_receipt done [13:01:45]requested_data is exist [13:01:45]produce_requested_data [13:01:45]requested_item fm.sn is exist - process it [13:01:45]wFMCommunicate request_size=4 [13:01:45]MH_SAM_APDU [13:01:45]CAPDU: 80 11 00 00 [13:01:45]Write to MH i2c: E2 08 00 F2 07 80 11 00 00 00 00 00 00 73 [13:01:45]Write i2c OK [13:01:45]MH_I2C_Read... [13:01:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:45]Read from MH i2c: E2 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: E2 17 00 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: E2 17 00 F2 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C5 [13:01:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:01:45]wFMCommunicate OK [13:01:45]requested_item fd.num is exist - process it [13:01:45]SAM_PROTO_GetFieldsCounters [13:01:45]wFMCommunicate request_size=4 [13:01:45]MH_SAM_APDU [13:01:45]CAPDU: 80 13 00 00 [13:01:45]Write to MH i2c: E2 08 00 F3 07 80 13 00 00 00 00 00 00 76 [13:01:45]Write i2c OK [13:01:45]MH_I2C_Read... [13:01:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:45]Read from MH i2c: E2 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: E2 62 00 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: E2 62 00 F3 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F6 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [13:01:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F6 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:01:45]wFMCommunicate OK [13:01:45]SAM_PROTO_GetFieldsCounters done [13:01:45]requested_item shift.num is exist - process it [13:01:45]requested_item shift.opened is exist - process it [13:01:45]req_shift_opened [13:01:45]FM_GetShiftState [13:01:45]SAM_PROTO_GetShiftState [13:01:45]wFMCommunicate request_size=4 [13:01:45]MH_SAM_APDU [13:01:45]CAPDU: 80 13 01 00 [13:01:45]Write to MH i2c: E2 08 00 F4 07 80 13 01 00 00 00 00 00 78 [13:01:45]Write i2c OK [13:01:45]MH_I2C_Read... [13:01:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:45]Read from MH i2c: E2 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: E2 0E 00 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: E2 0E 00 F4 07 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 80 [13:01:45]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [13:01:45]wFMCommunicate OK [13:01:45]SAM_PROTO_GetShiftState done [13:01:45]FM_GetShiftState done [13:01:45]req_shift_opened done [13:01:45]requested_item shift.open_date is exist - process it [13:01:45]req_shift_open_date [13:01:45]req_shift_open_date done [13:01:45]produce_requested_data done [13:01:45]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82166,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [13:01:45]process_action_free close_receipt [13:01:45]json_value_free [13:01:45]json_value_free done [13:01:45]process_json_proto returns [13:01:45]Send response to host [13:01:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82166,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [13:01:45]free response buf [13:01:45]execute_script done [13:01:45]execute_script returns [13:01:45]free content buf [13:01:45]Sock 9.Close socket [13:01:45]Sock 9.Thread stoped [13:01:48]accept exits with 7 [13:01:48]New connection [13:01:48]New thread 3067002212 created [13:01:48]Thread 3067145572 joined [13:01:48]Waiting for new connection... [13:01:48] Sock 7.Parse request [13:01:48]Sock 7.Check first char [13:01:48]Sock 7.First char is OK [13:01:48]request: POST /json_proto HTTP/1.0 [13:01:48]Method: POST [13:01:48]URL: /json_proto [13:01:48]Method is POST - this is cgi request [13:01:48]url: /json_proto [13:01:48]query_string will be loaded in cgi processing [13:01:48]execute_cgi json_proto POST (null) [13:01:48]execute_cgi path=json_proto method=POST [13:01:48]POST find Content-Length [13:01:48]Host: 172.17.44.67:8080 [13:01:48]Content-Length: 682 [13:01:48]Content-Type: application/json [13:01:48] [13:01:48]POST finish read [13:01:48]Found Content-Length = 682 [13:01:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:48]execute_script... [13:01:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:48]POST & json_proto [13:01:48]process_json_proto [13:01:48]json parsed OK: [13:01:48]protocol is kg_v1.0 [13:01:48]action value=close_receipt [13:01:48]process_action close_receipt [13:01:48]cmd_close_receipt [13:01:48]MH_GetDate [13:01:48]Write to MH i2c: F0 00 00 F5 07 EB [13:01:48]Write i2c OK [13:01:48]MH_I2C_Read... [13:01:48]Read from MH i2c: F0 [13:01:48]MH_I2C_Read... [13:01:48]Read from MH i2c: F0 09 00 [13:01:48]MH_I2C_Read... [13:01:48]Read from MH i2c: F0 09 00 F5 07 00 BD 0A 11 67 F1 C7 6B 64 BA [13:01:48]GetLastDocTimeStamp 1729170102 [13:01:48]current date 1729170109 [13:01:48]FM_GetShiftState [13:01:48]SAM_PROTO_GetShiftState [13:01:48]wFMCommunicate request_size=4 [13:01:48]MH_SAM_APDU [13:01:48]CAPDU: 80 13 01 00 [13:01:48]Write to MH i2c: E2 08 00 F6 07 80 13 01 00 00 00 00 00 7A [13:01:48]Write i2c OK [13:01:48]MH_I2C_Read... [13:01:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:49]Read from MH i2c: E2 [13:01:49]MH_I2C_Read... [13:01:49]Read from MH i2c: E2 0E 00 [13:01:49]MH_I2C_Read... [13:01:49]Read from MH i2c: E2 0E 00 F6 07 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 82 [13:01:49]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [13:01:49]wFMCommunicate OK [13:01:49]SAM_PROTO_GetShiftState done [13:01:49]FM_GetShiftState done [13:01:49]opened in 1729125927 [13:01:49]opened+sec_in_day 1729212327 [13:01:49]quantity*price = 100021 [13:01:49]sum+1 = 100023 [13:01:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 93 17.10.2024 13:01 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82167 ФПД: 221995467601772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T130149&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82167&fm=221995467601772&tin=02508201610067®Number=0000000000091680&sum=100000 [13:01:50]StoreToDocumentArchive [13:01:50]shift 525 fd 82167 [13:01:50]save to /storage/0525/doc_00082167 [13:01:50]save last doc name /storage/0525/doc_00082167 to /storage/kkm_last_doc_name [13:01:50]save OK [13:01:50]Clear old archive folders... [13:01:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:01:50]tlvbuf is 01D35660 [13:01:50]SAM_PROTO_ClearQueue [13:01:50]wFMCommunicate request_size=4 [13:01:50]MH_SAM_APDU [13:01:50]CAPDU: 80 09 00 00 [13:01:50]Write to MH i2c: E2 08 00 03 08 80 09 00 00 00 00 00 00 7D [13:01:50]Write i2c OK [13:01:50]MH_I2C_Read... [13:01:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:50]Read from MH i2c: E2 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: E2 03 00 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: E2 03 00 03 08 00 90 00 7F [13:01:50]RAPDU: 90 00 [13:01:50]wFMCommunicate OK [13:01:50]SAM_PROTO_ClearQueue done [13:01:50]KKMCreateOFDPacket [13:01:50]OFDProtocolAddRootSTLVToBuf [13:01:50]FM_MakeSignedData [13:01:50]FM_MakeSignedData [13:01:50]SAM_PROTO_SignData [13:01:50]wFMCommunicate request_size=4 [13:01:50]MH_SAM_APDU [13:01:50]CAPDU: 80 0D 01 02 [13:01:50]Write to MH i2c: E2 08 00 04 08 80 0D 01 02 00 00 00 00 85 [13:01:50]Write i2c OK [13:01:50]MH_I2C_Read... [13:01:50]OFD Sender: No OFD packet to send [13:01:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:50]Read from MH i2c: E2 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: E2 03 00 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: E2 03 00 04 08 00 90 00 80 [13:01:50]RAPDU: 90 00 [13:01:50]wFMCommunicate OK [13:01:50]wFMCommunicate request_size=255 [13:01:50]MH_SAM_APDU [13:01:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 BD 0A 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F7 40 01 00 35 04 06 00 C9 [13:01:50]Write to MH i2c: E2 02 01 05 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 BD 0A 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F7 40 01 00 35 04 06 00 C9 00 00 DB [13:01:50]Write i2c OK [13:01:50]MH_I2C_Read... [13:01:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:50]Read from MH i2c: E2 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: E2 03 00 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: E2 03 00 05 08 00 90 00 81 [13:01:50]RAPDU: 90 00 [13:01:50]wFMCommunicate OK [13:01:50]wFMCommunicate request_size=10 [13:01:50]MH_SAM_APDU [13:01:50]CAPDU: 80 0D 02 02 05 E7 58 FC F7 6C [13:01:50]Write to MH i2c: E2 0D 00 06 08 80 0D 02 02 05 00 E7 58 FC F7 6C 00 00 30 [13:01:50]Write i2c OK [13:01:50]MH_I2C_Read... [13:01:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:50]Read from MH i2c: E2 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: E2 03 00 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: E2 03 00 06 08 00 90 00 82 [13:01:50]RAPDU: 90 00 [13:01:50]wFMCommunicate OK [13:01:50]wFMCommunicate request_size=4 [13:01:50]MH_SAM_APDU [13:01:50]CAPDU: 80 0D 03 02 [13:01:50]Write to MH i2c: E2 08 00 07 08 80 0D 03 02 00 00 00 00 8A [13:01:50]Write i2c OK [13:01:50]MH_I2C_Read... [13:01:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:50]Read from MH i2c: E2 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: E2 0B 00 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: E2 0B 00 07 08 00 30 12 D7 81 0A 94 F7 FB 90 00 B5 [13:01:50]RAPDU: 30 12 D7 81 0A 94 F7 FB 90 00 [13:01:50]wFMCommunicate OK [13:01:50]SAM_PROTO_SignData done [13:01:50]FM_MakeSignedData done [13:01:50]CreateOFDProtocolMessage [13:01:50]wFMCommunicate request_size=4 [13:01:50]MH_SAM_APDU [13:01:50]CAPDU: 80 11 00 00 [13:01:50]Write to MH i2c: E2 08 00 08 08 80 11 00 00 00 00 00 00 8A [13:01:50]Write i2c OK [13:01:50]MH_I2C_Read... [13:01:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:50]Read from MH i2c: E2 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: E2 17 00 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: E2 17 00 08 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DC [13:01:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:01:50]wFMCommunicate OK [13:01:50]CreateOFDProtocolMessage done [13:01:50]OFDSenderStorePacket 82167 [13:01:50]StoreOFDPacket docnum=82167 [13:01:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 77 DC 07 01 1C 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 BD 0A 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F7 40 01 00 35 04 06 00 C9 E7 58 FC F7 6C 30 12 D7 81 0A 94 F7 FB [13:01:50]CheckFolder [13:01:50]dirname=/storage/ofd_packets [13:01:50]CheckFolder done [13:01:50]ProducePacketName [13:01:50]name=ofd_packets/00082167 [13:01:50]NVStorageSaveData ofd_packets/00082167 [13:01:50]File name is /storage/ofd_packets/00082167 [13:01:50]Write 301 bytes [13:01:50]NVStorageSaveData done [13:01:50]OFDSenderStorePacket done [13:01:50]KKMCreateOFDPacket done [13:01:50]NVStorageSaveData kkm_last_timestamp [13:01:50]File name is /storage/kkm_last_timestamp [13:01:50]Write 4 bytes [13:01:50]NVStorageSaveData done [13:01:50]ExternCall_PrintAddStr [13:01:50]wPrintStart [13:01:50]Write to MH i2c: 01 00 00 09 08 11 [13:01:50]Write i2c OK [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: 01 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: 01 07 00 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: 01 07 00 09 08 00 00 00 00 00 FF 0F 26 [13:01:50]RasterBufferAndPrint [13:01:50]line Счет N : (1)918672 [13:01:50]line ИНН: 02508201610067 [13:01:50]line Контрольно-Кассовый Чек [13:01:50]line ПРОДАЖА [13:01:50]line ТРК (МРК, ГНК) : 12 [13:01:50]line Товар: 2710124500 [13:01:50]line Аи-95-К-5 [13:01:50]line 13.480 * 74.20 [13:01:50]line = 1000.22 [13:01:50]line НДС 12% НСП 1% [13:01:50]line > о реализуемом товаре [13:01:50]line ОКРУГЛЕНИЕ: -0.22 [13:01:50]line ИТОГО: 1000.00 [13:01:50]line Внесено: 1000.00 [13:01:50]line СДАЧА: 0.00 [13:01:50]line НСП 1% : 8.85 [13:01:50]line НДС 12% : 106.22 [13:01:50]line Наличными: 1000.00 [13:01:50]line Безнал.: 0.00 [13:01:50]line Место: АЗС № 114 "Партнер Нефть" [13:01:50]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [13:01:50]line СНО: Общий режим [13:01:50]line Чек 93 17.10.2024 13:01 [13:01:50]line Смена: 525 ФФД: 1.0 [13:01:50]line ЗНМ: 0300000086 [13:01:50]line РНМ: 0000000000091680 [13:01:50]line Версия ККМ: 001 [13:01:50]line ФМ: 0000000000871843 [13:01:50]line ФД: 82167 [13:01:50]line ФПД: 221995467601772 [13:01:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T130149&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82167&fm=221995467601772&tin=02508201610067®Number=0000000000091680&sum=100000 [13:01:50]OFD Sender: Processing packet 82167 [packets to send 254, broken 253] [13:01:50]ProducePacketName [13:01:50]name=ofd_packets/00082167 [13:01:50]OFD Sender: To server: pG, [13:01:50]CommunicateWithHost lk.salyk.kg:30040 [13:01:50]ConnectInit lk.salyk.kg [13:01:50]written 0, free lines is 4095 [13:01:51]Write to MH i2c: 01 00 00 34 08 3C [13:01:51]Write i2c OK [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: 01 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: 01 07 00 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: 01 07 00 34 08 00 00 00 00 00 D6 0C 25 [13:01:51]RasterBufferAndPrint [13:01:51]line [13:01:51]line [13:01:51]line [13:01:51]line [13:01:51]line [13:01:51]written 0, free lines is 3300 [13:01:51]MH_Cut [13:01:51]Write to MH i2c: D1 01 00 3B 08 01 15 [13:01:51]Write i2c OK [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: D1 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: D1 01 00 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: D1 01 00 3B 08 00 14 [13:01:51]Write to MH i2c: 01 00 00 3C 08 44 [13:01:51]Write i2c OK [13:01:51]MH_I2C_Read... [13:01:51]Connected sock=10 [13:01:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 77 DC 07 01 1C 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 BD 0A 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F7 40 01 00 35 04 06 00 C9 E7 58 FC F7 6C 30 12 D7 81 0A 94 F7 FB [13:01:52]*** Cut start [13:01:52]*** Partial cut [13:01:52]*** CUTSNS_PIN = 1 [13:01:52]*** CUTSNS_PIN = 0 [13:01:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 F5 04 47 00 34 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F7 40 01 00 F4 03 04 00 FC AF 10 67 B6 04 01 00 00 69 3F FA C5 85 6A C1 2B [13:01:52]CommunicateWithHost err = 0 [13:01:52]CheckOFDResponse [13:01:52]1017 (14) - 77093643461234 [13:01:52]1041 (16) - 0000000000871843 [13:01:52]1040 (4) - 82167 [13:01:52]1012 (4) - 17.10.2024 06:34 [13:01:52]1206 (1) - 0 [13:01:52]OFD Sender: Remove packet 82167 [13:01:52]ProducePacketName [13:01:52]name=ofd_packets/00082167 [13:01:52]NVStorageDeleteData [13:01:52]*** Brake cut motor [13:01:52]OFD Sender: No OFD packet to send [13:01:52]Read from MH i2c: 01 [13:01:52]MH_I2C_Read... [13:01:52]*** Stop cut motor [13:01:52]*** Cut end [13:01:52]Read from MH i2c: 01 07 00 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: 01 07 00 3C 08 00 00 00 00 00 FF 0F 59 [13:01:52]process_action close_receipt done [13:01:52]requested_data is exist [13:01:52]produce_requested_data [13:01:52]requested_item fm.sn is exist - process it [13:01:52]wFMCommunicate request_size=4 [13:01:52]MH_SAM_APDU [13:01:52]CAPDU: 80 11 00 00 [13:01:52]Write to MH i2c: E2 08 00 3D 08 80 11 00 00 00 00 00 00 BF [13:01:52]Write i2c OK [13:01:52]MH_I2C_Read... [13:01:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:52]Read from MH i2c: E2 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: E2 17 00 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: E2 17 00 3D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 11 [13:01:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:01:52]wFMCommunicate OK [13:01:52]requested_item fd.num is exist - process it [13:01:52]SAM_PROTO_GetFieldsCounters [13:01:52]wFMCommunicate request_size=4 [13:01:52]MH_SAM_APDU [13:01:52]CAPDU: 80 13 00 00 [13:01:52]Write to MH i2c: E2 08 00 3E 08 80 13 00 00 00 00 00 00 C2 [13:01:52]Write i2c OK [13:01:52]MH_I2C_Read... [13:01:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:52]Read from MH i2c: E2 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: E2 62 00 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: E2 62 00 3E 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F7 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [13:01:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F7 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:01:52]wFMCommunicate OK [13:01:52]SAM_PROTO_GetFieldsCounters done [13:01:52]requested_item shift.num is exist - process it [13:01:52]requested_item shift.opened is exist - process it [13:01:52]req_shift_opened [13:01:52]FM_GetShiftState [13:01:52]SAM_PROTO_GetShiftState [13:01:52]wFMCommunicate request_size=4 [13:01:52]MH_SAM_APDU [13:01:52]CAPDU: 80 13 01 00 [13:01:52]Write to MH i2c: E2 08 00 3F 08 80 13 01 00 00 00 00 00 C4 [13:01:52]Write i2c OK [13:01:52]MH_I2C_Read... [13:01:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:52]Read from MH i2c: E2 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: E2 0E 00 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: E2 0E 00 3F 08 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 CC [13:01:52]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [13:01:52]wFMCommunicate OK [13:01:52]SAM_PROTO_GetShiftState done [13:01:52]FM_GetShiftState done [13:01:52]req_shift_opened done [13:01:52]requested_item shift.open_date is exist - process it [13:01:52]req_shift_open_date [13:01:52]req_shift_open_date done [13:01:52]produce_requested_data done [13:01:52]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82167,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [13:01:52]process_action_free close_receipt [13:01:52]json_value_free [13:01:52]json_value_free done [13:01:52]process_json_proto returns [13:01:52]Send response to host [13:01:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82167,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [13:01:52]free response buf [13:01:52]execute_script done [13:01:52]execute_script returns [13:01:52]free content buf [13:01:52]Sock 7.Close socket [13:01:52]Sock 7.Thread stoped [13:01:57]OFD Sender: No OFD packet to send [13:02:02]OFD Sender: No OFD packet to send [13:02:07]OFD Sender: No OFD packet to send [13:02:12]OFD Sender: No OFD packet to send [13:02:14]recv_with_timeout no data received [13:02:17]OFD Sender: No OFD packet to send [13:02:22]OFD Sender: No OFD packet to send [13:02:27]OFD Sender: No OFD packet to send [13:02:32]OFD Sender: No OFD packet to send [13:02:37]OFD Sender: No OFD packet to send [13:02:42]OFD Sender: No OFD packet to send [13:02:47]OFD Sender: No OFD packet to send [13:02:52]OFD Sender: No OFD packet to send [13:02:57]OFD Sender: No OFD packet to send [13:03:02]OFD Sender: No OFD packet to send [13:03:07]OFD Sender: No OFD packet to send [13:03:12]OFD Sender: No OFD packet to send [13:03:17]OFD Sender: No OFD packet to send [13:03:22]OFD Sender: No OFD packet to send [13:03:27]OFD Sender: No OFD packet to send [13:03:32]OFD Sender: No OFD packet to send [13:03:37]OFD Sender: No OFD packet to send [13:03:42]OFD Sender: No OFD packet to send [13:03:47]OFD Sender: No OFD packet to send [13:03:52]OFD Sender: No OFD packet to send [13:03:57]OFD Sender: No OFD packet to send [13:04:02]OFD Sender: No OFD packet to send [13:04:07]OFD Sender: No OFD packet to send [13:04:12]OFD Sender: No OFD packet to send [13:04:17]OFD Sender: No OFD packet to send [13:04:22]OFD Sender: No OFD packet to send [13:04:27]OFD Sender: No OFD packet to send [13:04:32]OFD Sender: No OFD packet to send [13:04:37]OFD Sender: No OFD packet to send [13:04:42]OFD Sender: No OFD packet to send [13:04:47]OFD Sender: No OFD packet to send [13:04:52]OFD Sender: No OFD packet to send [13:04:57]OFD Sender: No OFD packet to send [13:05:02]OFD Sender: No OFD packet to send [13:05:07]OFD Sender: No OFD packet to send [13:05:12]OFD Sender: No OFD packet to send [13:05:17]OFD Sender: No OFD packet to send [13:05:23]OFD Sender: No OFD packet to send [13:05:28]OFD Sender: No OFD packet to send [13:05:33]OFD Sender: No OFD packet to send [13:05:38]OFD Sender: No OFD packet to send [13:05:43]OFD Sender: No OFD packet to send [13:05:48]OFD Sender: No OFD packet to send [13:05:53]OFD Sender: No OFD packet to send [13:05:58]OFD Sender: No OFD packet to send [13:06:03]OFD Sender: No OFD packet to send [13:06:08]OFD Sender: No OFD packet to send [13:06:13]OFD Sender: No OFD packet to send [13:06:18]OFD Sender: No OFD packet to send [13:06:23]OFD Sender: No OFD packet to send [13:06:28]OFD Sender: No OFD packet to send [13:06:33]OFD Sender: No OFD packet to send [13:06:38]OFD Sender: No OFD packet to send [13:06:43]OFD Sender: No OFD packet to send [13:06:48]OFD Sender: No OFD packet to send [13:06:53]OFD Sender: No OFD packet to send [13:06:58]OFD Sender: No OFD packet to send [13:07:03]OFD Sender: No OFD packet to send [13:07:08]OFD Sender: No OFD packet to send [13:07:13]OFD Sender: No OFD packet to send [13:07:18]OFD Sender: No OFD packet to send [13:07:23]OFD Sender: No OFD packet to send [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:43]OFD Sender: No OFD packet to send [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:58]OFD Sender: No OFD packet to send [13:08:03]OFD Sender: No OFD packet to send [13:08:08]OFD Sender: No OFD packet to send [13:08:13]OFD Sender: No OFD packet to send [13:08:18]OFD Sender: No OFD packet to send [13:08:23]OFD Sender: No OFD packet to send [13:08:28]OFD Sender: No OFD packet to send [13:08:33]OFD Sender: No OFD packet to send [13:08:38]OFD Sender: No OFD packet to send [13:08:43]OFD Sender: No OFD packet to send [13:08:48]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:58]OFD Sender: No OFD packet to send [13:09:03]OFD Sender: No OFD packet to send [13:09:08]OFD Sender: No OFD packet to send [13:09:13]OFD Sender: No OFD packet to send [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:53]OFD Sender: No OFD packet to send [13:09:58]OFD Sender: No OFD packet to send [13:10:03]OFD Sender: No OFD packet to send [13:10:08]OFD Sender: No OFD packet to send [13:10:13]OFD Sender: No OFD packet to send [13:10:18]OFD Sender: No OFD packet to send [13:10:23]OFD Sender: No OFD packet to send [13:10:28]OFD Sender: No OFD packet to send [13:10:33]OFD Sender: No OFD packet to send [13:10:38]OFD Sender: No OFD packet to send [13:10:43]OFD Sender: No OFD packet to send [13:10:48]OFD Sender: No OFD packet to send [13:10:53]OFD Sender: No OFD packet to send [13:10:58]OFD Sender: No OFD packet to send [13:11:03]OFD Sender: No OFD packet to send [13:11:08]OFD Sender: No OFD packet to send [13:11:13]OFD Sender: No OFD packet to send [13:11:18]OFD Sender: No OFD packet to send [13:11:23]OFD Sender: No OFD packet to send [13:11:28]OFD Sender: No OFD packet to send [13:11:33]OFD Sender: No OFD packet to send [13:11:38]OFD Sender: No OFD packet to send [13:11:43]OFD Sender: No OFD packet to send [13:11:48]OFD Sender: No OFD packet to send [13:11:53]OFD Sender: No OFD packet to send [13:11:58]OFD Sender: No OFD packet to send [13:12:03]OFD Sender: No OFD packet to send [13:12:08]OFD Sender: No OFD packet to send [13:12:13]OFD Sender: No OFD packet to send [13:12:18]OFD Sender: No OFD packet to send [13:12:23]OFD Sender: No OFD packet to send [13:12:28]OFD Sender: No OFD packet to send [13:12:33]OFD Sender: No OFD packet to send [13:12:38]OFD Sender: No OFD packet to send [13:12:43]OFD Sender: No OFD packet to send [13:12:48]OFD Sender: No OFD packet to send [13:12:53]OFD Sender: No OFD packet to send [13:12:58]OFD Sender: No OFD packet to send [13:13:03]OFD Sender: No OFD packet to send [13:13:08]OFD Sender: No OFD packet to send [13:13:13]OFD Sender: No OFD packet to send [13:13:18]OFD Sender: No OFD packet to send [13:13:23]OFD Sender: No OFD packet to send [13:13:28]OFD Sender: No OFD packet to send [13:13:33]OFD Sender: No OFD packet to send [13:13:38]OFD Sender: No OFD packet to send [13:13:43]OFD Sender: No OFD packet to send [13:13:48]OFD Sender: No OFD packet to send [13:13:53]OFD Sender: No OFD packet to send [13:13:58]OFD Sender: No OFD packet to send [13:14:03]OFD Sender: No OFD packet to send [13:14:08]OFD Sender: No OFD packet to send [13:14:13]OFD Sender: No OFD packet to send [13:14:18]OFD Sender: No OFD packet to send [13:14:23]OFD Sender: No OFD packet to send [13:14:28]OFD Sender: No OFD packet to send [13:14:33]OFD Sender: No OFD packet to send [13:14:38]OFD Sender: No OFD packet to send [13:14:43]OFD Sender: No OFD packet to send [13:14:48]OFD Sender: No OFD packet to send [13:14:53]OFD Sender: No OFD packet to send [13:14:58]OFD Sender: No OFD packet to send [13:15:03]OFD Sender: No OFD packet to send [13:15:08]OFD Sender: No OFD packet to send [13:15:13]OFD Sender: No OFD packet to send [13:15:18]OFD Sender: No OFD packet to send [13:15:23]OFD Sender: No OFD packet to send [13:15:28]OFD Sender: No OFD packet to send [13:15:33]OFD Sender: No OFD packet to send [13:15:38]OFD Sender: No OFD packet to send [13:15:44]OFD Sender: No OFD packet to send [13:15:49]OFD Sender: No OFD packet to send [13:15:54]OFD Sender: No OFD packet to send [13:15:59]OFD Sender: No OFD packet to send [13:16:04]OFD Sender: No OFD packet to send [13:16:09]OFD Sender: No OFD packet to send [13:16:14]OFD Sender: No OFD packet to send [13:16:14]accept exits with 9 [13:16:14]New connection [13:16:14]New thread 3067145572 created [13:16:14]Thread 3067002212 joined [13:16:14]Waiting for new connection... [13:16:14] Sock 9.Parse request [13:16:14]Sock 9.Check first char [13:16:14]Sock 9.First char is OK [13:16:14]request: POST /json_proto HTTP/1.0 [13:16:14]Method: POST [13:16:14]URL: /json_proto [13:16:14]Method is POST - this is cgi request [13:16:14]url: /json_proto [13:16:14]query_string will be loaded in cgi processing [13:16:14]execute_cgi json_proto POST (null) [13:16:14]execute_cgi path=json_proto method=POST [13:16:14]POST find Content-Length [13:16:14]Host: 172.17.44.67:8080 [13:16:14]Content-Length: 682 [13:16:14]Content-Type: application/json [13:16:14] [13:16:14]POST finish read [13:16:14]Found Content-Length = 682 [13:16:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:14]execute_script... [13:16:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:14]POST & json_proto [13:16:14]process_json_proto [13:16:14]json parsed OK: [13:16:14]protocol is kg_v1.0 [13:16:14]action value=close_receipt [13:16:14]process_action close_receipt [13:16:14]cmd_close_receipt [13:16:14]MH_GetDate [13:16:14]Write to MH i2c: F0 00 00 40 08 37 [13:16:14]Write i2c OK [13:16:14]MH_I2C_Read... [13:16:14]Read from MH i2c: F0 [13:16:14]MH_I2C_Read... [13:16:14]Read from MH i2c: F0 09 00 [13:16:14]MH_I2C_Read... [13:16:14]Read from MH i2c: F0 09 00 40 08 00 1F 0E 11 67 F1 C7 6B 64 6C [13:16:14]GetLastDocTimeStamp 1729170109 [13:16:14]current date 1729170975 [13:16:14]FM_GetShiftState [13:16:14]SAM_PROTO_GetShiftState [13:16:14]wFMCommunicate request_size=4 [13:16:14]MH_SAM_APDU [13:16:14]CAPDU: 80 13 01 00 [13:16:14]Write to MH i2c: E2 08 00 41 08 80 13 01 00 00 00 00 00 C6 [13:16:14]Write i2c OK [13:16:14]MH_I2C_Read... [13:16:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:14]Read from MH i2c: E2 [13:16:14]MH_I2C_Read... [13:16:14]Read from MH i2c: E2 0E 00 [13:16:14]MH_I2C_Read... [13:16:14]Read from MH i2c: E2 0E 00 41 08 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 CE [13:16:14]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [13:16:14]wFMCommunicate OK [13:16:14]SAM_PROTO_GetShiftState done [13:16:14]FM_GetShiftState done [13:16:14]opened in 1729125927 [13:16:14]opened+sec_in_day 1729212327 [13:16:14]quantity*price = 50063 [13:16:14]sum+1 = 50064 [13:16:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 94 17.10.2024 13:16 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82168 ФПД: 201667951572957 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T131615&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82168&fm=201667951572957&tin=02508201610067®Number=0000000000091680&sum=50000 [13:16:15]StoreToDocumentArchive [13:16:15]shift 525 fd 82168 [13:16:15]save to /storage/0525/doc_00082168 [13:16:15]save last doc name /storage/0525/doc_00082168 to /storage/kkm_last_doc_name [13:16:15]save OK [13:16:15]Clear old archive folders... [13:16:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:16:15]tlvbuf is 01D3EFB0 [13:16:15]SAM_PROTO_ClearQueue [13:16:15]wFMCommunicate request_size=4 [13:16:15]MH_SAM_APDU [13:16:15]CAPDU: 80 09 00 00 [13:16:15]Write to MH i2c: E2 08 00 4E 08 80 09 00 00 00 00 00 00 C8 [13:16:15]Write i2c OK [13:16:15]MH_I2C_Read... [13:16:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:16:15]Read from MH i2c: E2 [13:16:15]MH_I2C_Read... [13:16:15]Read from MH i2c: E2 03 00 [13:16:15]MH_I2C_Read... [13:16:15]Read from MH i2c: E2 03 00 4E 08 00 90 00 CA [13:16:15]RAPDU: 90 00 [13:16:15]wFMCommunicate OK [13:16:15]SAM_PROTO_ClearQueue done [13:16:15]KKMCreateOFDPacket [13:16:15]OFDProtocolAddRootSTLVToBuf [13:16:15]FM_MakeSignedData [13:16:15]FM_MakeSignedData [13:16:15]SAM_PROTO_SignData [13:16:15]wFMCommunicate request_size=4 [13:16:15]MH_SAM_APDU [13:16:15]CAPDU: 80 0D 01 02 [13:16:15]Write to MH i2c: E2 08 00 4F 08 80 0D 01 02 00 00 00 00 D0 [13:16:15]Write i2c OK [13:16:15]MH_I2C_Read... [13:16:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:16:15]Read from MH i2c: E2 [13:16:15]MH_I2C_Read... [13:16:15]Read from MH i2c: E2 03 00 [13:16:15]MH_I2C_Read... [13:16:15]Read from MH i2c: E2 03 00 4F 08 00 90 00 CB [13:16:15]RAPDU: 90 00 [13:16:15]wFMCommunicate OK [13:16:15]wFMCommunicate request_size=255 [13:16:15]MH_SAM_APDU [13:16:15]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 1F 0E 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F8 40 01 00 35 04 06 00 [13:16:15]Write to MH i2c: E2 02 01 50 08 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 1F 0E 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F8 40 01 00 35 04 06 00 00 00 0E [13:16:15]Write i2c OK [13:16:15]MH_I2C_Read... [13:16:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:16]Read from MH i2c: E2 [13:16:16]MH_I2C_Read... [13:16:16]Read from MH i2c: E2 03 00 [13:16:16]MH_I2C_Read... [13:16:16]Read from MH i2c: E2 03 00 50 08 00 90 00 CC [13:16:16]RAPDU: 90 00 [13:16:16]wFMCommunicate OK [13:16:16]wFMCommunicate request_size=11 [13:16:16]MH_SAM_APDU [13:16:16]CAPDU: 80 0D 02 02 06 B7 6A 7A 9D B7 DD [13:16:16]Write to MH i2c: E2 0E 00 51 08 80 0D 02 02 06 00 B7 6A 7A 9D B7 DD 00 00 AB [13:16:16]Write i2c OK [13:16:16]MH_I2C_Read... [13:16:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:16]Read from MH i2c: E2 [13:16:16]MH_I2C_Read... [13:16:16]Read from MH i2c: E2 03 00 [13:16:16]MH_I2C_Read... [13:16:16]Read from MH i2c: E2 03 00 51 08 00 90 00 CD [13:16:16]RAPDU: 90 00 [13:16:16]wFMCommunicate OK [13:16:16]wFMCommunicate request_size=4 [13:16:16]MH_SAM_APDU [13:16:16]CAPDU: 80 0D 03 02 [13:16:16]Write to MH i2c: E2 08 00 52 08 80 0D 03 02 00 00 00 00 D5 [13:16:16]Write i2c OK [13:16:16]MH_I2C_Read... [13:16:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:16:16]Read from MH i2c: E2 [13:16:16]MH_I2C_Read... [13:16:16]Read from MH i2c: E2 0B 00 [13:16:16]MH_I2C_Read... [13:16:16]Read from MH i2c: E2 0B 00 52 08 00 01 8E C2 E7 BB 9F E5 72 90 00 BF [13:16:16]RAPDU: 01 8E C2 E7 BB 9F E5 72 90 00 [13:16:16]wFMCommunicate OK [13:16:16]SAM_PROTO_SignData done [13:16:16]FM_MakeSignedData done [13:16:16]CreateOFDProtocolMessage [13:16:16]wFMCommunicate request_size=4 [13:16:16]MH_SAM_APDU [13:16:16]CAPDU: 80 11 00 00 [13:16:16]Write to MH i2c: E2 08 00 53 08 80 11 00 00 00 00 00 00 D5 [13:16:16]Write i2c OK [13:16:16]MH_I2C_Read... [13:16:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:16]Read from MH i2c: E2 [13:16:16]MH_I2C_Read... [13:16:16]Read from MH i2c: E2 17 00 [13:16:16]MH_I2C_Read... [13:16:16]Read from MH i2c: E2 17 00 53 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 27 [13:16:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:16:16]wFMCommunicate OK [13:16:16]CreateOFDProtocolMessage done [13:16:16]OFDSenderStorePacket 82168 [13:16:16]StoreOFDPacket docnum=82168 [13:16:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 D4 3F 08 01 BC 78 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 1F 0E 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F8 40 01 00 35 04 06 00 B7 6A 7A 9D B7 DD 01 8E C2 E7 BB 9F E5 72 [13:16:16]CheckFolder [13:16:16]dirname=/storage/ofd_packets [13:16:16]CheckFolder done [13:16:16]ProducePacketName [13:16:16]name=ofd_packets/00082168 [13:16:16]NVStorageSaveData ofd_packets/00082168 [13:16:16]File name is /storage/ofd_packets/00082168 [13:16:16]Write 302 bytes [13:16:16]NVStorageSaveData done [13:16:16]OFDSenderStorePacket done [13:16:16]KKMCreateOFDPacket done [13:16:16]NVStorageSaveData kkm_last_timestamp [13:16:16]File name is /storage/kkm_last_timestamp [13:16:16]Write 4 bytes [13:16:16]NVStorageSaveData done [13:16:16]ExternCall_PrintAddStr [13:16:16]wPrintStart [13:16:16]Write to MH i2c: 01 00 00 54 08 5C [13:16:16]Write i2c OK [13:16:16]MH_I2C_Read... [13:16:16]Read from MH i2c: 01 [13:16:16]MH_I2C_Read... [13:16:16]Read from MH i2c: 01 07 00 [13:16:16]MH_I2C_Read... [13:16:16]Read from MH i2c: 01 07 00 54 08 00 00 00 00 00 FF 0F 71 [13:16:16]RasterBufferAndPrint [13:16:16]line Счет N : (1)918673 [13:16:16]line ИНН: 02508201610067 [13:16:16]line Контрольно-Кассовый Чек [13:16:16]line ПРОДАЖА [13:16:16]line ТРК (МРК, ГНК) : 31 [13:16:16]line Товар: 2710194210 [13:16:16]line ДТ(л)-К-5 [13:16:16]line 6.570 * 76.20 [13:16:16]line = 500.63 [13:16:16]line НДС 12% НСП 1% [13:16:16]line > о реализуемом товаре [13:16:16]line ОКРУГЛЕНИЕ: -0.63 [13:16:16]line ИТОГО: 500.00 [13:16:16]line Внесено: 500.00 [13:16:16]line СДАЧА: 0.00 [13:16:16]line НСП 1% : 4.43 [13:16:16]line НДС 12% : 53.16 [13:16:16]line Наличными: 500.00 [13:16:16]line Безнал.: 0.00 [13:16:16]line Место: АЗС № 114 "Партнер Нефть" [13:16:16]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [13:16:16]line СНО: Общий режим [13:16:16]line Чек 94 17.10.2024 13:16 [13:16:16]line Смена: 525 ФФД: 1.0 [13:16:16]line ЗНМ: 0300000086 [13:16:16]line РНМ: 0000000000091680 [13:16:16]line Версия ККМ: 001 [13:16:16]line ФМ: 0000000000871843 [13:16:16]line ФД: 82168 [13:16:16]line ФПД: 201667951572957 [13:16:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T131615&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82168&fm=201667951572957&tin=02508201610067®Number=0000000000091680&sum=50000 [13:16:16]OFD Sender: Processing packet 82168 [packets to send 254, broken 253] [13:16:16]ProducePacketName [13:16:16]name=ofd_packets/00082168 [13:16:16]OFD Sender: To server: pG, [13:16:16]CommunicateWithHost lk.salyk.kg:30040 [13:16:16]ConnectInit lk.salyk.kg [13:16:16]written 0, free lines is 4095 [13:16:17]Write to MH i2c: 01 00 00 7F 08 87 [13:16:17]Write i2c OK [13:16:17]MH_I2C_Read... [13:16:17]Read from MH i2c: 01 [13:16:17]MH_I2C_Read... [13:16:17]Read from MH i2c: 01 07 00 [13:16:17]MH_I2C_Read... [13:16:17]Read from MH i2c: 01 07 00 7F 08 00 00 00 00 00 D0 0C 6A [13:16:17]RasterBufferAndPrint [13:16:17]line [13:16:17]line [13:16:17]line [13:16:17]line [13:16:17]line [13:16:17]written 0, free lines is 3284 [13:16:17]MH_Cut [13:16:17]Write to MH i2c: D1 01 00 86 08 01 60 [13:16:17]Write i2c OK [13:16:17]MH_I2C_Read... [13:16:17]Read from MH i2c: D1 [13:16:17]MH_I2C_Read... [13:16:17]Read from MH i2c: D1 01 00 [13:16:17]MH_I2C_Read... [13:16:17]Read from MH i2c: D1 01 00 86 08 00 5F [13:16:17]Write to MH i2c: 01 00 00 87 08 8F [13:16:17]Write i2c OK [13:16:17]MH_I2C_Read... [13:16:17]Connected sock=11 [13:16:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 D4 3F 08 01 BC 78 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 1F 0E 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F8 40 01 00 35 04 06 00 B7 6A 7A 9D B7 DD 01 8E C2 E7 BB 9F E5 72 [13:16:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 00 43 47 00 F5 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 30 38 37 31 38 34 33 10 04 04 00 F8 40 01 00 F4 03 04 00 5D B3 10 67 B6 04 01 00 00 7C A2 AB FB DD 20 7D 71 [13:16:17]CommunicateWithHost err = 0 [13:16:17]CheckOFDResponse [13:16:17]1017 (14) - 77093643461234 [13:16:17]1041 (16) - 0000000000871843 [13:16:17]1040 (4) - 82168 [13:16:17]1012 (4) - 17.10.2024 06:49 [13:16:17]1206 (1) - 0 [13:16:17]OFD Sender: Remove packet 82168 [13:16:17]ProducePacketName [13:16:17]name=ofd_packets/00082168 [13:16:17]NVStorageDeleteData [13:16:17]*** Cut start [13:16:17]*** Partial cut [13:16:17]*** CUTSNS_PIN = 1 [13:16:18]*** CUTSNS_PIN = 0 [13:16:18]OFD Sender: No OFD packet to send [13:16:18]*** Brake cut motor [13:16:18]Read from MH i2c: 01 [13:16:18]MH_I2C_Read... [13:16:18]*** Stop cut motor [13:16:18]*** Cut end [13:16:18]Read from MH i2c: 01 07 00 [13:16:18]MH_I2C_Read... [13:16:18]Read from MH i2c: 01 07 00 87 08 00 00 00 00 00 FF 0F A4 [13:16:18]process_action close_receipt done [13:16:18]requested_data is exist [13:16:18]produce_requested_data [13:16:18]requested_item fm.sn is exist - process it [13:16:18]wFMCommunicate request_size=4 [13:16:18]MH_SAM_APDU [13:16:18]CAPDU: 80 11 00 00 [13:16:18]Write to MH i2c: E2 08 00 88 08 80 11 00 00 00 00 00 00 0A [13:16:18]Write i2c OK [13:16:18]MH_I2C_Read... [13:16:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:18]Read from MH i2c: E2 [13:16:18]MH_I2C_Read... [13:16:18]Read from MH i2c: E2 17 00 [13:16:18]MH_I2C_Read... [13:16:18]Read from MH i2c: E2 17 00 88 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 5C [13:16:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:16:18]wFMCommunicate OK [13:16:18]requested_item fd.num is exist - process it [13:16:18]SAM_PROTO_GetFieldsCounters [13:16:18]wFMCommunicate request_size=4 [13:16:18]MH_SAM_APDU [13:16:18]CAPDU: 80 13 00 00 [13:16:18]Write to MH i2c: E2 08 00 89 08 80 13 00 00 00 00 00 00 0D [13:16:18]Write i2c OK [13:16:18]MH_I2C_Read... [13:16:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:16:18]Read from MH i2c: E2 [13:16:18]MH_I2C_Read... [13:16:18]Read from MH i2c: E2 62 00 [13:16:18]MH_I2C_Read... [13:16:18]Read from MH i2c: E2 62 00 89 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F8 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [13:16:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F8 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:16:18]wFMCommunicate OK [13:16:18]SAM_PROTO_GetFieldsCounters done [13:16:18]requested_item shift.num is exist - process it [13:16:18]requested_item shift.opened is exist - process it [13:16:18]req_shift_opened [13:16:18]FM_GetShiftState [13:16:18]SAM_PROTO_GetShiftState [13:16:18]wFMCommunicate request_size=4 [13:16:18]MH_SAM_APDU [13:16:18]CAPDU: 80 13 01 00 [13:16:18]Write to MH i2c: E2 08 00 8A 08 80 13 01 00 00 00 00 00 0F [13:16:18]Write i2c OK [13:16:18]MH_I2C_Read... [13:16:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:18]Read from MH i2c: E2 [13:16:18]MH_I2C_Read... [13:16:18]Read from MH i2c: E2 0E 00 [13:16:18]MH_I2C_Read... [13:16:18]Read from MH i2c: E2 0E 00 8A 08 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 17 [13:16:18]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [13:16:18]wFMCommunicate OK [13:16:18]SAM_PROTO_GetShiftState done [13:16:18]FM_GetShiftState done [13:16:18]req_shift_opened done [13:16:18]requested_item shift.open_date is exist - process it [13:16:18]req_shift_open_date [13:16:18]req_shift_open_date done [13:16:18]produce_requested_data done [13:16:18]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82168,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [13:16:18]process_action_free close_receipt [13:16:18]json_value_free [13:16:18]json_value_free done [13:16:18]process_json_proto returns [13:16:18]Send response to host [13:16:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82168,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [13:16:18]free response buf [13:16:18]execute_script done [13:16:18]execute_script returns [13:16:18]free content buf [13:16:18]Sock 9.Close socket [13:16:18]Sock 9.Thread stoped [13:16:23]OFD Sender: No OFD packet to send [13:16:28]OFD Sender: No OFD packet to send [13:16:30]recv_with_timeout no data received [13:16:33]OFD Sender: No OFD packet to send [13:16:38]OFD Sender: No OFD packet to send [13:16:40]recv_with_timeout no data received [13:16:43]OFD Sender: No OFD packet to send [13:16:48]OFD Sender: No OFD packet to send [13:16:53]OFD Sender: No OFD packet to send [13:16:58]OFD Sender: No OFD packet to send [13:17:03]OFD Sender: No OFD packet to send [13:17:08]OFD Sender: No OFD packet to send [13:17:13]OFD Sender: No OFD packet to send [13:17:18]OFD Sender: No OFD packet to send [13:17:23]OFD Sender: No OFD packet to send [13:17:28]OFD Sender: No OFD packet to send [13:17:33]OFD Sender: No OFD packet to send [13:17:38]OFD Sender: No OFD packet to send [13:17:43]OFD Sender: No OFD packet to send [13:17:48]OFD Sender: No OFD packet to send [13:17:53]OFD Sender: No OFD packet to send [13:17:58]OFD Sender: No OFD packet to send [13:18:03]OFD Sender: No OFD packet to send [13:18:08]OFD Sender: No OFD packet to send [13:18:13]OFD Sender: No OFD packet to send [13:18:18]OFD Sender: No OFD packet to send [13:18:23]OFD Sender: No OFD packet to send [13:18:28]OFD Sender: No OFD packet to send [13:18:33]OFD Sender: No OFD packet to send [13:18:38]OFD Sender: No OFD packet to send [13:18:43]OFD Sender: No OFD packet to send [13:18:48]OFD Sender: No OFD packet to send [13:18:53]OFD Sender: No OFD packet to send [13:18:58]OFD Sender: No OFD packet to send [13:19:03]OFD Sender: No OFD packet to send [13:19:08]OFD Sender: No OFD packet to send [13:19:13]OFD Sender: No OFD packet to send [13:19:18]OFD Sender: No OFD packet to send [13:19:23]OFD Sender: No OFD packet to send [13:19:28]OFD Sender: No OFD packet to send [13:19:33]OFD Sender: No OFD packet to send [13:19:38]OFD Sender: No OFD packet to send [13:19:43]OFD Sender: No OFD packet to send [13:19:48]OFD Sender: No OFD packet to send [13:19:53]OFD Sender: No OFD packet to send [13:19:58]OFD Sender: No OFD packet to send [13:20:03]OFD Sender: No OFD packet to send [13:20:08]OFD Sender: No OFD packet to send [13:20:13]OFD Sender: No OFD packet to send [13:20:18]OFD Sender: No OFD packet to send [13:20:23]OFD Sender: No OFD packet to send [13:20:28]OFD Sender: No OFD packet to send [13:20:33]OFD Sender: No OFD packet to send [13:20:38]OFD Sender: No OFD packet to send [13:20:43]OFD Sender: No OFD packet to send [13:20:48]OFD Sender: No OFD packet to send [13:20:53]OFD Sender: No OFD packet to send [13:20:58]OFD Sender: No OFD packet to send [13:21:03]OFD Sender: No OFD packet to send [13:21:08]OFD Sender: No OFD packet to send [13:21:13]OFD Sender: No OFD packet to send [13:21:18]OFD Sender: No OFD packet to send [13:21:23]OFD Sender: No OFD packet to send [13:21:28]OFD Sender: No OFD packet to send [13:21:33]OFD Sender: No OFD packet to send [13:21:38]OFD Sender: No OFD packet to send [13:21:43]OFD Sender: No OFD packet to send [13:21:48]OFD Sender: No OFD packet to send [13:21:53]OFD Sender: No OFD packet to send [13:21:58]OFD Sender: No OFD packet to send [13:22:03]OFD Sender: No OFD packet to send [13:22:08]OFD Sender: No OFD packet to send [13:22:13]OFD Sender: No OFD packet to send [13:22:18]OFD Sender: No OFD packet to send [13:22:23]OFD Sender: No OFD packet to send [13:22:28]OFD Sender: No OFD packet to send [13:22:33]OFD Sender: No OFD packet to send [13:22:38]OFD Sender: No OFD packet to send [13:22:43]OFD Sender: No OFD packet to send [13:22:48]OFD Sender: No OFD packet to send [13:22:53]OFD Sender: No OFD packet to send [13:22:58]OFD Sender: No OFD packet to send [13:23:03]OFD Sender: No OFD packet to send [13:23:08]OFD Sender: No OFD packet to send [13:23:13]OFD Sender: No OFD packet to send [13:23:18]OFD Sender: No OFD packet to send [13:23:23]OFD Sender: No OFD packet to send [13:23:28]OFD Sender: No OFD packet to send [13:23:33]OFD Sender: No OFD packet to send [13:23:38]OFD Sender: No OFD packet to send [13:23:43]OFD Sender: No OFD packet to send [13:23:48]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:05]accept exits with 7 [13:27:05]New connection [13:27:05]New thread 3067002212 created [13:27:05]Thread 3067145572 joined [13:27:05]Waiting for new connection... [13:27:05] Sock 7.Parse request [13:27:05]Sock 7.Check first char [13:27:05]Sock 7.First char is OK [13:27:05]request: POST /json_proto HTTP/1.0 [13:27:05]Method: POST [13:27:05]URL: /json_proto [13:27:05]Method is POST - this is cgi request [13:27:05]url: /json_proto [13:27:05]query_string will be loaded in cgi processing [13:27:05]execute_cgi json_proto POST (null) [13:27:05]execute_cgi path=json_proto method=POST [13:27:05]POST find Content-Length [13:27:05]Host: 172.17.44.67:8080 [13:27:05]Content-Length: 682 [13:27:05]Content-Type: application/json [13:27:05] [13:27:05]POST finish read [13:27:05]Found Content-Length = 682 [13:27:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:05]execute_script... [13:27:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:05]POST & json_proto [13:27:05]process_json_proto [13:27:05]json parsed OK: [13:27:05]protocol is kg_v1.0 [13:27:05]action value=close_receipt [13:27:05]process_action close_receipt [13:27:05]cmd_close_receipt [13:27:05]MH_GetDate [13:27:05]Write to MH i2c: F0 00 00 8B 08 82 [13:27:05]Write i2c OK [13:27:05]MH_I2C_Read... [13:27:05]Read from MH i2c: F0 [13:27:05]MH_I2C_Read... [13:27:05]Read from MH i2c: F0 09 00 [13:27:05]MH_I2C_Read... [13:27:05]Read from MH i2c: F0 09 00 8B 08 00 AA 10 11 67 F1 C7 6B 64 44 [13:27:05]GetLastDocTimeStamp 1729170975 [13:27:05]current date 1729171626 [13:27:05]FM_GetShiftState [13:27:05]SAM_PROTO_GetShiftState [13:27:05]wFMCommunicate request_size=4 [13:27:05]MH_SAM_APDU [13:27:05]CAPDU: 80 13 01 00 [13:27:05]Write to MH i2c: E2 08 00 8C 08 80 13 01 00 00 00 00 00 11 [13:27:05]Write i2c OK [13:27:05]MH_I2C_Read... [13:27:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:05]Read from MH i2c: E2 [13:27:05]MH_I2C_Read... [13:27:05]Read from MH i2c: E2 0E 00 [13:27:05]MH_I2C_Read... [13:27:05]Read from MH i2c: E2 0E 00 8C 08 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 19 [13:27:05]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [13:27:05]wFMCommunicate OK [13:27:05]SAM_PROTO_GetShiftState done [13:27:05]FM_GetShiftState done [13:27:05]opened in 1729125927 [13:27:05]opened+sec_in_day 1729212327 [13:27:05]quantity*price = 150056 [13:27:05]sum+1 = 150058 [13:27:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 95 17.10.2024 13:27 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82169 ФПД: 221283653685151 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T132706&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82169&fm=221283653685151&tin=02508201610067®Number=0000000000091680&sum=150000 [13:27:06]StoreToDocumentArchive [13:27:06]shift 525 fd 82169 [13:27:06]save to /storage/0525/doc_00082169 [13:27:06]save last doc name /storage/0525/doc_00082169 to /storage/kkm_last_doc_name [13:27:06]save OK [13:27:06]Clear old archive folders... [13:27:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:27:06]tlvbuf is 01D24A80 [13:27:06]SAM_PROTO_ClearQueue [13:27:06]wFMCommunicate request_size=4 [13:27:06]MH_SAM_APDU [13:27:06]CAPDU: 80 09 00 00 [13:27:06]Write to MH i2c: E2 08 00 99 08 80 09 00 00 00 00 00 00 13 [13:27:06]Write i2c OK [13:27:06]MH_I2C_Read... [13:27:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:27:06]Read from MH i2c: E2 [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: E2 03 00 [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: E2 03 00 99 08 00 90 00 15 [13:27:06]RAPDU: 90 00 [13:27:06]wFMCommunicate OK [13:27:06]SAM_PROTO_ClearQueue done [13:27:06]KKMCreateOFDPacket [13:27:06]OFDProtocolAddRootSTLVToBuf [13:27:06]FM_MakeSignedData [13:27:06]FM_MakeSignedData [13:27:06]SAM_PROTO_SignData [13:27:06]wFMCommunicate request_size=4 [13:27:06]MH_SAM_APDU [13:27:06]CAPDU: 80 0D 01 02 [13:27:06]Write to MH i2c: E2 08 00 9A 08 80 0D 01 02 00 00 00 00 1B [13:27:06]Write i2c OK [13:27:06]MH_I2C_Read... [13:27:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:27:06]Read from MH i2c: E2 [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: E2 03 00 [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: E2 03 00 9A 08 00 90 00 16 [13:27:06]RAPDU: 90 00 [13:27:06]wFMCommunicate OK [13:27:06]wFMCommunicate request_size=255 [13:27:06]MH_SAM_APDU [13:27:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 AA 10 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F9 40 01 00 35 04 06 00 C9 [13:27:06]Write to MH i2c: E2 02 01 9B 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 AA 10 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F9 40 01 00 35 04 06 00 C9 00 00 93 [13:27:06]Write i2c OK [13:27:06]MH_I2C_Read... [13:27:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:07]Read from MH i2c: E2 [13:27:07]MH_I2C_Read... [13:27:07]Read from MH i2c: E2 03 00 [13:27:07]MH_I2C_Read... [13:27:07]Read from MH i2c: E2 03 00 9B 08 00 90 00 17 [13:27:07]RAPDU: 90 00 [13:27:07]wFMCommunicate OK [13:27:07]wFMCommunicate request_size=10 [13:27:07]MH_SAM_APDU [13:27:07]CAPDU: 80 0D 02 02 05 41 9D 92 8F 9F [13:27:07]Write to MH i2c: E2 0D 00 9C 08 80 0D 02 02 05 00 41 9D 92 8F 9F 00 00 C6 [13:27:07]Write i2c OK [13:27:07]MH_I2C_Read... [13:27:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:07]Read from MH i2c: E2 [13:27:07]MH_I2C_Read... [13:27:07]Read from MH i2c: E2 03 00 [13:27:07]MH_I2C_Read... [13:27:07]Read from MH i2c: E2 03 00 9C 08 00 90 00 18 [13:27:07]RAPDU: 90 00 [13:27:07]wFMCommunicate OK [13:27:07]wFMCommunicate request_size=4 [13:27:07]MH_SAM_APDU [13:27:07]CAPDU: 80 0D 03 02 [13:27:07]Write to MH i2c: E2 08 00 9D 08 80 0D 03 02 00 00 00 00 20 [13:27:07]Write i2c OK [13:27:07]MH_I2C_Read... [13:27:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:27:07]Read from MH i2c: E2 [13:27:07]MH_I2C_Read... [13:27:07]Read from MH i2c: E2 0B 00 [13:27:07]MH_I2C_Read... [13:27:07]Read from MH i2c: E2 0B 00 9D 08 00 43 25 BE 04 E5 0D ED 0A 90 00 34 [13:27:07]RAPDU: 43 25 BE 04 E5 0D ED 0A 90 00 [13:27:07]wFMCommunicate OK [13:27:07]SAM_PROTO_SignData done [13:27:07]FM_MakeSignedData done [13:27:07]CreateOFDProtocolMessage [13:27:07]wFMCommunicate request_size=4 [13:27:07]MH_SAM_APDU [13:27:07]CAPDU: 80 11 00 00 [13:27:07]Write to MH i2c: E2 08 00 9E 08 80 11 00 00 00 00 00 00 20 [13:27:07]Write i2c OK [13:27:07]MH_I2C_Read... [13:27:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:07]Read from MH i2c: E2 [13:27:07]MH_I2C_Read... [13:27:07]Read from MH i2c: E2 17 00 [13:27:07]MH_I2C_Read... [13:27:07]Read from MH i2c: E2 17 00 9E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 72 [13:27:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:27:07]wFMCommunicate OK [13:27:07]CreateOFDProtocolMessage done [13:27:07]OFDSenderStorePacket 82169 [13:27:07]StoreOFDPacket docnum=82169 [13:27:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 92 56 07 01 00 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 AA 10 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F9 40 01 00 35 04 06 00 C9 41 9D 92 8F 9F 43 25 BE 04 E5 0D ED 0A [13:27:07]CheckFolder [13:27:07]dirname=/storage/ofd_packets [13:27:07]CheckFolder done [13:27:07]ProducePacketName [13:27:07]name=ofd_packets/00082169 [13:27:07]NVStorageSaveData ofd_packets/00082169 [13:27:07]File name is /storage/ofd_packets/00082169 [13:27:07]Write 301 bytes [13:27:07]NVStorageSaveData done [13:27:07]OFDSenderStorePacket done [13:27:07]KKMCreateOFDPacket done [13:27:07]NVStorageSaveData kkm_last_timestamp [13:27:07]File name is /storage/kkm_last_timestamp [13:27:07]Write 4 bytes [13:27:07]NVStorageSaveData done [13:27:07]ExternCall_PrintAddStr [13:27:07]wPrintStart [13:27:07]Write to MH i2c: 01 00 00 9F 08 A7 [13:27:07]Write i2c OK [13:27:07]MH_I2C_Read... [13:27:07]Read from MH i2c: 01 [13:27:07]MH_I2C_Read... [13:27:07]Read from MH i2c: 01 07 00 [13:27:07]MH_I2C_Read... [13:27:07]Read from MH i2c: 01 07 00 9F 08 00 00 00 00 00 FF 0F BC [13:27:07]RasterBufferAndPrint [13:27:07]line Счет N : (1)918674 [13:27:07]line ИНН: 02508201610067 [13:27:07]line Контрольно-Кассовый Чек [13:27:07]line ПРОДАЖА [13:27:07]line ТРК (МРК, ГНК) : 22 [13:27:07]line Товар: 2710124130 [13:27:07]line Аи-92-К-4 [13:27:07]line 22.430 * 66.90 [13:27:07]line = 1500.57 [13:27:07]line НДС 12% НСП 1% [13:27:07]line > о реализуемом товаре [13:27:07]line ОКРУГЛЕНИЕ: -0.57 [13:27:07]line ИТОГО: 1500.00 [13:27:07]line Внесено: 1500.00 [13:27:07]line СДАЧА: 0.00 [13:27:07]line НСП 1% : 13.28 [13:27:07]line НДС 12% : 159.35 [13:27:07]line Наличными: 1500.00 [13:27:07]line Безнал.: 0.00 [13:27:07]line Место: АЗС № 114 "Партнер Нефть" [13:27:07]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [13:27:07]line СНО: Общий режим [13:27:07]line Чек 95 17.10.2024 13:27 [13:27:07]line Смена: 525 ФФД: 1.0 [13:27:07]line ЗНМ: 0300000086 [13:27:07]line РНМ: 0000000000091680 [13:27:07]line Версия ККМ: 001 [13:27:07]line ФМ: 0000000000871843 [13:27:07]line ФД: 82169 [13:27:07]line ФПД: 221283653685151 [13:27:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T132706&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82169&fm=221283653685151&tin=02508201610067®Number=0000000000091680&sum=150000 [13:27:07]OFD Sender: Processing packet 82169 [packets to send 254, broken 253] [13:27:07]ProducePacketName [13:27:07]name=ofd_packets/00082169 [13:27:07]OFD Sender: To server: pG, [13:27:07]CommunicateWithHost lk.salyk.kg:30040 [13:27:07]ConnectInit lk.salyk.kg [13:27:07]written 0, free lines is 4095 [13:27:08]Write to MH i2c: 01 00 00 CA 08 D2 [13:27:08]Write i2c OK [13:27:08]MH_I2C_Read... [13:27:08]Read from MH i2c: 01 [13:27:08]MH_I2C_Read... [13:27:08]Read from MH i2c: 01 07 00 [13:27:08]MH_I2C_Read... [13:27:08]Read from MH i2c: 01 07 00 CA 08 00 00 00 00 00 D7 0C BC [13:27:08]RasterBufferAndPrint [13:27:08]line [13:27:08]line [13:27:08]line [13:27:08]line [13:27:08]line [13:27:08]written 0, free lines is 3294 [13:27:08]MH_Cut [13:27:08]Write to MH i2c: D1 01 00 D1 08 01 AB [13:27:08]Write i2c OK [13:27:08]MH_I2C_Read... [13:27:08]Read from MH i2c: D1 [13:27:08]MH_I2C_Read... [13:27:08]Read from MH i2c: D1 01 00 [13:27:08]MH_I2C_Read... [13:27:08]Read from MH i2c: D1 01 00 D1 08 00 AA [13:27:08]Write to MH i2c: 01 00 00 D2 08 DA [13:27:08]Write i2c OK [13:27:08]MH_I2C_Read... [13:27:08]Connected sock=9 [13:27:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 92 56 07 01 00 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 AA 10 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F9 40 01 00 35 04 06 00 C9 41 9D 92 8F 9F 43 25 BE 04 E5 0D ED 0A [13:27:08]*** Cut start [13:27:08]*** Partial cut [13:27:08]*** CUTSNS_PIN = 1 [13:27:08]*** CUTSNS_PIN = 0 [13:27:09]*** Brake cut motor [13:27:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 C4 4B 47 00 76 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F9 40 01 00 F4 03 04 00 E9 B5 10 67 B6 04 01 00 00 71 4C 54 6E 0E 23 4F 2E [13:27:09]CommunicateWithHost err = 0 [13:27:09]CheckOFDResponse [13:27:09]1017 (14) - 77093643461234 [13:27:09]1041 (16) - 0000000000871843 [13:27:09]1040 (4) - 82169 [13:27:09]1012 (4) - 17.10.2024 06:59 [13:27:09]1206 (1) - 0 [13:27:09]OFD Sender: Remove packet 82169 [13:27:09]ProducePacketName [13:27:09]name=ofd_packets/00082169 [13:27:09]NVStorageDeleteData [13:27:09]Read from MH i2c: 01 [13:27:09]MH_I2C_Read... [13:27:09]*** Stop cut motor [13:27:09]*** Cut end [13:27:09]Read from MH i2c: 01 07 00 [13:27:09]MH_I2C_Read... [13:27:09]Read from MH i2c: 01 07 00 D2 08 00 00 00 00 00 FF 0F EF [13:27:09]process_action close_receipt done [13:27:09]requested_data is exist [13:27:09]produce_requested_data [13:27:09]requested_item fm.sn is exist - process it [13:27:09]wFMCommunicate request_size=4 [13:27:09]MH_SAM_APDU [13:27:09]CAPDU: 80 11 00 00 [13:27:09]Write to MH i2c: E2 08 00 D3 08 80 11 00 00 00 00 00 00 55 [13:27:09]Write i2c OK [13:27:09]MH_I2C_Read... [13:27:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:09]Read from MH i2c: E2 [13:27:09]MH_I2C_Read... [13:27:09]Read from MH i2c: E2 17 00 [13:27:09]MH_I2C_Read... [13:27:09]Read from MH i2c: E2 17 00 D3 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 A7 [13:27:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:27:09]wFMCommunicate OK [13:27:09]requested_item fd.num is exist - process it [13:27:09]SAM_PROTO_GetFieldsCounters [13:27:09]wFMCommunicate request_size=4 [13:27:09]MH_SAM_APDU [13:27:09]CAPDU: 80 13 00 00 [13:27:09]Write to MH i2c: E2 08 00 D4 08 80 13 00 00 00 00 00 00 58 [13:27:09]Write i2c OK [13:27:09]MH_I2C_Read... [13:27:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:09]Read from MH i2c: E2 [13:27:09]MH_I2C_Read... [13:27:09]Read from MH i2c: E2 62 00 [13:27:09]MH_I2C_Read... [13:27:09]Read from MH i2c: E2 62 00 D4 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F9 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [13:27:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F9 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:27:09]wFMCommunicate OK [13:27:09]SAM_PROTO_GetFieldsCounters done [13:27:09]requested_item shift.num is exist - process it [13:27:09]requested_item shift.opened is exist - process it [13:27:09]req_shift_opened [13:27:09]FM_GetShiftState [13:27:09]SAM_PROTO_GetShiftState [13:27:09]wFMCommunicate request_size=4 [13:27:09]MH_SAM_APDU [13:27:09]CAPDU: 80 13 01 00 [13:27:09]Write to MH i2c: E2 08 00 D5 08 80 13 01 00 00 00 00 00 5A [13:27:09]Write i2c OK [13:27:09]MH_I2C_Read... [13:27:09]OFD Sender: No OFD packet to send [13:27:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:09]Read from MH i2c: E2 [13:27:09]MH_I2C_Read... [13:27:09]Read from MH i2c: E2 0E 00 [13:27:09]MH_I2C_Read... [13:27:09]Read from MH i2c: E2 0E 00 D5 08 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 62 [13:27:09]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [13:27:09]wFMCommunicate OK [13:27:09]SAM_PROTO_GetShiftState done [13:27:09]FM_GetShiftState done [13:27:09]req_shift_opened done [13:27:09]requested_item shift.open_date is exist - process it [13:27:09]req_shift_open_date [13:27:09]req_shift_open_date done [13:27:09]produce_requested_data done [13:27:09]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82169,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [13:27:09]process_action_free close_receipt [13:27:09]json_value_free [13:27:09]json_value_free done [13:27:09]process_json_proto returns [13:27:09]Send response to host [13:27:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82169,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [13:27:09]free response buf [13:27:09]execute_script done [13:27:09]execute_script returns [13:27:09]free content buf [13:27:09]Sock 7.Close socket [13:27:09]Sock 7.Thread stoped [13:27:14]OFD Sender: No OFD packet to send [13:27:17]recv_with_timeout no data received [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:32]accept exits with 10 [13:27:32]New connection [13:27:32]New thread 3067145572 created [13:27:32]Thread 3067002212 joined [13:27:32]Waiting for new connection... [13:27:32] Sock 10.Parse request [13:27:32]Sock 10.Check first char [13:27:32]Sock 10.First char is OK [13:27:32]request: POST /json_proto HTTP/1.0 [13:27:32]Method: POST [13:27:32]URL: /json_proto [13:27:32]Method is POST - this is cgi request [13:27:32]url: /json_proto [13:27:32]query_string will be loaded in cgi processing [13:27:32]execute_cgi json_proto POST (null) [13:27:32]execute_cgi path=json_proto method=POST [13:27:32]POST find Content-Length [13:27:32]Host: 172.17.44.67:8080 [13:27:32]Content-Length: 687 [13:27:32]Content-Type: application/json [13:27:32] [13:27:32]POST finish read [13:27:32]Found Content-Length = 687 [13:27:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:32]execute_script... [13:27:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:32]POST & json_proto [13:27:32]process_json_proto [13:27:32]json parsed OK: [13:27:32]protocol is kg_v1.0 [13:27:32]action value=close_receipt [13:27:32]process_action close_receipt [13:27:32]cmd_close_receipt [13:27:32]MH_GetDate [13:27:32]Write to MH i2c: F0 00 00 D6 08 CD [13:27:32]Write i2c OK [13:27:32]MH_I2C_Read... [13:27:32]Read from MH i2c: F0 [13:27:32]MH_I2C_Read... [13:27:32]Read from MH i2c: F0 09 00 [13:27:32]MH_I2C_Read... [13:27:32]Read from MH i2c: F0 09 00 D6 08 00 C5 10 11 67 F1 C7 6B 64 AA [13:27:32]GetLastDocTimeStamp 1729171626 [13:27:32]current date 1729171653 [13:27:32]FM_GetShiftState [13:27:32]SAM_PROTO_GetShiftState [13:27:32]wFMCommunicate request_size=4 [13:27:32]MH_SAM_APDU [13:27:32]CAPDU: 80 13 01 00 [13:27:32]Write to MH i2c: E2 08 00 D7 08 80 13 01 00 00 00 00 00 5C [13:27:32]Write i2c OK [13:27:32]MH_I2C_Read... [13:27:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:32]Read from MH i2c: E2 [13:27:32]MH_I2C_Read... [13:27:32]Read from MH i2c: E2 0E 00 [13:27:32]MH_I2C_Read... [13:27:32]Read from MH i2c: E2 0E 00 D7 08 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 64 [13:27:32]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [13:27:32]wFMCommunicate OK [13:27:32]SAM_PROTO_GetShiftState done [13:27:32]FM_GetShiftState done [13:27:32]opened in 1729125927 [13:27:32]opened+sec_in_day 1729212327 [13:27:32]quantity*price = 120015 [13:27:32]sum+1 = 120016 [13:27:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 96 17.10.2024 13:27 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82170 ФПД: 126058745270122 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T132733&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82170&fm=126058745270122&tin=02508201610067®Number=0000000000091680&sum=120000 [13:27:33]StoreToDocumentArchive [13:27:33]shift 525 fd 82170 [13:27:33]save to /storage/0525/doc_00082170 [13:27:33]save last doc name /storage/0525/doc_00082170 to /storage/kkm_last_doc_name [13:27:33]save OK [13:27:33]Clear old archive folders... [13:27:33]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:27:33]tlvbuf is 01D9DD30 [13:27:33]SAM_PROTO_ClearQueue [13:27:33]wFMCommunicate request_size=4 [13:27:33]MH_SAM_APDU [13:27:33]CAPDU: 80 09 00 00 [13:27:33]Write to MH i2c: E2 08 00 E4 08 80 09 00 00 00 00 00 00 5E [13:27:33]Write i2c OK [13:27:33]MH_I2C_Read... [13:27:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:27:33]Read from MH i2c: E2 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 03 00 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 03 00 E4 08 00 90 00 60 [13:27:33]RAPDU: 90 00 [13:27:33]wFMCommunicate OK [13:27:33]SAM_PROTO_ClearQueue done [13:27:33]KKMCreateOFDPacket [13:27:33]OFDProtocolAddRootSTLVToBuf [13:27:33]FM_MakeSignedData [13:27:33]FM_MakeSignedData [13:27:33]SAM_PROTO_SignData [13:27:33]wFMCommunicate request_size=4 [13:27:33]MH_SAM_APDU [13:27:33]CAPDU: 80 0D 01 02 [13:27:33]Write to MH i2c: E2 08 00 E5 08 80 0D 01 02 00 00 00 00 66 [13:27:33]Write i2c OK [13:27:33]MH_I2C_Read... [13:27:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:27:33]Read from MH i2c: E2 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 03 00 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 03 00 E5 08 00 90 00 61 [13:27:33]RAPDU: 90 00 [13:27:33]wFMCommunicate OK [13:27:33]wFMCommunicate request_size=255 [13:27:33]MH_SAM_APDU [13:27:33]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 C5 10 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FA 40 01 00 35 04 06 00 [13:27:33]Write to MH i2c: E2 02 01 E6 08 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 C5 10 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FA 40 01 00 35 04 06 00 00 00 36 [13:27:33]Write i2c OK [13:27:33]MH_I2C_Read... [13:27:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:33]Read from MH i2c: E2 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 03 00 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 03 00 E6 08 00 90 00 62 [13:27:33]RAPDU: 90 00 [13:27:33]wFMCommunicate OK [13:27:33]wFMCommunicate request_size=11 [13:27:33]MH_SAM_APDU [13:27:33]CAPDU: 80 0D 02 02 06 72 A6 56 BB 8F 6A [13:27:33]Write to MH i2c: E2 0E 00 E7 08 80 0D 02 02 06 00 72 A6 56 BB 8F 6A 00 00 97 [13:27:33]Write i2c OK [13:27:33]MH_I2C_Read... [13:27:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:33]Read from MH i2c: E2 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 03 00 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 03 00 E7 08 00 90 00 63 [13:27:33]RAPDU: 90 00 [13:27:33]wFMCommunicate OK [13:27:33]wFMCommunicate request_size=4 [13:27:33]MH_SAM_APDU [13:27:33]CAPDU: 80 0D 03 02 [13:27:33]Write to MH i2c: E2 08 00 E8 08 80 0D 03 02 00 00 00 00 6B [13:27:33]Write i2c OK [13:27:33]MH_I2C_Read... [13:27:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:27:33]Read from MH i2c: E2 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 0B 00 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 0B 00 E8 08 00 B7 BE 43 79 85 05 64 49 90 00 D4 [13:27:33]RAPDU: B7 BE 43 79 85 05 64 49 90 00 [13:27:33]wFMCommunicate OK [13:27:33]SAM_PROTO_SignData done [13:27:33]FM_MakeSignedData done [13:27:33]CreateOFDProtocolMessage [13:27:33]wFMCommunicate request_size=4 [13:27:33]MH_SAM_APDU [13:27:33]CAPDU: 80 11 00 00 [13:27:33]Write to MH i2c: E2 08 00 E9 08 80 11 00 00 00 00 00 00 6B [13:27:33]Write i2c OK [13:27:33]MH_I2C_Read... [13:27:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:34]Read from MH i2c: E2 [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: E2 17 00 [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: E2 17 00 E9 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 BD [13:27:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:27:34]wFMCommunicate OK [13:27:34]CreateOFDProtocolMessage done [13:27:34]OFDSenderStorePacket 82170 [13:27:34]StoreOFDPacket docnum=82170 [13:27:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 3C 93 08 01 C9 54 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 C5 10 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FA 40 01 00 35 04 06 00 72 A6 56 BB 8F 6A B7 BE 43 79 85 05 64 49 [13:27:34]CheckFolder [13:27:34]dirname=/storage/ofd_packets [13:27:34]CheckFolder done [13:27:34]ProducePacketName [13:27:34]name=ofd_packets/00082170 [13:27:34]NVStorageSaveData ofd_packets/00082170 [13:27:34]File name is /storage/ofd_packets/00082170 [13:27:34]Write 302 bytes [13:27:34]NVStorageSaveData done [13:27:34]OFDSenderStorePacket done [13:27:34]KKMCreateOFDPacket done [13:27:34]NVStorageSaveData kkm_last_timestamp [13:27:34]File name is /storage/kkm_last_timestamp [13:27:34]Write 4 bytes [13:27:34]NVStorageSaveData done [13:27:34]ExternCall_PrintAddStr [13:27:34]wPrintStart [13:27:34]Write to MH i2c: 01 00 00 EA 08 F2 [13:27:34]Write i2c OK [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: 01 [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: 01 07 00 [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: 01 07 00 EA 08 00 00 00 00 00 FF 0F 07 [13:27:34]RasterBufferAndPrint [13:27:34]line Счет N : (1)918675 [13:27:34]line ИНН: 02508201610067 [13:27:34]line Контрольно-Кассовый Чек [13:27:34]line ПРОДАЖА [13:27:34]line ТРК (МРК, ГНК) : 31 [13:27:34]line Товар: 2710194210 [13:27:34]line ДТ(л)-К-5 [13:27:34]line 15.750 * 76.20 [13:27:34]line = 1200.15 [13:27:34]line НДС 12% НСП 1% [13:27:34]line > о реализуемом товаре [13:27:34]line ОКРУГЛЕНИЕ: -0.15 [13:27:34]line ИТОГО: 1200.00 [13:27:34]line Внесено: 1200.00 [13:27:34]line СДАЧА: 0.00 [13:27:34]line НСП 1% : 10.62 [13:27:34]line НДС 12% : 127.45 [13:27:34]line Наличными: 1200.00 [13:27:34]line Безнал.: 0.00 [13:27:34]line Место: АЗС № 114 "Партнер Нефть" [13:27:34]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [13:27:34]line СНО: Общий режим [13:27:34]line Чек 96 17.10.2024 13:27 [13:27:34]line Смена: 525 ФФД: 1.0 [13:27:34]line ЗНМ: 0300000086 [13:27:34]line РНМ: 0000000000091680 [13:27:34]line Версия ККМ: 001 [13:27:34]line ФМ: 0000000000871843 [13:27:34]line ФД: 82170 [13:27:34]line ФПД: 126058745270122 [13:27:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T132733&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82170&fm=126058745270122&tin=02508201610067®Number=0000000000091680&sum=120000 [13:27:34]OFD Sender: Processing packet 82170 [packets to send 254, broken 253] [13:27:34]ProducePacketName [13:27:34]name=ofd_packets/00082170 [13:27:34]OFD Sender: To server: pG, [13:27:34]CommunicateWithHost lk.salyk.kg:30040 [13:27:34]ConnectInit lk.salyk.kg [13:27:34]written 0, free lines is 4095 [13:27:34]Write to MH i2c: 01 00 00 15 09 1E [13:27:34]Write i2c OK [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: 01 [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: 01 07 00 [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: 01 07 00 15 09 00 00 00 00 00 D4 0C 05 [13:27:34]RasterBufferAndPrint [13:27:34]line [13:27:34]line [13:27:34]line [13:27:34]line [13:27:34]line [13:27:34]written 0, free lines is 3292 [13:27:34]MH_Cut [13:27:34]Write to MH i2c: D1 01 00 1C 09 01 F7 [13:27:34]Write i2c OK [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: D1 [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: D1 01 00 [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: D1 01 00 1C 09 00 F6 [13:27:34]Write to MH i2c: 01 00 00 1D 09 26 [13:27:34]Write i2c OK [13:27:34]MH_I2C_Read... [13:27:35]*** Cut start [13:27:35]*** Partial cut [13:27:35]*** CUTSNS_PIN = 1 [13:27:35]*** CUTSNS_PIN = 0 [13:27:35]*** Brake cut motor [13:27:36]Read from MH i2c: 01 [13:27:36]MH_I2C_Read... [13:27:36]*** Stop cut motor [13:27:36]*** Cut end [13:27:36]Read from MH i2c: 01 07 00 [13:27:36]MH_I2C_Read... [13:27:36]Read from MH i2c: 01 07 00 1D 09 00 00 00 00 00 FF 0F 3B [13:27:36]process_action close_receipt done [13:27:36]requested_data is exist [13:27:36]produce_requested_data [13:27:36]requested_item fm.sn is exist - process it [13:27:36]wFMCommunicate request_size=4 [13:27:36]MH_SAM_APDU [13:27:36]CAPDU: 80 11 00 00 [13:27:36]Write to MH i2c: E2 08 00 1E 09 80 11 00 00 00 00 00 00 A1 [13:27:36]Write i2c OK [13:27:36]MH_I2C_Read... [13:27:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:36]Read from MH i2c: E2 [13:27:36]MH_I2C_Read... [13:27:36]Read from MH i2c: E2 17 00 [13:27:36]MH_I2C_Read... [13:27:36]Read from MH i2c: E2 17 00 1E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 F3 [13:27:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:27:36]wFMCommunicate OK [13:27:36]requested_item fd.num is exist - process it [13:27:36]SAM_PROTO_GetFieldsCounters [13:27:36]wFMCommunicate request_size=4 [13:27:36]MH_SAM_APDU [13:27:36]CAPDU: 80 13 00 00 [13:27:36]Write to MH i2c: E2 08 00 1F 09 80 13 00 00 00 00 00 00 A4 [13:27:36]Write i2c OK [13:27:36]MH_I2C_Read... [13:27:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:36]Read from MH i2c: E2 [13:27:36]MH_I2C_Read... [13:27:36]Read from MH i2c: E2 62 00 [13:27:36]MH_I2C_Read... [13:27:36]Read from MH i2c: E2 62 00 1F 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 FA 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [13:27:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 FA 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:27:36]wFMCommunicate OK [13:27:36]SAM_PROTO_GetFieldsCounters done [13:27:36]requested_item shift.num is exist - process it [13:27:36]requested_item shift.opened is exist - process it [13:27:36]req_shift_opened [13:27:36]FM_GetShiftState [13:27:36]SAM_PROTO_GetShiftState [13:27:36]wFMCommunicate request_size=4 [13:27:36]MH_SAM_APDU [13:27:36]CAPDU: 80 13 01 00 [13:27:36]Write to MH i2c: E2 08 00 20 09 80 13 01 00 00 00 00 00 A6 [13:27:36]Write i2c OK [13:27:36]MH_I2C_Read... [13:27:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:36]Read from MH i2c: E2 [13:27:36]MH_I2C_Read... [13:27:36]Read from MH i2c: E2 0E 00 [13:27:36]MH_I2C_Read... [13:27:36]Read from MH i2c: E2 0E 00 20 09 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 AE [13:27:36]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [13:27:36]wFMCommunicate OK [13:27:36]SAM_PROTO_GetShiftState done [13:27:36]FM_GetShiftState done [13:27:36]req_shift_opened done [13:27:36]requested_item shift.open_date is exist - process it [13:27:36]req_shift_open_date [13:27:36]req_shift_open_date done [13:27:36]produce_requested_data done [13:27:36]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82170,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [13:27:36]process_action_free close_receipt [13:27:36]json_value_free [13:27:36]json_value_free done [13:27:36]process_json_proto returns [13:27:36]Send response to host [13:27:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82170,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [13:27:36]free response buf [13:27:36]execute_script done [13:27:36]execute_script returns [13:27:36]free content buf [13:27:36]Sock 10.Close socket [13:27:36]Sock 10.Thread stoped [13:27:37]recv_with_timeout no data received [13:27:37]Connected sock=11 [13:27:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 3C 93 08 01 C9 54 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 C5 10 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FA 40 01 00 35 04 06 00 72 A6 56 BB 8F 6A B7 BE 43 79 85 05 64 49 [13:27:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 E9 BE 47 00 CE AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FA 40 01 00 F4 03 04 00 06 B6 10 67 B6 04 01 00 00 2A 9D 14 26 FF 98 1C 5A [13:27:38]CommunicateWithHost err = 0 [13:27:38]CheckOFDResponse [13:27:38]1017 (14) - 77093643461234 [13:27:38]1041 (16) - 0000000000871843 [13:27:38]1040 (4) - 82170 [13:27:38]1012 (4) - 17.10.2024 07:00 [13:27:38]1206 (1) - 0 [13:27:38]OFD Sender: Remove packet 82170 [13:27:38]ProducePacketName [13:27:38]name=ofd_packets/00082170 [13:27:38]NVStorageDeleteData [13:27:38]OFD Sender: No OFD packet to send [13:27:43]OFD Sender: No OFD packet to send [13:27:48]OFD Sender: No OFD packet to send [13:27:53]OFD Sender: No OFD packet to send [13:27:58]OFD Sender: No OFD packet to send [13:28:03]OFD Sender: No OFD packet to send [13:28:06]recv_with_timeout no data received [13:28:08]OFD Sender: No OFD packet to send [13:28:13]OFD Sender: No OFD packet to send [13:28:18]OFD Sender: No OFD packet to send [13:28:23]OFD Sender: No OFD packet to send [13:28:28]OFD Sender: No OFD packet to send [13:28:33]OFD Sender: No OFD packet to send [13:28:38]OFD Sender: No OFD packet to send [13:28:43]OFD Sender: No OFD packet to send [13:28:48]OFD Sender: No OFD packet to send [13:28:53]OFD Sender: No OFD packet to send [13:28:58]OFD Sender: No OFD packet to send [13:29:03]OFD Sender: No OFD packet to send [13:29:08]OFD Sender: No OFD packet to send [13:29:13]OFD Sender: No OFD packet to send [13:29:18]OFD Sender: No OFD packet to send [13:29:23]OFD Sender: No OFD packet to send [13:29:28]OFD Sender: No OFD packet to send [13:29:33]accept exits with 9 [13:29:33]New connection [13:29:33]New thread 3067002212 created [13:29:33]Thread 3067145572 joined [13:29:33]Waiting for new connection... [13:29:33] Sock 9.Parse request [13:29:33]Sock 9.Check first char [13:29:33]Sock 9.First char is OK [13:29:33]request: POST /json_proto HTTP/1.0 [13:29:33]Method: POST [13:29:33]URL: /json_proto [13:29:33]Method is POST - this is cgi request [13:29:33]url: /json_proto [13:29:33]query_string will be loaded in cgi processing [13:29:33]execute_cgi json_proto POST (null) [13:29:33]execute_cgi path=json_proto method=POST [13:29:33]POST find Content-Length [13:29:33]Host: 172.17.44.67:8080 [13:29:33]Content-Length: 677 [13:29:33]Content-Type: application/json [13:29:33] [13:29:33]POST finish read [13:29:33]Found Content-Length = 677 [13:29:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:33]execute_script... [13:29:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:33]POST & json_proto [13:29:33]process_json_proto [13:29:33]json parsed OK: [13:29:33]protocol is kg_v1.0 [13:29:33]action value=close_receipt [13:29:33]process_action close_receipt [13:29:33]cmd_close_receipt [13:29:33]MH_GetDate [13:29:33]Write to MH i2c: F0 00 00 21 09 19 [13:29:33]Write i2c OK [13:29:33]MH_I2C_Read... [13:29:33]Read from MH i2c: F0 [13:29:33]MH_I2C_Read... [13:29:33]Read from MH i2c: F0 09 00 [13:29:33]MH_I2C_Read... [13:29:33]Read from MH i2c: F0 09 00 21 09 00 3E 11 11 67 F1 C7 6B 64 70 [13:29:33]GetLastDocTimeStamp 1729171653 [13:29:33]current date 1729171774 [13:29:33]FM_GetShiftState [13:29:33]SAM_PROTO_GetShiftState [13:29:33]wFMCommunicate request_size=4 [13:29:33]MH_SAM_APDU [13:29:33]CAPDU: 80 13 01 00 [13:29:33]Write to MH i2c: E2 08 00 22 09 80 13 01 00 00 00 00 00 A8 [13:29:33]Write i2c OK [13:29:33]MH_I2C_Read... [13:29:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:33]OFD Sender: No OFD packet to send [13:29:33]Read from MH i2c: E2 [13:29:33]MH_I2C_Read... [13:29:33]Read from MH i2c: E2 0E 00 [13:29:33]MH_I2C_Read... [13:29:33]Read from MH i2c: E2 0E 00 22 09 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 B0 [13:29:33]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [13:29:33]wFMCommunicate OK [13:29:33]SAM_PROTO_GetShiftState done [13:29:33]FM_GetShiftState done [13:29:33]opened in 1729125927 [13:29:33]opened+sec_in_day 1729212327 [13:29:33]quantity*price = 50041 [13:29:33]sum+1 = 50042 [13:29:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 97 17.10.2024 13:29 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82171 ФПД: 75328964649165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T132934&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82171&fm=75328964649165&tin=02508201610067®Number=0000000000091680&sum=50000 [13:29:35]StoreToDocumentArchive [13:29:35]shift 525 fd 82171 [13:29:35]save to /storage/0525/doc_00082171 [13:29:35]save last doc name /storage/0525/doc_00082171 to /storage/kkm_last_doc_name [13:29:35]save OK [13:29:35]Clear old archive folders... [13:29:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:29:35]tlvbuf is 01D9E1F0 [13:29:35]SAM_PROTO_ClearQueue [13:29:35]wFMCommunicate request_size=4 [13:29:35]MH_SAM_APDU [13:29:35]CAPDU: 80 09 00 00 [13:29:35]Write to MH i2c: E2 08 00 2F 09 80 09 00 00 00 00 00 00 AA [13:29:35]Write i2c OK [13:29:35]MH_I2C_Read... [13:29:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:35]Read from MH i2c: E2 [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: E2 03 00 [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: E2 03 00 2F 09 00 90 00 AC [13:29:35]RAPDU: 90 00 [13:29:35]wFMCommunicate OK [13:29:35]SAM_PROTO_ClearQueue done [13:29:35]KKMCreateOFDPacket [13:29:35]OFDProtocolAddRootSTLVToBuf [13:29:35]FM_MakeSignedData [13:29:35]FM_MakeSignedData [13:29:35]SAM_PROTO_SignData [13:29:35]wFMCommunicate request_size=4 [13:29:35]MH_SAM_APDU [13:29:35]CAPDU: 80 0D 01 02 [13:29:35]Write to MH i2c: E2 08 00 30 09 80 0D 01 02 00 00 00 00 B2 [13:29:35]Write i2c OK [13:29:35]MH_I2C_Read... [13:29:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:35]Read from MH i2c: E2 [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: E2 03 00 [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: E2 03 00 30 09 00 90 00 AD [13:29:35]RAPDU: 90 00 [13:29:35]wFMCommunicate OK [13:29:35]wFMCommunicate request_size=255 [13:29:35]MH_SAM_APDU [13:29:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 3E 11 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FB 40 01 00 35 04 06 00 44 [13:29:35]Write to MH i2c: E2 02 01 31 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 3E 11 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FB 40 01 00 35 04 06 00 44 00 00 F5 [13:29:35]Write i2c OK [13:29:35]MH_I2C_Read... [13:29:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:35]Read from MH i2c: E2 [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: E2 03 00 [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: E2 03 00 31 09 00 90 00 AE [13:29:35]RAPDU: 90 00 [13:29:35]wFMCommunicate OK [13:29:35]wFMCommunicate request_size=10 [13:29:35]MH_SAM_APDU [13:29:35]CAPDU: 80 0D 02 02 05 82 E4 2D E0 CD [13:29:35]Write to MH i2c: E2 0D 00 32 09 80 0D 02 02 05 00 82 E4 2D E0 CD 00 00 FF [13:29:35]Write i2c OK [13:29:35]MH_I2C_Read... [13:29:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:35]Read from MH i2c: E2 [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: E2 03 00 [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: E2 03 00 32 09 00 90 00 AF [13:29:35]RAPDU: 90 00 [13:29:35]wFMCommunicate OK [13:29:35]wFMCommunicate request_size=4 [13:29:35]MH_SAM_APDU [13:29:35]CAPDU: 80 0D 03 02 [13:29:35]Write to MH i2c: E2 08 00 33 09 80 0D 03 02 00 00 00 00 B7 [13:29:35]Write i2c OK [13:29:35]MH_I2C_Read... [13:29:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:35]Read from MH i2c: E2 [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: E2 0B 00 [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: E2 0B 00 33 09 00 5A 81 83 70 AE 35 B4 8B 90 00 A8 [13:29:35]RAPDU: 5A 81 83 70 AE 35 B4 8B 90 00 [13:29:35]wFMCommunicate OK [13:29:35]SAM_PROTO_SignData done [13:29:35]FM_MakeSignedData done [13:29:35]CreateOFDProtocolMessage [13:29:35]wFMCommunicate request_size=4 [13:29:35]MH_SAM_APDU [13:29:35]CAPDU: 80 11 00 00 [13:29:35]Write to MH i2c: E2 08 00 34 09 80 11 00 00 00 00 00 00 B7 [13:29:35]Write i2c OK [13:29:35]MH_I2C_Read... [13:29:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:35]Read from MH i2c: E2 [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: E2 17 00 [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: E2 17 00 34 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 09 [13:29:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:29:35]wFMCommunicate OK [13:29:35]CreateOFDProtocolMessage done [13:29:35]OFDSenderStorePacket 82171 [13:29:35]StoreOFDPacket docnum=82171 [13:29:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 C8 14 07 01 14 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 3E 11 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FB 40 01 00 35 04 06 00 44 82 E4 2D E0 CD 5A 81 83 70 AE 35 B4 8B [13:29:35]CheckFolder [13:29:35]dirname=/storage/ofd_packets [13:29:35]CheckFolder done [13:29:35]ProducePacketName [13:29:35]name=ofd_packets/00082171 [13:29:35]NVStorageSaveData ofd_packets/00082171 [13:29:35]File name is /storage/ofd_packets/00082171 [13:29:35]Write 301 bytes [13:29:35]NVStorageSaveData done [13:29:35]OFDSenderStorePacket done [13:29:35]KKMCreateOFDPacket done [13:29:35]NVStorageSaveData kkm_last_timestamp [13:29:35]File name is /storage/kkm_last_timestamp [13:29:35]Write 4 bytes [13:29:35]NVStorageSaveData done [13:29:35]ExternCall_PrintAddStr [13:29:35]wPrintStart [13:29:35]Write to MH i2c: 01 00 00 35 09 3E [13:29:35]Write i2c OK [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: 01 [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: 01 07 00 [13:29:35]MH_I2C_Read... [13:29:35]Read from MH i2c: 01 07 00 35 09 00 00 00 00 00 FF 0F 53 [13:29:35]RasterBufferAndPrint [13:29:35]line Счет N : (1)918676 [13:29:35]line ИНН: 02508201610067 [13:29:35]line Контрольно-Кассовый Чек [13:29:35]line ПРОДАЖА [13:29:35]line ТРК (МРК, ГНК) : 22 [13:29:35]line Товар: 2710124130 [13:29:35]line Аи-92-К-4 [13:29:35]line 7.480 * 66.90 [13:29:35]line = 500.41 [13:29:35]line НДС 12% НСП 1% [13:29:35]line > о реализуемом товаре [13:29:35]line ОКРУГЛЕНИЕ: -0.41 [13:29:35]line ИТОГО: 500.00 [13:29:35]line Внесено: 500.00 [13:29:35]line СДАЧА: 0.00 [13:29:35]line НСП 1% : 4.43 [13:29:35]line НДС 12% : 53.14 [13:29:35]line Наличными: 500.00 [13:29:35]line Безнал.: 0.00 [13:29:35]line Место: АЗС № 114 "Партнер Нефть" [13:29:35]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [13:29:35]line СНО: Общий режим [13:29:35]line Чек 97 17.10.2024 13:29 [13:29:35]line Смена: 525 ФФД: 1.0 [13:29:35]line ЗНМ: 0300000086 [13:29:35]line РНМ: 0000000000091680 [13:29:35]line Версия ККМ: 001 [13:29:35]line ФМ: 0000000000871843 [13:29:35]line ФД: 82171 [13:29:35]line ФПД: 75328964649165 [13:29:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T132934&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82171&fm=75328964649165&tin=02508201610067®Number=0000000000091680&sum=50000 [13:29:35]OFD Sender: Processing packet 82171 [packets to send 254, broken 253] [13:29:35]ProducePacketName [13:29:35]name=ofd_packets/00082171 [13:29:35]OFD Sender: To server: pG, [13:29:35]CommunicateWithHost lk.salyk.kg:30040 [13:29:35]ConnectInit lk.salyk.kg [13:29:35]written 0, free lines is 4095 [13:29:36]Write to MH i2c: 01 00 00 60 09 69 [13:29:36]Write i2c OK [13:29:36]MH_I2C_Read... [13:29:36]Read from MH i2c: 01 [13:29:36]MH_I2C_Read... [13:29:36]Read from MH i2c: 01 07 00 [13:29:36]MH_I2C_Read... [13:29:36]Read from MH i2c: 01 07 00 60 09 00 00 00 00 00 D3 0C 4F [13:29:36]RasterBufferAndPrint [13:29:36]line [13:29:36]line [13:29:36]line [13:29:36]line [13:29:36]line [13:29:36]written 0, free lines is 3290 [13:29:36]MH_Cut [13:29:36]Write to MH i2c: D1 01 00 67 09 01 42 [13:29:36]Write i2c OK [13:29:36]MH_I2C_Read... [13:29:36]Read from MH i2c: D1 [13:29:36]MH_I2C_Read... [13:29:36]Read from MH i2c: D1 01 00 [13:29:36]MH_I2C_Read... [13:29:36]Read from MH i2c: D1 01 00 67 09 00 41 [13:29:36]Write to MH i2c: 01 00 00 68 09 71 [13:29:36]Write i2c OK [13:29:36]MH_I2C_Read... [13:29:36]Connected sock=11 [13:29:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 C8 14 07 01 14 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 3E 11 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FB 40 01 00 35 04 06 00 44 82 E4 2D E0 CD 5A 81 83 70 AE 35 B4 8B [13:29:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 F6 67 47 00 9F 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FB 40 01 00 F4 03 04 00 7C B6 10 67 B6 04 01 00 00 82 54 AB BE 4E 73 25 A9 [13:29:36]CommunicateWithHost err = 0 [13:29:36]CheckOFDResponse [13:29:36]1017 (14) - 77093643461234 [13:29:36]1041 (16) - 0000000000871843 [13:29:36]1040 (4) - 82171 [13:29:36]1012 (4) - 17.10.2024 07:02 [13:29:36]1206 (1) - 0 [13:29:36]OFD Sender: Remove packet 82171 [13:29:36]ProducePacketName [13:29:36]name=ofd_packets/00082171 [13:29:36]NVStorageDeleteData [13:29:37]*** Cut start [13:29:37]*** Partial cut [13:29:37]*** CUTSNS_PIN = 1 [13:29:37]*** CUTSNS_PIN = 0 [13:29:37]*** Brake cut motor [13:29:37]OFD Sender: No OFD packet to send [13:29:37]Read from MH i2c: 01 [13:29:37]MH_I2C_Read... [13:29:37]*** Stop cut motor [13:29:37]*** Cut end [13:29:37]Read from MH i2c: 01 07 00 [13:29:37]MH_I2C_Read... [13:29:37]Read from MH i2c: 01 07 00 68 09 00 00 00 00 00 FF 0F 86 [13:29:37]process_action close_receipt done [13:29:37]requested_data is exist [13:29:37]produce_requested_data [13:29:37]requested_item fm.sn is exist - process it [13:29:37]wFMCommunicate request_size=4 [13:29:37]MH_SAM_APDU [13:29:37]CAPDU: 80 11 00 00 [13:29:37]Write to MH i2c: E2 08 00 69 09 80 11 00 00 00 00 00 00 EC [13:29:37]Write i2c OK [13:29:37]MH_I2C_Read... [13:29:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:37]Read from MH i2c: E2 [13:29:37]MH_I2C_Read... [13:29:37]Read from MH i2c: E2 17 00 [13:29:37]MH_I2C_Read... [13:29:37]Read from MH i2c: E2 17 00 69 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 3E [13:29:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:29:37]wFMCommunicate OK [13:29:37]requested_item fd.num is exist - process it [13:29:37]SAM_PROTO_GetFieldsCounters [13:29:37]wFMCommunicate request_size=4 [13:29:37]MH_SAM_APDU [13:29:37]CAPDU: 80 13 00 00 [13:29:37]Write to MH i2c: E2 08 00 6A 09 80 13 00 00 00 00 00 00 EF [13:29:37]Write i2c OK [13:29:37]MH_I2C_Read... [13:29:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:37]Read from MH i2c: E2 [13:29:37]MH_I2C_Read... [13:29:37]Read from MH i2c: E2 62 00 [13:29:37]MH_I2C_Read... [13:29:37]Read from MH i2c: E2 62 00 6A 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 FB 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [13:29:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 FB 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:29:37]wFMCommunicate OK [13:29:37]SAM_PROTO_GetFieldsCounters done [13:29:37]requested_item shift.num is exist - process it [13:29:37]requested_item shift.opened is exist - process it [13:29:37]req_shift_opened [13:29:37]FM_GetShiftState [13:29:37]SAM_PROTO_GetShiftState [13:29:37]wFMCommunicate request_size=4 [13:29:37]MH_SAM_APDU [13:29:37]CAPDU: 80 13 01 00 [13:29:37]Write to MH i2c: E2 08 00 6B 09 80 13 01 00 00 00 00 00 F1 [13:29:37]Write i2c OK [13:29:37]MH_I2C_Read... [13:29:38]Read from MH i2c: E2 [13:29:38]MH_I2C_Read... [13:29:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:38]Read from MH i2c: E2 0E 00 [13:29:38]MH_I2C_Read... [13:29:38]Read from MH i2c: E2 0E 00 6B 09 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 F9 [13:29:38]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [13:29:38]wFMCommunicate OK [13:29:38]SAM_PROTO_GetShiftState done [13:29:38]FM_GetShiftState done [13:29:38]req_shift_opened done [13:29:38]requested_item shift.open_date is exist - process it [13:29:38]req_shift_open_date [13:29:38]req_shift_open_date done [13:29:38]produce_requested_data done [13:29:38]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82171,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [13:29:38]process_action_free close_receipt [13:29:38]json_value_free [13:29:38]json_value_free done [13:29:38]process_json_proto returns [13:29:38]Send response to host [13:29:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82171,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [13:29:38]free response buf [13:29:38]execute_script done [13:29:38]execute_script returns [13:29:38]free content buf [13:29:38]Sock 9.Close socket [13:29:38]Sock 9.Thread stoped [13:29:42]OFD Sender: No OFD packet to send [13:29:47]OFD Sender: No OFD packet to send [13:29:52]OFD Sender: No OFD packet to send [13:29:57]OFD Sender: No OFD packet to send [13:30:02]OFD Sender: No OFD packet to send [13:30:05]recv_with_timeout no data received [13:30:07]OFD Sender: No OFD packet to send [13:30:12]OFD Sender: No OFD packet to send [13:30:17]OFD Sender: No OFD packet to send [13:30:22]OFD Sender: No OFD packet to send [13:30:27]OFD Sender: No OFD packet to send [13:30:32]OFD Sender: No OFD packet to send [13:30:37]OFD Sender: No OFD packet to send [13:30:42]OFD Sender: No OFD packet to send [13:30:47]OFD Sender: No OFD packet to send [13:30:52]OFD Sender: No OFD packet to send [13:30:57]OFD Sender: No OFD packet to send [13:31:02]OFD Sender: No OFD packet to send [13:31:07]OFD Sender: No OFD packet to send [13:31:12]OFD Sender: No OFD packet to send [13:31:17]OFD Sender: No OFD packet to send [13:31:22]OFD Sender: No OFD packet to send [13:31:27]OFD Sender: No OFD packet to send [13:31:32]OFD Sender: No OFD packet to send [13:31:37]OFD Sender: No OFD packet to send [13:31:42]OFD Sender: No OFD packet to send [13:31:47]OFD Sender: No OFD packet to send [13:31:52]OFD Sender: No OFD packet to send [13:31:57]OFD Sender: No OFD packet to send [13:32:02]OFD Sender: No OFD packet to send [13:32:07]OFD Sender: No OFD packet to send [13:32:12]OFD Sender: No OFD packet to send [13:32:17]OFD Sender: No OFD packet to send [13:32:22]OFD Sender: No OFD packet to send [13:32:27]OFD Sender: No OFD packet to send [13:32:29]recv_with_timeout no data received [13:32:32]OFD Sender: No OFD packet to send [13:32:37]OFD Sender: No OFD packet to send [13:32:42]OFD Sender: No OFD packet to send [13:32:47]OFD Sender: No OFD packet to send [13:32:52]OFD Sender: No OFD packet to send [13:32:57]OFD Sender: No OFD packet to send [13:33:02]OFD Sender: No OFD packet to send [13:33:07]OFD Sender: No OFD packet to send [13:33:12]OFD Sender: No OFD packet to send [13:33:17]OFD Sender: No OFD packet to send [13:33:22]OFD Sender: No OFD packet to send [13:33:27]OFD Sender: No OFD packet to send [13:33:32]OFD Sender: No OFD packet to send [13:33:37]OFD Sender: No OFD packet to send [13:33:42]OFD Sender: No OFD packet to send [13:33:47]OFD Sender: No OFD packet to send [13:33:52]OFD Sender: No OFD packet to send [13:33:57]OFD Sender: No OFD packet to send [13:34:02]OFD Sender: No OFD packet to send [13:34:07]OFD Sender: No OFD packet to send [13:34:12]OFD Sender: No OFD packet to send [13:34:17]OFD Sender: No OFD packet to send [13:34:22]OFD Sender: No OFD packet to send [13:34:27]OFD Sender: No OFD packet to send [13:34:32]OFD Sender: No OFD packet to send [13:34:37]OFD Sender: No OFD packet to send [13:34:42]OFD Sender: No OFD packet to send [13:34: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:38:13]OFD Sender: No OFD packet to send [13:38:18]OFD Sender: No OFD packet to send [13:38:23]OFD Sender: No OFD packet to send [13:38:28]OFD Sender: No OFD packet to send [13:38:33]OFD Sender: No OFD packet to send [13:38:38]OFD Sender: No OFD packet to send [13:38:43]OFD Sender: No OFD packet to send [13:38:48]OFD Sender: No OFD packet to send [13:38:51]accept exits with 10 [13:38:51]New connection [13:38:51]New thread 3067145572 created [13:38:51]Thread 3067002212 joined [13:38:51]Waiting for new connection... [13:38:51] Sock 10.Parse request [13:38:51]Sock 10.Check first char [13:38:51]Sock 10.First char is OK [13:38:51]request: POST /json_proto HTTP/1.0 [13:38:51]Method: POST [13:38:51]URL: /json_proto [13:38:51]Method is POST - this is cgi request [13:38:51]url: /json_proto [13:38:51]query_string will be loaded in cgi processing [13:38:51]execute_cgi json_proto POST (null) [13:38:51]execute_cgi path=json_proto method=POST [13:38:51]POST find Content-Length [13:38:51]Host: 172.17.44.67:8080 [13:38:51]Content-Length: 678 [13:38:51]Content-Type: application/json [13:38:51] [13:38:51]POST finish read [13:38:51]Found Content-Length = 678 [13:38:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:51]execute_script... [13: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 : (1)918677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:51]POST & json_proto [13:38:51]process_json_proto [13:38:51]json parsed OK: [13:38:51]protocol is kg_v1.0 [13:38:51]action value=close_receipt [13:38:51]process_action close_receipt [13:38:51]cmd_close_receipt [13:38:51]MH_GetDate [13:38:51]Write to MH i2c: F0 00 00 6C 09 64 [13:38:51]Write i2c OK [13:38:51]MH_I2C_Read... [13:38:51]Read from MH i2c: F0 [13:38:51]MH_I2C_Read... [13:38:51]Read from MH i2c: F0 09 00 [13:38:51]MH_I2C_Read... [13:38:51]Read from MH i2c: F0 09 00 6C 09 00 6C 13 11 67 F1 C7 6B 64 EB [13:38:51]GetLastDocTimeStamp 1729171774 [13:38:51]current date 1729172332 [13:38:51]FM_GetShiftState [13:38:51]SAM_PROTO_GetShiftState [13:38:51]wFMCommunicate request_size=4 [13:38:51]MH_SAM_APDU [13:38:51]CAPDU: 80 13 01 00 [13:38:51]Write to MH i2c: E2 08 00 6D 09 80 13 01 00 00 00 00 00 F3 [13:38:51]Write i2c OK [13:38:51]MH_I2C_Read... [13:38:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:51]Read from MH i2c: E2 [13:38:51]MH_I2C_Read... [13:38:51]Read from MH i2c: E2 0E 00 [13:38:51]MH_I2C_Read... [13:38:51]Read from MH i2c: E2 0E 00 6D 09 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 FB [13:38:51]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [13:38:51]wFMCommunicate OK [13:38:51]SAM_PROTO_GetShiftState done [13:38:51]FM_GetShiftState done [13:38:51]opened in 1729125927 [13:38:51]opened+sec_in_day 1729212327 [13:38:51]quantity*price = 70044 [13:38:51]sum+1 = 70045 [13:38:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 98 17.10.2024 13:38 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82172 ФПД: 178098186825158 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T133852&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82172&fm=178098186825158&tin=02508201610067®Number=0000000000091680&sum=70000 [13:38:52]StoreToDocumentArchive [13:38:52]shift 525 fd 82172 [13:38:52]save to /storage/0525/doc_00082172 [13:38:52]save last doc name /storage/0525/doc_00082172 to /storage/kkm_last_doc_name [13:38:52]save OK [13:38:52]Clear old archive folders... [13:38:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:38:52]tlvbuf is 01D215F0 [13:38:52]SAM_PROTO_ClearQueue [13:38:52]wFMCommunicate request_size=4 [13:38:52]MH_SAM_APDU [13:38:52]CAPDU: 80 09 00 00 [13:38:52]Write to MH i2c: E2 08 00 7A 09 80 09 00 00 00 00 00 00 F5 [13:38:52]Write i2c OK [13:38:52]MH_I2C_Read... [13:38:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:38:52]Read from MH i2c: E2 [13:38:52]MH_I2C_Read... [13:38:52]Read from MH i2c: E2 03 00 [13:38:52]MH_I2C_Read... [13:38:52]Read from MH i2c: E2 03 00 7A 09 00 90 00 F7 [13:38:52]RAPDU: 90 00 [13:38:52]wFMCommunicate OK [13:38:52]SAM_PROTO_ClearQueue done [13:38:52]KKMCreateOFDPacket [13:38:52]OFDProtocolAddRootSTLVToBuf [13:38:52]FM_MakeSignedData [13:38:52]FM_MakeSignedData [13:38:52]SAM_PROTO_SignData [13:38:52]wFMCommunicate request_size=4 [13:38:52]MH_SAM_APDU [13:38:52]CAPDU: 80 0D 01 02 [13:38:52]Write to MH i2c: E2 08 00 7B 09 80 0D 01 02 00 00 00 00 FD [13:38:52]Write i2c OK [13:38:52]MH_I2C_Read... [13:38:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:38:52]Read from MH i2c: E2 [13:38:52]MH_I2C_Read... [13:38:52]Read from MH i2c: E2 03 00 [13:38:52]MH_I2C_Read... [13:38:52]Read from MH i2c: E2 03 00 7B 09 00 90 00 F8 [13:38:52]RAPDU: 90 00 [13:38:52]wFMCommunicate OK [13:38:52]wFMCommunicate request_size=255 [13:38:52]MH_SAM_APDU [13:38:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 6C 13 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FC 40 01 00 35 04 06 00 A1 [13:38:52]Write to MH i2c: E2 02 01 7C 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 6C 13 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FC 40 01 00 35 04 06 00 A1 00 00 DF [13:38:52]Write i2c OK [13:38:52]MH_I2C_Read... [13:38:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:53]Read from MH i2c: E2 [13:38:53]MH_I2C_Read... [13:38:53]Read from MH i2c: E2 03 00 [13:38:53]MH_I2C_Read... [13:38:53]Read from MH i2c: E2 03 00 7C 09 00 90 00 F9 [13:38:53]RAPDU: 90 00 [13:38:53]wFMCommunicate OK [13:38:53]wFMCommunicate request_size=10 [13:38:53]MH_SAM_APDU [13:38:53]CAPDU: 80 0D 02 02 05 FA B7 29 2D C6 [13:38:53]Write to MH i2c: E2 0D 00 7D 09 80 0D 02 02 05 00 FA B7 29 2D C6 00 00 D7 [13:38:53]Write i2c OK [13:38:53]MH_I2C_Read... [13:38:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:53]Read from MH i2c: E2 [13:38:53]MH_I2C_Read... [13:38:53]Read from MH i2c: E2 03 00 [13:38:53]MH_I2C_Read... [13:38:53]Read from MH i2c: E2 03 00 7D 09 00 90 00 FA [13:38:53]RAPDU: 90 00 [13:38:53]wFMCommunicate OK [13:38:53]wFMCommunicate request_size=4 [13:38:53]MH_SAM_APDU [13:38:53]CAPDU: 80 0D 03 02 [13:38:53]Write to MH i2c: E2 08 00 7E 09 80 0D 03 02 00 00 00 00 02 [13:38:53]Write i2c OK [13:38:53]MH_I2C_Read... [13:38:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:38:53]Read from MH i2c: E2 [13:38:53]MH_I2C_Read... [13:38:53]Read from MH i2c: E2 0B 00 [13:38:53]MH_I2C_Read... [13:38:53]Read from MH i2c: E2 0B 00 7E 09 00 D8 05 AD E2 62 BE 95 ED 90 00 11 [13:38:53]RAPDU: D8 05 AD E2 62 BE 95 ED 90 00 [13:38:53]wFMCommunicate OK [13:38:53]SAM_PROTO_SignData done [13:38:53]FM_MakeSignedData done [13:38:53]CreateOFDProtocolMessage [13:38:53]wFMCommunicate request_size=4 [13:38:53]MH_SAM_APDU [13:38:53]CAPDU: 80 11 00 00 [13:38:53]Write to MH i2c: E2 08 00 7F 09 80 11 00 00 00 00 00 00 02 [13:38:53]Write i2c OK [13:38:53]MH_I2C_Read... [13:38:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:53]Read from MH i2c: E2 [13:38:53]MH_I2C_Read... [13:38:53]Read from MH i2c: E2 17 00 [13:38:53]MH_I2C_Read... [13:38:53]Read from MH i2c: E2 17 00 7F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 54 [13:38:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:38:53]wFMCommunicate OK [13:38:53]CreateOFDProtocolMessage done [13:38:53]OFDSenderStorePacket 82172 [13:38:53]StoreOFDPacket docnum=82172 [13:38:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 79 06 07 01 27 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 6C 13 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FC 40 01 00 35 04 06 00 A1 FA B7 29 2D C6 D8 05 AD E2 62 BE 95 ED [13:38:53]CheckFolder [13:38:53]dirname=/storage/ofd_packets [13:38:53]CheckFolder done [13:38:53]ProducePacketName [13:38:53]name=ofd_packets/00082172 [13:38:53]NVStorageSaveData ofd_packets/00082172 [13:38:53]File name is /storage/ofd_packets/00082172 [13:38:53]Write 301 bytes [13:38:53]NVStorageSaveData done [13:38:53]OFDSenderStorePacket done [13:38:53]KKMCreateOFDPacket done [13:38:53]NVStorageSaveData kkm_last_timestamp [13:38:53]File name is /storage/kkm_last_timestamp [13:38:53]Write 4 bytes [13:38:53]NVStorageSaveData done [13:38:53]ExternCall_PrintAddStr [13:38:53]wPrintStart [13:38:53]Write to MH i2c: 01 00 00 80 09 89 [13:38:53]Write i2c OK [13:38:53]MH_I2C_Read... [13:38:53]Read from MH i2c: 01 [13:38:53]MH_I2C_Read... [13:38:53]Read from MH i2c: 01 07 00 [13:38:53]MH_I2C_Read... [13:38:53]Read from MH i2c: 01 07 00 80 09 00 00 00 00 00 FF 0F 9E [13:38:53]RasterBufferAndPrint [13:38:53]line Счет N : (1)918677 [13:38:53]line ИНН: 02508201610067 [13:38:53]line Контрольно-Кассовый Чек [13:38:53]line ПРОДАЖА [13:38:53]line ТРК (МРК, ГНК) : 22 [13:38:53]line Товар: 2710124130 [13:38:53]line Аи-92-К-4 [13:38:53]line 10.470 * 66.90 [13:38:53]line = 700.44 [13:38:53]line НДС 12% НСП 1% [13:38:53]line > о реализуемом товаре [13:38:53]line ОКРУГЛЕНИЕ: -0.44 [13:38:53]line ИТОГО: 700.00 [13:38:53]line Внесено: 700.00 [13:38:53]line СДАЧА: 0.00 [13:38:53]line НСП 1% : 6.20 [13:38:53]line НДС 12% : 74.38 [13:38:53]line Наличными: 700.00 [13:38:53]line Безнал.: 0.00 [13:38:53]line Место: АЗС № 114 "Партнер Нефть" [13:38:53]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [13:38:53]line СНО: Общий режим [13:38:53]line Чек 98 17.10.2024 13:38 [13:38:53]line Смена: 525 ФФД: 1.0 [13:38:53]line ЗНМ: 0300000086 [13:38:53]line РНМ: 0000000000091680 [13:38:53]line Версия ККМ: 001 [13:38:53]line ФМ: 0000000000871843 [13:38:53]line ФД: 82172 [13:38:53]line ФПД: 178098186825158 [13:38:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T133852&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82172&fm=178098186825158&tin=02508201610067®Number=0000000000091680&sum=70000 [13:38:53]OFD Sender: Processing packet 82172 [packets to send 254, broken 253] [13:38:53]ProducePacketName [13:38:53]name=ofd_packets/00082172 [13:38:53]OFD Sender: To server: pG, [13:38:53]CommunicateWithHost lk.salyk.kg:30040 [13:38:53]ConnectInit lk.salyk.kg [13:38:53]written 0, free lines is 4095 [13:38:54]Write to MH i2c: 01 00 00 AB 09 B4 [13:38:54]Write i2c OK [13:38:54]MH_I2C_Read... [13:38:54]Read from MH i2c: 01 [13:38:54]MH_I2C_Read... [13:38:54]Read from MH i2c: 01 07 00 [13:38:54]MH_I2C_Read... [13:38:54]Read from MH i2c: 01 07 00 AB 09 00 00 00 00 00 D7 0C 9E [13:38:54]RasterBufferAndPrint [13:38:54]line [13:38:54]line [13:38:54]line [13:38:54]line [13:38:54]line [13:38:54]written 0, free lines is 3294 [13:38:54]MH_Cut [13:38:54]Write to MH i2c: D1 01 00 B2 09 01 8D [13:38:54]Write i2c OK [13:38:54]MH_I2C_Read... [13:38:54]Read from MH i2c: D1 [13:38:54]MH_I2C_Read... [13:38:54]Read from MH i2c: D1 01 00 [13:38:54]MH_I2C_Read... [13:38:54]Read from MH i2c: D1 01 00 B2 09 00 8C [13:38:54]Write to MH i2c: 01 00 00 B3 09 BC [13:38:54]Write i2c OK [13:38:54]MH_I2C_Read... [13:38:54]Connected sock=9 [13:38:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 79 06 07 01 27 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 6C 13 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FC 40 01 00 35 04 06 00 A1 FA B7 29 2D C6 D8 05 AD E2 62 BE 95 ED [13:38:54]*** Cut start [13:38:54]*** Partial cut [13:38:54]*** CUTSNS_PIN = 1 [13:38:54]*** CUTSNS_PIN = 0 [13:38:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 F2 F5 47 00 90 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FC 40 01 00 F4 03 04 00 AB B8 10 67 B6 04 01 00 00 5A FF 8E 00 0C 16 4F 31 [13:38:55]CommunicateWithHost err = 0 [13:38:55]CheckOFDResponse [13:38:55]1017 (14) - 77093643461234 [13:38:55]1041 (16) - 0000000000871843 [13:38:55]1040 (4) - 82172 [13:38:55]1012 (4) - 17.10.2024 07:11 [13:38:55]1206 (1) - 0 [13:38:55]OFD Sender: Remove packet 82172 [13:38:55]ProducePacketName [13:38:55]name=ofd_packets/00082172 [13:38:55]NVStorageDeleteData [13:38:55]*** Brake cut motor [13:38:55]Read from MH i2c: 01 [13:38:55]MH_I2C_Read... [13:38:55]*** Stop cut motor [13:38:55]*** Cut end [13:38:55]Read from MH i2c: 01 07 00 [13:38:55]MH_I2C_Read... [13:38:55]Read from MH i2c: 01 07 00 B3 09 00 00 00 00 00 FF 0F D1 [13:38:55]process_action close_receipt done [13:38:55]requested_data is exist [13:38:55]produce_requested_data [13:38:55]requested_item fm.sn is exist - process it [13:38:55]wFMCommunicate request_size=4 [13:38:55]MH_SAM_APDU [13:38:55]CAPDU: 80 11 00 00 [13:38:55]Write to MH i2c: E2 08 00 B4 09 80 11 00 00 00 00 00 00 37 [13:38:55]Write i2c OK [13:38:55]MH_I2C_Read... [13:38:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:55]Read from MH i2c: E2 [13:38:55]MH_I2C_Read... [13:38:55]Read from MH i2c: E2 17 00 [13:38:55]MH_I2C_Read... [13:38:55]Read from MH i2c: E2 17 00 B4 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 89 [13:38:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:38:55]wFMCommunicate OK [13:38:55]requested_item fd.num is exist - process it [13:38:55]SAM_PROTO_GetFieldsCounters [13:38:55]wFMCommunicate request_size=4 [13:38:55]MH_SAM_APDU [13:38:55]CAPDU: 80 13 00 00 [13:38:55]Write to MH i2c: E2 08 00 B5 09 80 13 00 00 00 00 00 00 3A [13:38:55]Write i2c OK [13:38:55]MH_I2C_Read... [13:38:55]OFD Sender: No OFD packet to send [13:38:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:55]Read from MH i2c: E2 [13:38:55]MH_I2C_Read... [13:38:55]Read from MH i2c: E2 62 00 [13:38:55]MH_I2C_Read... [13:38:55]Read from MH i2c: E2 62 00 B5 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 FC 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [13:38:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 FC 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:38:55]wFMCommunicate OK [13:38:55]SAM_PROTO_GetFieldsCounters done [13:38:55]requested_item shift.num is exist - process it [13:38:55]requested_item shift.opened is exist - process it [13:38:55]req_shift_opened [13:38:55]FM_GetShiftState [13:38:55]SAM_PROTO_GetShiftState [13:38:55]wFMCommunicate request_size=4 [13:38:55]MH_SAM_APDU [13:38:55]CAPDU: 80 13 01 00 [13:38:55]Write to MH i2c: E2 08 00 B6 09 80 13 01 00 00 00 00 00 3C [13:38:55]Write i2c OK [13:38:55]MH_I2C_Read... [13:38:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:55]Read from MH i2c: E2 [13:38:55]MH_I2C_Read... [13:38:55]Read from MH i2c: E2 0E 00 [13:38:55]MH_I2C_Read... [13:38:55]Read from MH i2c: E2 0E 00 B6 09 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 44 [13:38:55]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [13:38:55]wFMCommunicate OK [13:38:55]SAM_PROTO_GetShiftState done [13:38:55]FM_GetShiftState done [13:38:55]req_shift_opened done [13:38:55]requested_item shift.open_date is exist - process it [13:38:55]req_shift_open_date [13:38:55]req_shift_open_date done [13:38:55]produce_requested_data done [13:38:55]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82172,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [13:38:55]process_action_free close_receipt [13:38:55]json_value_free [13:38:55]json_value_free done [13:38:55]process_json_proto returns [13:38:55]Send response to host [13:38:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82172,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [13:38:55]free response buf [13:38:55]execute_script done [13:38:55]execute_script returns [13:38:55]free content buf [13:38:55]Sock 10.Close socket [13:38:55]Sock 10.Thread stoped [13:39:00]OFD Sender: No OFD packet to send [13:39:05]OFD Sender: No OFD packet to send [13:39:09]recv_with_timeout no data received [13:39:10]OFD Sender: No OFD packet to send [13:39:15]OFD Sender: No OFD packet to send [13:39:19]recv_with_timeout no data received [13:39:20]OFD Sender: No OFD packet to send [13:39:25]OFD Sender: No OFD packet to send [13:39:30]OFD Sender: No OFD packet to send [13:39:35]OFD Sender: No OFD packet to send [13:39:40]OFD Sender: No OFD packet to send [13:39:45]OFD Sender: No OFD packet to send [13:39:50]OFD Sender: No OFD packet to send [13:39:55]OFD Sender: No OFD packet to send [13:40:00]OFD Sender: No OFD packet to send [13:40:05]OFD Sender: No OFD packet to send [13:40:10]OFD Sender: No OFD packet to send [13:40:15]OFD Sender: No OFD packet to send [13:40:20]OFD Sender: No OFD packet to send [13:40:25]OFD Sender: No OFD packet to send [13:40:30]OFD Sender: No OFD packet to send [13:40:35]OFD Sender: No OFD packet to send [13:40:40]OFD Sender: No OFD packet to send [13:40:45]OFD Sender: No OFD packet to send [13:40:50]OFD Sender: No OFD packet to send [13:40:55]OFD Sender: No OFD packet to send [13:41:00]OFD Sender: No OFD packet to send [13:41:05]OFD Sender: No OFD packet to send [13:41:10]OFD Sender: No OFD packet to send [13:41:15]OFD Sender: No OFD packet to send [13:41:20]OFD Sender: No OFD packet to send [13:41:25]OFD Sender: No OFD packet to send [13:41:30]OFD Sender: No OFD packet to send [13:41:35]OFD Sender: No OFD packet to send [13:41:40]OFD Sender: No OFD packet to send [13:41:45]OFD Sender: No OFD packet to send [13:41:50]OFD Sender: No OFD packet to send [13:41:55]OFD Sender: No OFD packet to send [13:42:00]OFD Sender: No OFD packet to send [13:42:05]OFD Sender: No OFD packet to send [13:42:10]OFD Sender: No OFD packet to send [13:42:15]OFD Sender: No OFD packet to send [13:42:20]OFD Sender: No OFD packet to send [13:42:25]OFD Sender: No OFD packet to send [13:42:30]OFD Sender: No OFD packet to send [13:42:35]OFD Sender: No OFD packet to send [13:42:40]OFD Sender: No OFD packet to send [13:42:46]OFD Sender: No OFD packet to send [13:42:51]OFD Sender: No OFD packet to send [13:42:56]OFD Sender: No OFD packet to send [13:43:01]OFD Sender: No OFD packet to send [13:43:06]OFD Sender: No OFD packet to send [13:43:11]OFD Sender: No OFD packet to send [13:43:16]OFD Sender: No OFD packet to send [13:43:18]recv_with_timeout no data received [13:43:21]OFD Sender: No OFD packet to send [13:43:26]OFD Sender: No OFD packet to send [13:43:31]OFD Sender: No OFD packet to send [13:43:36]OFD Sender: No OFD packet to send [13:43:41]OFD Sender: No OFD packet to send [13:43:46]OFD Sender: No OFD packet to send [13:43:48]accept exits with 7 [13:43:48]New connection [13:43:48]New thread 3067002212 created [13:43:48]Thread 3067145572 joined [13:43:48]Waiting for new connection... [13:43:48] Sock 7.Parse request [13:43:48]Sock 7.Check first char [13:43:48]Sock 7.First char is OK [13:43:48]request: POST /json_proto HTTP/1.0 [13:43:48]Method: POST [13:43:48]URL: /json_proto [13:43:48]Method is POST - this is cgi request [13:43:48]url: /json_proto [13:43:48]query_string will be loaded in cgi processing [13:43:48]execute_cgi json_proto POST (null) [13:43:48]execute_cgi path=json_proto method=POST [13:43:48]POST find Content-Length [13:43:48]Host: 172.17.44.67:8080 [13:43:48]Content-Length: 754 [13:43:48]Content-Type: application/json [13:43:48] [13:43:48]POST finish read [13:43:48]Found Content-Length = 754 [13:43:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100665", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:48]execute_script... [13:43:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100665", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:48]POST & json_proto [13:43:48]process_json_proto [13:43:48]json parsed OK: [13:43:48]protocol is kg_v1.0 [13:43:48]action value=close_receipt [13:43:48]process_action close_receipt [13:43:48]cmd_close_receipt [13:43:48]MH_GetDate [13:43:48]Write to MH i2c: F0 00 00 B7 09 AF [13:43:48]Write i2c OK [13:43:48]MH_I2C_Read... [13:43:48]Read from MH i2c: F0 [13:43:48]MH_I2C_Read... [13:43:48]Read from MH i2c: F0 09 00 [13:43:48]MH_I2C_Read... [13:43:48]Read from MH i2c: F0 09 00 B7 09 00 94 14 11 67 F1 C7 6B 64 5F [13:43:48]GetLastDocTimeStamp 1729172332 [13:43:48]current date 1729172628 [13:43:48]FM_GetShiftState [13:43:48]SAM_PROTO_GetShiftState [13:43:48]wFMCommunicate request_size=4 [13:43:48]MH_SAM_APDU [13:43:48]CAPDU: 80 13 01 00 [13:43:48]Write to MH i2c: E2 08 00 B8 09 80 13 01 00 00 00 00 00 3E [13:43:48]Write i2c OK [13:43:48]MH_I2C_Read... [13:43:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:48]Read from MH i2c: E2 [13:43:48]MH_I2C_Read... [13:43:48]Read from MH i2c: E2 0E 00 [13:43:48]MH_I2C_Read... [13:43:48]Read from MH i2c: E2 0E 00 B8 09 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 46 [13:43:48]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [13:43:48]wFMCommunicate OK [13:43:48]SAM_PROTO_GetShiftState done [13:43:48]FM_GetShiftState done [13:43:48]opened in 1729125927 [13:43:48]opened+sec_in_day 1729212327 [13:43:48]quantity*price = 0 [13:43:48]sum+1 = 1 [13:43:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 99 17.10.2024 13:43 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30100665 ФМ: 0000000000871843 ФД: 82173 ФПД: 23917252965844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T134348&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82173&fm=23917252965844&tin=02508201610067®Number=0000000000091680&sum=0 [13:43:49]StoreToDocumentArchive [13:43:49]shift 525 fd 82173 [13:43:49]save to /storage/0525/doc_00082173 [13:43:49]save last doc name /storage/0525/doc_00082173 to /storage/kkm_last_doc_name [13:43:49]save OK [13:43:49]Clear old archive folders... [13:43:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:43:49]tlvbuf is 01D39F30 [13:43:49]SAM_PROTO_ClearQueue [13:43:49]wFMCommunicate request_size=4 [13:43:49]MH_SAM_APDU [13:43:49]CAPDU: 80 09 00 00 [13:43:49]Write to MH i2c: E2 08 00 C5 09 80 09 00 00 00 00 00 00 40 [13:43:49]Write i2c OK [13:43:49]MH_I2C_Read... [13:43:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:43:49]Read from MH i2c: E2 [13:43:49]MH_I2C_Read... [13:43:49]Read from MH i2c: E2 03 00 [13:43:49]MH_I2C_Read... [13:43:49]Read from MH i2c: E2 03 00 C5 09 00 90 00 42 [13:43:49]RAPDU: 90 00 [13:43:49]wFMCommunicate OK [13:43:49]SAM_PROTO_ClearQueue done [13:43:49]KKMCreateOFDPacket [13:43:49]OFDProtocolAddRootSTLVToBuf [13:43:49]FM_MakeSignedData [13:43:49]FM_MakeSignedData [13:43:49]SAM_PROTO_SignData [13:43:49]wFMCommunicate request_size=4 [13:43:49]MH_SAM_APDU [13:43:49]CAPDU: 80 0D 01 02 [13:43:49]Write to MH i2c: E2 08 00 C6 09 80 0D 01 02 00 00 00 00 48 [13:43:49]Write i2c OK [13:43:49]MH_I2C_Read... [13:43:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:43:49]Read from MH i2c: E2 [13:43:49]MH_I2C_Read... [13:43:49]Read from MH i2c: E2 03 00 [13:43:49]MH_I2C_Read... [13:43:49]Read from MH i2c: E2 03 00 C6 09 00 90 00 43 [13:43:49]RAPDU: 90 00 [13:43:49]wFMCommunicate OK [13:43:49]wFMCommunicate request_size=255 [13:43:49]MH_SAM_APDU [13:43:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 94 14 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FD 40 01 00 35 04 06 00 15 [13:43:49]Write to MH i2c: E2 02 01 C7 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 94 14 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FD 40 01 00 35 04 06 00 15 00 00 A2 [13:43:49]Write i2c OK [13:43:49]MH_I2C_Read... [13:43:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:49]Read from MH i2c: E2 [13:43:49]MH_I2C_Read... [13:43:49]Read from MH i2c: E2 03 00 [13:43:49]MH_I2C_Read... [13:43:49]Read from MH i2c: E2 03 00 C7 09 00 90 00 44 [13:43:49]RAPDU: 90 00 [13:43:49]wFMCommunicate OK [13:43:49]wFMCommunicate request_size=10 [13:43:49]MH_SAM_APDU [13:43:49]CAPDU: 80 0D 02 02 05 C0 AB 5D F5 D4 [13:43:49]Write to MH i2c: E2 0D 00 C8 09 80 0D 02 02 05 00 C0 AB 5D F5 D4 00 00 E6 [13:43:49]Write i2c OK [13:43:49]MH_I2C_Read... [13:43:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:49]Read from MH i2c: E2 [13:43:49]MH_I2C_Read... [13:43:49]Read from MH i2c: E2 03 00 [13:43:49]MH_I2C_Read... [13:43:49]Read from MH i2c: E2 03 00 C8 09 00 90 00 45 [13:43:49]RAPDU: 90 00 [13:43:49]wFMCommunicate OK [13:43:49]wFMCommunicate request_size=4 [13:43:49]MH_SAM_APDU [13:43:49]CAPDU: 80 0D 03 02 [13:43:49]Write to MH i2c: E2 08 00 C9 09 80 0D 03 02 00 00 00 00 4D [13:43:49]Write i2c OK [13:43:49]MH_I2C_Read... [13:43:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:43:49]Read from MH i2c: E2 [13:43:49]MH_I2C_Read... [13:43:49]Read from MH i2c: E2 0B 00 [13:43:49]MH_I2C_Read... [13:43:49]Read from MH i2c: E2 0B 00 C9 09 00 4B D2 60 58 30 2E FB 3B 90 00 B7 [13:43:49]RAPDU: 4B D2 60 58 30 2E FB 3B 90 00 [13:43:49]wFMCommunicate OK [13:43:49]SAM_PROTO_SignData done [13:43:49]FM_MakeSignedData done [13:43:49]CreateOFDProtocolMessage [13:43:49]wFMCommunicate request_size=4 [13:43:49]MH_SAM_APDU [13:43:49]CAPDU: 80 11 00 00 [13:43:49]Write to MH i2c: E2 08 00 CA 09 80 11 00 00 00 00 00 00 4D [13:43:49]Write i2c OK [13:43:49]MH_I2C_Read... [13:43:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:49]Read from MH i2c: E2 [13:43:49]MH_I2C_Read... [13:43:49]Read from MH i2c: E2 17 00 [13:43:49]MH_I2C_Read... [13:43:49]Read from MH i2c: E2 17 00 CA 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 9F [13:43:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:43:49]wFMCommunicate OK [13:43:49]CreateOFDProtocolMessage done [13:43:49]OFDSenderStorePacket 82173 [13:43:49]StoreOFDPacket docnum=82173 [13:43:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 01 D8 07 01 DA E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 94 14 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FD 40 01 00 35 04 06 00 15 C0 AB 5D F5 D4 4B D2 60 58 30 2E FB 3B [13:43:49]CheckFolder [13:43:49]dirname=/storage/ofd_packets [13:43:49]CheckFolder done [13:43:49]ProducePacketName [13:43:49]name=ofd_packets/00082173 [13:43:49]NVStorageSaveData ofd_packets/00082173 [13:43:49]File name is /storage/ofd_packets/00082173 [13:43:49]Write 301 bytes [13:43:49]NVStorageSaveData done [13:43:49]OFDSenderStorePacket done [13:43:49]KKMCreateOFDPacket done [13:43:49]NVStorageSaveData kkm_last_timestamp [13:43:49]File name is /storage/kkm_last_timestamp [13:43:49]Write 4 bytes [13:43:49]NVStorageSaveData done [13:43:49]ExternCall_PrintAddStr [13:43:49]wPrintStart [13:43:49]Write to MH i2c: 01 00 00 CB 09 D4 [13:43:49]Write i2c OK [13:43:49]MH_I2C_Read... [13:43:49]Read from MH i2c: 01 [13:43:49]MH_I2C_Read... [13:43:49]Read from MH i2c: 01 07 00 [13:43:49]MH_I2C_Read... [13:43:49]Read from MH i2c: 01 07 00 CB 09 00 00 00 00 00 FF 0F E9 [13:43:49]RasterBufferAndPrint [13:43:49]line Счет N : (1)918678 [13:43:49]line ИНН: 02508201610067 [13:43:49]line Контрольно-Кассовый Чек [13:43:49]line ПРОДАЖА [13:43:49]line ТРК (МРК, ГНК) : 11 [13:43:49]line Товар: 2710124130 [13:43:49]line Аи-92-К-4 [13:43:49]line 20.000 * 0.00 [13:43:49]line = 0.00 [13:43:49]line НДС 12% НСП 1% [13:43:49]line > о реализуемом товаре [13:43:49]line ИТОГО: 0.00 [13:43:49]line НСП 1% : 0.00 [13:43:49]line НДС 12% : 0.00 [13:43:49]line Наличными: 0.00 [13:43:49]line Безнал.: 0.00 [13:43:49]line Место: АЗС № 114 "Партнер Нефть" [13:43:49]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [13:43:49]line СНО: Общий режим [13:43:49]line Чек 99 17.10.2024 13:43 [13:43:49]line Смена: 525 ФФД: 1.0 [13:43:49]line ЗНМ: 0300000086 [13:43:49]line РНМ: 0000000000091680 [13:43:49]line Версия ККМ: 001 [13:43:49]line Талоны: ТК ГПНА Online [13:43:49]line 30100665 [13:43:49]line ФМ: 0000000000871843 [13:43:49]line ФД: 82173 [13:43:49]line ФПД: 23917252965844 [13:43:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T134348&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82173&fm=23917252965844&tin=02508201610067®Number=0000000000091680&sum=0 [13:43:50]OFD Sender: Processing packet 82173 [packets to send 254, broken 253] [13:43:50]ProducePacketName [13:43:50]name=ofd_packets/00082173 [13:43:50]OFD Sender: To server: pG, [13:43:50]CommunicateWithHost lk.salyk.kg:30040 [13:43:50]ConnectInit lk.salyk.kg [13:43:50]written 0, free lines is 4095 [13:43:50]Write to MH i2c: 01 00 00 F5 09 FE [13:43:50]Write i2c OK [13:43:50]MH_I2C_Read... [13:43:50]Read from MH i2c: 01 [13:43:50]MH_I2C_Read... [13:43:50]Read from MH i2c: 01 07 00 [13:43:50]MH_I2C_Read... [13:43:50]Read from MH i2c: 01 07 00 F5 09 00 00 00 00 00 DA 0C EB [13:43:50]RasterBufferAndPrint [13:43:50]line [13:43:50]line [13:43:50]line [13:43:50]line [13:43:50]line [13:43:50]written 0, free lines is 3296 [13:43:50]MH_Cut [13:43:50]Write to MH i2c: D1 01 00 FC 09 01 D7 [13:43:50]Write i2c OK [13:43:50]MH_I2C_Read... [13:43:50]Read from MH i2c: D1 [13:43:50]MH_I2C_Read... [13:43:50]Read from MH i2c: D1 01 00 [13:43:50]MH_I2C_Read... [13:43:50]Read from MH i2c: D1 01 00 FC 09 00 D6 [13:43:50]Write to MH i2c: 01 00 00 FD 09 06 [13:43:50]Write i2c OK [13:43:50]MH_I2C_Read... [13:43:51]*** Cut start [13:43:51]*** Partial cut [13:43:51]*** CUTSNS_PIN = 1 [13:43:51]*** CUTSNS_PIN = 0 [13:43:51]*** Brake cut motor [13:43:51]Read from MH i2c: 01 [13:43:51]MH_I2C_Read... [13:43:51]*** Stop cut motor [13:43:51]*** Cut end [13:43:51]Read from MH i2c: 01 07 00 [13:43:51]MH_I2C_Read... [13:43:51]Read from MH i2c: 01 07 00 FD 09 00 00 00 00 00 FF 0F 1B [13:43:51]process_action close_receipt done [13:43:51]requested_data is exist [13:43:51]produce_requested_data [13:43:51]requested_item fm.sn is exist - process it [13:43:51]wFMCommunicate request_size=4 [13:43:51]MH_SAM_APDU [13:43:51]CAPDU: 80 11 00 00 [13:43:51]Write to MH i2c: E2 08 00 FE 09 80 11 00 00 00 00 00 00 81 [13:43:51]Write i2c OK [13:43:51]MH_I2C_Read... [13:43:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:51]Read from MH i2c: E2 [13:43:51]MH_I2C_Read... [13:43:51]Read from MH i2c: E2 17 00 [13:43:51]MH_I2C_Read... [13:43:51]Read from MH i2c: E2 17 00 FE 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D3 [13:43:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:43:51]wFMCommunicate OK [13:43:51]requested_item fd.num is exist - process it [13:43:51]SAM_PROTO_GetFieldsCounters [13:43:51]wFMCommunicate request_size=4 [13:43:51]MH_SAM_APDU [13:43:51]CAPDU: 80 13 00 00 [13:43:51]Write to MH i2c: E2 08 00 FF 09 80 13 00 00 00 00 00 00 84 [13:43:51]Write i2c OK [13:43:51]MH_I2C_Read... [13:43:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:52]Read from MH i2c: E2 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: E2 62 00 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: E2 62 00 FF 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 FD 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [13:43:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 FD 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:43:52]wFMCommunicate OK [13:43:52]SAM_PROTO_GetFieldsCounters done [13:43:52]requested_item shift.num is exist - process it [13:43:52]requested_item shift.opened is exist - process it [13:43:52]req_shift_opened [13:43:52]FM_GetShiftState [13:43:52]SAM_PROTO_GetShiftState [13:43:52]wFMCommunicate request_size=4 [13:43:52]MH_SAM_APDU [13:43:52]CAPDU: 80 13 01 00 [13:43:52]Write to MH i2c: E2 08 00 00 0A 80 13 01 00 00 00 00 00 87 [13:43:52]Write i2c OK [13:43:52]MH_I2C_Read... [13:43:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:52]Read from MH i2c: E2 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: E2 0E 00 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: E2 0E 00 00 0A 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 8F [13:43:52]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [13:43:52]wFMCommunicate OK [13:43:52]SAM_PROTO_GetShiftState done [13:43:52]FM_GetShiftState done [13:43:52]req_shift_opened done [13:43:52]requested_item shift.open_date is exist - process it [13:43:52]req_shift_open_date [13:43:52]req_shift_open_date done [13:43:52]produce_requested_data done [13:43:52]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82173,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [13:43:52]process_action_free close_receipt [13:43:52]json_value_free [13:43:52]json_value_free done [13:43:52]process_json_proto returns [13:43:52]Send response to host [13:43:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82173,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [13:43:52]free response buf [13:43:52]execute_script done [13:43:52]execute_script returns [13:43:52]free content buf [13:43:52]Sock 7.Close socket [13:43:52]Sock 7.Thread stoped [13:43:52]Connected sock=11 [13:43:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 01 D8 07 01 DA E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 94 14 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FD 40 01 00 35 04 06 00 15 C0 AB 5D F5 D4 4B D2 60 58 30 2E FB 3B [13:43:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 F0 CB 47 00 A4 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FD 40 01 00 F4 03 04 00 D5 B9 10 67 B6 04 01 00 00 65 14 80 32 DF 14 40 11 [13:43:54]CommunicateWithHost err = 0 [13:43:54]CheckOFDResponse [13:43:54]1017 (14) - 77093643461234 [13:43:54]1041 (16) - 0000000000871843 [13:43:54]1040 (4) - 82173 [13:43:54]1012 (4) - 17.10.2024 07:16 [13:43:54]1206 (1) - 0 [13:43:54]OFD Sender: Remove packet 82173 [13:43:54]ProducePacketName [13:43:54]name=ofd_packets/00082173 [13:43:54]NVStorageDeleteData [13:43:54]OFD Sender: No OFD packet to send [13:43:54]recv_with_timeout no data received [13:43:59]OFD Sender: No OFD packet to send [13:44:04]OFD Sender: No OFD packet to send [13:44:05]recv_with_timeout no data received [13:44:09]OFD Sender: No OFD packet to send [13:44:14]OFD Sender: No OFD packet to send [13:44:19]OFD Sender: No OFD packet to send [13:44:24]OFD Sender: No OFD packet to send [13:44:27]recv_with_timeout no data received [13:44:29]OFD Sender: No OFD packet to send [13:44:34]OFD Sender: No OFD packet to send [13:44:39]OFD Sender: No OFD packet to send [13:44:44]OFD Sender: No OFD packet to send [13:44:49]OFD Sender: No OFD packet to send [13:44:54]OFD Sender: No OFD packet to send [13:44:59]OFD Sender: No OFD packet to send [13:45:04]OFD Sender: No OFD packet to send [13:45:09]OFD Sender: No OFD packet to send [13:45:14]OFD Sender: No OFD packet to send [13:45:19]OFD Sender: No OFD packet to send [13:45:24]OFD Sender: No OFD packet to send [13:45:29]OFD Sender: No OFD packet to send [13:45:34]OFD Sender: No OFD packet to send [13:45:39]OFD Sender: No OFD packet to send [13:45:44]OFD Sender: No OFD packet to send [13:45:49]OFD Sender: No OFD packet to send [13:45:54]OFD Sender: No OFD packet to send [13:45:59]OFD Sender: No OFD packet to send [13:46:04]OFD Sender: No OFD packet to send [13:46:09]OFD Sender: No OFD packet to send [13:46:14]OFD Sender: No OFD packet to send [13:46:19]OFD Sender: No OFD packet to send [13:46:24]OFD Sender: No OFD packet to send [13:46:29]OFD Sender: No OFD packet to send [13:46:34]OFD Sender: No OFD packet to send [13:46:39]OFD Sender: No OFD packet to send [13:46:44]OFD Sender: No OFD packet to send [13:46:49]OFD Sender: No OFD packet to send [13:46:54]OFD Sender: No OFD packet to send [13:46:59]OFD Sender: No OFD packet to send [13:47:04]OFD Sender: No OFD packet to send [13:47:09]OFD Sender: No OFD packet to send [13:47:14]OFD Sender: No OFD packet to send [13:47:19]OFD Sender: No OFD packet to send [13:47:23]recv_with_timeout no data received [13:47:24]OFD Sender: No OFD packet to send [13:47:29]OFD Sender: No OFD packet to send [13:47:34]OFD Sender: No OFD packet to send [13:47:39]OFD Sender: No OFD packet to send [13:47:44]OFD Sender: No OFD packet to send [13:47:49]OFD Sender: No OFD packet to send [13:47:55]OFD Sender: No OFD packet to send [13:48:00]OFD Sender: No OFD packet to send [13:48:05]OFD Sender: No OFD packet to send [13:48:10]OFD Sender: No OFD packet to send [13:48:15]OFD Sender: No OFD packet to send [13:48:20]OFD Sender: No OFD packet to send [13:48:25]OFD Sender: No OFD packet to send [13:48:30]OFD Sender: No OFD packet to send [13:48:35]OFD Sender: No OFD packet to send [13:48:40]OFD Sender: No OFD packet to send [13:48:45]OFD Sender: No OFD packet to send [13:48:50]OFD Sender: No OFD packet to send [13:48:55]OFD Sender: No OFD packet to send [13:48:55]recv_with_timeout no data received [13:49:00]OFD Sender: No OFD packet to send [13:49:05]OFD Sender: No OFD packet to send [13:49:10]OFD Sender: No OFD packet to send [13:49:15]OFD Sender: No OFD packet to send [13:49:20]OFD Sender: No OFD packet to send [13:49:25]OFD Sender: No OFD packet to send [13:49:30]OFD Sender: No OFD packet to send [13:49:35]OFD Sender: No OFD packet to send [13:49:40]OFD Sender: No OFD packet to send [13:49:45]OFD Sender: No OFD packet to send [13:49:50]OFD Sender: No OFD packet to send [13:49:55]OFD Sender: No OFD packet to send [13:50:00]OFD Sender: No OFD packet to send [13:50:05]OFD Sender: No OFD packet to send [13:50:10]OFD Sender: No OFD packet to send [13:50:15]OFD Sender: No OFD packet to send [13:50:20]OFD Sender: No OFD packet to send [13:50:25]OFD Sender: No OFD packet to send [13:50:30]OFD Sender: No OFD packet to send [13:50:35]OFD Sender: No OFD packet to send [13:50:40]OFD Sender: No OFD packet to send [13:50:45]OFD Sender: No OFD packet to send [13:50:50]OFD Sender: No OFD packet to send [13:50:55]OFD Sender: No OFD packet to send [13:50:58]accept exits with 9 [13:50:58]New connection [13:50:58]New thread 3067145572 created [13:50:58]Thread 3067002212 joined [13:50:58]Waiting for new connection... [13:50:58] Sock 9.Parse request [13:50:58]Sock 9.Check first char [13:50:58]Sock 9.First char is OK [13:50:58]request: POST /json_proto HTTP/1.0 [13:50:58]Method: POST [13:50:58]URL: /json_proto [13:50:58]Method is POST - this is cgi request [13:50:58]url: /json_proto [13:50:58]query_string will be loaded in cgi processing [13:50:58]execute_cgi json_proto POST (null) [13:50:58]execute_cgi path=json_proto method=POST [13:50:58]POST find Content-Length [13:50:58]Host: 172.17.44.67:8080 [13:50:58]Content-Length: 663 [13:50:58]Content-Type: application/json [13:50:58] [13:50:58]POST finish read [13:50:58]Found Content-Length = 663 [13:50:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 32.870, "sum" : 2199.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "payments": [ { "type": 0, "sum" : 2199.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:58]execute_script... [13:50:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 32.870, "sum" : 2199.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "payments": [ { "type": 0, "sum" : 2199.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:58]POST & json_proto [13:50:58]process_json_proto [13:50:58]json parsed OK: [13:50:58]protocol is kg_v1.0 [13:50:58]action value=close_receipt [13:50:58]process_action close_receipt [13:50:58]cmd_close_receipt [13:50:58]MH_GetDate [13:50:58]Write to MH i2c: F0 00 00 01 0A FA [13:50:58]Write i2c OK [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: F0 [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: F0 09 00 [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: F0 09 00 01 0A 00 43 16 11 67 F1 C7 6B 64 5B [13:50:58]GetLastDocTimeStamp 1729172628 [13:50:58]current date 1729173059 [13:50:58]FM_GetShiftState [13:50:58]SAM_PROTO_GetShiftState [13:50:58]wFMCommunicate request_size=4 [13:50:58]MH_SAM_APDU [13:50:58]CAPDU: 80 13 01 00 [13:50:58]Write to MH i2c: E2 08 00 02 0A 80 13 01 00 00 00 00 00 89 [13:50:58]Write i2c OK [13:50:58]MH_I2C_Read... [13:50:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:58]Read from MH i2c: E2 [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: E2 0E 00 [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: E2 0E 00 02 0A 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 91 [13:50:58]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [13:50:58]wFMCommunicate OK [13:50:58]SAM_PROTO_GetShiftState done [13:50:58]FM_GetShiftState done [13:50:58]opened in 1729125927 [13:50:58]opened+sec_in_day 1729212327 [13:50:58]quantity*price = 219900 [13:50:58]sum+1 = 219901 [13:50:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2199.00 Внесено: 3000.00 СДАЧА: 801.00 НСП 1% : 19.46 НДС 12% : 233.52 Наличными: 2199.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 100 17.10.2024 13:50 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82174 ФПД: 220889164217137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T135059&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82174&fm=220889164217137&tin=02508201610067®Number=0000000000091680&sum=219900 [13:50:59]StoreToDocumentArchive [13:50:59]shift 525 fd 82174 [13:50:59]save to /storage/0525/doc_00082174 [13:50:59]save last doc name /storage/0525/doc_00082174 to /storage/kkm_last_doc_name [13:50:59]save OK [13:50:59]Clear old archive folders... [13:50:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:50:59]tlvbuf is 01D268D0 [13:50:59]SAM_PROTO_ClearQueue [13:50:59]wFMCommunicate request_size=4 [13:50:59]MH_SAM_APDU [13:50:59]CAPDU: 80 09 00 00 [13:50:59]Write to MH i2c: E2 08 00 0F 0A 80 09 00 00 00 00 00 00 8B [13:50:59]Write i2c OK [13:50:59]MH_I2C_Read... [13:50:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:50:59]Read from MH i2c: E2 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: E2 03 00 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: E2 03 00 0F 0A 00 90 00 8D [13:50:59]RAPDU: 90 00 [13:50:59]wFMCommunicate OK [13:50:59]SAM_PROTO_ClearQueue done [13:50:59]KKMCreateOFDPacket [13:50:59]OFDProtocolAddRootSTLVToBuf [13:50:59]FM_MakeSignedData [13:50:59]FM_MakeSignedData [13:50:59]SAM_PROTO_SignData [13:50:59]wFMCommunicate request_size=4 [13:50:59]MH_SAM_APDU [13:50:59]CAPDU: 80 0D 01 02 [13:50:59]Write to MH i2c: E2 08 00 10 0A 80 0D 01 02 00 00 00 00 93 [13:50:59]Write i2c OK [13:50:59]MH_I2C_Read... [13:50:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:50:59]Read from MH i2c: E2 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: E2 03 00 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: E2 03 00 10 0A 00 90 00 8E [13:50:59]RAPDU: 90 00 [13:50:59]wFMCommunicate OK [13:50:59]wFMCommunicate request_size=255 [13:50:59]MH_SAM_APDU [13:50:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 80 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FC 5A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 5A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 5B 00 00 00 00 07 04 06 00 FC 5A 03 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 43 16 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FE 40 01 00 35 04 06 00 C8 [13:50:59]Write to MH i2c: E2 02 01 11 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 80 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FC 5A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 5A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 5B 00 00 00 00 07 04 06 00 FC 5A 03 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 43 16 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FE 40 01 00 35 04 06 00 C8 00 00 46 [13:50:59]Write i2c OK [13:50:59]MH_I2C_Read... [13:50:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:59]Read from MH i2c: E2 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: E2 03 00 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: E2 03 00 11 0A 00 90 00 8F [13:50:59]RAPDU: 90 00 [13:50:59]wFMCommunicate OK [13:50:59]wFMCommunicate request_size=10 [13:50:59]MH_SAM_APDU [13:50:59]CAPDU: 80 0D 02 02 05 E5 C4 2A FB 31 [13:50:59]Write to MH i2c: E2 0D 00 12 0A 80 0D 02 02 05 00 E5 C4 2A FB 31 00 00 9F [13:50:59]Write i2c OK [13:50:59]MH_I2C_Read... [13:50:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:59]Read from MH i2c: E2 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: E2 03 00 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: E2 03 00 12 0A 00 90 00 90 [13:50:59]RAPDU: 90 00 [13:50:59]wFMCommunicate OK [13:50:59]wFMCommunicate request_size=4 [13:50:59]MH_SAM_APDU [13:50:59]CAPDU: 80 0D 03 02 [13:50:59]Write to MH i2c: E2 08 00 13 0A 80 0D 03 02 00 00 00 00 98 [13:50:59]Write i2c OK [13:50:59]MH_I2C_Read... [13:50:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:50:59]Read from MH i2c: E2 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: E2 0B 00 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: E2 0B 00 13 0A 00 95 7D FB 50 5D 25 E4 05 90 00 61 [13:50:59]RAPDU: 95 7D FB 50 5D 25 E4 05 90 00 [13:50:59]wFMCommunicate OK [13:50:59]SAM_PROTO_SignData done [13:50:59]FM_MakeSignedData done [13:50:59]CreateOFDProtocolMessage [13:50:59]wFMCommunicate request_size=4 [13:50:59]MH_SAM_APDU [13:50:59]CAPDU: 80 11 00 00 [13:50:59]Write to MH i2c: E2 08 00 14 0A 80 11 00 00 00 00 00 00 98 [13:50:59]Write i2c OK [13:50:59]MH_I2C_Read... [13:50:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:59]Read from MH i2c: E2 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: E2 17 00 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: E2 17 00 14 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 EA [13:50:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:50:59]wFMCommunicate OK [13:50:59]CreateOFDProtocolMessage done [13:50:59]OFDSenderStorePacket 82174 [13:50:59]StoreOFDPacket docnum=82174 [13:50:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 40 CA 07 01 FA 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 80 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FC 5A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 5A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 5B 00 00 00 00 07 04 06 00 FC 5A 03 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 43 16 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FE 40 01 00 35 04 06 00 C8 E5 C4 2A FB 31 95 7D FB 50 5D 25 E4 05 [13:50:59]CheckFolder [13:50:59]dirname=/storage/ofd_packets [13:50:59]CheckFolder done [13:51:00]ProducePacketName [13:51:00]name=ofd_packets/00082174 [13:51:00]NVStorageSaveData ofd_packets/00082174 [13:51:00]File name is /storage/ofd_packets/00082174 [13:51:00]Write 301 bytes [13:51:00]NVStorageSaveData done [13:51:00]OFDSenderStorePacket done [13:51:00]KKMCreateOFDPacket done [13:51:00]NVStorageSaveData kkm_last_timestamp [13:51:00]File name is /storage/kkm_last_timestamp [13:51:00]Write 4 bytes [13:51:00]NVStorageSaveData done [13:51:00]ExternCall_PrintAddStr [13:51:00]wPrintStart [13:51:00]Write to MH i2c: 01 00 00 15 0A 1F [13:51:00]Write i2c OK [13:51:00]MH_I2C_Read... [13:51:00]Read from MH i2c: 01 [13:51:00]MH_I2C_Read... [13:51:00]Read from MH i2c: 01 07 00 [13:51:00]MH_I2C_Read... [13:51:00]Read from MH i2c: 01 07 00 15 0A 00 00 00 00 00 FF 0F 34 [13:51:00]RasterBufferAndPrint [13:51:00]line Счет N : (1)918679 [13:51:00]line ИНН: 02508201610067 [13:51:00]line Контрольно-Кассовый Чек [13:51:00]line ПРОДАЖА [13:51:00]line ТРК (МРК, ГНК) : 22 [13:51:00]line Товар: 2710124130 [13:51:00]line Аи-92-К-4 [13:51:00]line 32.870 * 66.90 [13:51:00]line = 2199.00 [13:51:00]line НДС 12% НСП 1% [13:51:00]line > о реализуемом товаре [13:51:00]line ИТОГО: 2199.00 [13:51:00]line Внесено: 3000.00 [13:51:00]line СДАЧА: 801.00 [13:51:00]line НСП 1% : 19.46 [13:51:00]line НДС 12% : 233.52 [13:51:00]line Наличными: 2199.00 [13:51:00]line Безнал.: 0.00 [13:51:00]line Место: АЗС № 114 "Партнер Нефть" [13:51:00]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [13:51:00]line СНО: Общий режим [13:51:00]line Чек 100 17.10.2024 13:50 [13:51:00]line Смена: 525 ФФД: 1.0 [13:51:00]line ЗНМ: 0300000086 [13:51:00]line РНМ: 0000000000091680 [13:51:00]line Версия ККМ: 001 [13:51:00]line ФМ: 0000000000871843 [13:51:00]line ФД: 82174 [13:51:00]line ФПД: 220889164217137 [13:51:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T135059&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82174&fm=220889164217137&tin=02508201610067®Number=0000000000091680&sum=219900 [13:51:00]OFD Sender: Processing packet 82174 [packets to send 254, broken 253] [13:51:00]ProducePacketName [13:51:00]name=ofd_packets/00082174 [13:51:00]OFD Sender: To server: pG, [13:51:00]CommunicateWithHost lk.salyk.kg:30040 [13:51:00]ConnectInit lk.salyk.kg [13:51:00]written 0, free lines is 4095 [13:51:00]Write to MH i2c: 01 00 00 3F 0A 49 [13:51:00]Write i2c OK [13:51:00]MH_I2C_Read... [13:51:00]Read from MH i2c: 01 [13:51:00]MH_I2C_Read... [13:51:00]Read from MH i2c: 01 07 00 [13:51:00]MH_I2C_Read... [13:51:00]Read from MH i2c: 01 07 00 3F 0A 00 00 00 00 00 EC 0C 48 [13:51:00]RasterBufferAndPrint [13:51:00]line [13:51:00]line [13:51:00]line [13:51:00]line [13:51:00]line [13:51:00]written 0, free lines is 3314 [13:51:00]MH_Cut [13:51:00]Write to MH i2c: D1 01 00 46 0A 01 22 [13:51:00]Write i2c OK [13:51:00]MH_I2C_Read... [13:51:00]Read from MH i2c: D1 [13:51:00]MH_I2C_Read... [13:51:00]Read from MH i2c: D1 01 00 [13:51:00]MH_I2C_Read... [13:51:00]Read from MH i2c: D1 01 00 46 0A 00 21 [13:51:00]Write to MH i2c: 01 00 00 47 0A 51 [13:51:00]Write i2c OK [13:51:00]MH_I2C_Read... [13:51:00]Connected sock=7 [13:51:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 40 CA 07 01 FA 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 80 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FC 5A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 5A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 5B 00 00 00 00 07 04 06 00 FC 5A 03 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 43 16 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FE 40 01 00 35 04 06 00 C8 E5 C4 2A FB 31 95 7D FB 50 5D 25 E4 05 [13:51:01]*** Cut start [13:51:01]*** Partial cut [13:51:01]*** CUTSNS_PIN = 1 [13:51:01]*** CUTSNS_PIN = 0 [13:51:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 D7 CB 47 00 05 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FE 40 01 00 F4 03 04 00 81 BB 10 67 B6 04 01 00 00 8F 73 6C 1B FD 96 CE 4E [13:51:01]CommunicateWithHost err = 0 [13:51:01]CheckOFDResponse [13:51:01]1017 (14) - 77093643461234 [13:51:01]1041 (16) - 0000000000871843 [13:51:01]1040 (4) - 82174 [13:51:01]1012 (4) - 17.10.2024 07:23 [13:51:01]1206 (1) - 0 [13:51:01]OFD Sender: Remove packet 82174 [13:51:01]ProducePacketName [13:51:01]name=ofd_packets/00082174 [13:51:01]NVStorageDeleteData [13:51:01]*** Brake cut motor [13:51:02]OFD Sender: No OFD packet to send [13:51:02]Read from MH i2c: 01 [13:51:02]MH_I2C_Read... [13:51:02]*** Stop cut motor [13:51:02]*** Cut end [13:51:02]Read from MH i2c: 01 07 00 [13:51:02]MH_I2C_Read... [13:51:02]Read from MH i2c: 01 07 00 47 0A 00 00 00 00 00 FF 0F 66 [13:51:02]process_action close_receipt done [13:51:02]requested_data is exist [13:51:02]produce_requested_data [13:51:02]requested_item fm.sn is exist - process it [13:51:02]wFMCommunicate request_size=4 [13:51:02]MH_SAM_APDU [13:51:02]CAPDU: 80 11 00 00 [13:51:02]Write to MH i2c: E2 08 00 48 0A 80 11 00 00 00 00 00 00 CC [13:51:02]Write i2c OK [13:51:02]MH_I2C_Read... [13:51:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:02]Read from MH i2c: E2 [13:51:02]MH_I2C_Read... [13:51:02]Read from MH i2c: E2 17 00 [13:51:02]MH_I2C_Read... [13:51:02]Read from MH i2c: E2 17 00 48 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 1E [13:51:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:51:02]wFMCommunicate OK [13:51:02]requested_item fd.num is exist - process it [13:51:02]SAM_PROTO_GetFieldsCounters [13:51:02]wFMCommunicate request_size=4 [13:51:02]MH_SAM_APDU [13:51:02]CAPDU: 80 13 00 00 [13:51:02]Write to MH i2c: E2 08 00 49 0A 80 13 00 00 00 00 00 00 CF [13:51:02]Write i2c OK [13:51:02]MH_I2C_Read... [13:51:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:51:02]Read from MH i2c: E2 [13:51:02]MH_I2C_Read... [13:51:02]Read from MH i2c: E2 62 00 [13:51:02]MH_I2C_Read... [13:51:02]Read from MH i2c: E2 62 00 49 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 FE 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [13:51:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 FE 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:51:02]wFMCommunicate OK [13:51:02]SAM_PROTO_GetFieldsCounters done [13:51:02]requested_item shift.num is exist - process it [13:51:02]requested_item shift.opened is exist - process it [13:51:02]req_shift_opened [13:51:02]FM_GetShiftState [13:51:02]SAM_PROTO_GetShiftState [13:51:02]wFMCommunicate request_size=4 [13:51:02]MH_SAM_APDU [13:51:02]CAPDU: 80 13 01 00 [13:51:02]Write to MH i2c: E2 08 00 4A 0A 80 13 01 00 00 00 00 00 D1 [13:51:02]Write i2c OK [13:51:02]MH_I2C_Read... [13:51:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:02]Read from MH i2c: E2 [13:51:02]MH_I2C_Read... [13:51:02]Read from MH i2c: E2 0E 00 [13:51:02]MH_I2C_Read... [13:51:02]Read from MH i2c: E2 0E 00 4A 0A 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 D9 [13:51:02]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [13:51:02]wFMCommunicate OK [13:51:02]SAM_PROTO_GetShiftState done [13:51:02]FM_GetShiftState done [13:51:02]req_shift_opened done [13:51:02]requested_item shift.open_date is exist - process it [13:51:02]req_shift_open_date [13:51:02]req_shift_open_date done [13:51:02]produce_requested_data done [13:51:02]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82174,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [13:51:02]process_action_free close_receipt [13:51:02]json_value_free [13:51:02]json_value_free done [13:51:02]process_json_proto returns [13:51:02]Send response to host [13:51:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82174,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [13:51:02]free response buf [13:51:02]execute_script done [13:51:02]execute_script returns [13:51:02]free content buf [13:51:02]Sock 9.Close socket [13:51:02]Sock 9.Thread stoped [13:51:07]OFD Sender: No OFD packet to send [13:51:10]recv_with_timeout no data received [13:51:12]OFD Sender: No OFD packet to send [13:51:17]OFD Sender: No OFD packet to send [13:51:22]OFD Sender: No OFD packet to send [13:51:27]OFD Sender: No OFD packet to send [13:51:30]recv_with_timeout no data received [13:51:32]OFD Sender: No OFD packet to send [13:51:37]OFD Sender: No OFD packet to send [13:51:42]OFD Sender: No OFD packet to send [13:51:47]OFD Sender: No OFD packet to send [13:51:52]OFD Sender: No OFD packet to send [13:51:57]OFD Sender: No OFD packet to send [13:52:02]OFD Sender: No OFD packet to send [13:52:07]OFD Sender: No OFD packet to send [13:52:12]OFD Sender: No OFD packet to send [13:52:17]OFD Sender: No OFD packet to send [13:52:22]OFD Sender: No OFD packet to send [13:52:27]OFD Sender: No OFD packet to send [13:52:32]OFD Sender: No OFD packet to send [13:52:37]OFD Sender: No OFD packet to send [13:52:42]OFD Sender: No OFD packet to send [13:52:47]OFD Sender: No OFD packet to send [13:52:52]OFD Sender: No OFD packet to send [13:52:57]OFD Sender: No OFD packet to send [13:52:58]recv_with_timeout no data received [13:53:02]OFD Sender: No OFD packet to send [13:53:07]OFD Sender: No OFD packet to send [13:53:11]recv_with_timeout no data received [13:53:12]OFD Sender: No OFD packet to send [13:53:17]OFD Sender: No OFD packet to send [13:53:22]OFD Sender: No OFD packet to send [13:53:27]OFD Sender: No OFD packet to send [13:53:32]OFD Sender: No OFD packet to send [13:53:37]OFD Sender: No OFD packet to send [13:53:42]OFD Sender: No OFD packet to send [13:53:47]OFD Sender: No OFD packet to send [13:53:52]OFD Sender: No OFD packet to send [13:53:55]recv_with_timeout no data received [13:53:57]OFD Sender: No OFD packet to send [13:54:02]OFD Sender: No OFD packet to send [13:54:07]OFD Sender: No OFD packet to send [13:54:12]OFD Sender: No OFD packet to send [13:54:17]OFD Sender: No OFD packet to send [13:54:22]OFD Sender: No OFD packet to send [13:54:27]OFD Sender: No OFD packet to send [13:54:32]OFD Sender: No OFD packet to send [13:54:37]OFD Sender: No OFD packet to send [13:54:42]OFD Sender: No OFD packet to send [13:54:47]OFD Sender: No OFD packet to send [13:54:52]OFD Sender: No OFD packet to send [13:54:57]OFD Sender: No OFD packet to send [13:55:02]OFD Sender: No OFD packet to send [13:55:07]OFD Sender: No OFD packet to send [13:55:12]OFD Sender: No OFD packet to send [13:55:17]OFD Sender: No OFD packet to send [13:55:22]OFD Sender: No OFD packet to send [13:55:27]OFD Sender: No OFD packet to send [13:55:31]recv_with_timeout no data received [13:55:32]OFD Sender: No OFD packet to send [13:55:37]OFD Sender: No OFD packet to send [13:55:42]OFD Sender: No OFD packet to send [13:55:47]OFD Sender: No OFD packet to send [13:55:52]OFD Sender: No OFD packet to send [13:55:57]OFD Sender: No OFD packet to send [13:56:02]OFD Sender: No OFD packet to send [13:56:07]OFD Sender: No OFD packet to send [13:56:12]OFD Sender: No OFD packet to send [13:56:17]OFD Sender: No OFD packet to send [13:56:22]OFD Sender: No OFD packet to send [13:56:27]OFD Sender: No OFD packet to send [13:56:32]OFD Sender: No OFD packet to send [13:56:37]OFD Sender: No OFD packet to send [13:56:42]OFD Sender: No OFD packet to send [13:56:47]OFD Sender: No OFD packet to send [13:56:52]OFD Sender: No OFD packet to send [13:56:57]OFD Sender: No OFD packet to send [13:57:02]OFD Sender: No OFD packet to send [13:57:07]OFD Sender: No OFD packet to send [13:57:12]OFD Sender: No OFD packet to send [13:57:17]OFD Sender: No OFD packet to send [13:57:22]OFD Sender: No OFD packet to send [13:57:27]OFD Sender: No OFD packet to send [13:57:32]OFD Sender: No OFD packet to send [13:57:37]OFD Sender: No OFD packet to send [13:57:42]OFD Sender: No OFD packet to send [13:57:47]OFD Sender: No OFD packet to send [13:57:52]OFD Sender: No OFD packet to send [13:57:57]OFD Sender: No OFD packet to send [13:58:02]OFD Sender: No OFD packet to send [13:58:07]OFD Sender: No OFD packet to send [13:58:12]OFD Sender: No OFD packet to send [13:58:17]OFD Sender: No OFD packet to send [13:58:22]OFD Sender: No OFD packet to send [13:58:27]OFD Sender: No OFD packet to send [13:58:32]OFD Sender: No OFD packet to send [13:58:37]OFD Sender: No OFD packet to send [13:58:42]OFD Sender: No OFD packet to send [13:58:47]OFD Sender: No OFD packet to send [13:58:52]OFD Sender: No OFD packet to send [13:58:57]OFD Sender: No OFD packet to send [13:59:02]OFD Sender: No OFD packet to send [13:59:07]OFD Sender: No OFD packet to send [13:59:12]OFD Sender: No OFD packet to send [13:59:16]accept exits with 10 [13:59:16]New connection [13:59:16]New thread 3067002212 created [13:59:16]Thread 3067145572 joined [13:59:16]Waiting for new connection... [13:59:16] Sock 10.Parse request [13:59:16]Sock 10.Check first char [13:59:16]Sock 10.First char is OK [13:59:16]request: POST /json_proto HTTP/1.0 [13:59:16]Method: POST [13:59:16]URL: /json_proto [13:59:16]Method is POST - this is cgi request [13:59:16]url: /json_proto [13:59:16]query_string will be loaded in cgi processing [13:59:16]execute_cgi json_proto POST (null) [13:59:16]execute_cgi path=json_proto method=POST [13:59:16]POST find Content-Length [13:59:16]Host: 172.17.44.67:8080 [13:59:16]Content-Length: 759 [13:59:16]Content-Type: application/json [13:59:16] [13:59:16]POST finish read [13:59:16]Found Content-Length = 759 [13:59:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 12.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30135208", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:16]execute_script... [13:59:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 12.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30135208", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:16]POST & json_proto [13:59:16]process_json_proto [13:59:16]json parsed OK: [13:59:16]protocol is kg_v1.0 [13:59:16]action value=close_receipt [13:59:16]process_action close_receipt [13:59:16]cmd_close_receipt [13:59:16]MH_GetDate [13:59:16]Write to MH i2c: F0 00 00 4B 0A 44 [13:59:16]Write i2c OK [13:59:16]MH_I2C_Read... [13:59:16]Read from MH i2c: F0 [13:59:16]MH_I2C_Read... [13:59:16]Read from MH i2c: F0 09 00 [13:59:16]MH_I2C_Read... [13:59:16]Read from MH i2c: F0 09 00 4B 0A 00 35 18 11 67 F1 C7 6B 64 99 [13:59:16]GetLastDocTimeStamp 1729173059 [13:59:16]current date 1729173557 [13:59:16]FM_GetShiftState [13:59:16]SAM_PROTO_GetShiftState [13:59:16]wFMCommunicate request_size=4 [13:59:16]MH_SAM_APDU [13:59:16]CAPDU: 80 13 01 00 [13:59:16]Write to MH i2c: E2 08 00 4C 0A 80 13 01 00 00 00 00 00 D3 [13:59:16]Write i2c OK [13:59:16]MH_I2C_Read... [13:59:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:16]Read from MH i2c: E2 [13:59:16]MH_I2C_Read... [13:59:16]Read from MH i2c: E2 0E 00 [13:59:16]MH_I2C_Read... [13:59:16]Read from MH i2c: E2 0E 00 4C 0A 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 DB [13:59:16]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [13:59:16]wFMCommunicate OK [13:59:16]SAM_PROTO_GetShiftState done [13:59:16]FM_GetShiftState done [13:59:16]opened in 1729125927 [13:59:16]opened+sec_in_day 1729212327 [13:59:16]quantity*price = 0 [13:59:16]sum+1 = 1 [13:59:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 101 17.10.2024 13:59 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30135208 ФМ: 0000000000871843 ФД: 82175 ФПД: 38490772677003 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T135917&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82175&fm=38490772677003&tin=02508201610067®Number=0000000000091680&sum=0 [13:59:17]StoreToDocumentArchive [13:59:17]shift 525 fd 82175 [13:59:17]save to /storage/0525/doc_00082175 [13:59:17]save last doc name /storage/0525/doc_00082175 to /storage/kkm_last_doc_name [13:59:17]save OK [13:59:17]Clear old archive folders... [13:59:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:59:17]tlvbuf is 01D20780 [13:59:17]SAM_PROTO_ClearQueue [13:59:17]wFMCommunicate request_size=4 [13:59:17]MH_SAM_APDU [13:59:17]CAPDU: 80 09 00 00 [13:59:17]Write to MH i2c: E2 08 00 59 0A 80 09 00 00 00 00 00 00 D5 [13:59:17]Write i2c OK [13:59:17]MH_I2C_Read... [13:59:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:17]Read from MH i2c: E2 [13:59:17]MH_I2C_Read... [13:59:17]Read from MH i2c: E2 03 00 [13:59:17]MH_I2C_Read... [13:59:17]Read from MH i2c: E2 03 00 59 0A 00 90 00 D7 [13:59:17]RAPDU: 90 00 [13:59:17]wFMCommunicate OK [13:59:17]SAM_PROTO_ClearQueue done [13:59:17]KKMCreateOFDPacket [13:59:17]OFDProtocolAddRootSTLVToBuf [13:59:17]FM_MakeSignedData [13:59:17]FM_MakeSignedData [13:59:17]SAM_PROTO_SignData [13:59:17]wFMCommunicate request_size=4 [13:59:17]MH_SAM_APDU [13:59:17]CAPDU: 80 0D 01 02 [13:59:17]Write to MH i2c: E2 08 00 5A 0A 80 0D 01 02 00 00 00 00 DD [13:59:17]Write i2c OK [13:59:17]MH_I2C_Read... [13:59:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:59:17]Read from MH i2c: E2 [13:59:17]MH_I2C_Read... [13:59:17]Read from MH i2c: E2 03 00 [13:59:17]MH_I2C_Read... [13:59:17]Read from MH i2c: E2 03 00 5A 0A 00 90 00 D8 [13:59:17]RAPDU: 90 00 [13:59:17]wFMCommunicate OK [13:59:17]wFMCommunicate request_size=255 [13:59:17]MH_SAM_APDU [13:59:17]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 2E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 35 18 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FF 40 01 00 35 04 06 00 [13:59:17]Write to MH i2c: E2 02 01 5B 0A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 2E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 35 18 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FF 40 01 00 35 04 06 00 00 00 A7 [13:59:17]Write i2c OK [13:59:17]MH_I2C_Read... [13:59:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:17]Read from MH i2c: E2 [13:59:17]MH_I2C_Read... [13:59:17]Read from MH i2c: E2 03 00 [13:59:17]MH_I2C_Read... [13:59:17]Read from MH i2c: E2 03 00 5B 0A 00 90 00 D9 [13:59:17]RAPDU: 90 00 [13:59:17]wFMCommunicate OK [13:59:17]wFMCommunicate request_size=11 [13:59:17]MH_SAM_APDU [13:59:17]CAPDU: 80 0D 02 02 06 23 01 D4 D5 21 8B [13:59:17]Write to MH i2c: E2 0E 00 5C 0A 80 0D 02 02 06 00 23 01 D4 D5 21 8B 00 00 65 [13:59:17]Write i2c OK [13:59:17]MH_I2C_Read... [13:59:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:17]Read from MH i2c: E2 [13:59:17]MH_I2C_Read... [13:59:17]Read from MH i2c: E2 03 00 [13:59:17]MH_I2C_Read... [13:59:17]Read from MH i2c: E2 03 00 5C 0A 00 90 00 DA [13:59:17]RAPDU: 90 00 [13:59:17]wFMCommunicate OK [13:59:17]wFMCommunicate request_size=4 [13:59:17]MH_SAM_APDU [13:59:17]CAPDU: 80 0D 03 02 [13:59:17]Write to MH i2c: E2 08 00 5D 0A 80 0D 03 02 00 00 00 00 E2 [13:59:17]OFD Sender: No OFD packet to send [13:59:17]Write i2c OK [13:59:17]MH_I2C_Read... [13:59:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:59:18]Read from MH i2c: E2 [13:59:18]MH_I2C_Read... [13:59:18]Read from MH i2c: E2 0B 00 [13:59:18]MH_I2C_Read... [13:59:18]Read from MH i2c: E2 0B 00 5D 0A 00 62 27 47 77 15 26 50 13 90 00 C8 [13:59:18]RAPDU: 62 27 47 77 15 26 50 13 90 00 [13:59:18]wFMCommunicate OK [13:59:18]SAM_PROTO_SignData done [13:59:18]FM_MakeSignedData done [13:59:18]CreateOFDProtocolMessage [13:59:18]wFMCommunicate request_size=4 [13:59:18]MH_SAM_APDU [13:59:18]CAPDU: 80 11 00 00 [13:59:18]Write to MH i2c: E2 08 00 5E 0A 80 11 00 00 00 00 00 00 E2 [13:59:18]Write i2c OK [13:59:18]MH_I2C_Read... [13:59:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:18]Read from MH i2c: E2 [13:59:18]MH_I2C_Read... [13:59:18]Read from MH i2c: E2 17 00 [13:59:18]MH_I2C_Read... [13:59:18]Read from MH i2c: E2 17 00 5E 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 34 [13:59:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:59:18]wFMCommunicate OK [13:59:18]CreateOFDProtocolMessage done [13:59:18]OFDSenderStorePacket 82175 [13:59:18]StoreOFDPacket docnum=82175 [13:59:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 64 9B 08 01 8F 53 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 2E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 35 18 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FF 40 01 00 35 04 06 00 23 01 D4 D5 21 8B 62 27 47 77 15 26 50 13 [13:59:18]CheckFolder [13:59:18]dirname=/storage/ofd_packets [13:59:18]CheckFolder done [13:59:18]ProducePacketName [13:59:18]name=ofd_packets/00082175 [13:59:18]NVStorageSaveData ofd_packets/00082175 [13:59:18]File name is /storage/ofd_packets/00082175 [13:59:18]Write 302 bytes [13:59:18]NVStorageSaveData done [13:59:18]OFDSenderStorePacket done [13:59:18]KKMCreateOFDPacket done [13:59:18]NVStorageSaveData kkm_last_timestamp [13:59:18]File name is /storage/kkm_last_timestamp [13:59:18]Write 4 bytes [13:59:18]NVStorageSaveData done [13:59:18]ExternCall_PrintAddStr [13:59:18]wPrintStart [13:59:18]Write to MH i2c: 01 00 00 5F 0A 69 [13:59:18]OFD Sender: Processing packet 82175 [packets to send 254, broken 253] [13:59:18]ProducePacketName [13:59:18]name=ofd_packets/00082175 [13:59:18]OFD Sender: To server: pG, [13:59:18]CommunicateWithHost lk.salyk.kg:30040 [13:59:18]ConnectInit lk.salyk.kg [13:59:18]Write i2c OK [13:59:18]MH_I2C_Read... [13:59:18]Read from MH i2c: 01 [13:59:18]MH_I2C_Read... [13:59:18]Read from MH i2c: 01 07 00 [13:59:18]MH_I2C_Read... [13:59:18]Read from MH i2c: 01 07 00 5F 0A 00 00 00 00 00 FF 0F 7E [13:59:18]RasterBufferAndPrint [13:59:18]line Счет N : (1)918680 [13:59:18]line ИНН: 02508201610067 [13:59:18]line Контрольно-Кассовый Чек [13:59:18]line ПРОДАЖА [13:59:18]line ТРК (МРК, ГНК) : 31 [13:59:18]line Товар: 2710194210 [13:59:18]line ДТ(л)-К-5 [13:59:18]line 12.000 * 0.00 [13:59:18]line = 0.00 [13:59:18]line НДС 12% НСП 1% [13:59:18]line > о реализуемом товаре [13:59:18]line ИТОГО: 0.00 [13:59:18]line НСП 1% : 0.00 [13:59:18]line НДС 12% : 0.00 [13:59:18]line Наличными: 0.00 [13:59:18]line Безнал.: 0.00 [13:59:18]line Место: АЗС № 114 "Партнер Нефть" [13:59:18]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [13:59:18]line СНО: Общий режим [13:59:18]line Чек 101 17.10.2024 13:59 [13:59:18]line Смена: 525 ФФД: 1.0 [13:59:18]line ЗНМ: 0300000086 [13:59:18]line РНМ: 0000000000091680 [13:59:18]line Версия ККМ: 001 [13:59:18]line Талоны: ТК ГПНА Online [13:59:18]line 30135208 [13:59:18]line ФМ: 0000000000871843 [13:59:18]line ФД: 82175 [13:59:18]line ФПД: 38490772677003 [13:59:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T135917&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82175&fm=38490772677003&tin=02508201610067®Number=0000000000091680&sum=0 [13:59:18]written 0, free lines is 4095 [13:59:18]Connected sock=9 [13:59:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 64 9B 08 01 8F 53 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 2E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 35 18 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FF 40 01 00 35 04 06 00 23 01 D4 D5 21 8B 62 27 47 77 15 26 50 13 [13:59:18]Write to MH i2c: 01 00 00 89 0A 93 [13:59:18]Write i2c OK [13:59:18]MH_I2C_Read... [13:59:18]Read from MH i2c: 01 [13:59:18]MH_I2C_Read... [13:59:18]Read from MH i2c: 01 07 00 [13:59:18]MH_I2C_Read... [13:59:18]Read from MH i2c: 01 07 00 89 0A 00 00 00 00 00 E7 0C 8D [13:59:18]RasterBufferAndPrint [13:59:18]line [13:59:18]line [13:59:18]line [13:59:18]line [13:59:18]line [13:59:18]written 0, free lines is 3309 [13:59:18]MH_Cut [13:59:18]Write to MH i2c: D1 01 00 90 0A 01 6C [13:59:18]Write i2c OK [13:59:18]MH_I2C_Read... [13:59:18]Read from MH i2c: D1 [13:59:18]MH_I2C_Read... [13:59:18]Read from MH i2c: D1 01 00 [13:59:18]MH_I2C_Read... [13:59:18]Read from MH i2c: D1 01 00 90 0A 00 6B [13:59:18]Write to MH i2c: 01 00 00 91 0A 9B [13:59:18]Write i2c OK [13:59:18]MH_I2C_Read... [13:59:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 4E 0D 47 00 FE 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FF 40 01 00 F4 03 04 00 73 BD 10 67 B6 04 01 00 00 B0 E8 7C 8B D7 4E AE 31 [13:59:18]CommunicateWithHost err = 0 [13:59:18]CheckOFDResponse [13:59:18]1017 (14) - 77093643461234 [13:59:18]1041 (16) - 0000000000871843 [13:59:18]1040 (4) - 82175 [13:59:18]1012 (4) - 17.10.2024 07:32 [13:59:18]1206 (1) - 0 [13:59:18]OFD Sender: Remove packet 82175 [13:59:18]ProducePacketName [13:59:18]name=ofd_packets/00082175 [13:59:18]NVStorageDeleteData [13:59:19]OFD Sender: No OFD packet to send [13:59:19]*** Cut start [13:59:19]*** Partial cut [13:59:19]*** CUTSNS_PIN = 1 [13:59:19]*** CUTSNS_PIN = 0 [13:59:19]*** Brake cut motor [13:59:20]Read from MH i2c: 01 [13:59:20]MH_I2C_Read... [13:59:20]*** Stop cut motor [13:59:20]*** Cut end [13:59:20]Read from MH i2c: 01 07 00 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: 01 07 00 91 0A 00 00 00 00 00 FF 0F B0 [13:59:20]process_action close_receipt done [13:59:20]requested_data is exist [13:59:20]produce_requested_data [13:59:20]requested_item fm.sn is exist - process it [13:59:20]wFMCommunicate request_size=4 [13:59:20]MH_SAM_APDU [13:59:20]CAPDU: 80 11 00 00 [13:59:20]Write to MH i2c: E2 08 00 92 0A 80 11 00 00 00 00 00 00 16 [13:59:20]Write i2c OK [13:59:20]MH_I2C_Read... [13:59:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:20]Read from MH i2c: E2 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: E2 17 00 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: E2 17 00 92 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 68 [13:59:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:59:20]wFMCommunicate OK [13:59:20]requested_item fd.num is exist - process it [13:59:20]SAM_PROTO_GetFieldsCounters [13:59:20]wFMCommunicate request_size=4 [13:59:20]MH_SAM_APDU [13:59:20]CAPDU: 80 13 00 00 [13:59:20]Write to MH i2c: E2 08 00 93 0A 80 13 00 00 00 00 00 00 19 [13:59:20]Write i2c OK [13:59:20]MH_I2C_Read... [13:59:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:20]Read from MH i2c: E2 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: E2 62 00 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: E2 62 00 93 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 FF 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [13:59:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 FF 40 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:59:20]wFMCommunicate OK [13:59:20]SAM_PROTO_GetFieldsCounters done [13:59:20]requested_item shift.num is exist - process it [13:59:20]requested_item shift.opened is exist - process it [13:59:20]req_shift_opened [13:59:20]FM_GetShiftState [13:59:20]SAM_PROTO_GetShiftState [13:59:20]wFMCommunicate request_size=4 [13:59:20]MH_SAM_APDU [13:59:20]CAPDU: 80 13 01 00 [13:59:20]Write to MH i2c: E2 08 00 94 0A 80 13 01 00 00 00 00 00 1B [13:59:20]Write i2c OK [13:59:20]MH_I2C_Read... [13:59:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:20]Read from MH i2c: E2 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: E2 0E 00 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: E2 0E 00 94 0A 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 23 [13:59:20]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [13:59:20]wFMCommunicate OK [13:59:20]SAM_PROTO_GetShiftState done [13:59:20]FM_GetShiftState done [13:59:20]req_shift_opened done [13:59:20]requested_item shift.open_date is exist - process it [13:59:20]req_shift_open_date [13:59:20]req_shift_open_date done [13:59:20]produce_requested_data done [13:59:20]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82175,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [13:59:20]process_action_free close_receipt [13:59:20]json_value_free [13:59:20]json_value_free done [13:59:20]process_json_proto returns [13:59:20]Send response to host [13:59:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82175,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [13:59:20]free response buf [13:59:20]execute_script done [13:59:20]execute_script returns [13:59:20]free content buf [13:59:20]Sock 10.Close socket [13:59:20]Sock 10.Thread stoped [13:59:24]OFD Sender: No OFD packet to send [13:59:29]OFD Sender: No OFD packet to send [13:59:34]OFD Sender: No OFD packet to send [13:59:39]OFD Sender: No OFD packet to send [13:59:42]recv_with_timeout no data received [13:59:44]OFD Sender: No OFD packet to send [13:59:49]OFD Sender: No OFD packet to send [13:59:54]OFD Sender: No OFD packet to send [13:59:59]OFD Sender: No OFD packet to send [14:00:04]OFD Sender: No OFD packet to send [14:00:09]OFD Sender: No OFD packet to send [14:00:14]OFD Sender: No OFD packet to send [14:00:19]OFD Sender: No OFD packet to send [14:00:24]OFD Sender: No OFD packet to send [14:00:29]OFD Sender: No OFD packet to send [14:00:30]accept exits with 7 [14:00:30]New connection [14:00:30]New thread 3067145572 created [14:00:30]Thread 3067002212 joined [14:00:30]Waiting for new connection... [14:00:30] Sock 7.Parse request [14:00:30]Sock 7.Check first char [14:00:30]Sock 7.First char is OK [14:00:30]request: POST /json_proto HTTP/1.0 [14:00:30]Method: POST [14:00:30]URL: /json_proto [14:00:30]Method is POST - this is cgi request [14:00:30]url: /json_proto [14:00:30]query_string will be loaded in cgi processing [14:00:30]execute_cgi json_proto POST (null) [14:00:30]execute_cgi path=json_proto method=POST [14:00:30]POST find Content-Length [14:00:30]Host: 172.17.44.67:8080 [14:00:30]Content-Length: 769 [14:00:30]Content-Type: application/json [14:00:30] [14:00:30]POST finish read [14:00:30]Found Content-Length = 769 [14:00:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:30]execute_script... [14:00:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:30]POST & json_proto [14:00:30]process_json_proto [14:00:30]json parsed OK: [14:00:30]protocol is kg_v1.0 [14:00:30]action value=close_receipt [14:00:30]process_action close_receipt [14:00:30]cmd_close_receipt [14:00:30]MH_GetDate [14:00:30]Write to MH i2c: F0 00 00 95 0A 8E [14:00:30]Write i2c OK [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: F0 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: F0 09 00 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: F0 09 00 95 0A 00 7F 18 11 67 F1 C7 6B 64 2D [14:00:30]GetLastDocTimeStamp 1729173557 [14:00:30]current date 1729173631 [14:00:30]FM_GetShiftState [14:00:30]SAM_PROTO_GetShiftState [14:00:30]wFMCommunicate request_size=4 [14:00:30]MH_SAM_APDU [14:00:30]CAPDU: 80 13 01 00 [14:00:30]Write to MH i2c: E2 08 00 96 0A 80 13 01 00 00 00 00 00 1D [14:00:30]Write i2c OK [14:00:30]MH_I2C_Read... [14:00:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:30]Read from MH i2c: E2 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: E2 0E 00 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: E2 0E 00 96 0A 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 25 [14:00:30]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [14:00:30]wFMCommunicate OK [14:00:30]SAM_PROTO_GetShiftState done [14:00:30]FM_GetShiftState done [14:00:30]opened in 1729125927 [14:00:30]opened+sec_in_day 1729212327 [14:00:30]quantity*price = 100021 [14:00:30]sum+1 = 100023 [14:00:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 102 17.10.2024 14:00 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82176 ФПД: 129506493002435 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T140031&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82176&fm=129506493002435&tin=02508201610067®Number=0000000000091680&sum=100022 [14:00:31]StoreToDocumentArchive [14:00:31]shift 525 fd 82176 [14:00:31]save to /storage/0525/doc_00082176 [14:00:31]save last doc name /storage/0525/doc_00082176 to /storage/kkm_last_doc_name [14:00:31]save OK [14:00:31]Clear old archive folders... [14:00:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:00:31]tlvbuf is 01D246C0 [14:00:31]SAM_PROTO_ClearQueue [14:00:31]wFMCommunicate request_size=4 [14:00:31]MH_SAM_APDU [14:00:31]CAPDU: 80 09 00 00 [14:00:31]Write to MH i2c: E2 08 00 A3 0A 80 09 00 00 00 00 00 00 1F [14:00:31]Write i2c OK [14:00:31]MH_I2C_Read... [14:00:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:31]Read from MH i2c: E2 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E2 03 00 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E2 03 00 A3 0A 00 90 00 21 [14:00:31]RAPDU: 90 00 [14:00:31]wFMCommunicate OK [14:00:31]SAM_PROTO_ClearQueue done [14:00:31]KKMCreateOFDPacket [14:00:31]OFDProtocolAddRootSTLVToBuf [14:00:31]FM_MakeSignedData [14:00:31]FM_MakeSignedData [14:00:31]SAM_PROTO_SignData [14:00:31]wFMCommunicate request_size=4 [14:00:31]MH_SAM_APDU [14:00:31]CAPDU: 80 0D 01 02 [14:00:31]Write to MH i2c: E2 08 00 A4 0A 80 0D 01 02 00 00 00 00 27 [14:00:31]Write i2c OK [14:00:31]MH_I2C_Read... [14:00:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:31]Read from MH i2c: E2 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E2 03 00 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E2 03 00 A4 0A 00 90 00 22 [14:00:31]RAPDU: 90 00 [14:00:31]wFMCommunicate OK [14:00:31]wFMCommunicate request_size=255 [14:00:31]MH_SAM_APDU [14:00:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 7F 18 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 00 41 01 00 35 04 06 00 75 [14:00:31]Write to MH i2c: E2 02 01 A5 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 7F 18 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 00 41 01 00 35 04 06 00 75 00 00 38 [14:00:31]Write i2c OK [14:00:31]MH_I2C_Read... [14:00:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:31]Read from MH i2c: E2 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E2 03 00 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E2 03 00 A5 0A 00 90 00 23 [14:00:31]RAPDU: 90 00 [14:00:31]wFMCommunicate OK [14:00:31]wFMCommunicate request_size=10 [14:00:31]MH_SAM_APDU [14:00:31]CAPDU: 80 0D 02 02 05 C9 14 82 F2 C3 [14:00:31]Write to MH i2c: E2 0D 00 A6 0A 80 0D 02 02 05 00 C9 14 82 F2 C3 00 00 48 [14:00:31]Write i2c OK [14:00:31]MH_I2C_Read... [14:00:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:31]Read from MH i2c: E2 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E2 03 00 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E2 03 00 A6 0A 00 90 00 24 [14:00:31]RAPDU: 90 00 [14:00:31]wFMCommunicate OK [14:00:31]wFMCommunicate request_size=4 [14:00:31]MH_SAM_APDU [14:00:31]CAPDU: 80 0D 03 02 [14:00:31]Write to MH i2c: E2 08 00 A7 0A 80 0D 03 02 00 00 00 00 2C [14:00:31]Write i2c OK [14:00:31]MH_I2C_Read... [14:00:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:31]Read from MH i2c: E2 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E2 0B 00 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E2 0B 00 A7 0A 00 52 A8 03 3D E6 C8 4F 72 90 00 D6 [14:00:31]RAPDU: 52 A8 03 3D E6 C8 4F 72 90 00 [14:00:31]wFMCommunicate OK [14:00:31]SAM_PROTO_SignData done [14:00:31]FM_MakeSignedData done [14:00:31]CreateOFDProtocolMessage [14:00:31]wFMCommunicate request_size=4 [14:00:31]MH_SAM_APDU [14:00:31]CAPDU: 80 11 00 00 [14:00:31]Write to MH i2c: E2 08 00 A8 0A 80 11 00 00 00 00 00 00 2C [14:00:31]Write i2c OK [14:00:31]MH_I2C_Read... [14:00:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:31]Read from MH i2c: E2 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E2 17 00 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E2 17 00 A8 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 7E [14:00:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:00:31]wFMCommunicate OK [14:00:31]CreateOFDProtocolMessage done [14:00:31]OFDSenderStorePacket 82176 [14:00:31]StoreOFDPacket docnum=82176 [14:00:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 7C 4E 07 01 36 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 7F 18 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 00 41 01 00 35 04 06 00 75 C9 14 82 F2 C3 52 A8 03 3D E6 C8 4F 72 [14:00:31]CheckFolder [14:00:31]dirname=/storage/ofd_packets [14:00:31]CheckFolder done [14:00:31]ProducePacketName [14:00:31]name=ofd_packets/00082176 [14:00:31]NVStorageSaveData ofd_packets/00082176 [14:00:31]File name is /storage/ofd_packets/00082176 [14:00:32]Write 301 bytes [14:00:32]NVStorageSaveData done [14:00:32]OFDSenderStorePacket done [14:00:32]KKMCreateOFDPacket done [14:00:32]NVStorageSaveData kkm_last_timestamp [14:00:32]File name is /storage/kkm_last_timestamp [14:00:32]Write 4 bytes [14:00:32]NVStorageSaveData done [14:00:32]ExternCall_PrintAddStr [14:00:32]wPrintStart [14:00:32]Write to MH i2c: 01 00 00 A9 0A B3 [14:00:32]Write i2c OK [14:00:32]MH_I2C_Read... [14:00:32]Read from MH i2c: 01 [14:00:32]MH_I2C_Read... [14:00:32]Read from MH i2c: 01 07 00 [14:00:32]MH_I2C_Read... [14:00:32]Read from MH i2c: 01 07 00 A9 0A 00 00 00 00 00 FF 0F C8 [14:00:32]RasterBufferAndPrint [14:00:32]line Счет N : (1)918681 [14:00:32]line ИНН: 02508201610067 [14:00:32]line Контрольно-Кассовый Чек [14:00:32]line ПРОДАЖА [14:00:32]line ТРК (МРК, ГНК) : 12 [14:00:32]line Товар: 2710124500 [14:00:32]line Аи-95-К-5 [14:00:32]line 13.480 * 74.20 [14:00:32]line = 1000.22 [14:00:32]line НДС 12% НСП 1% [14:00:32]line > о реализуемом товаре [14:00:32]line ИТОГО: 1000.22 [14:00:32]line НСП 1% : 8.85 [14:00:32]line НДС 12% : 106.22 [14:00:32]line Наличными: 0.00 [14:00:32]line Безнал.: 1000.22 [14:00:32]line Место: АЗС № 114 "Партнер Нефть" [14:00:32]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [14:00:32]line СНО: Общий режим [14:00:32]line Чек 102 17.10.2024 14:00 [14:00:32]line Смена: 525 ФФД: 1.0 [14:00:32]line ЗНМ: 0300000086 [14:00:32]line РНМ: 0000000000091680 [14:00:32]line Версия ККМ: 001 [14:00:32]line Платежная система: Mbank [14:00:32]line ФМ: 0000000000871843 [14:00:32]line ФД: 82176 [14:00:32]line ФПД: 129506493002435 [14:00:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T140031&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82176&fm=129506493002435&tin=02508201610067®Number=0000000000091680&sum=100022 [14:00:32]written 0, free lines is 4095 [14:00:32]OFD Sender: Processing packet 82176 [packets to send 254, broken 253] [14:00:32]ProducePacketName [14:00:32]name=ofd_packets/00082176 [14:00:32]OFD Sender: To server: pG, [14:00:32]CommunicateWithHost lk.salyk.kg:30040 [14:00:32]ConnectInit lk.salyk.kg [14:00:32]Connected sock=10 [14:00:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 7C 4E 07 01 36 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 7F 18 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 00 41 01 00 35 04 06 00 75 C9 14 82 F2 C3 52 A8 03 3D E6 C8 4F 72 [14:00:32]Write to MH i2c: 01 00 00 D2 0A DC [14:00:32]Write i2c OK [14:00:32]MH_I2C_Read... [14:00:32]Read from MH i2c: 01 [14:00:32]MH_I2C_Read... [14:00:32]Read from MH i2c: 01 07 00 [14:00:32]MH_I2C_Read... [14:00:32]Read from MH i2c: 01 07 00 D2 0A 00 00 00 00 00 FD 0C EC [14:00:32]RasterBufferAndPrint [14:00:32]line [14:00:32]line [14:00:32]line [14:00:32]line [14:00:32]line [14:00:32]written 0, free lines is 3331 [14:00:32]MH_Cut [14:00:32]Write to MH i2c: D1 01 00 D9 0A 01 B5 [14:00:32]Write i2c OK [14:00:32]MH_I2C_Read... [14:00:32]Read from MH i2c: D1 [14:00:32]MH_I2C_Read... [14:00:32]Read from MH i2c: D1 01 00 [14:00:32]MH_I2C_Read... [14:00:32]Read from MH i2c: D1 01 00 D9 0A 00 B4 [14:00:32]Write to MH i2c: 01 00 00 DA 0A E4 [14:00:32]Write i2c OK [14:00:32]MH_I2C_Read... [14:00:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 87 B3 47 00 4E A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 00 41 01 00 F4 03 04 00 BC BD 10 67 B6 04 01 00 00 30 81 F5 D0 39 05 08 2E [14:00:32]CommunicateWithHost err = 0 [14:00:32]CheckOFDResponse [14:00:32]1017 (14) - 77093643461234 [14:00:32]1041 (16) - 0000000000871843 [14:00:32]1040 (4) - 82176 [14:00:32]1012 (4) - 17.10.2024 07:33 [14:00:32]1206 (1) - 0 [14:00:32]OFD Sender: Remove packet 82176 [14:00:32]ProducePacketName [14:00:32]name=ofd_packets/00082176 [14:00:32]NVStorageDeleteData [14:00:33]OFD Sender: No OFD packet to send [14:00:33]*** Cut start [14:00:33]*** Partial cut [14:00:33]*** CUTSNS_PIN = 1 [14:00:33]*** CUTSNS_PIN = 0 [14:00:33]*** Brake cut motor [14:00:33]Read from MH i2c: 01 [14:00:33]MH_I2C_Read... [14:00:33]*** Stop cut motor [14:00:33]*** Cut end [14:00:33]Read from MH i2c: 01 07 00 [14:00:33]MH_I2C_Read... [14:00:33]Read from MH i2c: 01 07 00 DA 0A 00 00 00 00 00 FF 0F F9 [14:00:33]process_action close_receipt done [14:00:33]requested_data is exist [14:00:33]produce_requested_data [14:00:33]requested_item fm.sn is exist - process it [14:00:33]wFMCommunicate request_size=4 [14:00:33]MH_SAM_APDU [14:00:33]CAPDU: 80 11 00 00 [14:00:33]Write to MH i2c: E2 08 00 DB 0A 80 11 00 00 00 00 00 00 5F [14:00:33]Write i2c OK [14:00:33]MH_I2C_Read... [14:00:33]Read from MH i2c: E2 [14:00:33]MH_I2C_Read... [14:00:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:33]Read from MH i2c: E2 17 00 [14:00:33]MH_I2C_Read... [14:00:33]Read from MH i2c: E2 17 00 DB 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 B1 [14:00:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:00:33]wFMCommunicate OK [14:00:33]requested_item fd.num is exist - process it [14:00:33]SAM_PROTO_GetFieldsCounters [14:00:33]wFMCommunicate request_size=4 [14:00:33]MH_SAM_APDU [14:00:33]CAPDU: 80 13 00 00 [14:00:33]Write to MH i2c: E2 08 00 DC 0A 80 13 00 00 00 00 00 00 62 [14:00:33]Write i2c OK [14:00:33]MH_I2C_Read... [14:00:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:34]Read from MH i2c: E2 [14:00:34]MH_I2C_Read... [14:00:34]Read from MH i2c: E2 62 00 [14:00:34]MH_I2C_Read... [14:00:34]Read from MH i2c: E2 62 00 DC 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 00 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [14:00:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 00 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:00:34]wFMCommunicate OK [14:00:34]SAM_PROTO_GetFieldsCounters done [14:00:34]requested_item shift.num is exist - process it [14:00:34]requested_item shift.opened is exist - process it [14:00:34]req_shift_opened [14:00:34]FM_GetShiftState [14:00:34]SAM_PROTO_GetShiftState [14:00:34]wFMCommunicate request_size=4 [14:00:34]MH_SAM_APDU [14:00:34]CAPDU: 80 13 01 00 [14:00:34]Write to MH i2c: E2 08 00 DD 0A 80 13 01 00 00 00 00 00 64 [14:00:34]Write i2c OK [14:00:34]MH_I2C_Read... [14:00:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:34]Read from MH i2c: E2 [14:00:34]MH_I2C_Read... [14:00:34]Read from MH i2c: E2 0E 00 [14:00:34]MH_I2C_Read... [14:00:34]Read from MH i2c: E2 0E 00 DD 0A 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 6C [14:00:34]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [14:00:34]wFMCommunicate OK [14:00:34]SAM_PROTO_GetShiftState done [14:00:34]FM_GetShiftState done [14:00:34]req_shift_opened done [14:00:34]requested_item shift.open_date is exist - process it [14:00:34]req_shift_open_date [14:00:34]req_shift_open_date done [14:00:34]produce_requested_data done [14:00:34]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82176,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [14:00:34]process_action_free close_receipt [14:00:34]json_value_free [14:00:34]json_value_free done [14:00:34]process_json_proto returns [14:00:34]Send response to host [14:00:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82176,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [14:00:34]free response buf [14:00:34]execute_script done [14:00:34]execute_script returns [14:00:34]free content buf [14:00:34]Sock 7.Close socket [14:00:34]Sock 7.Thread stoped [14:00:38]OFD Sender: No OFD packet to send [14:00:43]OFD Sender: No OFD packet to send [14:00:48]OFD Sender: No OFD packet to send [14:00:53]OFD Sender: No OFD packet to send [14:00:58]OFD Sender: No OFD packet to send [14:01:03]OFD Sender: No OFD packet to send [14:01:08]OFD Sender: No OFD packet to send [14:01:13]OFD Sender: No OFD packet to send [14:01:18]OFD Sender: No OFD packet to send [14:01:23]OFD Sender: No OFD packet to send [14:01:28]OFD Sender: No OFD packet to send [14:01:33]OFD Sender: No OFD packet to send [14:01:38]OFD Sender: No OFD packet to send [14:01:43]OFD Sender: No OFD packet to send [14:01:48]OFD Sender: No OFD packet to send [14:01:53]OFD Sender: No OFD packet to send [14:01:58]OFD Sender: No OFD packet to send [14:02:03]OFD Sender: No OFD packet to send [14:02:08]OFD Sender: No OFD packet to send [14:02:13]OFD Sender: No OFD packet to send [14:02:18]OFD Sender: No OFD packet to send [14:02:23]OFD Sender: No OFD packet to send [14:02:28]OFD Sender: No OFD packet to send [14:02:33]OFD Sender: No OFD packet to send [14:02:38]OFD Sender: No OFD packet to send [14:02:43]OFD Sender: No OFD packet to send [14:02:48]OFD Sender: No OFD packet to send [14:02:53]OFD Sender: No OFD packet to send [14:02:58]OFD Sender: No OFD packet to send [14:03:03]OFD Sender: No OFD packet to send [14:03:08]OFD Sender: No OFD packet to send [14:03:13]OFD Sender: No OFD packet to send [14:03:18]OFD Sender: No OFD packet to send [14:03:23]OFD Sender: No OFD packet to send [14:03:28]OFD Sender: No OFD packet to send [14:03:33]OFD Sender: No OFD packet to send [14:03:38]OFD Sender: No OFD packet to send [14:03:43]OFD Sender: No OFD packet to send [14:03:48]OFD Sender: No OFD packet to send [14:03:53]OFD Sender: No OFD packet to send [14:03:58]OFD Sender: No OFD packet to send [14:04:03]OFD Sender: No OFD packet to send [14:04:08]OFD Sender: No OFD packet to send [14:04:13]OFD Sender: No OFD packet to send [14:04:18]OFD Sender: No OFD packet to send [14:04:23]OFD Sender: No OFD packet to send [14:04:28]OFD Sender: No OFD packet to send [14:04:33]OFD Sender: No OFD packet to send [14:04:38]OFD Sender: No OFD packet to send [14:04:43]OFD Sender: No OFD packet to send [14:04:48]OFD Sender: No OFD packet to send [14:04:53]OFD Sender: No OFD packet to send [14:04:58]OFD Sender: No OFD packet to send [14:05:03]OFD Sender: No OFD packet to send [14:05:08]OFD Sender: No OFD packet to send [14:05:13]OFD Sender: No OFD packet to send [14:05:18]OFD Sender: No OFD packet to send [14:05:23]OFD Sender: No OFD packet to send [14:05:28]OFD Sender: No OFD packet to send [14:05:33]OFD Sender: No OFD packet to send [14:05:38]OFD Sender: No OFD packet to send [14:05:43]OFD Sender: No OFD packet to send [14:05:48]OFD Sender: No OFD packet to send [14:05:53]OFD Sender: No OFD packet to send [14:05:58]accept exits with 9 [14:05:58]New connection [14:05:58]New thread 3067002212 created [14:05:58]Thread 3067145572 joined [14:05:58]Waiting for new connection... [14:05:58] Sock 9.Parse request [14:05:58]Sock 9.Check first char [14:05:58]Sock 9.First char is OK [14:05:58]request: POST /json_proto HTTP/1.0 [14:05:58]Method: POST [14:05:58]URL: /json_proto [14:05:58]Method is POST - this is cgi request [14:05:58]url: /json_proto [14:05:58]query_string will be loaded in cgi processing [14:05:58]execute_cgi json_proto POST (null) [14:05:58]execute_cgi path=json_proto method=POST [14:05:58]POST find Content-Length [14:05:58]Host: 172.17.44.67:8080 [14:05:58]Content-Length: 754 [14:05:58]Content-Type: application/json [14:05:58] [14:05:58]POST finish read [14:05:58]Found Content-Length = 754 [14:05:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 17.940, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086575", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:58]execute_script... [14:05:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 17.940, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086575", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:58]POST & json_proto [14:05:58]process_json_proto [14:05:58]json parsed OK: [14:05:58]protocol is kg_v1.0 [14:05:58]action value=close_receipt [14:05:58]process_action close_receipt [14:05:58]cmd_close_receipt [14:05:58]MH_GetDate [14:05:58]Write to MH i2c: F0 00 00 DE 0A D7 [14:05:58]Write i2c OK [14:05:58]MH_I2C_Read... [14:05:58]Read from MH i2c: F0 [14:05:58]MH_I2C_Read... [14:05:58]Read from MH i2c: F0 09 00 [14:05:58]MH_I2C_Read... [14:05:58]Read from MH i2c: F0 09 00 DE 0A 00 C7 19 11 67 F1 C7 6B 64 BF [14:05:58]GetLastDocTimeStamp 1729173631 [14:05:58]current date 1729173959 [14:05:58]FM_GetShiftState [14:05:58]SAM_PROTO_GetShiftState [14:05:58]wFMCommunicate request_size=4 [14:05:58]MH_SAM_APDU [14:05:58]CAPDU: 80 13 01 00 [14:05:58]Write to MH i2c: E2 08 00 DF 0A 80 13 01 00 00 00 00 00 66 [14:05:58]Write i2c OK [14:05:58]MH_I2C_Read... [14:05:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:58]Read from MH i2c: E2 [14:05:58]MH_I2C_Read... [14:05:58]Read from MH i2c: E2 0E 00 [14:05:58]MH_I2C_Read... [14:05:58]Read from MH i2c: E2 0E 00 DF 0A 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 6E [14:05:58]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [14:05:58]wFMCommunicate OK [14:05:58]SAM_PROTO_GetShiftState done [14:05:58]FM_GetShiftState done [14:05:58]opened in 1729125927 [14:05:58]opened+sec_in_day 1729212327 [14:05:58]quantity*price = 0 [14:05:58]sum+1 = 1 [14:05:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 103 17.10.2024 14:05 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30086575 ФМ: 0000000000871843 ФД: 82177 ФПД: 270947677570386 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T140559&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82177&fm=270947677570386&tin=02508201610067®Number=0000000000091680&sum=0 [14:05:59]StoreToDocumentArchive [14:05:59]shift 525 fd 82177 [14:05:59]save to /storage/0525/doc_00082177 [14:05:59]save last doc name /storage/0525/doc_00082177 to /storage/kkm_last_doc_name [14:05:59]save OK [14:05:59]Clear old archive folders... [14:05:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:05:59]tlvbuf is 01D20A90 [14:05:59]SAM_PROTO_ClearQueue [14:05:59]wFMCommunicate request_size=4 [14:05:59]MH_SAM_APDU [14:05:59]CAPDU: 80 09 00 00 [14:05:59]Write to MH i2c: E2 08 00 EC 0A 80 09 00 00 00 00 00 00 68 [14:05:59]Write i2c OK [14:05:59]MH_I2C_Read... [14:05:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:59]Read from MH i2c: E2 [14:05:59]MH_I2C_Read... [14:05:59]Read from MH i2c: E2 03 00 [14:05:59]MH_I2C_Read... [14:05:59]Read from MH i2c: E2 03 00 EC 0A 00 90 00 6A [14:05:59]RAPDU: 90 00 [14:05:59]wFMCommunicate OK [14:05:59]SAM_PROTO_ClearQueue done [14:05:59]KKMCreateOFDPacket [14:05:59]OFDProtocolAddRootSTLVToBuf [14:05:59]FM_MakeSignedData [14:05:59]FM_MakeSignedData [14:05:59]SAM_PROTO_SignData [14:05:59]wFMCommunicate request_size=4 [14:05:59]MH_SAM_APDU [14:05:59]CAPDU: 80 0D 01 02 [14:05:59]Write to MH i2c: E2 08 00 ED 0A 80 0D 01 02 00 00 00 00 70 [14:05:59]Write i2c OK [14:05:59]MH_I2C_Read... [14:05:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:59]Read from MH i2c: E2 [14:05:59]MH_I2C_Read... [14:05:59]Read from MH i2c: E2 03 00 [14:05:59]MH_I2C_Read... [14:05:59]Read from MH i2c: E2 03 00 ED 0A 00 90 00 6B [14:05:59]RAPDU: 90 00 [14:05:59]wFMCommunicate OK [14:05:59]wFMCommunicate request_size=255 [14:05:59]MH_SAM_APDU [14:05:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 C7 19 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 01 41 01 00 35 04 06 00 F6 [14:05:59]Write to MH i2c: E2 02 01 EE 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 C7 19 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 01 41 01 00 35 04 06 00 F6 00 00 D8 [14:05:59]Write i2c OK [14:05:59]MH_I2C_Read... [14:06:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:00]Read from MH i2c: E2 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: E2 03 00 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: E2 03 00 EE 0A 00 90 00 6C [14:06:00]RAPDU: 90 00 [14:06:00]wFMCommunicate OK [14:06:00]wFMCommunicate request_size=10 [14:06:00]MH_SAM_APDU [14:06:00]CAPDU: 80 0D 02 02 05 6C EC 13 05 52 [14:06:00]Write to MH i2c: E2 0D 00 EF 0A 80 0D 02 02 05 00 6C EC 13 05 52 00 00 3F [14:06:00]Write i2c OK [14:06:00]MH_I2C_Read... [14:06:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:00]Read from MH i2c: E2 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: E2 03 00 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: E2 03 00 EF 0A 00 90 00 6D [14:06:00]RAPDU: 90 00 [14:06:00]wFMCommunicate OK [14:06:00]wFMCommunicate request_size=4 [14:06:00]MH_SAM_APDU [14:06:00]CAPDU: 80 0D 03 02 [14:06:00]Write to MH i2c: E2 08 00 F0 0A 80 0D 03 02 00 00 00 00 75 [14:06:00]Write i2c OK [14:06:00]MH_I2C_Read... [14:06:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:06:00]Read from MH i2c: E2 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: E2 0B 00 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: E2 0B 00 F0 0A 00 AC 5D 19 5B 12 3A 2D 07 90 00 73 [14:06:00]RAPDU: AC 5D 19 5B 12 3A 2D 07 90 00 [14:06:00]wFMCommunicate OK [14:06:00]SAM_PROTO_SignData done [14:06:00]FM_MakeSignedData done [14:06:00]CreateOFDProtocolMessage [14:06:00]wFMCommunicate request_size=4 [14:06:00]MH_SAM_APDU [14:06:00]CAPDU: 80 11 00 00 [14:06:00]Write to MH i2c: E2 08 00 F1 0A 80 11 00 00 00 00 00 00 75 [14:06:00]Write i2c OK [14:06:00]MH_I2C_Read... [14:06:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:00]Read from MH i2c: E2 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: E2 17 00 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: E2 17 00 F1 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C7 [14:06:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:06:00]wFMCommunicate OK [14:06:00]CreateOFDProtocolMessage done [14:06:00]OFDSenderStorePacket 82177 [14:06:00]StoreOFDPacket docnum=82177 [14:06:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 41 DF 07 01 BB 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 34 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 C7 19 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 01 41 01 00 35 04 06 00 F6 6C EC 13 05 52 AC 5D 19 5B 12 3A 2D 07 [14:06:00]CheckFolder [14:06:00]dirname=/storage/ofd_packets [14:06:00]CheckFolder done [14:06:00]ProducePacketName [14:06:00]name=ofd_packets/00082177 [14:06:00]NVStorageSaveData ofd_packets/00082177 [14:06:00]File name is /storage/ofd_packets/00082177 [14:06:00]Write 301 bytes [14:06:00]NVStorageSaveData done [14:06:00]OFDSenderStorePacket done [14:06:00]KKMCreateOFDPacket done [14:06:00]NVStorageSaveData kkm_last_timestamp [14:06:00]File name is /storage/kkm_last_timestamp [14:06:00]Write 4 bytes [14:06:00]NVStorageSaveData done [14:06:00]ExternCall_PrintAddStr [14:06:00]wPrintStart [14:06:00]Write to MH i2c: 01 00 00 F2 0A FC [14:06:00]Write i2c OK [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: 01 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: 01 07 00 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: 01 07 00 F2 0A 00 00 00 00 00 FF 0F 11 [14:06:00]RasterBufferAndPrint [14:06:00]line Счет N : (1)918682 [14:06:00]line ИНН: 02508201610067 [14:06:00]line Контрольно-Кассовый Чек [14:06:00]line ПРОДАЖА [14:06:00]line ТРК (МРК, ГНК) : 22 [14:06:00]line Товар: 2710124130 [14:06:00]line Аи-92-К-4 [14:06:00]line 17.940 * 0.00 [14:06:00]line = 0.00 [14:06:00]line НДС 12% НСП 1% [14:06:00]line > о реализуемом товаре [14:06:00]line ИТОГО: 0.00 [14:06:00]line НСП 1% : 0.00 [14:06:00]line НДС 12% : 0.00 [14:06:00]line Наличными: 0.00 [14:06:00]line Безнал.: 0.00 [14:06:00]line Место: АЗС № 114 "Партнер Нефть" [14:06:00]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [14:06:00]line СНО: Общий режим [14:06:00]line Чек 103 17.10.2024 14:05 [14:06:00]line Смена: 525 ФФД: 1.0 [14:06:00]line ЗНМ: 0300000086 [14:06:00]line РНМ: 0000000000091680 [14:06:00]line Версия ККМ: 001 [14:06:00]line Талоны: ТК ГПНА Online [14:06:00]line 30086575 [14:06:00]line ФМ: 0000000000871843 [14:06:00]line ФД: 82177 [14:06:00]line ФПД: 270947677570386 [14:06:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T140559&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82177&fm=270947677570386&tin=02508201610067®Number=0000000000091680&sum=0 [14:06:00]written 0, free lines is 4095 [14:06:00]OFD Sender: Processing packet 82177 [packets to send 254, broken 253] [14:06:00]ProducePacketName [14:06:00]name=ofd_packets/00082177 [14:06:00]OFD Sender: To server: pG, [14:06:00]CommunicateWithHost lk.salyk.kg:30040 [14:06:00]ConnectInit lk.salyk.kg [14:06:00]Connected sock=10 [14:06:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 41 DF 07 01 BB 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 34 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 C7 19 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 01 41 01 00 35 04 06 00 F6 6C EC 13 05 52 AC 5D 19 5B 12 3A 2D 07 [14:06:00]Write to MH i2c: 01 00 00 1C 0B 27 [14:06:00]Write i2c OK [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: 01 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: 01 07 00 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: 01 07 00 1C 0B 00 00 00 00 00 EF 0C 29 [14:06:00]RasterBufferAndPrint [14:06:00]line [14:06:00]line [14:06:00]line [14:06:00]line [14:06:00]line [14:06:00]written 0, free lines is 3317 [14:06:00]MH_Cut [14:06:00]Write to MH i2c: D1 01 00 23 0B 01 00 [14:06:00]Write i2c OK [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: D1 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: D1 01 00 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: D1 01 00 23 0B 00 FF [14:06:00]Write to MH i2c: 01 00 00 24 0B 2F [14:06:00]Write i2c OK [14:06:00]MH_I2C_Read... [14:06:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 2D 54 47 00 77 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 01 41 01 00 F4 03 04 00 05 BF 10 67 B6 04 01 00 00 20 BF 32 5D 9B AC 0E A4 [14:06:00]CommunicateWithHost err = 0 [14:06:00]CheckOFDResponse [14:06:00]1017 (14) - 77093643461234 [14:06:00]1041 (16) - 0000000000871843 [14:06:00]1040 (4) - 82177 [14:06:00]1012 (4) - 17.10.2024 07:38 [14:06:00]1206 (1) - 0 [14:06:00]OFD Sender: Remove packet 82177 [14:06:00]ProducePacketName [14:06:00]name=ofd_packets/00082177 [14:06:00]NVStorageDeleteData [14:06:01]*** Cut start [14:06:01]*** Partial cut [14:06:01]*** CUTSNS_PIN = 1 [14:06:01]OFD Sender: No OFD packet to send [14:06:01]*** CUTSNS_PIN = 0 [14:06:01]*** Brake cut motor [14:06:02]Read from MH i2c: 01 [14:06:02]MH_I2C_Read... [14:06:02]*** Stop cut motor [14:06:02]*** Cut end [14:06:02]Read from MH i2c: 01 07 00 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: 01 07 00 24 0B 00 00 00 00 00 FF 0F 44 [14:06:02]process_action close_receipt done [14:06:02]requested_data is exist [14:06:02]produce_requested_data [14:06:02]requested_item fm.sn is exist - process it [14:06:02]wFMCommunicate request_size=4 [14:06:02]MH_SAM_APDU [14:06:02]CAPDU: 80 11 00 00 [14:06:02]Write to MH i2c: E2 08 00 25 0B 80 11 00 00 00 00 00 00 AA [14:06:02]Write i2c OK [14:06:02]MH_I2C_Read... [14:06:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:02]Read from MH i2c: E2 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: E2 17 00 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: E2 17 00 25 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 FC [14:06:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:06:02]wFMCommunicate OK [14:06:02]requested_item fd.num is exist - process it [14:06:02]SAM_PROTO_GetFieldsCounters [14:06:02]wFMCommunicate request_size=4 [14:06:02]MH_SAM_APDU [14:06:02]CAPDU: 80 13 00 00 [14:06:02]Write to MH i2c: E2 08 00 26 0B 80 13 00 00 00 00 00 00 AD [14:06:02]Write i2c OK [14:06:02]MH_I2C_Read... [14:06:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:02]Read from MH i2c: E2 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: E2 62 00 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: E2 62 00 26 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 01 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [14:06:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 01 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:06:02]wFMCommunicate OK [14:06:02]SAM_PROTO_GetFieldsCounters done [14:06:02]requested_item shift.num is exist - process it [14:06:02]requested_item shift.opened is exist - process it [14:06:02]req_shift_opened [14:06:02]FM_GetShiftState [14:06:02]SAM_PROTO_GetShiftState [14:06:02]wFMCommunicate request_size=4 [14:06:02]MH_SAM_APDU [14:06:02]CAPDU: 80 13 01 00 [14:06:02]Write to MH i2c: E2 08 00 27 0B 80 13 01 00 00 00 00 00 AF [14:06:02]Write i2c OK [14:06:02]MH_I2C_Read... [14:06:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:02]Read from MH i2c: E2 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: E2 0E 00 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: E2 0E 00 27 0B 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 B7 [14:06:02]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [14:06:02]wFMCommunicate OK [14:06:02]SAM_PROTO_GetShiftState done [14:06:02]FM_GetShiftState done [14:06:02]req_shift_opened done [14:06:02]requested_item shift.open_date is exist - process it [14:06:02]req_shift_open_date [14:06:02]req_shift_open_date done [14:06:02]produce_requested_data done [14:06:02]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82177,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [14:06:02]process_action_free close_receipt [14:06:02]json_value_free [14:06:02]json_value_free done [14:06:02]process_json_proto returns [14:06:02]Send response to host [14:06:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82177,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [14:06:02]free response buf [14:06:02]execute_script done [14:06:02]execute_script returns [14:06:02]free content buf [14:06:02]Sock 9.Close socket [14:06:02]Sock 9.Thread stoped [14:06:06]OFD Sender: No OFD packet to send [14:06:11]OFD Sender: No OFD packet to send [14:06:16]OFD Sender: No OFD packet to send [14:06:21]OFD Sender: No OFD packet to send [14:06:26]OFD Sender: No OFD packet to send [14:06:31]OFD Sender: No OFD packet to send [14:06:36]OFD Sender: No OFD packet to send [14:06:41]OFD Sender: No OFD packet to send [14:06:46]OFD Sender: No OFD packet to send [14:06:47]accept exits with 7 [14:06:47]New connection [14:06:47]New thread 3067145572 created [14:06:47]Thread 3067002212 joined [14:06:47]Waiting for new connection... [14:06:47] Sock 7.Parse request [14:06:47]Sock 7.Check first char [14:06:47]Sock 7.First char is OK [14:06:47]request: POST /json_proto HTTP/1.0 [14:06:47]Method: POST [14:06:47]URL: /json_proto [14:06:47]Method is POST - this is cgi request [14:06:47]url: /json_proto [14:06:47]query_string will be loaded in cgi processing [14:06:47]execute_cgi json_proto POST (null) [14:06:47]execute_cgi path=json_proto method=POST [14:06:47]POST find Content-Length [14:06:47]Host: 172.17.44.67:8080 [14:06:47]Content-Length: 766 [14:06:47]Content-Type: application/json [14:06:47] [14:06:47]POST finish read [14:06:47]Found Content-Length = 766 [14:06:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:47]execute_script... [14:06:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:47]POST & json_proto [14:06:47]process_json_proto [14:06:47]json parsed OK: [14:06:47]protocol is kg_v1.0 [14:06:47]action value=close_receipt [14:06:47]process_action close_receipt [14:06:47]cmd_close_receipt [14:06:47]MH_GetDate [14:06:47]Write to MH i2c: F0 00 00 28 0B 22 [14:06:47]Write i2c OK [14:06:47]MH_I2C_Read... [14:06:47]Read from MH i2c: F0 [14:06:47]MH_I2C_Read... [14:06:47]Read from MH i2c: F0 09 00 [14:06:47]MH_I2C_Read... [14:06:47]Read from MH i2c: F0 09 00 28 0B 00 F8 19 11 67 F1 C7 6B 64 3B [14:06:47]GetLastDocTimeStamp 1729173959 [14:06:47]current date 1729174008 [14:06:47]FM_GetShiftState [14:06:47]SAM_PROTO_GetShiftState [14:06:47]wFMCommunicate request_size=4 [14:06:47]MH_SAM_APDU [14:06:47]CAPDU: 80 13 01 00 [14:06:47]Write to MH i2c: E2 08 00 29 0B 80 13 01 00 00 00 00 00 B1 [14:06:47]Write i2c OK [14:06:47]MH_I2C_Read... [14:06:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:47]Read from MH i2c: E2 [14:06:47]MH_I2C_Read... [14:06:47]Read from MH i2c: E2 0E 00 [14:06:47]MH_I2C_Read... [14:06:47]Read from MH i2c: E2 0E 00 29 0B 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 B9 [14:06:47]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [14:06:47]wFMCommunicate OK [14:06:47]SAM_PROTO_GetShiftState done [14:06:47]FM_GetShiftState done [14:06:47]opened in 1729125927 [14:06:47]opened+sec_in_day 1729212327 [14:06:47]quantity*price = 50010 [14:06:47]sum+1 = 50012 [14:06:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 104 17.10.2024 14:06 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82178 ФПД: 229516358006175 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T140648&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82178&fm=229516358006175&tin=02508201610067®Number=0000000000091680&sum=50011 [14:06:48]StoreToDocumentArchive [14:06:48]shift 525 fd 82178 [14:06:48]save to /storage/0525/doc_00082178 [14:06:48]save last doc name /storage/0525/doc_00082178 to /storage/kkm_last_doc_name [14:06:48]save OK [14:06:48]Clear old archive folders... [14:06:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:06:48]tlvbuf is 01D10740 [14:06:48]SAM_PROTO_ClearQueue [14:06:48]wFMCommunicate request_size=4 [14:06:48]MH_SAM_APDU [14:06:48]CAPDU: 80 09 00 00 [14:06:48]Write to MH i2c: E2 08 00 36 0B 80 09 00 00 00 00 00 00 B3 [14:06:48]Write i2c OK [14:06:48]MH_I2C_Read... [14:06:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:06:48]Read from MH i2c: E2 [14:06:48]MH_I2C_Read... [14:06:48]Read from MH i2c: E2 03 00 [14:06:48]MH_I2C_Read... [14:06:48]Read from MH i2c: E2 03 00 36 0B 00 90 00 B5 [14:06:48]RAPDU: 90 00 [14:06:48]wFMCommunicate OK [14:06:48]SAM_PROTO_ClearQueue done [14:06:48]KKMCreateOFDPacket [14:06:48]OFDProtocolAddRootSTLVToBuf [14:06:48]FM_MakeSignedData [14:06:48]FM_MakeSignedData [14:06:48]SAM_PROTO_SignData [14:06:48]wFMCommunicate request_size=4 [14:06:48]MH_SAM_APDU [14:06:48]CAPDU: 80 0D 01 02 [14:06:48]Write to MH i2c: E2 08 00 37 0B 80 0D 01 02 00 00 00 00 BB [14:06:48]Write i2c OK [14:06:48]MH_I2C_Read... [14:06:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:06:48]Read from MH i2c: E2 [14:06:48]MH_I2C_Read... [14:06:48]Read from MH i2c: E2 03 00 [14:06:48]MH_I2C_Read... [14:06:48]Read from MH i2c: E2 03 00 37 0B 00 90 00 B6 [14:06:48]RAPDU: 90 00 [14:06:48]wFMCommunicate OK [14:06:48]wFMCommunicate request_size=255 [14:06:48]MH_SAM_APDU [14:06: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 F8 19 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 02 41 01 00 35 04 06 00 D0 [14:06:48]Write to MH i2c: E2 02 01 38 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 F8 19 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 02 41 01 00 35 04 06 00 D0 00 00 4A [14:06:48]Write i2c OK [14:06:48]MH_I2C_Read... [14:06:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:49]Read from MH i2c: E2 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: E2 03 00 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: E2 03 00 38 0B 00 90 00 B7 [14:06:49]RAPDU: 90 00 [14:06:49]wFMCommunicate OK [14:06:49]wFMCommunicate request_size=10 [14:06:49]MH_SAM_APDU [14:06:49]CAPDU: 80 0D 02 02 05 BE 70 FD 35 9F [14:06:49]Write to MH i2c: E2 0D 00 39 0B 80 0D 02 02 05 00 BE 70 FD 35 9F 00 00 C7 [14:06:49]Write i2c OK [14:06:49]MH_I2C_Read... [14:06:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:49]Read from MH i2c: E2 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: E2 03 00 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: E2 03 00 39 0B 00 90 00 B8 [14:06:49]RAPDU: 90 00 [14:06:49]wFMCommunicate OK [14:06:49]wFMCommunicate request_size=4 [14:06:49]MH_SAM_APDU [14:06:49]CAPDU: 80 0D 03 02 [14:06:49]Write to MH i2c: E2 08 00 3A 0B 80 0D 03 02 00 00 00 00 C0 [14:06:49]Write i2c OK [14:06:49]MH_I2C_Read... [14:06:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:06:49]Read from MH i2c: E2 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: E2 0B 00 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: E2 0B 00 3A 0B 00 5F A7 75 02 85 AA CC 49 90 00 82 [14:06:49]RAPDU: 5F A7 75 02 85 AA CC 49 90 00 [14:06:49]wFMCommunicate OK [14:06:49]SAM_PROTO_SignData done [14:06:49]FM_MakeSignedData done [14:06:49]CreateOFDProtocolMessage [14:06:49]wFMCommunicate request_size=4 [14:06:49]MH_SAM_APDU [14:06:49]CAPDU: 80 11 00 00 [14:06:49]Write to MH i2c: E2 08 00 3B 0B 80 11 00 00 00 00 00 00 C0 [14:06:49]Write i2c OK [14:06:49]MH_I2C_Read... [14:06:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:49]Read from MH i2c: E2 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: E2 17 00 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: E2 17 00 3B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 12 [14:06:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:06:49]wFMCommunicate OK [14:06:49]CreateOFDProtocolMessage done [14:06:49]OFDSenderStorePacket 82178 [14:06:49]StoreOFDPacket docnum=82178 [14:06:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 FA EF 07 01 BB 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 F8 19 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 02 41 01 00 35 04 06 00 D0 BE 70 FD 35 9F 5F A7 75 02 85 AA CC 49 [14:06:49]CheckFolder [14:06:49]dirname=/storage/ofd_packets [14:06:49]CheckFolder done [14:06:49]ProducePacketName [14:06:49]name=ofd_packets/00082178 [14:06:49]NVStorageSaveData ofd_packets/00082178 [14:06:49]File name is /storage/ofd_packets/00082178 [14:06:49]Write 301 bytes [14:06:49]NVStorageSaveData done [14:06:49]OFDSenderStorePacket done [14:06:49]KKMCreateOFDPacket done [14:06:49]NVStorageSaveData kkm_last_timestamp [14:06:49]File name is /storage/kkm_last_timestamp [14:06:49]Write 4 bytes [14:06:49]NVStorageSaveData done [14:06:49]ExternCall_PrintAddStr [14:06:49]wPrintStart [14:06:49]Write to MH i2c: 01 00 00 3C 0B 47 [14:06:49]Write i2c OK [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: 01 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: 01 07 00 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: 01 07 00 3C 0B 00 00 00 00 00 FF 0F 5C [14:06:49]RasterBufferAndPrint [14:06:49]line Счет N : (1)918684 [14:06:49]line ИНН: 02508201610067 [14:06:49]line Контрольно-Кассовый Чек [14:06:49]line ПРОДАЖА [14:06:49]line ТРК (МРК, ГНК) : 12 [14:06:49]line Товар: 2710124500 [14:06:49]line Аи-95-К-5 [14:06:49]line 6.740 * 74.20 [14:06:49]line = 500.11 [14:06:49]line НДС 12% НСП 1% [14:06:49]line > о реализуемом товаре [14:06:49]line ИТОГО: 500.11 [14:06:49]line НСП 1% : 4.43 [14:06:49]line НДС 12% : 53.11 [14:06:49]line Наличными: 0.00 [14:06:49]line Безнал.: 500.11 [14:06:49]line Место: АЗС № 114 "Партнер Нефть" [14:06:49]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [14:06:49]line СНО: Общий режим [14:06:49]line Чек 104 17.10.2024 14:06 [14:06:49]line Смена: 525 ФФД: 1.0 [14:06:49]line ЗНМ: 0300000086 [14:06:49]line РНМ: 0000000000091680 [14:06:49]line Версия ККМ: 001 [14:06:49]line Платежная система: Mbank [14:06:49]line ФМ: 0000000000871843 [14:06:49]line ФД: 82178 [14:06:49]line ФПД: 229516358006175 [14:06:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T140648&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82178&fm=229516358006175&tin=02508201610067®Number=0000000000091680&sum=50011 [14:06:49]written 0, free lines is 4095 [14:06:49]OFD Sender: Processing packet 82178 [packets to send 254, broken 253] [14:06:49]ProducePacketName [14:06:49]name=ofd_packets/00082178 [14:06:49]OFD Sender: To server: pG, [14:06:49]CommunicateWithHost lk.salyk.kg:30040 [14:06:49]ConnectInit lk.salyk.kg [14:06:49]Write to MH i2c: 01 00 00 65 0B 70 [14:06:49]Write i2c OK [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: 01 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: 01 07 00 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: 01 07 00 65 0B 00 00 00 00 00 F0 0C 73 [14:06:49]RasterBufferAndPrint [14:06:49]line [14:06:49]line [14:06:49]line [14:06:49]line [14:06:49]line [14:06:49]written 0, free lines is 3318 [14:06:49]MH_Cut [14:06:49]Write to MH i2c: D1 01 00 6C 0B 01 49 [14:06:49]Write i2c OK [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: D1 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: D1 01 00 [14:06:49]MH_I2C_Read... [14:06:49]Read from MH i2c: D1 01 00 6C 0B 00 48 [14:06:49]Write to MH i2c: 01 00 00 6D 0B 78 [14:06:49]Write i2c OK [14:06:49]MH_I2C_Read... [14:06:49]Connected sock=10 [14:06:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 FA EF 07 01 BB 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 F8 19 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 02 41 01 00 35 04 06 00 D0 BE 70 FD 35 9F 5F A7 75 02 85 AA CC 49 [14:06:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 46 0F 47 00 64 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 02 41 01 00 F4 03 04 00 36 BF 10 67 B6 04 01 00 00 36 B0 B6 76 02 2A FE 6D [14:06:50]CommunicateWithHost err = 0 [14:06:50]CheckOFDResponse [14:06:50]1017 (14) - 77093643461234 [14:06:50]1041 (16) - 0000000000871843 [14:06:50]1040 (4) - 82178 [14:06:50]1012 (4) - 17.10.2024 07:39 [14:06:50]1206 (1) - 0 [14:06:50]OFD Sender: Remove packet 82178 [14:06:50]ProducePacketName [14:06:50]name=ofd_packets/00082178 [14:06:50]NVStorageDeleteData [14:06:50]*** Cut start [14:06:50]*** Partial cut [14:06:50]*** CUTSNS_PIN = 1 [14:06:50]*** CUTSNS_PIN = 0 [14:06:50]*** Brake cut motor [14:06:50]OFD Sender: No OFD packet to send [14:06:51]Read from MH i2c: 01 [14:06:51]MH_I2C_Read... [14:06:51]*** Stop cut motor [14:06:51]*** Cut end [14:06:51]Read from MH i2c: 01 07 00 [14:06:51]MH_I2C_Read... [14:06:51]Read from MH i2c: 01 07 00 6D 0B 00 00 00 00 00 FF 0F 8D [14:06:51]process_action close_receipt done [14:06:51]requested_data is exist [14:06:51]produce_requested_data [14:06:51]requested_item fm.sn is exist - process it [14:06:51]wFMCommunicate request_size=4 [14:06:51]MH_SAM_APDU [14:06:51]CAPDU: 80 11 00 00 [14:06:51]Write to MH i2c: E2 08 00 6E 0B 80 11 00 00 00 00 00 00 F3 [14:06:51]Write i2c OK [14:06:51]MH_I2C_Read... [14:06:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:51]Read from MH i2c: E2 [14:06:51]MH_I2C_Read... [14:06:51]Read from MH i2c: E2 17 00 [14:06:51]MH_I2C_Read... [14:06:51]Read from MH i2c: E2 17 00 6E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 45 [14:06:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:06:51]wFMCommunicate OK [14:06:51]requested_item fd.num is exist - process it [14:06:51]SAM_PROTO_GetFieldsCounters [14:06:51]wFMCommunicate request_size=4 [14:06:51]MH_SAM_APDU [14:06:51]CAPDU: 80 13 00 00 [14:06:51]Write to MH i2c: E2 08 00 6F 0B 80 13 00 00 00 00 00 00 F6 [14:06:51]Write i2c OK [14:06:51]MH_I2C_Read... [14:06:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:51]Read from MH i2c: E2 [14:06:51]MH_I2C_Read... [14:06:51]Read from MH i2c: E2 62 00 [14:06:51]MH_I2C_Read... [14:06:51]Read from MH i2c: E2 62 00 6F 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 02 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [14:06:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 02 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:06:51]wFMCommunicate OK [14:06:51]SAM_PROTO_GetFieldsCounters done [14:06:51]requested_item shift.num is exist - process it [14:06:51]requested_item shift.opened is exist - process it [14:06:51]req_shift_opened [14:06:51]FM_GetShiftState [14:06:51]SAM_PROTO_GetShiftState [14:06:51]wFMCommunicate request_size=4 [14:06:51]MH_SAM_APDU [14:06:51]CAPDU: 80 13 01 00 [14:06:51]Write to MH i2c: E2 08 00 70 0B 80 13 01 00 00 00 00 00 F8 [14:06:51]Write i2c OK [14:06:51]MH_I2C_Read... [14:06:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:51]Read from MH i2c: E2 [14:06:51]MH_I2C_Read... [14:06:51]Read from MH i2c: E2 0E 00 [14:06:51]MH_I2C_Read... [14:06:51]Read from MH i2c: E2 0E 00 70 0B 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 00 [14:06:51]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [14:06:51]wFMCommunicate OK [14:06:51]SAM_PROTO_GetShiftState done [14:06:51]FM_GetShiftState done [14:06:51]req_shift_opened done [14:06:51]requested_item shift.open_date is exist - process it [14:06:51]req_shift_open_date [14:06:51]req_shift_open_date done [14:06:51]produce_requested_data done [14:06:51]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82178,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [14:06:51]process_action_free close_receipt [14:06:51]json_value_free [14:06:51]json_value_free done [14:06:51]process_json_proto returns [14:06:51]Send response to host [14:06:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82178,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [14:06:51]free response buf [14:06:51]execute_script done [14:06:51]execute_script returns [14:06:51]free content buf [14:06:51]Sock 7.Close socket [14:06:51]Sock 7.Thread stoped [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:36]OFD Sender: No OFD packet to send [14:07:41]OFD Sender: No OFD packet to send [14:07:46]OFD Sender: No OFD packet to send [14:07:51]OFD Sender: No OFD packet to send [14:07:56]OFD Sender: No OFD packet to send [14:08:01]OFD Sender: No OFD packet to send [14:08:06]OFD Sender: No OFD packet to send [14:08:11]OFD Sender: No OFD packet to send [14:08:16]OFD Sender: No OFD packet to send [14:08:21]OFD Sender: No OFD packet to send [14:08:25]accept exits with 9 [14:08:25]New connection [14:08:25]New thread 3067002212 created [14:08:25]Thread 3067145572 joined [14:08:25]Waiting for new connection... [14:08:25] Sock 9.Parse request [14:08:25]Sock 9.Check first char [14:08:25]Sock 9.First char is OK [14:08:25]request: POST /json_proto HTTP/1.0 [14:08:25]Method: POST [14:08:25]URL: /json_proto [14:08:25]Method is POST - this is cgi request [14:08:25]url: /json_proto [14:08:25]query_string will be loaded in cgi processing [14:08:25]execute_cgi json_proto POST (null) [14:08:25]execute_cgi path=json_proto method=POST [14:08:25]POST find Content-Length [14:08:25]Host: 172.17.44.67:8080 [14:08:25]Content-Length: 675 [14:08:25]Content-Type: application/json [14:08:25] [14:08:25]POST finish read [14:08:25]Found Content-Length = 675 [14:08:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 0.010, "sum" : 0.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 76.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:25]execute_script... [14:08:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 0.010, "sum" : 0.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 76.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:25]POST & json_proto [14:08:25]process_json_proto [14:08:25]json parsed OK: [14:08:25]protocol is kg_v1.0 [14:08:25]action value=close_receipt [14:08:25]process_action close_receipt [14:08:25]cmd_close_receipt [14:08:25]MH_GetDate [14:08:25]Write to MH i2c: F0 00 00 71 0B 6B [14:08:25]Write i2c OK [14:08:25]MH_I2C_Read... [14:08:25]Read from MH i2c: F0 [14:08:25]MH_I2C_Read... [14:08:25]Read from MH i2c: F0 09 00 [14:08:25]MH_I2C_Read... [14:08:25]Read from MH i2c: F0 09 00 71 0B 00 5A 1A 11 67 F1 C7 6B 64 E7 [14:08:25]GetLastDocTimeStamp 1729174008 [14:08:25]current date 1729174106 [14:08:25]FM_GetShiftState [14:08:25]SAM_PROTO_GetShiftState [14:08:25]wFMCommunicate request_size=4 [14:08:25]MH_SAM_APDU [14:08:25]CAPDU: 80 13 01 00 [14:08:25]Write to MH i2c: E2 08 00 72 0B 80 13 01 00 00 00 00 00 FA [14:08:25]Write i2c OK [14:08:25]MH_I2C_Read... [14:08:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:25]Read from MH i2c: E2 [14:08:25]MH_I2C_Read... [14:08:25]Read from MH i2c: E2 0E 00 [14:08:25]MH_I2C_Read... [14:08:25]Read from MH i2c: E2 0E 00 72 0B 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 02 [14:08:25]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [14:08:25]wFMCommunicate OK [14:08:25]SAM_PROTO_GetShiftState done [14:08:25]FM_GetShiftState done [14:08:25]opened in 1729125927 [14:08:25]opened+sec_in_day 1729212327 [14:08:25]quantity*price = 76 [14:08:25]sum+1 = 77 [14:08:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 0.00 Внесено: 76.00 СДАЧА: 76.00 НСП 1% : 0.01 НДС 12% : 0.08 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 105 17.10.2024 14:08 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82179 ФПД: 190361326468059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T140826&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82179&fm=190361326468059&tin=02508201610067®Number=0000000000091680&sum=0 [14:08:27]StoreToDocumentArchive [14:08:27]shift 525 fd 82179 [14:08:27]save to /storage/0525/doc_00082179 [14:08:27]save last doc name /storage/0525/doc_00082179 to /storage/kkm_last_doc_name [14:08:27]save OK [14:08:27]Clear old archive folders... [14:08:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:08:27]tlvbuf is 01D23A30 [14:08:27]SAM_PROTO_ClearQueue [14:08:27]wFMCommunicate request_size=4 [14:08:27]MH_SAM_APDU [14:08:27]CAPDU: 80 09 00 00 [14:08:27]Write to MH i2c: E2 08 00 7F 0B 80 09 00 00 00 00 00 00 FC [14:08:27]Write i2c OK [14:08:27]MH_I2C_Read... [14:08:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:08:27]Read from MH i2c: E2 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: E2 03 00 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: E2 03 00 7F 0B 00 90 00 FE [14:08:27]RAPDU: 90 00 [14:08:27]wFMCommunicate OK [14:08:27]SAM_PROTO_ClearQueue done [14:08:27]KKMCreateOFDPacket [14:08:27]OFDProtocolAddRootSTLVToBuf [14:08:27]FM_MakeSignedData [14:08:27]FM_MakeSignedData [14:08:27]SAM_PROTO_SignData [14:08:27]wFMCommunicate request_size=4 [14:08:27]MH_SAM_APDU [14:08:27]CAPDU: 80 0D 01 02 [14:08:27]Write to MH i2c: E2 08 00 80 0B 80 0D 01 02 00 00 00 00 04 [14:08:27]Write i2c OK [14:08:27]MH_I2C_Read... [14:08:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:08:27]Read from MH i2c: E2 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: E2 03 00 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: E2 03 00 80 0B 00 90 00 FF [14:08:27]RAPDU: 90 00 [14:08:27]wFMCommunicate OK [14:08:27]wFMCommunicate request_size=255 [14:08:27]MH_SAM_APDU [14:08:27]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4C 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 5A 1A 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 03 41 01 00 35 04 06 00 [14:08:27]Write to MH i2c: E2 02 01 81 0B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4C 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 5A 1A 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 03 41 01 00 35 04 06 00 00 00 30 [14:08:27]Write i2c OK [14:08:27]MH_I2C_Read... [14:08:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:27]Read from MH i2c: E2 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: E2 03 00 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: E2 03 00 81 0B 00 90 00 00 [14:08:27]RAPDU: 90 00 [14:08:27]wFMCommunicate OK [14:08:27]wFMCommunicate request_size=11 [14:08:27]MH_SAM_APDU [14:08:27]CAPDU: 80 0D 02 02 06 AD 21 F3 3E 3B DB [14:08:27]Write to MH i2c: E2 0E 00 82 0B 80 0D 02 02 06 00 AD 21 F3 3E 3B DB 00 00 28 [14:08:27]Write i2c OK [14:08:27]MH_I2C_Read... [14:08:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:27]Read from MH i2c: E2 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: E2 03 00 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: E2 03 00 82 0B 00 90 00 01 [14:08:27]RAPDU: 90 00 [14:08:27]wFMCommunicate OK [14:08:27]wFMCommunicate request_size=4 [14:08:27]MH_SAM_APDU [14:08:27]CAPDU: 80 0D 03 02 [14:08:27]Write to MH i2c: E2 08 00 83 0B 80 0D 03 02 00 00 00 00 09 [14:08:27]Write i2c OK [14:08:27]MH_I2C_Read... [14:08:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:08:27]Read from MH i2c: E2 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: E2 0B 00 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: E2 0B 00 83 0B 00 84 69 D0 7A 2A B7 B5 10 90 00 E7 [14:08:27]RAPDU: 84 69 D0 7A 2A B7 B5 10 90 00 [14:08:27]wFMCommunicate OK [14:08:27]SAM_PROTO_SignData done [14:08:27]FM_MakeSignedData done [14:08:27]CreateOFDProtocolMessage [14:08:27]wFMCommunicate request_size=4 [14:08:27]MH_SAM_APDU [14:08:27]CAPDU: 80 11 00 00 [14:08:27]Write to MH i2c: E2 08 00 84 0B 80 11 00 00 00 00 00 00 09 [14:08:27]Write i2c OK [14:08:27]MH_I2C_Read... [14:08:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:27]Read from MH i2c: E2 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: E2 17 00 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: E2 17 00 84 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 5B [14:08:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:08:27]wFMCommunicate OK [14:08:27]CreateOFDProtocolMessage done [14:08:27]OFDSenderStorePacket 82179 [14:08:27]StoreOFDPacket docnum=82179 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 53 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725AE (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 44389489+1684785137=1729174626 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 54 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 63 1C 11 67 F1 C7 6B 64 7D [14:17:07]Current date/time: 17.10.2024 14:17 [14:17:07]FM_Init [14:17:07]wFMConnect [14:17:07]MH_SAM_On [14:17:07]Write to MH i2c: E0 00 00 08 00 E7 [14:17:07]Write i2c OK [14:17:07]MH_I2C_Read... [14:17:07]*** iso7816_init finished! [14:17:07]*** atr: [14:17:07]*** 0F 3B D5 18 FF 81 91 FE [14:17:07]*** 1F C3 80 73 C8 21 10 0A [14:17:07]*** 00 00 00 00 00 00 00 00 [14:17:07]*** 00 00 00 00 00 00 00 00 [14:17:07]*** 00 00 00 00 00 00 00 00 [14:17:07]*** 00 00 00 00 00 00 00 00 [14:17:07]*** 00 00 00 00 00 00 00 00 [14:17:07]*** 00 00 00 00 00 00 00 00 [14:17:07]Read from MH i2c: E0 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E0 10 00 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [14:17:07]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [14:17:07]wFMCommunicate request_size=10 [14:17:07]MH_SAM_APDU [14:17:07]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [14:17:07]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [14:17:07]Write i2c OK [14:17:07]MH_I2C_Read... [14:17:07]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [14:17:07]Read from MH i2c: E2 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E2 03 00 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [14:17:07]RAPDU: 90 00 [14:17:07]wFMCommunicate OK [14:17:07]wFMCommunicate request_size=4 [14:17:07]MH_SAM_APDU [14:17:07]CAPDU: 80 11 00 00 [14:17:07]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [14:17:07]Write i2c OK [14:17:07]MH_I2C_Read... [14:17:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:07]Read from MH i2c: E2 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E2 17 00 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D6 [14:17:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:17:07]wFMCommunicate OK [14:17:07]Detected FM SN is 0000000000871843 [14:17:07]Stored FM SN is 0000000000871843 [14:17:07]wFMCommunicate request_size=9 [14:17:07]MH_SAM_APDU [14:17:07]CAPDU: 80 16 00 00 04 C3 A3 00 00 [14:17:07]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 C3 A3 00 00 00 00 F8 [14:17:07]Write i2c OK [14:17:07]MH_I2C_Read... [14:17:07]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [14:17:07]Read from MH i2c: E2 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E2 03 00 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [14:17:07]RAPDU: 90 00 [14:17:07]wFMCommunicate OK [14:17:07]FM PIN OK [14:17:07]wFMCommunicate request_size=8 [14:17:07]MH_SAM_APDU [14:17:07]CAPDU: 80 14 04 00 03 02 00 01 [14:17:07]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [14:17:07]Write i2c OK [14:17:07]MH_I2C_Read... [14:17:07]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [14:17:07]Read from MH i2c: E2 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E2 03 00 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [14:17:07]RAPDU: 90 00 [14:17:07]wFMCommunicate OK [14:17:07]wFMCommunicate request_size=13 [14:17:07]MH_SAM_APDU [14:17:07]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [14:17:07]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [14:17:07]Write i2c OK [14:17:07]MH_I2C_Read... [14:17:07]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [14:17:07]Read from MH i2c: E2 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E2 03 00 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [14:17:07]RAPDU: 90 00 [14:17:07]wFMCommunicate OK [14:17:07]wFMCommunicate request_size=4 [14:17:07]MH_SAM_APDU [14:17:07]CAPDU: 80 11 00 00 [14:17:07]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [14:17:07]Write i2c OK [14:17:07]MH_I2C_Read... [14:17:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:07]Read from MH i2c: E2 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E2 17 00 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DA [14:17:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:17:07]wFMCommunicate OK [14:17:07]DocumentArchiveInit [14:17:07]Start Httpd... [14:17:07]Httpd thread 3067252068 created [14:17:07]Write to MH i2c: 01 00 00 0F 00 0F [14:17:07]Write i2c OK [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: 01 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: 01 07 00 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [14:17:07]Allocated Socket 5 [14:17:07]Bind OK [14:17:07]Listen OK [14:17:07]httpd running on port 8080 [14:17:07]Waiting for new connection... [14:17:07]MH Int Process started [14:17:07]OFD Sender: Processing packet 82179 [packets to send 256, broken 253] [14:17:07]ProducePacketName [14:17:07]name=ofd_packets/00082179 [14:17:07]OFD Sender: To server: pG, [14:17:07]CommunicateWithHost lk.salyk.kg:30040 [14:17:07]ConnectInit lk.salyk.kg [14:17:08]accept exits with 6 [14:17:08]New connection [14:17:08]New thread 3066965348 created [14:17:08]Waiting for new connection... [14:17:08] Sock 6.Parse request [14:17:08]Sock 6.Check first char [14:17:08]Sock 6.First char is OK [14:17:08]request: POST /json_proto HTTP/1.0 [14:17:08]Method: POST [14:17:08]URL: /json_proto [14:17:08]Method is POST - this is cgi request [14:17:08]url: /json_proto [14:17:08]query_string will be loaded in cgi processing [14:17:08]execute_cgi json_proto POST (null) [14:17:08]execute_cgi path=json_proto method=POST [14:17:08]POST find Content-Length [14:17:08]Host: 172.17.44.67:8080 [14:17:08]Content-Length: 215 [14:17:08]Content-Type: application/json [14:17:08] [14:17:08]POST finish read [14:17:08]Found Content-Length = 215 [14:17:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:08]execute_script... [14:17:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:08]POST & json_proto [14:17:08]process_json_proto [14:17:08]json parsed OK: [14:17:08]protocol is kg_v1.0 [14:17:08]action value=get_value [14:17:08]process_action get_value [14:17:08]cmd_get_value [14:17:08]process_action get_value done [14:17:08]requested_data is exist [14:17:08]produce_requested_data [14:17:08]requested_item kkm.sn is exist - process it [14:17:08]requested_item kkm.ver is exist - process it [14:17:08]requested_item fm.sn is exist - process it [14:17:08]wFMCommunicate request_size=4 [14:17:08]MH_SAM_APDU [14:17:08]CAPDU: 80 11 00 00 [14:17:08]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [14:17:08]Write i2c OK [14:17:08]MH_I2C_Read... [14:17:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:08]Read from MH i2c: E2 [14:17:08]MH_I2C_Read... [14:17:08]Read from MH i2c: E2 17 00 [14:17:08]MH_I2C_Read... [14:17:08]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DC [14:17:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:17:08]wFMCommunicate OK [14:17:08]requested_item fd.num is exist - process it [14:17:08]SAM_PROTO_GetFieldsCounters [14:17:08]wFMCommunicate request_size=4 [14:17:08]MH_SAM_APDU [14:17:08]CAPDU: 80 13 00 00 [14:17:08]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [14:17:08]Write i2c OK [14:17:08]MH_I2C_Read... [14:17:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:17:08]Read from MH i2c: E2 [14:17:08]MH_I2C_Read... [14:17:08]Read from MH i2c: E2 62 00 [14:17:08]MH_I2C_Read... [14:17:08]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 05 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [14:17:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 05 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:17:08]wFMCommunicate OK [14:17:08]SAM_PROTO_GetFieldsCounters done [14:17:08]requested_item shift.num is exist - process it [14:17:08]requested_item shift.opened is exist - process it [14:17:08]req_shift_opened [14:17:08]FM_GetShiftState [14:17:08]SAM_PROTO_GetShiftState [14:17:08]wFMCommunicate request_size=4 [14:17:08]MH_SAM_APDU [14:17:08]CAPDU: 80 13 01 00 [14:17:08]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [14:17:08]Write i2c OK [14:17:08]MH_I2C_Read... [14:17:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:08]Read from MH i2c: E2 [14:17:08]MH_I2C_Read... [14:17:08]Read from MH i2c: E2 0E 00 [14:17:08]MH_I2C_Read... [14:17:08]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 97 [14:17:08]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [14:17:08]wFMCommunicate OK [14:17:08]SAM_PROTO_GetShiftState done [14:17:08]FM_GetShiftState done [14:17:08]req_shift_opened done [14:17:08]requested_item shift.open_date is exist - process it [14:17:08]req_shift_open_date [14:17:08]req_shift_open_date done [14:17:08]produce_requested_data done [14:17:08]produce_requested_data return {"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82181,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [14:17:08]process_action_free get_value [14:17:08]json_value_free [14:17:08]json_value_free done [14:17:08]process_json_proto returns [14:17:08]Send response to host [14:17:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82181,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [14:17:08]free response buf [14:17:08]execute_script done [14:17:08]execute_script returns [14:17:08]free content buf [14:17:08]Sock 6.Close socket [14:17:08]Sock 6.Thread stoped [14:17:08]accept exits with 11 [14:17:08]New connection [14:17:08]New thread 3066821988 created [14:17:08]Thread 3066965348 joined [14:17:08]Waiting for new connection... [14:17:08] Sock 11.Parse request [14:17:08]Sock 11.Check first char [14:17:08]Sock 11.First char is OK [14:17:08]request: POST /json_proto HTTP/1.0 [14:17:08]Method: POST [14:17:08]URL: /json_proto [14:17:08]Method is POST - this is cgi request [14:17:08]url: /json_proto [14:17:08]query_string will be loaded in cgi processing [14:17:08]execute_cgi json_proto POST (null) [14:17:08]execute_cgi path=json_proto method=POST [14:17:08]POST find Content-Length [14:17:08]Host: 172.17.44.67:8080 [14:17:08]Content-Length: 331 [14:17:08]Content-Type: application/json [14:17:08] [14:17:08]POST finish read [14:17:08]Found Content-Length = 331 [14:17:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:17:08]execute_script... [14:17:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:17:08]POST & json_proto [14:17:08]process_json_proto [14:17:08]json parsed OK: [14:17:08]protocol is kg_v1.0 [14:17:08]action value=get_value [14:17:08]process_action get_value [14:17:08]cmd_get_value [14:17:08]process_action get_value done [14:17:08]requested_data is exist [14:17:08]produce_requested_data [14:17:08]requested_item fm.sale.total is exist - process it [14:17:08]SAM_PROTO_GetFMData [14:17:08]wFMCommunicate request_size=4 [14:17:08]MH_SAM_APDU [14:17:08]CAPDU: 80 13 03 00 [14:17:08]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [14:17:08]Write i2c OK [14:17:08]MH_I2C_Read... [14:17:08]Connected sock=7 [14:17:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 F0 D8 08 01 51 99 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4C 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 5A 1A 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 03 41 01 00 35 04 06 00 AD 21 F3 3E 3B DB 84 69 D0 7A 2A B7 B5 10 [14:17:08]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:17:08]Read from MH i2c: E2 [14:17:08]MH_I2C_Read... [14:17:08]Read from MH i2c: E2 FD 00 [14:17:08]MH_I2C_Read... [14:17:08]Read from MH i2c: E2 FD 00 13 00 00 C7 04 85 04 C3 04 6E 04 04 00 EB 3C 01 00 69 04 A3 00 6F 04 04 00 54 3A 01 00 B1 04 05 00 7F B5 D2 7A 01 70 04 05 00 7C B9 D3 40 01 72 04 04 00 03 FC FE 39 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B4 1E 3E 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 44 6F 5A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 97 02 00 00 B1 04 04 00 90 01 0B 13 70 04 04 00 28 BF 0A 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 33 BB 05 02 EF 90 00 9C [14:17:08]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 EB 3C 01 00 69 04 A3 00 6F 04 04 00 54 3A 01 00 B1 04 05 00 7F B5 D2 7A 01 70 04 05 00 7C B9 D3 40 01 72 04 04 00 03 FC FE 39 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B4 1E 3E 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 44 6F 5A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 97 02 00 00 B1 04 04 00 90 01 0B 13 70 04 04 00 28 BF 0A 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 33 BB 05 02 EF 90 00 [14:17:08]wFMCommunicate OK [14:17:08]wFMCommunicate request_size=4 [14:17:08]MH_SAM_APDU [14:17:08]CAPDU: 80 17 00 00 [14:17:08]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [14:17:08]Write i2c OK [14:17:08]MH_I2C_Read... [14:17:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:17:09]Read from MH i2c: E2 [14:17:09]MH_I2C_Read... [14:17:09]Read from MH i2c: E2 FD 00 [14:17:09]MH_I2C_Read... [14:17:09]Read from MH i2c: E2 FD 00 14 00 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AB 24 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 90 00 9B [14:17:09]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AB 24 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 90 00 [14:17:09]wFMCommunicate OK [14:17:09]wFMCommunicate request_size=4 [14:17:09]MH_SAM_APDU [14:17:09]CAPDU: 80 17 00 00 [14:17:09]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [14:17:09]Write i2c OK [14:17:09]MH_I2C_Read... [14:17:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 F7 71 47 00 76 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 03 41 01 00 F4 03 04 00 A0 C1 10 67 B6 04 01 00 00 24 A1 23 5C 8F C3 AB 65 [14:17:09]CommunicateWithHost err = 0 [14:17:09]CheckOFDResponse [14:17:09]1017 (14) - 77093643461234 [14:17:09]1041 (16) - 0000000000871843 [14:17:09]1040 (4) - 82179 [14:17:09]1012 (4) - 17.10.2024 07:49 [14:17:09]1206 (1) - 0 [14:17:09]OFD Sender: Remove packet 82179 [14:17:09]ProducePacketName [14:17:09]name=ofd_packets/00082179 [14:17:09]NVStorageDeleteData [14:17:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:17:09]Read from MH i2c: E2 [14:17:09]MH_I2C_Read... [14:17:09]Read from MH i2c: E2 FD 00 [14:17:09]MH_I2C_Read... [14:17:09]Read from MH i2c: E2 FD 00 15 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 6D [14:17:09]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [14:17:09]wFMCommunicate OK [14:17:09]wFMCommunicate request_size=4 [14:17:09]MH_SAM_APDU [14:17:09]CAPDU: 80 17 00 00 [14:17:09]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [14:17:09]Write i2c OK [14:17:09]MH_I2C_Read... [14:17:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:17:09]Read from MH i2c: E2 [14:17:09]MH_I2C_Read... [14:17:09]OFD Sender: Processing packet 82180 [packets to send 255, broken 253] [14:17:09]ProducePacketName [14:17:09]name=ofd_packets/00082180 [14:17:09]Read from MH i2c: E2 FD 00 [14:17:09]MH_I2C_Read... [14:17:09]OFD Sender: To server: pG, [14:17:09]CommunicateWithHost lk.salyk.kg:30040 [14:17:09]ConnectInit lk.salyk.kg [14:17:09]Read from MH i2c: E2 FD 00 16 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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 11 [14:17:09]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [14:17:09]wFMCommunicate OK [14:17:09]wFMCommunicate request_size=4 [14:17:09]MH_SAM_APDU [14:17:09]CAPDU: 80 17 00 00 [14:17:09]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [14:17:09]Write i2c OK [14:17:09]MH_I2C_Read... [14:17:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [14:17:10]Read from MH i2c: E2 [14:17:10]MH_I2C_Read... [14:17:10]Read from MH i2c: E2 E4 00 [14:17:10]MH_I2C_Read... [14:17:10]Read from MH i2c: E2 E4 00 17 00 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 77 [14:17:10]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:17:10]wFMCommunicate OK [14:17:10]SAM_PROTO_GetFMData done [14:17:10]requested_item fm.sale_refund.total is exist - process it [14:17:10]requested_item fm.buy.total is exist - process it [14:17:10]requested_item shift.sale.total is exist - process it [14:17:10]SAM_PROTO_GetShiftData [14:17:10]wFMCommunicate request_size=4 [14:17:10]MH_SAM_APDU [14:17:10]CAPDU: 80 13 02 00 [14:17:10]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [14:17:10]Write i2c OK [14:17:10]MH_I2C_Read... [14:17:10]Connected sock=7 [14:17:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 6B 4D 07 01 DF FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 5F 1A 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 04 41 01 00 35 04 06 00 46 D5 6A 09 B2 8E 7D E7 FD 98 D5 78 24 93 [14:17:10]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:17:10]Read from MH i2c: E2 [14:17:10]MH_I2C_Read... [14:17:10]Read from MH i2c: E2 FD 00 [14:17:10]MH_I2C_Read... [14:17:10]Read from MH i2c: E2 FD 00 18 00 00 B8 04 AA 04 B4 04 6E 04 04 00 6B 00 00 00 69 04 9B 00 6F 04 04 00 69 00 00 00 B1 04 03 00 66 1C 48 70 04 03 00 40 EA 3E 72 04 03 00 26 32 09 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 0C A9 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 6A 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 A0 68 06 70 04 03 00 A0 68 06 72 04 00 00 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 43 AE EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 C7 [14:17:10]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 6B 00 00 00 69 04 9B 00 6F 04 04 00 69 00 00 00 B1 04 03 00 66 1C 48 70 04 03 00 40 EA 3E 72 04 03 00 26 32 09 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 0C A9 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 6A 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 A0 68 06 70 04 03 00 A0 68 06 72 04 00 00 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 43 AE EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [14:17:10]wFMCommunicate OK [14:17:10]wFMCommunicate request_size=4 [14:17:10]MH_SAM_APDU [14:17:10]CAPDU: 80 17 00 00 [14:17:10]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [14:17:10]Write i2c OK [14:17:10]MH_I2C_Read... [14:17:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:17:10]Read from MH i2c: E2 [14:17:10]MH_I2C_Read... [14:17:10]Read from MH i2c: E2 FD 00 [14:17:10]MH_I2C_Read... [14:17:10]Read from MH i2c: E2 FD 00 19 00 00 0B 00 F6 03 01 00 01 F7 03 02 00 85 0E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 5D [14:17:10]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 85 0E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 [14:17:11]wFMCommunicate OK [14:17:11]wFMCommunicate request_size=4 [14:17:11]MH_SAM_APDU [14:17:11]CAPDU: 80 17 00 00 [14:17:11]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [14:17:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 97 1B 47 00 C3 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 04 41 01 00 F4 03 04 00 A2 C1 10 67 B6 04 01 00 00 71 B2 95 63 CA 94 8D CD [14:17:11]CommunicateWithHost err = 0 [14:17:11]CheckOFDResponse [14:17:11]1017 (14) - 77093643461234 [14:17:11]1041 (16) - 0000000000871843 [14:17:11]1040 (4) - 82180 [14:17:11]1012 (4) - 17.10.2024 07:49 [14:17:11]1206 (1) - 0 [14:17:11]OFD Sender: Remove packet 82180 [14:17:11]ProducePacketName [14:17:11]name=ofd_packets/00082180 [14:17:11]NVStorageDeleteData [14:17:11]Write i2c OK [14:17:11]MH_I2C_Read... [14:17:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:17:11]Read from MH i2c: E2 [14:17:11]MH_I2C_Read... [14:17:11]Read from MH i2c: E2 FD 00 [14:17:11]MH_I2C_Read... [14:17:11]Read from MH i2c: E2 FD 00 1A 00 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 3C [14:17:11]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [14:17:11]wFMCommunicate OK [14:17:11]wFMCommunicate request_size=4 [14:17:11]MH_SAM_APDU [14:17:11]CAPDU: 80 17 00 00 [14:17:11]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [14:17:11]Write i2c OK [14:17:11]MH_I2C_Read... [14:17:11]OFD Sender: Processing packet 82181 [packets to send 254, broken 253] [14:17:11]ProducePacketName [14:17:11]name=ofd_packets/00082181 [14:17:11]OFD Sender: To server: pG, [14:17:11]CommunicateWithHost lk.salyk.kg:30040 [14:17:11]ConnectInit lk.salyk.kg [14:17:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:17:11]Read from MH i2c: E2 [14:17:11]MH_I2C_Read... [14:17:11]Read from MH i2c: E2 FD 00 [14:17:11]MH_I2C_Read... [14:17:11]Read from MH i2c: E2 FD 00 1B 00 00 03 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 90 00 24 [14:17:11]RAPDU: 03 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 90 00 [14:17:11]wFMCommunicate OK [14:17:11]wFMCommunicate request_size=4 [14:17:11]MH_SAM_APDU [14:17:11]CAPDU: 80 17 00 00 [14:17:11]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [14:17:11]Write i2c OK [14:17:11]MH_I2C_Read... [14:17:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [14:17:11]Read from MH i2c: E2 [14:17:11]MH_I2C_Read... [14:17:11]Read from MH i2c: E2 D5 00 [14:17:11]MH_I2C_Read... [14:17:11]Read from MH i2c: E2 D5 00 1C 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [14:17:11]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:17:12]wFMCommunicate OK [14:17:12]SAM_PROTO_GetShiftData done [14:17:12]requested_item shift.sale.total_cash is exist - process it [14:17:12]requested_item shift.sale_refund.total is exist - process it [14:17:12]requested_item shift.sale_refund.total_cash is exist - process it [14:17:12]requested_item shift.buy.total is exist - process it [14:17:12]requested_item shift.buy.total_cash is exist - process it [14:17:12]produce_requested_data done [14:17:12]produce_requested_data return {"fm.sale.total":63555966.71,"fm.sale_refund.total":3194884.00,"fm.buy.total":0.00,"shift.sale.total":47258.62,"shift.sale.total_cash":41232.00,"shift.sale_refund.total":4200.00,"shift.sale_refund.total_cash":4200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [14:17:12]process_action_free get_value [14:17:12]json_value_free [14:17:12]json_value_free done [14:17:12]process_json_proto returns [14:17:12]Send response to host [14:17:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":63555966.71,"fm.sale_refund.total":3194884.00,"fm.buy.total":0.00,"shift.sale.total":47258.62,"shift.sale.total_cash":41232.00,"shift.sale_refund.total":4200.00,"shift.sale_refund.total_cash":4200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [14:17:12]free response buf [14:17:12]execute_script done [14:17:12]execute_script returns [14:17:12]free content buf [14:17:12]Sock 11.Close socket [14:17:12]Sock 11.Thread stoped [14:17:12]Connected sock=7 [14:17:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 2B 01 00 00 4F 93 23 01 09 BE 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 accept exits with 6 [14:17:12]EF New connection [14:17:12]03 New thread 3066965348 created [14:17:12]0F Thread 3066821988 joined [14:17:12]00 Waiting for new connection... [14:17:12]F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 6A 1A 11 Sock 6.Parse request [14:17:12]67 Sock 6.Check first char [14:17:12]0E 04 Sock 6.First char is OK [14:17:12]04 request: POST /json_proto HTTP/1.0 [14:17:12]00 Method: POST [14:17:12]0D URL: /json_proto [14:17:12]02 Method is POST - this is cgi request [14:17:12]00 url: /json_proto [14:17:12]00 query_string will be loaded in cgi processing [14:17:12]B9 execute_cgi json_proto POST (null) [14:17:12]04 execute_cgi path=json_proto method=POST [14:17:12]01 POST find Content-Length [14:17:12]00 Host: 172.17.44.67:8080 [14:17:12]01 Content-Length: 682 [14:17:12]0D Content-Type: application/json [14:17:12]04 [14:17:12]10 POST finish read [14:17:12]00 Found Content-Length = 682 [14:17:12]30 post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:12]30 30 execute_script... [14:17: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 : (1)918687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:12]30 POST & json_proto [14:17:12]30 process_json_proto [14:17:12]30 json parsed OK: [14:17:12]30 protocol is kg_v1.0 [14:17:12]30 action value=close_receipt [14:17:12]30 process_action close_receipt [14:17:12]30 39 31 36 38 30 cmd_close_receipt [14:17:12]27 04 04 00 04 41 01 00 MH_GetDate [14:17:12]28 04 10 Write to MH i2c: 00 F0 30 00 30 00 30 1D 30 00 30 0C 30 [14:17:12]30 30 30 30 38 37 31 38 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 Write i2c OK [14:17:12]38 MH_I2C_Read... [14:17:12]37 31 38 34 33 10 04 04 00 05 41 01 00 35 04 06 00 87 51 27 58 FA E2 Read from MH i2c: 4E F0 05 [14:17:12]CA MH_I2C_Read... [14:17:12]04 Read from MH i2c: 50 F0 AB 09 D5 00 16 [14:17:12] [14:17:12]MH_I2C_Read... [14:17:12]Read from MH i2c: F0 09 00 1D 00 00 68 1C 11 67 F1 C7 6B 64 98 [14:17:12]GetLastDocTimeStamp 1729174122 [14:17:12]current date 1729174632 [14:17:12]FM_GetShiftState [14:17:12]SAM_PROTO_GetShiftState [14:17:12]wFMCommunicate request_size=4 [14:17:12]MH_SAM_APDU [14:17:12]CAPDU: 80 13 01 00 [14:17:12]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [14:17:12]Write i2c OK [14:17:12]MH_I2C_Read... [14:17:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:12]Read from MH i2c: E2 [14:17:12]MH_I2C_Read... [14:17:12]Read from MH i2c: E2 0E 00 [14:17:12]MH_I2C_Read... [14:17:12]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 A3 [14:17:12]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [14:17:12]wFMCommunicate OK [14:17:12]SAM_PROTO_GetShiftState done [14:17:12]FM_GetShiftState done [14:17:12]opened in 1729125927 [14:17:12]opened+sec_in_day 1729212327 [14:17:12]quantity*price = 100015 [14:17:12]sum+1 = 100017 [14:17:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 108 17.10.2024 14:17 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82182 ФПД: 213931031520928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T141712&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82182&fm=213931031520928&tin=02508201610067®Number=0000000000091680&sum=100000 [14:17:13]StoreToDocumentArchive [14:17:13]shift 525 fd 82182 [14:17:13]save to /storage/0525/doc_00082182 [14:17:13]save last doc name /storage/0525/doc_00082182 to /storage/kkm_last_doc_name [14:17:13]save OK [14:17:13]Clear old archive folders... [14:17:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:17:13]tlvbuf is 00E79F50 [14:17:13]SAM_PROTO_ClearQueue [14:17:13]wFMCommunicate request_size=4 [14:17:13]MH_SAM_APDU [14:17:13]CAPDU: 80 09 00 00 [14:17:13]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [14:17:13]Write i2c OK [14:17:13]MH_I2C_Read... [14:17:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:17:13]Read from MH i2c: E2 [14:17:13]MH_I2C_Read... [14:17:13]Read from MH i2c: E2 03 00 [14:17:13]MH_I2C_Read... [14:17:13]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [14:17:13]RAPDU: 90 00 [14:17:13]wFMCommunicate OK [14:17:13]SAM_PROTO_ClearQueue done [14:17:13]KKMCreateOFDPacket [14:17:13]OFDProtocolAddRootSTLVToBuf [14:17:14]FM_MakeSignedData [14:17:14]FM_MakeSignedData [14:17:14]SAM_PROTO_SignData [14:17:14]wFMCommunicate request_size=4 [14:17:14]MH_SAM_APDU [14:17:14]CAPDU: 80 0D 01 02 [14:17:14]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [14:17:14]Write i2c OK [14:17:14]MH_I2C_Read... [14:17:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:17:14]Read from MH i2c: E2 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: E2 03 00 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [14:17:14]RAPDU: 90 00 [14:17:14]wFMCommunicate OK [14:17:14]wFMCommunicate request_size=255 [14:17:14]MH_SAM_APDU [14:17:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 68 1C 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 06 41 01 00 35 04 06 00 C2 [14:17:14]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 68 1C 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 06 41 01 00 35 04 06 00 C2 00 00 AC [14:17:14]Write i2c OK [14:17:14]MH_I2C_Read... [14:17:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:14]Read from MH i2c: E2 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: E2 03 00 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [14:17:14]RAPDU: 90 00 [14:17:14]wFMCommunicate OK [14:17:14]wFMCommunicate request_size=10 [14:17:14]MH_SAM_APDU [14:17:14]CAPDU: 80 0D 02 02 05 91 B3 23 E6 A0 [14:17:14]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 91 B3 23 E6 A0 00 00 9F [14:17:14]Write i2c OK [14:17:14]MH_I2C_Read... [14:17:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:14]Read from MH i2c: E2 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: E2 03 00 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [14:17:14]RAPDU: 90 00 [14:17:14]wFMCommunicate OK [14:17:14]wFMCommunicate request_size=4 [14:17:14]MH_SAM_APDU [14:17:14]CAPDU: 80 0D 03 02 [14:17:14]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [14:17:14]Write i2c OK [14:17:14]MH_I2C_Read... [14:17:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:17:14]Read from MH i2c: E2 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: E2 0B 00 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: E2 0B 00 2F 00 00 AE 15 69 DA FE BC 75 FA 90 00 DA [14:17:14]RAPDU: AE 15 69 DA FE BC 75 FA 90 00 [14:17:14]wFMCommunicate OK [14:17:14]SAM_PROTO_SignData done [14:17:14]FM_MakeSignedData done [14:17:14]CreateOFDProtocolMessage [14:17:14]wFMCommunicate request_size=4 [14:17:14]MH_SAM_APDU [14:17:14]CAPDU: 80 11 00 00 [14:17:14]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [14:17:14]Write i2c OK [14:17:14]MH_I2C_Read... [14:17:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:14]Read from MH i2c: E2 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: E2 17 00 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 FC [14:17:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:17:14]wFMCommunicate OK [14:17:14]CreateOFDProtocolMessage done [14:17:14]OFDSenderStorePacket 82182 [14:17:14]StoreOFDPacket docnum=82182 [14:17:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 DB F8 07 01 17 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 68 1C 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 06 41 01 00 35 04 06 00 C2 91 B3 23 E6 A0 AE 15 69 DA FE BC 75 FA [14:17:14]CheckFolder [14:17:14]dirname=/storage/ofd_packets [14:17:14]CheckFolder done [14:17:14]ProducePacketName [14:17:14]name=ofd_packets/00082182 [14:17:14]NVStorageSaveData ofd_packets/00082182 [14:17:14]File name is /storage/ofd_packets/00082182 [14:17:14]Write 301 bytes [14:17:14]NVStorageSaveData done [14:17:14]OFDSenderStorePacket done [14:17:14]KKMCreateOFDPacket done [14:17:14]NVStorageSaveData kkm_last_timestamp [14:17:14]File name is /storage/kkm_last_timestamp [14:17:14]Write 4 bytes [14:17:14]NVStorageSaveData done [14:17:14]ExternCall_PrintAddStr [14:17:14]wPrintStart [14:17:14]Write to MH i2c: 01 00 00 31 00 31 [14:17:14]Write i2c OK [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: 01 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: 01 07 00 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [14:17:14]RasterBufferAndPrint [14:17:14]line Счет N : (1)918687 [14:17:14]line ИНН: 02508201610067 [14:17:14]line Контрольно-Кассовый Чек [14:17:14]line ПРОДАЖА [14:17:14]line ТРК (МРК, ГНК) : 22 [14:17:14]line Товар: 2710124130 [14:17:14]line Аи-92-К-4 [14:17:14]line 14.950 * 66.90 [14:17:14]line = 1000.16 [14:17:14]line НДС 12% НСП 1% [14:17:14]line > о реализуемом товаре [14:17:14]line ОКРУГЛЕНИЕ: -0.16 [14:17:14]line ИТОГО: 1000.00 [14:17:14]line Внесено: 1000.00 [14:17:14]line СДАЧА: 0.00 [14:17:14]line НСП 1% : 8.85 [14:17:14]line НДС 12% : 106.21 [14:17:14]line Наличными: 1000.00 [14:17:14]line Безнал.: 0.00 [14:17:14]line Место: АЗС № 114 "Партнер Нефть" [14:17:14]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [14:17:14]line СНО: Общий режим [14:17:14]line Чек 108 17.10.2024 14:17 [14:17:14]line Смена: 525 ФФД: 1.0 [14:17:14]line ЗНМ: 0300000086 [14:17:14]line РНМ: 0000000000091680 [14:17:14]line Версия ККМ: 001 [14:17:14]line ФМ: 0000000000871843 [14:17:14]line ФД: 82182 [14:17:14]line ФПД: 213931031520928 [14:17:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T141712&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82182&fm=213931031520928&tin=02508201610067®Number=0000000000091680&sum=100000 [14:17:14]written 0, free lines is 4095 [14:17:14]OFD Sender: Processing packet 82182 [packets to send 254, broken 253] [14:17:14]ProducePacketName [14:17:14]name=ofd_packets/00082182 [14:17:14]OFD Sender: To server: pG, [14:17:14]CommunicateWithHost lk.salyk.kg:30040 [14:17:14]ConnectInit lk.salyk.kg [14:17:15]Write to MH i2c: 01 00 00 5C 00 5C [14:17:15]Write i2c OK [14:17:15]MH_I2C_Read... [14:17:15]Read from MH i2c: 01 [14:17:15]MH_I2C_Read... [14:17:15]Read from MH i2c: 01 07 00 [14:17:15]MH_I2C_Read... [14:17:15]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 EF 0C 5E [14:17:15]RasterBufferAndPrint [14:17:15]line [14:17:15]line [14:17:15]line [14:17:15]line [14:17:15]line [14:17:15]written 0, free lines is 3338 [14:17:15]MH_Cut [14:17:15]Write to MH i2c: D1 01 00 63 00 01 35 [14:17:15]Write i2c OK [14:17:15]MH_I2C_Read... [14:17:15]Read from MH i2c: D1 [14:17:15]MH_I2C_Read... [14:17:15]Read from MH i2c: D1 01 00 [14:17:15]MH_I2C_Read... [14:17:15]Read from MH i2c: D1 01 00 63 00 00 34 [14:17:15]Write to MH i2c: 01 00 00 64 00 64 [14:17:15]Write i2c OK [14:17:15]MH_I2C_Read... [14:17:15]Connected sock=7 [14:17:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 DB F8 07 01 17 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 68 1C 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 06 41 01 00 35 04 06 00 C2 91 B3 23 E6 A0 AE 15 69 DA FE BC 75 FA [14:17:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 85 FA 47 00 3D 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 *** Cut start [14:17:16]11 04 10 00 30 30 30 *** Partial cut [14:17:16]30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 06 41 01 00 F4 03 04 00 A7 C1 10 67 B6 04 01 00 00 42 1E 9A 3D 98 C5 B8 04 [14:17:16]CommunicateWithHost err = 0 [14:17:16]CheckOFDResponse [14:17:16]1017 (14) - 77093643461234 [14:17:16]1041 (16) - 0000000000871843 [14:17:16]1040 (4) - 82182 [14:17:16]1012 (4) - 17.10.2024 07:49 [14:17:16]1206 (1) - 0 [14:17:16]OFD Sender: Remove packet 82182 [14:17:16]ProducePacketName [14:17:16]name=ofd_packets/00082182 [14:17:16]NVStorageDeleteData [14:17:16]*** CUTSNS_PIN = 1 [14:17:16]*** CUTSNS_PIN = 0 [14:17:16]*** Brake cut motor [14:17:16]OFD Sender: No OFD packet to send [14:17:16]Read from MH i2c: 01 [14:17:16]MH_I2C_Read... [14:17:16]*** Stop cut motor [14:17:16]*** Cut end [14:17:16]Read from MH i2c: 01 07 00 [14:17:16]MH_I2C_Read... [14:17:16]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [14:17:16]process_action close_receipt done [14:17:16]requested_data is exist [14:17:16]produce_requested_data [14:17:16]requested_item fm.sn is exist - process it [14:17:16]wFMCommunicate request_size=4 [14:17:16]MH_SAM_APDU [14:17:16]CAPDU: 80 11 00 00 [14:17:16]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [14:17:16]Write i2c OK [14:17:16]MH_I2C_Read... [14:17:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:16]Read from MH i2c: E2 [14:17:16]MH_I2C_Read... [14:17:16]Read from MH i2c: E2 17 00 [14:17:16]MH_I2C_Read... [14:17:16]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 31 [14:17:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:17:16]wFMCommunicate OK [14:17:16]requested_item fd.num is exist - process it [14:17:16]SAM_PROTO_GetFieldsCounters [14:17:16]wFMCommunicate request_size=4 [14:17:16]MH_SAM_APDU [14:17:16]CAPDU: 80 13 00 00 [14:17:16]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [14:17:16]Write i2c OK [14:17:16]MH_I2C_Read... [14:17:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:17:17]Read from MH i2c: E2 [14:17:17]MH_I2C_Read... [14:17:17]Read from MH i2c: E2 62 00 [14:17:17]MH_I2C_Read... [14:17:17]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 06 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [14:17:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 06 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:17:17]wFMCommunicate OK [14:17:17]SAM_PROTO_GetFieldsCounters done [14:17:17]requested_item shift.num is exist - process it [14:17:17]requested_item shift.opened is exist - process it [14:17:17]req_shift_opened [14:17:17]FM_GetShiftState [14:17:17]SAM_PROTO_GetShiftState [14:17:17]wFMCommunicate request_size=4 [14:17:17]MH_SAM_APDU [14:17:17]CAPDU: 80 13 01 00 [14:17:17]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [14:17:17]Write i2c OK [14:17:17]MH_I2C_Read... [14:17:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:17]Read from MH i2c: E2 [14:17:17]MH_I2C_Read... [14:17:17]Read from MH i2c: E2 0E 00 [14:17:17]MH_I2C_Read... [14:17:17]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 EC [14:17:17]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [14:17:17]wFMCommunicate OK [14:17:17]SAM_PROTO_GetShiftState done [14:17:17]FM_GetShiftState done [14:17:17]req_shift_opened done [14:17:17]requested_item shift.open_date is exist - process it [14:17:17]req_shift_open_date [14:17:17]req_shift_open_date done [14:17:17]produce_requested_data done [14:17:17]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82182,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [14:17:17]process_action_free close_receipt [14:17:17]json_value_free [14:17:17]json_value_free done [14:17:17]process_json_proto returns [14:17:17]Send response to host [14:17:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82182,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [14:17:17]free response buf [14:17:17]execute_script done [14:17:17]execute_script returns [14:17:17]free content buf [14:17:17]Sock 6.Close socket [14:17:17]Sock 6.Thread stoped [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:55]recv_with_timeout no data received [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:25]accept exits with 11 [14:18:25]New connection [14:18:25]New thread 3066821988 created [14:18:25]Thread 3066965348 joined [14:18:25]Waiting for new connection... [14:18:25] Sock 11.Parse request [14:18:25]Sock 11.Check first char [14:18:25]Sock 11.First char is OK [14:18:25]request: POST /json_proto HTTP/1.0 [14:18:25]Method: POST [14:18:25]URL: /json_proto [14:18:25]Method is POST - this is cgi request [14:18:25]url: /json_proto [14:18:25]query_string will be loaded in cgi processing [14:18:25]execute_cgi json_proto POST (null) [14:18:25]execute_cgi path=json_proto method=POST [14:18:25]POST find Content-Length [14:18:25]Host: 172.17.44.67:8080 [14:18:25]Content-Length: 808 [14:18:25]Content-Type: application/json [14:18:25] [14:18:25]POST finish read [14:18:25]Found Content-Length = 808 [14:18:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:25]execute_script... [14:18:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:25]POST & json_proto [14:18:25]process_json_proto [14:18:25]json parsed OK: [14:18:25]protocol is kg_v1.0 [14:18:25]action value=close_receipt [14:18:25]process_action close_receipt [14:18:25]cmd_close_receipt [14:18:25]MH_GetDate [14:18:25]Write to MH i2c: F0 00 00 68 00 57 [14:18:25]Write i2c OK [14:18:25]MH_I2C_Read... [14:18:25]Read from MH i2c: F0 [14:18:25]MH_I2C_Read... [14:18:25]Read from MH i2c: F0 09 00 [14:18:25]MH_I2C_Read... [14:18:25]Read from MH i2c: F0 09 00 68 00 00 B1 1C 11 67 F1 C7 6B 64 2C [14:18:25]GetLastDocTimeStamp 1729174632 [14:18:25]current date 1729174705 [14:18:25]FM_GetShiftState [14:18:25]SAM_PROTO_GetShiftState [14:18:25]wFMCommunicate request_size=4 [14:18:25]MH_SAM_APDU [14:18:25]CAPDU: 80 13 01 00 [14:18:25]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [14:18:25]Write i2c OK [14:18:25]MH_I2C_Read... [14:18:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:25]Read from MH i2c: E2 [14:18:25]MH_I2C_Read... [14:18:25]Read from MH i2c: E2 0E 00 [14:18:25]MH_I2C_Read... [14:18:25]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 EE [14:18:25]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [14:18:25]wFMCommunicate OK [14:18:25]SAM_PROTO_GetShiftState done [14:18:25]FM_GetShiftState done [14:18:25]opened in 1729125927 [14:18:25]opened+sec_in_day 1729212327 [14:18:25]quantity*price = 150037 [14:18:25]sum+1 = 150039 [14:18:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.38 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.38 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 109 17.10.2024 14:18 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871843 ФД: 82183 ФПД: 156478335731875 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T141825&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82183&fm=156478335731875&tin=02508201610067®Number=0000000000091680&sum=150038 [14:18:26]StoreToDocumentArchive [14:18:26]shift 525 fd 82183 [14:18:26]save to /storage/0525/doc_00082183 [14:18:26]save last doc name /storage/0525/doc_00082183 to /storage/kkm_last_doc_name [14:18:26]save OK [14:18:26]Clear old archive folders... [14:18:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:18:26]tlvbuf is 00EA9AF0 [14:18:26]SAM_PROTO_ClearQueue [14:18:26]wFMCommunicate request_size=4 [14:18:26]MH_SAM_APDU [14:18:26]CAPDU: 80 09 00 00 [14:18:26]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [14:18:26]Write i2c OK [14:18:26]MH_I2C_Read... [14:18:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:18:27]Read from MH i2c: E2 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 03 00 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [14:18:27]RAPDU: 90 00 [14:18:27]wFMCommunicate OK [14:18:27]SAM_PROTO_ClearQueue done [14:18:27]KKMCreateOFDPacket [14:18:27]OFDProtocolAddRootSTLVToBuf [14:18:27]FM_MakeSignedData [14:18:27]FM_MakeSignedData [14:18:27]SAM_PROTO_SignData [14:18:27]wFMCommunicate request_size=4 [14:18:27]MH_SAM_APDU [14:18:27]CAPDU: 80 0D 01 02 [14:18:27]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [14:18:27]Write i2c OK [14:18:27]MH_I2C_Read... [14:18:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:18:27]Read from MH i2c: E2 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 03 00 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [14:18:27]RAPDU: 90 00 [14:18:27]wFMCommunicate OK [14:18:27]wFMCommunicate request_size=255 [14:18:27]MH_SAM_APDU [14:18:27]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 B1 1C 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 07 41 01 00 35 04 06 00 [14:18:27]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 B1 1C 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 07 41 01 00 35 04 06 00 00 00 2A [14:18:27]Write i2c OK [14:18:27]MH_I2C_Read... [14:18:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:27]Read from MH i2c: E2 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 03 00 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [14:18:27]RAPDU: 90 00 [14:18:27]wFMCommunicate OK [14:18:27]wFMCommunicate request_size=11 [14:18:27]MH_SAM_APDU [14:18:27]CAPDU: 80 0D 02 02 06 8E 50 F3 9D C8 A3 [14:18:27]Write to MH i2c: E2 0E 00 79 00 80 0D 02 02 06 00 8E 50 F3 9D C8 A3 00 00 D8 [14:18:27]Write i2c OK [14:18:27]MH_I2C_Read... [14:18:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:27]Read from MH i2c: E2 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 03 00 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [14:18:27]RAPDU: 90 00 [14:18:27]wFMCommunicate OK [14:18:27]wFMCommunicate request_size=4 [14:18:27]MH_SAM_APDU [14:18:27]CAPDU: 80 0D 03 02 [14:18:27]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [14:18:27]Write i2c OK [14:18:27]MH_I2C_Read... [14:18:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:18:27]Read from MH i2c: E2 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 0B 00 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 0B 00 7A 00 00 DC EC E6 58 69 A9 F2 CA 90 00 CA [14:18:27]RAPDU: DC EC E6 58 69 A9 F2 CA 90 00 [14:18:27]wFMCommunicate OK [14:18:27]SAM_PROTO_SignData done [14:18:27]FM_MakeSignedData done [14:18:27]CreateOFDProtocolMessage [14:18:27]wFMCommunicate request_size=4 [14:18:27]MH_SAM_APDU [14:18:27]CAPDU: 80 11 00 00 [14:18:27]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [14:18:27]Write i2c OK [14:18:27]MH_I2C_Read... [14:18:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:27]Read from MH i2c: E2 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 17 00 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 47 [14:18:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:18:27]wFMCommunicate OK [14:18:27]CreateOFDProtocolMessage done [14:18:27]OFDSenderStorePacket 82183 [14:18:27]StoreOFDPacket docnum=82183 [14:18:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 22 6F 08 01 C2 02 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 B1 1C 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 07 41 01 00 35 04 06 00 8E 50 F3 9D C8 A3 DC EC E6 58 69 A9 F2 CA [14:18:27]CheckFolder [14:18:27]dirname=/storage/ofd_packets [14:18:27]CheckFolder done [14:18:27]ProducePacketName [14:18:27]name=ofd_packets/00082183 [14:18:27]NVStorageSaveData ofd_packets/00082183 [14:18:27]File name is /storage/ofd_packets/00082183 [14:18:27]Write 302 bytes [14:18:27]NVStorageSaveData done [14:18:27]OFDSenderStorePacket done [14:18:27]KKMCreateOFDPacket done [14:18:27]NVStorageSaveData kkm_last_timestamp [14:18:27]File name is /storage/kkm_last_timestamp [14:18:27]Write 4 bytes [14:18:27]NVStorageSaveData done [14:18:27]ExternCall_PrintAddStr [14:18:27]wPrintStart [14:18:27]Write to MH i2c: 01 00 00 7C 00 7C [14:18:27]Write i2c OK [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: 01 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: 01 07 00 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [14:18:27]RasterBufferAndPrint [14:18:27]line Счет N : (1)918688 [14:18:27]line ИНН: 02508201610067 [14:18:27]line Контрольно-Кассовый Чек [14:18:27]line ПРОДАЖА [14:18:27]line ТРК (МРК, ГНК) : 31 [14:18:27]line Товар: 2710194210 [14:18:27]line ДТ(л)-К-5 [14:18:27]line 19.690 * 76.20 [14:18:27]line = 1500.38 [14:18:27]line НДС 12% НСП 1% [14:18:27]line > о реализуемом товаре [14:18:27]line ИТОГО: 1500.38 [14:18:27]line НСП 1% : 13.28 [14:18:27]line НДС 12% : 159.33 [14:18:27]line Наличными: 0.00 [14:18:27]line Безнал.: 1500.38 [14:18:27]line Место: АЗС № 114 "Партнер Нефть" [14:18:27]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [14:18:27]line СНО: Общий режим [14:18:27]line Чек 109 17.10.2024 14:18 [14:18:27]line Смена: 525 ФФД: 1.0 [14:18:27]line ЗНМ: 0300000086 [14:18:27]line РНМ: 0000000000091680 [14:18:27]line Версия ККМ: 001 [14:18:27]line Платежная система: O! деньги [14:18:27]line ФМ: 0000000000871843 [14:18:27]line ФД: 82183 [14:18:27]line ФПД: 156478335731875 [14:18:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T141825&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82183&fm=156478335731875&tin=02508201610067®Number=0000000000091680&sum=150038 [14:18:27]written 0, free lines is 4095 [14:18:27]OFD Sender: Processing packet 82183 [packets to send 254, broken 253] [14:18:27]ProducePacketName [14:18:27]name=ofd_packets/00082183 [14:18:27]OFD Sender: To server: pG, [14:18:27]CommunicateWithHost lk.salyk.kg:30040 [14:18:27]ConnectInit lk.salyk.kg [14:18:28]Connected sock=9 [14:18:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 22 6F 08 01 C2 02 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 B1 1C 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 07 41 01 00 35 04 06 00 8E 50 F3 9D C8 A3 DC EC E6 58 69 A9 F2 CA [14:18:28]Write to MH i2c: 01 00 00 A6 00 A6 [14:18:28]Write i2c OK [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: 01 [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: 01 07 00 [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: 01 07 00 A6 00 00 00 00 00 00 EA 0C A3 [14:18:28]RasterBufferAndPrint [14:18:28]line [14:18:28]line [14:18:28]line [14:18:28]line [14:18:28]line [14:18:28]written 0, free lines is 3312 [14:18:28]MH_Cut [14:18:28]Write to MH i2c: D1 01 00 AD 00 01 7F [14:18:28]Write i2c OK [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: D1 [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: D1 01 00 [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: D1 01 00 AD 00 00 7E [14:18:28]Write to MH i2c: 01 00 00 AE 00 AE [14:18:28]Write i2c OK [14:18:28]MH_I2C_Read... [14:18:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 28 A4 47 00 01 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 07 41 01 00 F4 03 04 00 EF C1 10 67 B6 04 01 00 00 86 A5 29 BE D5 5F 59 55 [14:18:28]CommunicateWithHost err = 0 [14:18:28]CheckOFDResponse [14:18:28]1017 (14) - 77093643461234 [14:18:28]1041 (16) - 0000000000871843 [14:18:28]1040 (4) - 82183 [14:18:28]1012 (4) - 17.10.2024 07:51 [14:18:28]1206 (1) - 0 [14:18:28]OFD Sender: Remove packet 82183 [14:18:28]ProducePacketName [14:18:28]name=ofd_packets/00082183 [14:18:28]NVStorageDeleteData [14:18:29]OFD Sender: No OFD packet to send [14:18:29]*** Cut start [14:18:29]*** Partial cut [14:18:29]*** CUTSNS_PIN = 1 [14:18:29]*** CUTSNS_PIN = 0 [14:18:29]*** Brake cut motor [14:18:29]Read from MH i2c: 01 [14:18:29]MH_I2C_Read... [14:18:29]*** Stop cut motor [14:18:29]*** Cut end [14:18:29]Read from MH i2c: 01 07 00 [14:18:29]MH_I2C_Read... [14:18:29]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [14:18:29]process_action close_receipt done [14:18:29]requested_data is exist [14:18:29]produce_requested_data [14:18:29]requested_item fm.sn is exist - process it [14:18:29]wFMCommunicate request_size=4 [14:18:29]MH_SAM_APDU [14:18:29]CAPDU: 80 11 00 00 [14:18:29]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [14:18:29]Write i2c OK [14:18:29]MH_I2C_Read... [14:18:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:29]Read from MH i2c: E2 [14:18:29]MH_I2C_Read... [14:18:29]Read from MH i2c: E2 17 00 [14:18:29]MH_I2C_Read... [14:18:29]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 7B [14:18:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:18:29]wFMCommunicate OK [14:18:29]requested_item fd.num is exist - process it [14:18:29]SAM_PROTO_GetFieldsCounters [14:18:29]wFMCommunicate request_size=4 [14:18:29]MH_SAM_APDU [14:18:29]CAPDU: 80 13 00 00 [14:18:29]Write to MH i2c: E2 08 00 B0 00 80 13 00 00 00 00 00 00 2C [14:18:29]Write i2c OK [14:18:29]MH_I2C_Read... [14:18:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:18:29]Read from MH i2c: E2 [14:18:29]MH_I2C_Read... [14:18:29]Read from MH i2c: E2 62 00 [14:18:29]MH_I2C_Read... [14:18:29]Read from MH i2c: E2 62 00 B0 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 07 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [14:18:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 07 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:18:29]wFMCommunicate OK [14:18:29]SAM_PROTO_GetFieldsCounters done [14:18:29]requested_item shift.num is exist - process it [14:18:29]requested_item shift.opened is exist - process it [14:18:29]req_shift_opened [14:18:29]FM_GetShiftState [14:18:29]SAM_PROTO_GetShiftState [14:18:29]wFMCommunicate request_size=4 [14:18:29]MH_SAM_APDU [14:18:29]CAPDU: 80 13 01 00 [14:18:29]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [14:18:29]Write i2c OK [14:18:29]MH_I2C_Read... [14:18:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:29]Read from MH i2c: E2 [14:18:29]MH_I2C_Read... [14:18:29]Read from MH i2c: E2 0E 00 [14:18:29]MH_I2C_Read... [14:18:29]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 36 [14:18:29]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [14:18:29]wFMCommunicate OK [14:18:29]SAM_PROTO_GetShiftState done [14:18:29]FM_GetShiftState done [14:18:29]req_shift_opened done [14:18:29]requested_item shift.open_date is exist - process it [14:18:29]req_shift_open_date [14:18:29]req_shift_open_date done [14:18:29]produce_requested_data done [14:18:29]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82183,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [14:18:29]process_action_free close_receipt [14:18:29]json_value_free [14:18:29]json_value_free done [14:18:29]process_json_proto returns [14:18:29]Send response to host [14:18:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82183,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [14:18:29]free response buf [14:18:30]execute_script done [14:18:30]execute_script returns [14:18:30]free content buf [14:18:30]Sock 11.Close socket [14:18:30]Sock 11.Thread stoped [14:18:34]OFD Sender: No OFD packet to send [14:18:39]OFD Sender: No OFD packet to send [14:18:44]OFD Sender: No OFD packet to send [14:18:49]OFD Sender: No OFD packet to send [14:18:54]OFD Sender: No OFD packet to send [14:18:59]OFD Sender: No OFD packet to send [14:19:04]OFD Sender: No OFD packet to send [14:19:09]OFD Sender: No OFD packet to send [14:19:14]OFD Sender: No OFD packet to send [14:19:19]OFD Sender: No OFD packet to send [14:19:24]OFD Sender: No OFD packet to send [14:19:29]OFD Sender: No OFD packet to send [14:19:34]OFD Sender: No OFD packet to send [14:19:39]OFD Sender: No OFD packet to send [14:19:44]OFD Sender: No OFD packet to send [14:19:49]OFD Sender: No OFD packet to send [14:19:54]OFD Sender: No OFD packet to send [14:19:59]OFD Sender: No OFD packet to send [14:20:04]OFD Sender: No OFD packet to send [14:20:09]OFD Sender: No OFD packet to send [14:20:14]OFD Sender: No OFD packet to send [14:20:19]OFD Sender: No OFD packet to send [14:20:24]OFD Sender: No OFD packet to send [14:20:29]OFD Sender: No OFD packet to send [14:20:34]OFD Sender: No OFD packet to send [14:20:39]OFD Sender: No OFD packet to send [14:20:44]OFD Sender: No OFD packet to send [14:20:49]OFD Sender: No OFD packet to send [14:20:54]OFD Sender: No OFD packet to send [14:20:56]accept exits with 7 [14:20:56]New connection [14:20:56]New thread 3066965348 created [14:20:56]Thread 3066821988 joined [14:20:56]Waiting for new connection... [14:20:56] Sock 7.Parse request [14:20:56]Sock 7.Check first char [14:20:56]Sock 7.First char is OK [14:20:56]request: POST /json_proto HTTP/1.0 [14:20:56]Method: POST [14:20:56]URL: /json_proto [14:20:56]Method is POST - this is cgi request [14:20:56]url: /json_proto [14:20:56]query_string will be loaded in cgi processing [14:20:56]execute_cgi json_proto POST (null) [14:20:56]execute_cgi path=json_proto method=POST [14:20:56]POST find Content-Length [14:20:56]Host: 172.17.44.67:8080 [14:20:56]Content-Length: 766 [14:20:56]Content-Type: application/json [14:20:56] [14:20:56]POST finish read [14:20:56]Found Content-Length = 766 [14:20:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:56]execute_script... [14:20:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:56]POST & json_proto [14:20:56]process_json_proto [14:20:56]json parsed OK: [14:20:56]protocol is kg_v1.0 [14:20:56]action value=close_receipt [14:20:56]process_action close_receipt [14:20:56]cmd_close_receipt [14:20:56]MH_GetDate [14:20:56]Write to MH i2c: F0 00 00 B2 00 A1 [14:20:56]Write i2c OK [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: F0 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: F0 09 00 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: F0 09 00 B2 00 00 48 1D 11 67 F1 C7 6B 64 0E [14:20:56]GetLastDocTimeStamp 1729174705 [14:20:56]current date 1729174856 [14:20:56]FM_GetShiftState [14:20:56]SAM_PROTO_GetShiftState [14:20:56]wFMCommunicate request_size=4 [14:20:56]MH_SAM_APDU [14:20:56]CAPDU: 80 13 01 00 [14:20:56]Write to MH i2c: E2 08 00 B3 00 80 13 01 00 00 00 00 00 30 [14:20:56]Write i2c OK [14:20:56]MH_I2C_Read... [14:20:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:56]Read from MH i2c: E2 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: E2 0E 00 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: E2 0E 00 B3 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 38 [14:20:56]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [14:20:56]wFMCommunicate OK [14:20:56]SAM_PROTO_GetShiftState done [14:20:56]FM_GetShiftState done [14:20:56]opened in 1729125927 [14:20:56]opened+sec_in_day 1729212327 [14:20:56]quantity*price = 40006 [14:20:56]sum+1 = 40007 [14:20:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 110 17.10.2024 14:20 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82184 ФПД: 254406644847453 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T142056&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82184&fm=254406644847453&tin=02508201610067®Number=0000000000091680&sum=40006 [14:20:57]StoreToDocumentArchive [14:20:57]shift 525 fd 82184 [14:20:57]save to /storage/0525/doc_00082184 [14:20:57]save last doc name /storage/0525/doc_00082184 to /storage/kkm_last_doc_name [14:20:57]save OK [14:20:57]Clear old archive folders... [14:20:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:20:57]tlvbuf is 00EAD6C0 [14:20:57]SAM_PROTO_ClearQueue [14:20:57]wFMCommunicate request_size=4 [14:20:57]MH_SAM_APDU [14:20:57]CAPDU: 80 09 00 00 [14:20:57]Write to MH i2c: E2 08 00 C0 00 80 09 00 00 00 00 00 00 32 [14:20:57]Write i2c OK [14:20:57]MH_I2C_Read... [14:20:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:20:57]Read from MH i2c: E2 [14:20:57]MH_I2C_Read... [14:20:57]Read from MH i2c: E2 03 00 [14:20:57]MH_I2C_Read... [14:20:57]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [14:20:57]RAPDU: 90 00 [14:20:57]wFMCommunicate OK [14:20:57]SAM_PROTO_ClearQueue done [14:20:57]KKMCreateOFDPacket [14:20:57]OFDProtocolAddRootSTLVToBuf [14:20:57]FM_MakeSignedData [14:20:57]FM_MakeSignedData [14:20:57]SAM_PROTO_SignData [14:20:57]wFMCommunicate request_size=4 [14:20:57]MH_SAM_APDU [14:20:57]CAPDU: 80 0D 01 02 [14:20:57]Write to MH i2c: E2 08 00 C1 00 80 0D 01 02 00 00 00 00 3A [14:20:57]Write i2c OK [14:20:57]MH_I2C_Read... [14:20:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:20:57]Read from MH i2c: E2 [14:20:57]MH_I2C_Read... [14:20:57]Read from MH i2c: E2 03 00 [14:20:57]MH_I2C_Read... [14:20:57]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [14:20:57]RAPDU: 90 00 [14:20:57]wFMCommunicate OK [14:20:57]wFMCommunicate request_size=255 [14:20:57]MH_SAM_APDU [14:20:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 48 1D 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 08 41 01 00 35 04 06 00 E7 [14:20:57]Write to MH i2c: E2 02 01 C2 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 48 1D 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 08 41 01 00 35 04 06 00 E7 00 00 2C [14:20:57]Write i2c OK [14:20:57]MH_I2C_Read... [14:20:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:57]Read from MH i2c: E2 [14:20:57]MH_I2C_Read... [14:20:57]Read from MH i2c: E2 03 00 [14:20:57]MH_I2C_Read... [14:20:57]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [14:20:57]RAPDU: 90 00 [14:20:57]wFMCommunicate OK [14:20:57]wFMCommunicate request_size=10 [14:20:57]MH_SAM_APDU [14:20:57]CAPDU: 80 0D 02 02 05 61 A9 B1 D3 5D [14:20:57]Write to MH i2c: E2 0D 00 C3 00 80 0D 02 02 05 00 61 A9 B1 D3 5D 00 00 32 [14:20:57]Write i2c OK [14:20:57]MH_I2C_Read... [14:20:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:57]Read from MH i2c: E2 [14:20:57]MH_I2C_Read... [14:20:57]Read from MH i2c: E2 03 00 [14:20:57]MH_I2C_Read... [14:20:57]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [14:20:57]RAPDU: 90 00 [14:20:57]wFMCommunicate OK [14:20:57]wFMCommunicate request_size=4 [14:20:57]MH_SAM_APDU [14:20:57]CAPDU: 80 0D 03 02 [14:20:57]Write to MH i2c: E2 08 00 C4 00 80 0D 03 02 00 00 00 00 3F [14:20:57]Write i2c OK [14:20:57]MH_I2C_Read... [14:20:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:20:57]Read from MH i2c: E2 [14:20:57]MH_I2C_Read... [14:20:57]Read from MH i2c: E2 0B 00 [14:20:57]MH_I2C_Read... [14:20:57]Read from MH i2c: E2 0B 00 C4 00 00 6D 91 2C 46 07 F3 F9 3D 90 00 E0 [14:20:57]RAPDU: 6D 91 2C 46 07 F3 F9 3D 90 00 [14:20:57]wFMCommunicate OK [14:20:57]SAM_PROTO_SignData done [14:20:57]FM_MakeSignedData done [14:20:57]CreateOFDProtocolMessage [14:20:57]wFMCommunicate request_size=4 [14:20:57]MH_SAM_APDU [14:20:57]CAPDU: 80 11 00 00 [14:20:57]Write to MH i2c: E2 08 00 C5 00 80 11 00 00 00 00 00 00 3F [14:20:57]Write i2c OK [14:20:57]MH_I2C_Read... [14:20:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:57]Read from MH i2c: E2 [14:20:57]MH_I2C_Read... [14:20:57]Read from MH i2c: E2 17 00 [14:20:57]MH_I2C_Read... [14:20:57]Read from MH i2c: E2 17 00 C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 91 [14:20:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:20:57]wFMCommunicate OK [14:20:57]CreateOFDProtocolMessage done [14:20:57]OFDSenderStorePacket 82184 [14:20:57]StoreOFDPacket docnum=82184 [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]/dev/ttyS4 opened [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 53 [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:09]*** Serial: 3139303353513838 54000000005725AE (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 44390715+1684785137=1729175852 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x200ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:09]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 54 [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 2D 21 11 67 F1 C7 6B 64 4C [14:37:33]Current date/time: 17.10.2024 14:37 [14:37:33]FM_Init [14:37:33]wFMConnect [14:37:33]MH_SAM_On [14:37:33]Write to MH i2c: E0 00 00 08 00 E7 [14:37:33]Write i2c OK [14:37:33]MH_I2C_Read... [14:37:33]*** iso7816_init finished! [14:37:33]*** atr: [14:37:33]*** 0F 3B D5 18 FF 81 91 FE [14:37:33]*** 1F C3 80 73 C8 21 10 0A [14:37:33]*** 00 00 00 00 00 00 00 00 [14:37:33]*** 00 00 00 00 00 00 00 00 [14:37:33]*** 00 00 00 00 00 00 00 00 [14:37:33]*** 00 00 00 00 00 00 00 00 [14:37:33]*** 00 00 00 00 00 00 00 00 [14:37:33]*** 00 00 00 00 00 00 00 00 [14:37:33]Read from MH i2c: E0 [14:37:33]MH_I2C_Read... [14:37:33]Read from MH i2c: E0 10 00 [14:37:33]MH_I2C_Read... [14:37:33]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [14:37:33]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [14:37:33]wFMCommunicate request_size=10 [14:37:33]MH_SAM_APDU [14:37:33]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [14:37:33]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [14:37:33]Write i2c OK [14:37:33]MH_I2C_Read... [14:37:33]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [14:37:33]Read from MH i2c: E2 [14:37:33]MH_I2C_Read... [14:37:33]Read from MH i2c: E2 03 00 [14:37:33]MH_I2C_Read... [14:37:33]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [14:37:33]RAPDU: 90 00 [14:37:33]wFMCommunicate OK [14:37:33]wFMCommunicate request_size=4 [14:37:33]MH_SAM_APDU [14:37:33]CAPDU: 80 11 00 00 [14:37:33]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [14:37:33]Write i2c OK [14:37:33]MH_I2C_Read... [14:37:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:33]Read from MH i2c: E2 [14:37:33]MH_I2C_Read... [14:37:33]Read from MH i2c: E2 17 00 [14:37:33]MH_I2C_Read... [14:37:33]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D6 [14:37:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:37:33]wFMCommunicate OK [14:37:33]Detected FM SN is 0000000000871843 [14:37:33]Stored FM SN is 0000000000871843 [14:37:33]wFMCommunicate request_size=9 [14:37:33]MH_SAM_APDU [14:37:33]CAPDU: 80 16 00 00 04 C3 A3 00 00 [14:37:33]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 C3 A3 00 00 00 00 F8 [14:37:33]Write i2c OK [14:37:33]MH_I2C_Read... [14:37:33]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [14:37:33]Read from MH i2c: E2 [14:37:33]MH_I2C_Read... [14:37:33]Read from MH i2c: E2 03 00 [14:37:33]MH_I2C_Read... [14:37:33]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [14:37:33]RAPDU: 90 00 [14:37:33]wFMCommunicate OK [14:37:33]FM PIN OK [14:37:33]wFMCommunicate request_size=8 [14:37:33]MH_SAM_APDU [14:37:33]CAPDU: 80 14 04 00 03 02 00 01 [14:37:33]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [14:37:33]Write i2c OK [14:37:33]MH_I2C_Read... [14:37:33]Read from MH i2c: E2 [14:37:33]MH_I2C_Read... [14:37:33]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [14:37:33]Read from MH i2c: E2 03 00 [14:37:33]MH_I2C_Read... [14:37:33]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [14:37:33]RAPDU: 90 00 [14:37:33]wFMCommunicate OK [14:37:33]wFMCommunicate request_size=13 [14:37:33]MH_SAM_APDU [14:37:33]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [14:37:33]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [14:37:33]Write i2c OK [14:37:33]MH_I2C_Read... [14:37:33]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [14:37:33]Read from MH i2c: E2 [14:37:33]MH_I2C_Read... [14:37:33]Read from MH i2c: E2 03 00 [14:37:33]MH_I2C_Read... [14:37:33]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [14:37:33]RAPDU: 90 00 [14:37:33]wFMCommunicate OK [14:37:33]wFMCommunicate request_size=4 [14:37:33]MH_SAM_APDU [14:37:33]CAPDU: 80 11 00 00 [14:37:33]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [14:37:33]Write i2c OK [14:37:33]MH_I2C_Read... [14:37:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:33]Read from MH i2c: E2 [14:37:33]MH_I2C_Read... [14:37:33]Read from MH i2c: E2 17 00 [14:37:33]MH_I2C_Read... [14:37:33]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DA [14:37:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:37:33]wFMCommunicate OK [14:37:33]DocumentArchiveInit [14:37:33]Start Httpd... [14:37:33]Httpd thread 3067243876 created [14:37:33]Write to MH i2c: 01 00 00 0F 00 0F [14:37:33]Write i2c OK [14:37:33]MH_I2C_Read... [14:37:33]Read from MH i2c: 01 [14:37:33]MH_I2C_Read... [14:37:33]Read from MH i2c: 01 07 00 [14:37:33]MH_I2C_Read... [14:37:33]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [14:37:33]MH Int Process started [14:37:33]Allocated Socket 8 [14:37:33]Bind OK [14:37:33]Listen OK [14:37:33]httpd running on port 8080 [14:37:33]Waiting for new connection... [14:37:33]OFD Sender: Processing packet 82184 [packets to send 254, broken 253] [14:37:33]ProducePacketName [14:37:33]name=ofd_packets/00082184 [14:37:33]OFD Sender: To server: pG, [14:37:33]CommunicateWithHost lk.salyk.kg:30040 [14:37:33]ConnectInit lk.salyk.kg [14:37:34]accept exits with 9 [14:37:34]New connection [14:37:34]New thread 3066957156 created [14:37:34]Waiting for new connection... [14:37:34] Sock 9.Parse request [14:37:34]Sock 9.Check first char [14:37:34]Sock 9.First char is OK [14:37:34]request: POST /json_proto HTTP/1.0 [14:37:34]Method: POST [14:37:34]URL: /json_proto [14:37:34]Method is POST - this is cgi request [14:37:34]url: /json_proto [14:37:34]query_string will be loaded in cgi processing [14:37:34]execute_cgi json_proto POST (null) [14:37:34]execute_cgi path=json_proto method=POST [14:37:34]POST find Content-Length [14:37:34]Host: 172.17.44.67:8080 [14:37:34]Content-Length: 215 [14:37:34]Content-Type: application/json [14:37:34] [14:37:34]POST finish read [14:37:34]Found Content-Length = 215 [14:37:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:34]execute_script... [14:37:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:34]POST & json_proto [14:37:34]process_json_proto [14:37:34]json parsed OK: [14:37:34]protocol is kg_v1.0 [14:37:34]action value=get_value [14:37:34]process_action get_value [14:37:34]cmd_get_value [14:37:34]process_action get_value done [14:37:34]requested_data is exist [14:37:34]produce_requested_data [14:37:34]requested_item kkm.sn is exist - process it [14:37:34]requested_item kkm.ver is exist - process it [14:37:34]requested_item fm.sn is exist - process it [14:37:34]wFMCommunicate request_size=4 [14:37:34]MH_SAM_APDU [14:37:34]CAPDU: 80 11 00 00 [14:37:34]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [14:37:34]Write i2c OK [14:37:34]MH_I2C_Read... [14:37:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:34]Read from MH i2c: E2 [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: E2 17 00 [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DC [14:37:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:37:34]wFMCommunicate OK [14:37:34]requested_item fd.num is exist - process it [14:37:34]SAM_PROTO_GetFieldsCounters [14:37:34]wFMCommunicate request_size=4 [14:37:34]MH_SAM_APDU [14:37:34]CAPDU: 80 13 00 00 [14:37:34]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [14:37:34]Write i2c OK [14:37:34]MH_I2C_Read... [14:37:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:34]Read from MH i2c: E2 [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: E2 62 00 [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 08 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [14:37:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 08 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:37:34]wFMCommunicate OK [14:37:34]SAM_PROTO_GetFieldsCounters done [14:37:34]requested_item shift.num is exist - process it [14:37:34]requested_item shift.opened is exist - process it [14:37:34]req_shift_opened [14:37:34]FM_GetShiftState [14:37:34]SAM_PROTO_GetShiftState [14:37:34]wFMCommunicate request_size=4 [14:37:34]MH_SAM_APDU [14:37:34]CAPDU: 80 13 01 00 [14:37:34]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [14:37:34]Write i2c OK [14:37:34]MH_I2C_Read... [14:37:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:34]Read from MH i2c: E2 [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: E2 0E 00 [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 97 [14:37:34]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [14:37:34]wFMCommunicate OK [14:37:34]SAM_PROTO_GetShiftState done [14:37:34]FM_GetShiftState done [14:37:34]req_shift_opened done [14:37:34]requested_item shift.open_date is exist - process it [14:37:34]req_shift_open_date [14:37:34]req_shift_open_date done [14:37:34]produce_requested_data done [14:37:34]produce_requested_data return {"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82184,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [14:37:34]process_action_free get_value [14:37:34]json_value_free [14:37:34]json_value_free done [14:37:34]process_json_proto returns [14:37:34]Send response to host [14:37:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82184,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [14:37:34]free response buf [14:37:34]execute_script done [14:37:34]execute_script returns [14:37:34]free content buf [14:37:34]Sock 9.Close socket [14:37:34]Sock 9.Thread stoped [14:37:34]accept exits with 11 [14:37:34]New connection [14:37:34]New thread 3066813796 created [14:37:34]Thread 3066957156 joined [14:37:34]Waiting for new connection... [14:37:34] Sock 11.Parse request [14:37:34]Sock 11.Check first char [14:37:34]Sock 11.First char is OK [14:37:34]request: POST /json_proto HTTP/1.0 [14:37:34]Method: POST [14:37:34]URL: /json_proto 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 90 00 24 [14:37:37]RAPDU: 03 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 90 00 [14:37:37]wFMCommunicate OK [14:37:37]wFMCommunicate request_size=4 [14:37:37]MH_SAM_APDU [14:37:37]CAPDU: 80 17 00 00 [14:37:37]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [14:37:37]Write i2c OK [14:37:37]MH_I2C_Read... [14:37:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [14:37:37]Read from MH i2c: E2 [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: E2 D5 00 [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: E2 D5 00 1C 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [14:37:37]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:37:37]wFMCommunicate OK [14:37:37]SAM_PROTO_GetShiftData done [14:37:37]requested_item shift.sale.total_cash is exist - process it [14:37:37]requested_item shift.sale_refund.total is exist - process it [14:37:37]requested_item shift.sale_refund.total_cash is exist - process it [14:37:37]requested_item shift.buy.total is exist - process it [14:37:37]requested_item shift.buy.total_cash is exist - process it [14:37:37]produce_requested_data done [14:37:37]produce_requested_data return {"fm.sale.total":63558867.15,"fm.sale_refund.total":3194884.00,"fm.buy.total":0.00,"shift.sale.total":50159.06,"shift.sale.total_cash":42232.00,"shift.sale_refund.total":4200.00,"shift.sale_refund.total_cash":4200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [14:37:37]process_action_free get_value [14:37:37]json_value_free [14:37:37]json_value_free done [14:37:37]process_json_proto returns [14:37:37]Send response to host [14:37:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":63558867.15,"fm.sale_refund.total":3194884.00,"fm.buy.total":0.00,"shift.sale.total":50159.06,"shift.sale.total_cash":42232.00,"shift.sale_refund.total":4200.00,"shift.sale_refund.total_cash":4200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [14:37:37]free response buf [14:37:37]execute_script done [14:37:37]execute_script returns [14:37:37]free content buf [14:37:37]Sock 11.Close socket [14:37:37]Sock 11.Thread stoped [14:37:38]accept exits with 9 [14:37:38]New connection [14:37:38]New thread 3066957156 created [14:37:38]Thread 3066813796 joined [14:37:38]Waiting for new connection... [14:37:38] Sock 9.Parse request [14:37:38]Sock 9.Check first char [14:37:38]Sock 9.First char is OK [14:37:38]request: POST /json_proto HTTP/1.0 [14:37:38]Method: POST [14:37:38]URL: /json_proto [14:37:38]Method is POST - this is cgi request [14:37:38]url: /json_proto [14:37:38]query_string will be loaded in cgi processing [14:37:38]execute_cgi json_proto POST (null) [14:37:38]execute_cgi path=json_proto method=POST [14:37:38]POST find Content-Length [14:37:38]Host: 172.17.44.67:8080 [14:37:38]Content-Length: 769 [14:37:38]Content-Type: application/json [14:37:38] [14:37:38]POST finish read [14:37:38]Found Content-Length = 769 [14:37:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:38]execute_script... [14:37:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:38]POST & json_proto [14:37:38]process_json_proto [14:37:38]json parsed OK: [14:37:38]protocol is kg_v1.0 [14:37:38]action value=close_receipt [14:37:38]process_action close_receipt [14:37:38]cmd_close_receipt [14:37:38]MH_GetDate [14:37:38]Write to MH i2c: F0 00 00 1D 00 0C [14:37:38]Write i2c OK [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: F0 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: F0 09 00 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: F0 09 00 1D 00 00 32 21 11 67 F1 C7 6B 64 67 [14:37:38]GetLastDocTimeStamp 1729174856 [14:37:38]current date 1729175858 [14:37:38]FM_GetShiftState [14:37:38]SAM_PROTO_GetShiftState [14:37:38]wFMCommunicate request_size=4 [14:37:38]MH_SAM_APDU [14:37:38]CAPDU: 80 13 01 00 [14:37:38]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [14:37:38]Write i2c OK [14:37:38]MH_I2C_Read... [14:37:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:38]Read from MH i2c: E2 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: E2 0E 00 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 A3 [14:37:38]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [14:37:38]wFMCommunicate OK [14:37:38]SAM_PROTO_GetShiftState done [14:37:38]FM_GetShiftState done [14:37:38]opened in 1729125927 [14:37:38]opened+sec_in_day 1729212327 [14:37:38]quantity*price = 100015 [14:37:38]sum+1 = 100017 [14:37:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 111 17.10.2024 14:37 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82185 ФПД: 265900784643527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T143738&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82185&fm=265900784643527&tin=02508201610067®Number=0000000000091680&sum=100016 [14:37:39]StoreToDocumentArchive [14:37:39]shift 525 fd 82185 [14:37:39]save to /storage/0525/doc_00082185 [14:37:39]save last doc name /storage/0525/doc_00082185 to /storage/kkm_last_doc_name [14:37:39]save OK [14:37:39]Clear old archive folders... [14:37:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:37:39]tlvbuf is 01BE41C0 [14:37:39]SAM_PROTO_ClearQueue [14:37:39]wFMCommunicate request_size=4 [14:37:39]MH_SAM_APDU [14:37:39]CAPDU: 80 09 00 00 [14:37:39]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [14:37:39]Write i2c OK [14:37:39]MH_I2C_Read... [14:37:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:39]Read from MH i2c: E2 [14:37:39]MH_I2C_Read... [14:37:39]Read from MH i2c: E2 03 00 [14:37:39]MH_I2C_Read... [14:37:39]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [14:37:39]RAPDU: 90 00 [14:37:39]wFMCommunicate OK [14:37:39]SAM_PROTO_ClearQueue done [14:37:39]KKMCreateOFDPacket [14:37:39]OFDProtocolAddRootSTLVToBuf [14:37:39]FM_MakeSignedData [14:37:39]FM_MakeSignedData [14:37:39]SAM_PROTO_SignData [14:37:39]wFMCommunicate request_size=4 [14:37:39]MH_SAM_APDU [14:37:39]CAPDU: 80 0D 01 02 [14:37:39]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [14:37:39]Write i2c OK [14:37:39]MH_I2C_Read... [14:37:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:39]Read from MH i2c: E2 [14:37:39]MH_I2C_Read... [14:37:39]Read from MH i2c: E2 03 00 [14:37:39]MH_I2C_Read... [14:37:39]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [14:37:39]RAPDU: 90 00 [14:37:39]wFMCommunicate OK [14:37:39]wFMCommunicate request_size=255 [14:37:39]MH_SAM_APDU [14:37:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 32 21 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 09 41 01 00 35 04 06 00 F1 [14:37:39]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 32 21 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 09 41 01 00 35 04 06 00 F1 00 00 D0 [14:37:40]Write i2c OK [14:37:40]MH_I2C_Read... [14:37:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:40]Read from MH i2c: E2 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: E2 03 00 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [14:37:40]RAPDU: 90 00 [14:37:40]wFMCommunicate OK [14:37:40]wFMCommunicate request_size=10 [14:37:40]MH_SAM_APDU [14:37:40]CAPDU: 80 0D 02 02 05 D5 D9 D0 6D C7 [14:37:40]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 D5 D9 D0 6D C7 00 00 64 [14:37:40]Write i2c OK [14:37:40]MH_I2C_Read... [14:37:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:40]Read from MH i2c: E2 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: E2 03 00 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [14:37:40]RAPDU: 90 00 [14:37:40]wFMCommunicate OK [14:37:40]wFMCommunicate request_size=4 [14:37:40]MH_SAM_APDU [14:37:40]CAPDU: 80 0D 03 02 [14:37:40]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [14:37:40]Write i2c OK [14:37:40]MH_I2C_Read... [14:37:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:40]Read from MH i2c: E2 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: E2 0B 00 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: E2 0B 00 2F 00 00 73 A7 07 30 6C 28 A0 42 90 00 72 [14:37:40]RAPDU: 73 A7 07 30 6C 28 A0 42 90 00 [14:37:40]wFMCommunicate OK [14:37:40]SAM_PROTO_SignData done [14:37:40]FM_MakeSignedData done [14:37:40]CreateOFDProtocolMessage [14:37:40]wFMCommunicate request_size=4 [14:37:40]MH_SAM_APDU [14:37:40]CAPDU: 80 11 00 00 [14:37:40]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [14:37:40]Write i2c OK [14:37:40]MH_I2C_Read... [14:37:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:40]Read from MH i2c: E2 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: E2 17 00 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 FC [14:37:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:37:40]wFMCommunicate OK [14:37:40]CreateOFDProtocolMessage done [14:37:40]OFDSenderStorePacket 82185 [14:37:40]StoreOFDPacket docnum=82185 [14:37:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 C8 90 07 01 67 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 32 21 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 09 41 01 00 35 04 06 00 F1 D5 D9 D0 6D C7 73 A7 07 30 6C 28 A0 42 [14:37:40]CheckFolder [14:37:40]dirname=/storage/ofd_packets [14:37:40]CheckFolder done [14:37:40]ProducePacketName [14:37:40]name=ofd_packets/00082185 [14:37:40]NVStorageSaveData ofd_packets/00082185 [14:37:40]File name is /storage/ofd_packets/00082185 [14:37:40]Write 301 bytes [14:37:40]NVStorageSaveData done [14:37:40]OFDSenderStorePacket done [14:37:40]KKMCreateOFDPacket done [14:37:40]NVStorageSaveData kkm_last_timestamp [14:37:40]File name is /storage/kkm_last_timestamp [14:37:40]Write 4 bytes [14:37:40]NVStorageSaveData done [14:37:40]ExternCall_PrintAddStr [14:37:40]wPrintStart [14:37:40]Write to MH i2c: 01 00 00 31 00 31 [14:37:40]Write i2c OK [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: 01 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: 01 07 00 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [14:37:40]RasterBufferAndPrint [14:37:40]line Счет N : (1)918691 [14:37:40]line ИНН: 02508201610067 [14:37:40]line Контрольно-Кассовый Чек [14:37:40]line ПРОДАЖА [14:37:40]line ТРК (МРК, ГНК) : 11 [14:37:40]line Товар: 2710124130 [14:37:40]line Аи-92-К-4 [14:37:40]line 14.950 * 66.90 [14:37:40]line = 1000.16 [14:37:40]line НДС 12% НСП 1% [14:37:40]line > о реализуемом товаре [14:37:40]line ИТОГО: 1000.16 [14:37:40]line НСП 1% : 8.85 [14:37:40]line НДС 12% : 106.21 [14:37:40]line Наличными: 0.00 [14:37:40]line Безнал.: 1000.16 [14:37:40]line Место: АЗС № 114 "Партнер Нефть" [14:37:40]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [14:37:40]line СНО: Общий режим [14:37:40]line Чек 111 17.10.2024 14:37 [14:37:40]line Смена: 525 ФФД: 1.0 [14:37:40]line ЗНМ: 0300000086 [14:37:40]line РНМ: 0000000000091680 [14:37:40]line Версия ККМ: 001 [14:37:40]line Платежная система: Mbank [14:37:40]line ФМ: 0000000000871843 [14:37:40]line ФД: 82185 [14:37:40]line ФПД: 265900784643527 [14:37:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T143738&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82185&fm=265900784643527&tin=02508201610067®Number=0000000000091680&sum=100016 [14:37:40]written 0, free lines is 4095 [14:37:40]OFD Sender: Processing packet 82185 [packets to send 254, broken 253] [14:37:40]ProducePacketName [14:37:40]name=ofd_packets/00082185 [14:37:40]OFD Sender: To server: pG, [14:37:40]CommunicateWithHost lk.salyk.kg:30040 [14:37:40]ConnectInit lk.salyk.kg [14:37:41]Write to MH i2c: 01 00 00 5A 00 5A [14:37:41]Write i2c OK [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: 01 [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: 01 07 00 [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: 01 07 00 5A 00 00 00 00 00 00 04 0D 72 [14:37:41]RasterBufferAndPrint [14:37:41]line [14:37:41]line [14:37:41]line [14:37:41]line [14:37:41]line [14:37:41]written 0, free lines is 3354 [14:37:41]MH_Cut [14:37:41]Write to MH i2c: D1 01 00 61 00 01 33 [14:37:41]Write i2c OK [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: D1 [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: D1 01 00 [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: D1 01 00 61 00 00 32 [14:37:41]Write to MH i2c: 01 00 00 62 00 62 [14:37:41]Write i2c OK [14:37:41]MH_I2C_Read... [14:37:41]*** Cut start [14:37:41]*** Partial cut [14:37:41]*** CUTSNS_PIN = 1 [14:37:41]*** CUTSNS_PIN = 0 [14:37:42]*** Brake cut motor [14:37:42]recv_with_timeout no data received [14:37:42]Read from MH i2c: 01 [14:37:42]MH_I2C_Read... [14:37:42]*** Stop cut motor [14:37:42]*** Cut end [14:37:42]Read from MH i2c: 01 07 00 [14:37:42]MH_I2C_Read... [14:37:42]Read from MH i2c: 01 07 00 62 00 00 00 00 00 00 FF 0F 77 [14:37:42]process_action close_receipt done [14:37:42]requested_data is exist [14:37:42]produce_requested_data [14:37:42]requested_item fm.sn is exist - process it [14:37:42]wFMCommunicate request_size=4 [14:37:42]MH_SAM_APDU [14:37:42]CAPDU: 80 11 00 00 [14:37:42]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [14:37:42]Write i2c OK [14:37:42]MH_I2C_Read... [14:37:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:42]Read from MH i2c: E2 [14:37:42]MH_I2C_Read... [14:37:42]Read from MH i2c: E2 17 00 [14:37:42]MH_I2C_Read... [14:37:42]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 2F [14:37:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:37:42]wFMCommunicate OK [14:37:42]requested_item fd.num is exist - process it [14:37:42]SAM_PROTO_GetFieldsCounters [14:37:42]wFMCommunicate request_size=4 [14:37:42]MH_SAM_APDU [14:37:42]CAPDU: 80 13 00 00 [14:37:42]Write to MH i2c: E2 08 00 64 00 80 13 00 00 00 00 00 00 E0 [14:37:42]Write i2c OK [14:37:42]MH_I2C_Read... [14:37:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:42]Read from MH i2c: E2 [14:37:42]MH_I2C_Read... [14:37:42]Read from MH i2c: E2 62 00 [14:37:42]MH_I2C_Read... [14:37:42]Read from MH i2c: E2 62 00 64 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 09 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [14:37:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 09 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:37:42]wFMCommunicate OK [14:37:42]SAM_PROTO_GetFieldsCounters done [14:37:42]requested_item shift.num is exist - process it [14:37:42]requested_item shift.opened is exist - process it [14:37:42]req_shift_opened [14:37:42]FM_GetShiftState [14:37:42]SAM_PROTO_GetShiftState [14:37:42]wFMCommunicate request_size=4 [14:37:42]MH_SAM_APDU [14:37:42]CAPDU: 80 13 01 00 [14:37:42]Write to MH i2c: E2 08 00 65 00 80 13 01 00 00 00 00 00 E2 [14:37:42]Write i2c OK [14:37:42]MH_I2C_Read... [14:37:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:42]Read from MH i2c: E2 [14:37:42]MH_I2C_Read... [14:37:42]Read from MH i2c: E2 0E 00 [14:37:42]MH_I2C_Read... [14:37:42]Read from MH i2c: E2 0E 00 65 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 EA [14:37:42]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [14:37:42]wFMCommunicate OK [14:37:42]SAM_PROTO_GetShiftState done [14:37:42]FM_GetShiftState done [14:37:42]req_shift_opened done [14:37:42]requested_item shift.open_date is exist - process it [14:37:42]req_shift_open_date [14:37:42]req_shift_open_date done [14:37:42]produce_requested_data done [14:37:42]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82185,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [14:37:42]process_action_free close_receipt [14:37:42]json_value_free [14:37:42]json_value_free done [14:37:42]process_json_proto returns [14:37:42]Send response to host [14:37:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82185,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [14:37:42]free response buf [14:37:42]execute_script done [14:37:42]execute_script returns [14:37:42]free content buf [14:37:42]Sock 9.Close socket [14:37:42]Sock 9.Thread stoped [14:37:45]ConnectInit Can't take IP for lk.salyk.kg [14:37:45]CommunicateWithHost connect error [14:37:45]CommunicateWithHost err = -1 [14:37:45]OFD Sender: Server communicate error [14:37:50]OFD Sender: Processing packet 82185 [packets to send 254, broken 253] [14:37:50]ProducePacketName [14:37:50]name=ofd_packets/00082185 [14:37:50]OFD Sender: To server: pG, [14:37:50]CommunicateWithHost lk.salyk.kg:30040 [14:37:50]ConnectInit lk.salyk.kg [14:37:55]recv_with_timeout no data received [14:37:56]Connected sock=9 [14:37:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 C8 90 07 01 67 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 32 21 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 09 41 01 00 35 04 06 00 F1 D5 D9 D0 6D C7 73 A7 07 30 6C 28 A0 42 [14:37:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 8E A4 47 00 C9 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 09 41 01 00 F4 03 04 00 80 C6 10 67 B6 04 01 00 00 6F F0 F2 6B A9 32 EF 98 [14:37:56]CommunicateWithHost err = 0 [14:37:56]CheckOFDResponse [14:37:56]1017 (14) - 77093643461234 [14:37:56]1041 (16) - 0000000000871843 [14:37:56]1040 (4) - 82185 [14:37:56]1012 (4) - 17.10.2024 08:10 [14:37:56]1206 (1) - 0 [14:37:56]OFD Sender: Remove packet 82185 [14:37:56]ProducePacketName [14:37:56]name=ofd_packets/00082185 [14:37:56]NVStorageDeleteData [14:37:57]OFD Sender: No OFD packet to send [14:38:02]OFD Sender: No OFD packet to send [14:38:06]accept exits with 10 [14:38:06]New connection [14:38:06]New thread 3066813796 created [14:38:06]Thread 3066957156 joined [14:38:06]Waiting for new connection... [14:38:06] Sock 10.Parse request [14:38:06]Sock 10.Check first char [14:38:06]Sock 10.First char is OK [14:38:06]request: POST /json_proto HTTP/1.0 [14:38:06]Method: POST [14:38:06]URL: /json_proto [14:38:06]Method is POST - this is cgi request [14:38:06]url: /json_proto [14:38:06]query_string will be loaded in cgi processing [14:38:06]execute_cgi json_proto POST (null) [14:38:06]execute_cgi path=json_proto method=POST [14:38:06]POST find Content-Length [14:38:06]Host: 172.17.44.67:8080 [14:38:06]Content-Length: 800 [14:38:06]Content-Type: application/json [14:38:06] [14:38:06]POST finish read [14:38:06]Found Content-Length = 800 [14:38:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:06]execute_script... [14:38:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:06]POST & json_proto [14:38:06]process_json_proto [14:38:06]json parsed OK: [14:38:06]protocol is kg_v1.0 [14:38:06]action value=close_receipt [14:38:06]process_action close_receipt [14:38:06]cmd_close_receipt [14:38:06]MH_GetDate [14:38:06]Write to MH i2c: F0 00 00 66 00 55 [14:38:06]Write i2c OK [14:38:06]MH_I2C_Read... [14:38:06]Read from MH i2c: F0 [14:38:06]MH_I2C_Read... [14:38:06]Read from MH i2c: F0 09 00 [14:38:06]MH_I2C_Read... [14:38:06]Read from MH i2c: F0 09 00 66 00 00 4F 21 11 67 F1 C7 6B 64 CD [14:38:06]GetLastDocTimeStamp 1729175858 [14:38:06]current date 1729175887 [14:38:06]FM_GetShiftState [14:38:06]SAM_PROTO_GetShiftState [14:38:06]wFMCommunicate request_size=4 [14:38:06]MH_SAM_APDU [14:38:06]CAPDU: 80 13 01 00 [14:38:06]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [14:38:06]Write i2c OK [14:38:06]MH_I2C_Read... [14:38:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:06]Read from MH i2c: E2 [14:38:06]MH_I2C_Read... [14:38:06]Read from MH i2c: E2 0E 00 [14:38:06]MH_I2C_Read... [14:38:06]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 EC [14:38:06]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [14:38:06]wFMCommunicate OK [14:38:06]SAM_PROTO_GetShiftState done [14:38:06]FM_GetShiftState done [14:38:06]opened in 1729125927 [14:38:06]opened+sec_in_day 1729212327 [14:38:06]quantity*price = 20003 [14:38:06]sum+1 = 20004 [14:38:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 112 17.10.2024 14:38 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871843 ФД: 82186 ФПД: 10270895797461 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T143807&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82186&fm=10270895797461&tin=02508201610067®Number=0000000000091680&sum=20003 [14:38:07]StoreToDocumentArchive [14:38:07]shift 525 fd 82186 [14:38:07]save to /storage/0525/doc_00082186 [14:38:07]save last doc name /storage/0525/doc_00082186 to /storage/kkm_last_doc_name [14:38:07]save OK [14:38:07]Clear old archive folders... [14:38:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:38:07]tlvbuf is 01BE4080 [14:38:07]SAM_PROTO_ClearQueue [14:38:07]wFMCommunicate request_size=4 [14:38:07]MH_SAM_APDU [14:38:07]CAPDU: 80 09 00 00 [14:38:07]Write to MH i2c: E2 08 00 74 00 80 09 00 00 00 00 00 00 E6 [14:38:07]Write i2c OK [14:38:07]MH_I2C_Read... [14:38:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:07]Read from MH i2c: E2 [14:38:07]MH_I2C_Read... [14:38:07]Read from MH i2c: E2 03 00 [14:38:07]MH_I2C_Read... [14:38:07]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [14:38:07]RAPDU: 90 00 [14:38:07]wFMCommunicate OK [14:38:07]SAM_PROTO_ClearQueue done [14:38:07]KKMCreateOFDPacket [14:38:07]OFDProtocolAddRootSTLVToBuf [14:38:07]FM_MakeSignedData [14:38:07]FM_MakeSignedData [14:38:07]SAM_PROTO_SignData [14:38:07]wFMCommunicate request_size=4 [14:38:07]MH_SAM_APDU [14:38:07]CAPDU: 80 0D 01 02 [14:38:07]Write to MH i2c: E2 08 00 75 00 80 0D 01 02 00 00 00 00 EE [14:38:07]Write i2c OK [14:38:07]MH_I2C_Read... [14:38:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:07]Read from MH i2c: E2 [14:38:07]MH_I2C_Read... [14:38:07]Read from MH i2c: E2 03 00 [14:38:07]MH_I2C_Read... [14:38:07]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [14:38:07]RAPDU: 90 00 [14:38:07]wFMCommunicate OK [14:38:07]wFMCommunicate request_size=255 [14:38:07]MH_SAM_APDU [14:38:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 4F 21 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0A 41 01 00 35 04 06 00 09 [14:38:08]Write to MH i2c: E2 02 01 76 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 4F 21 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0A 41 01 00 35 04 06 00 09 00 00 FE [14:38:08]Write i2c OK [14:38:08]MH_I2C_Read... [14:38:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:08]Read from MH i2c: E2 [14:38:08]MH_I2C_Read... [14:38:08]Read from MH i2c: E2 03 00 [14:38:08]MH_I2C_Read... [14:38:08]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [14:38:08]RAPDU: 90 00 [14:38:08]wFMCommunicate OK [14:38:08]wFMCommunicate request_size=10 [14:38:08]MH_SAM_APDU [14:38:08]CAPDU: 80 0D 02 02 05 57 61 18 74 D5 [14:38:08]Write to MH i2c: E2 0D 00 77 00 80 0D 02 02 05 00 57 61 18 74 D5 00 00 14 [14:38:08]Write i2c OK [14:38:08]MH_I2C_Read... [14:38:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:08]Read from MH i2c: E2 [14:38:08]MH_I2C_Read... [14:38:08]Read from MH i2c: E2 03 00 [14:38:08]MH_I2C_Read... [14:38:08]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [14:38:08]RAPDU: 90 00 [14:38:08]wFMCommunicate OK [14:38:08]wFMCommunicate request_size=4 [14:38:08]MH_SAM_APDU [14:38:08]CAPDU: 80 0D 03 02 [14:38:08]Write to MH i2c: E2 08 00 78 00 80 0D 03 02 00 00 00 00 F3 [14:38:08]Write i2c OK [14:38:08]MH_I2C_Read... [14:38:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:08]Read from MH i2c: E2 [14:38:08]MH_I2C_Read... [14:38:08]Read from MH i2c: E2 0B 00 [14:38:08]MH_I2C_Read... [14:38:08]Read from MH i2c: E2 0B 00 78 00 00 DC 00 63 C2 D0 34 45 78 90 00 B6 [14:38:08]RAPDU: DC 00 63 C2 D0 34 45 78 90 00 [14:38:08]wFMCommunicate OK [14:38:08]SAM_PROTO_SignData done [14:38:08]FM_MakeSignedData done [14:38:08]CreateOFDProtocolMessage [14:38:08]wFMCommunicate request_size=4 [14:38:08]MH_SAM_APDU [14:38:08]CAPDU: 80 11 00 00 [14:38:08]Write to MH i2c: E2 08 00 79 00 80 11 00 00 00 00 00 00 F3 [14:38:08]Write i2c OK [14:38:08]MH_I2C_Read... [14:38:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:08]Read from MH i2c: E2 [14:38:08]MH_I2C_Read... [14:38:08]Read from MH i2c: E2 17 00 [14:38:08]MH_I2C_Read... [14:38:08]Read from MH i2c: E2 17 00 79 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 45 [14:38:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:38:08]wFMCommunicate OK [14:38:08]CreateOFDProtocolMessage done [14:38:08]OFDSenderStorePacket 82186 [14:38:08]StoreOFDPacket docnum=82186 [14:38:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 C3 51 07 01 E9 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 4F 21 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0A 41 01 00 35 04 06 00 09 57 61 18 74 D5 DC 00 63 C2 D0 34 45 78 [14:38:08]CheckFolder [14:38:08]dirname=/storage/ofd_packets [14:38:08]CheckFolder done [14:38:08]ProducePacketName [14:38:08]name=ofd_packets/00082186 [14:38:08]NVStorageSaveData ofd_packets/00082186 [14:38:08]File name is /storage/ofd_packets/00082186 [14:38:08]Write 301 bytes [14:38:08]NVStorageSaveData done [14:38:08]OFDSenderStorePacket done [14:38:08]KKMCreateOFDPacket done [14:38:08]NVStorageSaveData kkm_last_timestamp [14:38:08]File name is /storage/kkm_last_timestamp [14:38:08]Write 4 bytes [14:38:08]NVStorageSaveData done [14:38:08]ExternCall_PrintAddStr [14:38:08]wPrintStart [14:38:08]Write to MH i2c: 01 00 00 7A 00 7A [14:38:08]Write i2c OK [14:38:08]MH_I2C_Read... [14:38:08]Read from MH i2c: 01 [14:38:08]MH_I2C_Read... [14:38:08]Read from MH i2c: 01 07 00 [14:38:08]MH_I2C_Read... [14:38:08]Read from MH i2c: 01 07 00 7A 00 00 00 00 00 00 FF 0F 8F [14:38:08]RasterBufferAndPrint [14:38:08]line Счет N : (1)918692 [14:38:08]line ИНН: 02508201610067 [14:38:08]line Контрольно-Кассовый Чек [14:38:08]line ПРОДАЖА [14:38:08]line ТРК (МРК, ГНК) : 22 [14:38:08]line Товар: 2710124130 [14:38:08]line Аи-92-К-4 [14:38:08]line 2.990 * 66.90 [14:38:08]line = 200.03 [14:38:08]line НДС 12% НСП 1% [14:38:08]line > о реализуемом товаре [14:38:08]line ИТОГО: 200.03 [14:38:08]line НСП 1% : 1.77 [14:38:08]line НДС 12% : 21.24 [14:38:08]line Наличными: 0.00 [14:38:08]line Безнал.: 200.03 [14:38:08]line Место: АЗС № 114 "Партнер Нефть" [14:38:08]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [14:38:08]line СНО: Общий режим [14:38:08]line Чек 112 17.10.2024 14:38 [14:38:08]line Смена: 525 ФФД: 1.0 [14:38:08]line ЗНМ: 0300000086 [14:38:08]line РНМ: 0000000000091680 [14:38:08]line Версия ККМ: 001 [14:38:08]line Платежная система: O! деньги [14:38:08]line ФМ: 0000000000871843 [14:38:08]line ФД: 82186 [14:38:08]line ФПД: 10270895797461 [14:38:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T143807&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82186&fm=10270895797461&tin=02508201610067®Number=0000000000091680&sum=20003 [14:38:08]OFD Sender: Processing packet 82186 [packets to send 254, broken 253] [14:38:08]ProducePacketName [14:38:08]name=ofd_packets/00082186 [14:38:08]OFD Sender: To server: pG, [14:38:08]CommunicateWithHost lk.salyk.kg:30040 [14:38:08]ConnectInit lk.salyk.kg [14:38:08]written 0, free lines is 4095 [14:38:09]Write to MH i2c: 01 00 00 A4 00 A4 [14:38:09]Write i2c OK [14:38:09]MH_I2C_Read... [14:38:09]Read from MH i2c: 01 [14:38:09]MH_I2C_Read... [14:38:09]Read from MH i2c: 01 07 00 [14:38:09]MH_I2C_Read... [14:38:09]Read from MH i2c: 01 07 00 A4 00 00 00 00 00 00 E7 0C 9E [14:38:09]RasterBufferAndPrint [14:38:09]line [14:38:09]line [14:38:09]line [14:38:09]line [14:38:09]line [14:38:09]written 0, free lines is 3329 [14:38:09]MH_Cut [14:38:09]Write to MH i2c: D1 01 00 AB 00 01 7D [14:38:09]Write i2c OK [14:38:09]MH_I2C_Read... [14:38:09]Read from MH i2c: D1 [14:38:09]MH_I2C_Read... [14:38:09]Read from MH i2c: D1 01 00 [14:38:09]MH_I2C_Read... [14:38:09]Read from MH i2c: D1 01 00 AB 00 00 7C [14:38:09]Write to MH i2c: 01 00 00 AC 00 AC [14:38:09]Write i2c OK [14:38:09]MH_I2C_Read... [14:38:09]*** Cut start [14:38:09]*** Partial cut [14:38:09]*** CUTSNS_PIN = 1 [14:38:09]*** CUTSNS_PIN = 0 [14:38:10]*** Brake cut motor [14:38:10]Read from MH i2c: 01 [14:38:10]MH_I2C_Read... [14:38:10]*** Stop cut motor [14:38:10]*** Cut end [14:38:10]Read from MH i2c: 01 07 00 [14:38:10]MH_I2C_Read... [14:38:10]Read from MH i2c: 01 07 00 AC 00 00 00 00 00 00 FF 0F C1 [14:38:10]process_action close_receipt done [14:38:10]requested_data is exist [14:38:10]produce_requested_data [14:38:10]requested_item fm.sn is exist - process it [14:38:10]wFMCommunicate request_size=4 [14:38:10]MH_SAM_APDU [14:38:10]CAPDU: 80 11 00 00 [14:38:10]Write to MH i2c: E2 08 00 AD 00 80 11 00 00 00 00 00 00 27 [14:38:10]Write i2c OK [14:38:10]MH_I2C_Read... [14:38:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:10]Read from MH i2c: E2 [14:38:10]MH_I2C_Read... [14:38:10]Read from MH i2c: E2 17 00 [14:38:10]MH_I2C_Read... [14:38:10]Read from MH i2c: E2 17 00 AD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 79 [14:38:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:38:10]wFMCommunicate OK [14:38:10]requested_item fd.num is exist - process it [14:38:10]SAM_PROTO_GetFieldsCounters [14:38:10]wFMCommunicate request_size=4 [14:38:10]MH_SAM_APDU [14:38:10]CAPDU: 80 13 00 00 [14:38:10]Write to MH i2c: E2 08 00 AE 00 80 13 00 00 00 00 00 00 2A [14:38:10]Write i2c OK [14:38:10]MH_I2C_Read... [14:38:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:10]Read from MH i2c: E2 [14:38:10]MH_I2C_Read... [14:38:10]Read from MH i2c: E2 62 00 [14:38:10]MH_I2C_Read... [14:38:10]Read from MH i2c: E2 62 00 AE 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 0A 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [14:38:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 0A 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:38:10]wFMCommunicate OK [14:38:10]SAM_PROTO_GetFieldsCounters done [14:38:10]requested_item shift.num is exist - process it [14:38:10]requested_item shift.opened is exist - process it [14:38:10]req_shift_opened [14:38:10]FM_GetShiftState [14:38:10]SAM_PROTO_GetShiftState [14:38:10]wFMCommunicate request_size=4 [14:38:10]MH_SAM_APDU [14:38:10]CAPDU: 80 13 01 00 [14:38:10]Write to MH i2c: E2 08 00 AF 00 80 13 01 00 00 00 00 00 2C [14:38:10]Write i2c OK [14:38:10]MH_I2C_Read... [14:38:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:10]Read from MH i2c: E2 [14:38:10]MH_I2C_Read... [14:38:10]Read from MH i2c: E2 0E 00 [14:38:10]MH_I2C_Read... [14:38:10]Read from MH i2c: E2 0E 00 AF 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 34 [14:38:10]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [14:38:10]wFMCommunicate OK [14:38:10]SAM_PROTO_GetShiftState done [14:38:10]FM_GetShiftState done [14:38:10]req_shift_opened done [14:38:10]requested_item shift.open_date is exist - process it [14:38:10]req_shift_open_date [14:38:10]req_shift_open_date done [14:38:10]produce_requested_data done [14:38:10]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82186,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [14:38:10]process_action_free close_receipt [14:38:10]json_value_free [14:38:10]json_value_free done [14:38:10]process_json_proto returns [14:38:10]Send response to host [14:38:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82186,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [14:38:10]free response buf [14:38:10]execute_script done [14:38:10]execute_script returns [14:38:10]free content buf [14:38:10]Sock 10.Close socket [14:38:10]Sock 10.Thread stoped [14:38:11]Connected sock=11 [14:38:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 C3 51 07 01 E9 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 4F 21 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0A 41 01 00 35 04 06 00 09 57 61 18 74 D5 DC 00 63 C2 D0 34 45 78 [14:38:12]recv_with_timeout no data received [14:38:16]recv_with_timeout no data received [14:38:16]CommunicateWithHost answer receiving error [14:38:16]CommunicateWithHost err = -3 [14:38:16]OFD Sender: Server communicate error [14:38:21]OFD Sender: Processing packet 82186 [packets to send 254, broken 253] [14:38:21]ProducePacketName [14:38:21]name=ofd_packets/00082186 [14:38:21]OFD Sender: To server: pG, [14:38:21]CommunicateWithHost lk.salyk.kg:30040 [14:38:21]ConnectInit lk.salyk.kg [14:38:26]ConnectInit Can't take IP for lk.salyk.kg [14:38:26]CommunicateWithHost connect error [14:38:26]CommunicateWithHost err = -1 [14:38:26]OFD Sender: Server communicate error [14:38:31]OFD Sender: Processing packet 82186 [packets to send 254, broken 253] [14:38:31]ProducePacketName [14:38:31]name=ofd_packets/00082186 [14:38:31]OFD Sender: To server: pG, [14:38:31]CommunicateWithHost lk.salyk.kg:30040 [14:38:31]ConnectInit lk.salyk.kg [14:38:33]Connected sock=10 [14:38:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 C3 51 07 01 E9 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 4F 21 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0A 41 01 00 35 04 06 00 09 57 61 18 74 D5 DC 00 63 C2 D0 34 45 78 [14:38:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 39 B3 47 00 4C 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0A 41 01 00 F4 03 04 00 A5 C6 10 67 B6 04 01 00 00 BB A1 56 21 7A 1E BC 8D [14:38:34]CommunicateWithHost err = 0 [14:38:34]CheckOFDResponse [14:38:34]1017 (14) - 77093643461234 [14:38:34]1041 (16) - 0000000000871843 [14:38:34]1040 (4) - 82186 [14:38:34]1012 (4) - 17.10.2024 08:11 [14:38:34]1206 (1) - 0 [14:38:34]OFD Sender: Remove packet 82186 [14:38:34]ProducePacketName [14:38:34]name=ofd_packets/00082186 [14:38:34]NVStorageDeleteData [14:38:34]OFD Sender: No OFD packet to send [14:38:35]recv_with_timeout no data received [14:38:39]OFD Sender: No OFD packet to send [14:38:44]OFD Sender: No OFD packet to send [14:38:45]recv_with_timeout no data received [14:38:49]OFD Sender: No OFD packet to send [14:38:54]OFD Sender: No OFD packet to send [14:38:56]recv_with_timeout no data received [14:38:59]OFD Sender: No OFD packet to send [14:39:04]OFD Sender: No OFD packet to send [14:39:07]recv_with_timeout no data received [14:39:09]OFD Sender: No OFD packet to send [14:39:14]OFD Sender: No OFD packet to send [14:39:17]recv_with_timeout no data received [14:39:19]OFD Sender: No OFD packet to send [14:39:24]OFD Sender: No OFD packet to send [14:39:28]recv_with_timeout no data received [14:39:29]OFD Sender: No OFD packet to send [14:39:34]OFD Sender: No OFD packet to send [14:39:39]recv_with_timeout no data received [14:39:39]OFD Sender: No OFD packet to send [14:39:44]OFD Sender: No OFD packet to send [14:39:49]OFD Sender: No OFD packet to send [14:39:54]OFD Sender: No OFD packet to send [14:39:59]OFD Sender: No OFD packet to send [14:40:04]OFD Sender: No OFD packet to send [14:40:09]OFD Sender: No OFD packet to send [14:40:14]OFD Sender: No OFD packet to send [14:40:19]OFD Sender: No OFD packet to send [14:40:24]OFD Sender: No OFD packet to send [14:40:29]OFD Sender: No OFD packet to send [14:40:34]OFD Sender: No OFD packet to send [14:40:39]OFD Sender: No OFD packet to send [14:40:44]OFD Sender: No OFD packet to send [14:40:49]OFD Sender: No OFD packet to send [14:40:54]OFD Sender: No OFD packet to send [14:40:59]OFD Sender: No OFD packet to send [14:41:04]OFD Sender: No OFD packet to send [14:41:06]accept exits with 9 [14:41:06]New connection [14:41:06]New thread 3066957156 created [14:41:06]Thread 3066813796 joined [14:41:06]Waiting for new connection... [14:41:06] Sock 9.Parse request [14:41:06]Sock 9.Check first char [14:41:06]Sock 9.First char is OK [14:41:06]request: POST /json_proto HTTP/1.0 [14:41:06]Method: POST [14:41:06]URL: /json_proto [14:41:06]Method is POST - this is cgi request [14:41:06]url: /json_proto [14:41:06]query_string will be loaded in cgi processing [14:41:06]execute_cgi json_proto POST (null) [14:41:06]execute_cgi path=json_proto method=POST [14:41:06]POST find Content-Length [14:41:06]Host: 172.17.44.67:8080 [14:41:06]Content-Length: 803 [14:41:06]Content-Type: application/json [14:41:06] [14:41:06]POST finish read [14:41:06]Found Content-Length = 803 [14:41:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:06]execute_script... [14:41:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:06]POST & json_proto [14:41:06]process_json_proto [14:41:06]json parsed OK: [14:41:06]protocol is kg_v1.0 [14:41:06]action value=close_receipt [14:41:06]process_action close_receipt [14:41:06]cmd_close_receipt [14:41:06]MH_GetDate [14:41:06]Write to MH i2c: F0 00 00 B0 00 9F [14:41:06]Write i2c OK [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: F0 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: F0 09 00 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: F0 09 00 B0 00 00 03 22 11 67 F1 C7 6B 64 CC [14:41:06]GetLastDocTimeStamp 1729175887 [14:41:06]current date 1729176067 [14:41:06]FM_GetShiftState [14:41:06]SAM_PROTO_GetShiftState [14:41:06]wFMCommunicate request_size=4 [14:41:06]MH_SAM_APDU [14:41:06]CAPDU: 80 13 01 00 [14:41:06]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [14:41:06]Write i2c OK [14:41:06]MH_I2C_Read... [14:41:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:07]Read from MH i2c: E2 [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: E2 0E 00 [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 36 [14:41:07]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [14:41:07]wFMCommunicate OK [14:41:07]SAM_PROTO_GetShiftState done [14:41:07]FM_GetShiftState done [14:41:07]opened in 1729125927 [14:41:07]opened+sec_in_day 1729212327 [14:41:07]quantity*price = 150032 [14:41:07]sum+1 = 150033 [14:41:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.32 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.32 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 113 17.10.2024 14:41 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871843 ФД: 82187 ФПД: 18158696246533 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T144107&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82187&fm=18158696246533&tin=02508201610067®Number=0000000000091680&sum=150032 [14:41:08]StoreToDocumentArchive [14:41:08]shift 525 fd 82187 [14:41:08]save to /storage/0525/doc_00082187 [14:41:08]save last doc name /storage/0525/doc_00082187 to /storage/kkm_last_doc_name [14:41:08]save OK [14:41:08]Clear old archive folders... [14:41:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:41:08]tlvbuf is 01BE9300 [14:41:08]SAM_PROTO_ClearQueue [14:41:08]wFMCommunicate request_size=4 [14:41:08]MH_SAM_APDU [14:41:08]CAPDU: 80 09 00 00 [14:41:08]Write to MH i2c: E2 08 00 BE 00 80 09 00 00 00 00 00 00 30 [14:41:08]Write i2c OK [14:41:08]MH_I2C_Read... [14:41:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:08]Read from MH i2c: E2 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: E2 03 00 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [14:41:08]RAPDU: 90 00 [14:41:08]wFMCommunicate OK [14:41:08]SAM_PROTO_ClearQueue done [14:41:08]KKMCreateOFDPacket [14:41:08]OFDProtocolAddRootSTLVToBuf [14:41:08]FM_MakeSignedData [14:41:08]FM_MakeSignedData [14:41:08]SAM_PROTO_SignData [14:41:08]wFMCommunicate request_size=4 [14:41:08]MH_SAM_APDU [14:41:08]CAPDU: 80 0D 01 02 [14:41:08]Write to MH i2c: E2 08 00 BF 00 80 0D 01 02 00 00 00 00 38 [14:41:08]Write i2c OK [14:41:08]MH_I2C_Read... [14:41:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:08]Read from MH i2c: E2 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: E2 03 00 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [14:41:08]RAPDU: 90 00 [14:41:08]wFMCommunicate OK [14:41:08]wFMCommunicate request_size=255 [14:41:08]MH_SAM_APDU [14:41:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 03 22 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0B 41 01 00 35 04 06 00 10 [14:41:08]Write to MH i2c: E2 02 01 C0 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 03 22 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0B 41 01 00 35 04 06 00 10 00 00 E4 [14:41:08]Write i2c OK [14:41:08]MH_I2C_Read... [14:41:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:08]Read from MH i2c: E2 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: E2 03 00 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [14:41:08]RAPDU: 90 00 [14:41:08]wFMCommunicate OK [14:41:08]wFMCommunicate request_size=10 [14:41:08]MH_SAM_APDU [14:41:08]CAPDU: 80 0D 02 02 05 83 E6 A3 AD 05 [14:41:08]Write to MH i2c: E2 0D 00 C1 00 80 0D 02 02 05 00 83 E6 A3 AD 05 00 00 03 [14:41:08]Write i2c OK [14:41:08]MH_I2C_Read... [14:41:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:08]Read from MH i2c: E2 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: E2 03 00 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [14:41:08]RAPDU: 90 00 [14:41:08]wFMCommunicate OK [14:41:08]wFMCommunicate request_size=4 [14:41:08]MH_SAM_APDU [14:41:08]CAPDU: 80 0D 03 02 [14:41:08]Write to MH i2c: E2 08 00 C2 00 80 0D 03 02 00 00 00 00 3D [14:41:08]Write i2c OK [14:41:08]MH_I2C_Read... [14:41:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:08]Read from MH i2c: E2 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: E2 0B 00 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: E2 0B 00 C2 00 00 0F CD FE CC B8 C1 88 E1 90 00 C6 [14:41:08]RAPDU: 0F CD FE CC B8 C1 88 E1 90 00 [14:41:08]wFMCommunicate OK [14:41:08]SAM_PROTO_SignData done [14:41:08]FM_MakeSignedData done [14:41:08]CreateOFDProtocolMessage [14:41:08]wFMCommunicate request_size=4 [14:41:08]MH_SAM_APDU [14:41:08]CAPDU: 80 11 00 00 [14:41:08]Write to MH i2c: E2 08 00 C3 00 80 11 00 00 00 00 00 00 3D [14:41:08]Write i2c OK [14:41:08]MH_I2C_Read... [14:41:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:08]Read from MH i2c: E2 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: E2 17 00 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: E2 17 00 C3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 8F [14:41:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:41:08]wFMCommunicate OK [14:41:08]CreateOFDProtocolMessage done [14:41:08]OFDSenderStorePacket 82187 [14:41:08]StoreOFDPacket docnum=82187 [14:41:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 09 23 07 01 32 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 03 22 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0B 41 01 00 35 04 06 00 10 83 E6 A3 AD 05 0F CD FE CC B8 C1 88 E1 [14:41:08]CheckFolder [14:41:08]dirname=/storage/ofd_packets [14:41:08]CheckFolder done [14:41:08]ProducePacketName [14:41:08]name=ofd_packets/00082187 [14:41:08]NVStorageSaveData ofd_packets/00082187 [14:41:08]File name is /storage/ofd_packets/00082187 [14:41:08]Write 301 bytes [14:41:08]NVStorageSaveData done [14:41:08]OFDSenderStorePacket done [14:41:08]KKMCreateOFDPacket done [14:41:08]NVStorageSaveData kkm_last_timestamp [14:41:08]File name is /storage/kkm_last_timestamp [14:41:08]Write 4 bytes [14:41:08]NVStorageSaveData done [14:41:08]ExternCall_PrintAddStr [14:41:08]wPrintStart [14:41:08]Write to MH i2c: 01 00 00 C4 00 C4 [14:41:08]Write i2c OK [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: 01 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: 01 07 00 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: 01 07 00 C4 00 00 00 00 00 00 FF 0F D9 [14:41:08]RasterBufferAndPrint [14:41:08]line Счет N : (1)918693 [14:41:08]line ИНН: 02508201610067 [14:41:08]line Контрольно-Кассовый Чек [14:41:08]line ПРОДАЖА [14:41:08]line ТРК (МРК, ГНК) : 12 [14:41:08]line Товар: 2710124500 [14:41:08]line Аи-95-К-5 [14:41:08]line 20.220 * 74.20 [14:41:08]line = 1500.32 [14:41:08]line НДС 12% НСП 1% [14:41:08]line > о реализуемом товаре [14:41:08]line ИТОГО: 1500.32 [14:41:08]line НСП 1% : 13.28 [14:41:08]line НДС 12% : 159.33 [14:41:08]line Наличными: 0.00 [14:41:08]line Безнал.: 1500.32 [14:41:08]line Место: АЗС № 114 "Партнер Нефть" [14:41:08]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [14:41:08]line СНО: Общий режим [14:41:08]line Чек 113 17.10.2024 14:41 [14:41:08]line Смена: 525 ФФД: 1.0 [14:41:08]line ЗНМ: 0300000086 [14:41:08]line РНМ: 0000000000091680 [14:41:08]line Версия ККМ: 001 [14:41:08]line Платежная система: O! деньги [14:41:08]line ФМ: 0000000000871843 [14:41:08]line ФД: 82187 [14:41:08]line ФПД: 18158696246533 [14:41:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T144107&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82187&fm=18158696246533&tin=02508201610067®Number=0000000000091680&sum=150032 [14:41:09]written 0, free lines is 4095 [14:41:09]OFD Sender: Processing packet 82187 [packets to send 254, broken 253] [14:41:09]ProducePacketName [14:41:09]name=ofd_packets/00082187 [14:41:09]OFD Sender: To server: pG, [14:41:09]CommunicateWithHost lk.salyk.kg:30040 [14:41:09]ConnectInit lk.salyk.kg [14:41:09]Write to MH i2c: 01 00 00 EE 00 EE [14:41:09]Write i2c OK [14:41:09]MH_I2C_Read... [14:41:09]Read from MH i2c: 01 [14:41:09]MH_I2C_Read... [14:41:09]Read from MH i2c: 01 07 00 [14:41:09]MH_I2C_Read... [14:41:09]Read from MH i2c: 01 07 00 EE 00 00 00 00 00 00 E5 0C E6 [14:41:09]RasterBufferAndPrint [14:41:09]line [14:41:09]line [14:41:09]line [14:41:09]line [14:41:09]line [14:41:09]written 0, free lines is 3307 [14:41:09]MH_Cut [14:41:09]Write to MH i2c: D1 01 00 F5 00 01 C7 [14:41:09]Write i2c OK [14:41:09]MH_I2C_Read... [14:41:09]Read from MH i2c: D1 [14:41:09]MH_I2C_Read... [14:41:09]Read from MH i2c: D1 01 00 [14:41:09]MH_I2C_Read... [14:41:09]Read from MH i2c: D1 01 00 F5 00 00 C6 [14:41:09]Write to MH i2c: 01 00 00 F6 00 F6 [14:41:09]Write i2c OK [14:41:09]MH_I2C_Read... [14:41:10]*** Cut start [14:41:10]*** Partial cut [14:41:10]*** CUTSNS_PIN = 1 [14:41:10]*** CUTSNS_PIN = 0 [14:41:10]*** Brake cut motor [14:41:10]Read from MH i2c: 01 [14:41:10]MH_I2C_Read... [14:41:10]*** Stop cut motor [14:41:10]*** Cut end [14:41:10]Read from MH i2c: 01 07 00 [14:41:10]MH_I2C_Read... [14:41:10]Read from MH i2c: 01 07 00 F6 00 00 00 00 00 00 FF 0F 0B [14:41:10]process_action close_receipt done [14:41:10]requested_data is exist [14:41:10]produce_requested_data [14:41:10]requested_item fm.sn is exist - process it [14:41:10]wFMCommunicate request_size=4 [14:41:10]MH_SAM_APDU [14:41:10]CAPDU: 80 11 00 00 [14:41:10]Write to MH i2c: E2 08 00 F7 00 80 11 00 00 00 00 00 00 71 [14:41:10]Write i2c OK [14:41:10]MH_I2C_Read... [14:41:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:10]Read from MH i2c: E2 [14:41:10]MH_I2C_Read... [14:41:10]Read from MH i2c: E2 17 00 [14:41:10]MH_I2C_Read... [14:41:10]Read from MH i2c: E2 17 00 F7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C3 [14:41:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:41:10]wFMCommunicate OK [14:41:10]requested_item fd.num is exist - process it [14:41:10]SAM_PROTO_GetFieldsCounters [14:41:10]wFMCommunicate request_size=4 [14:41:10]MH_SAM_APDU [14:41:10]CAPDU: 80 13 00 00 [14:41:10]Write to MH i2c: E2 08 00 F8 00 80 13 00 00 00 00 00 00 74 [14:41:10]Write i2c OK [14:41:10]MH_I2C_Read... [14:41:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:11]Read from MH i2c: E2 [14:41:11]MH_I2C_Read... [14:41:11]Read from MH i2c: E2 62 00 [14:41:11]MH_I2C_Read... [14:41:11]Read from MH i2c: E2 62 00 F8 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 0B 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [14:41:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 0B 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:41:11]wFMCommunicate OK [14:41:11]SAM_PROTO_GetFieldsCounters done [14:41:11]requested_item shift.num is exist - process it [14:41:11]requested_item shift.opened is exist - process it [14:41:11]req_shift_opened [14:41:11]FM_GetShiftState [14:41:11]SAM_PROTO_GetShiftState [14:41:11]wFMCommunicate request_size=4 [14:41:11]MH_SAM_APDU [14:41:11]CAPDU: 80 13 01 00 [14:41:11]Write to MH i2c: E2 08 00 F9 00 80 13 01 00 00 00 00 00 76 [14:41:11]Write i2c OK [14:41:11]MH_I2C_Read... [14:41:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:11]Read from MH i2c: E2 [14:41:11]MH_I2C_Read... [14:41:11]Read from MH i2c: E2 0E 00 [14:41:11]MH_I2C_Read... [14:41:11]Read from MH i2c: E2 0E 00 F9 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 7E [14:41:11]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [14:41:11]wFMCommunicate OK [14:41:11]SAM_PROTO_GetShiftState done [14:41:11]FM_GetShiftState done [14:41:11]req_shift_opened done [14:41:11]requested_item shift.open_date is exist - process it [14:41:11]req_shift_open_date [14:41:11]req_shift_open_date done [14:41:11]produce_requested_data done [14:41:11]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82187,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [14:41:11]process_action_free close_receipt [14:41:11]json_value_free [14:41:11]json_value_free done [14:41:11]process_json_proto returns [14:41:11]Send response to host [14:41:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82187,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [14:41:11]free response buf [14:41:11]execute_script done [14:41:11]execute_script returns [14:41:11]free content buf [14:41:11]Sock 9.Close socket [14:41:11]Sock 9.Thread stoped [14:41:14]ConnectInit Can't take IP for lk.salyk.kg [14:41:14]CommunicateWithHost connect error [14:41:14]CommunicateWithHost err = -1 [14:41:14]OFD Sender: Server communicate error [14:41:16]recv_with_timeout no data received [14:41:19]OFD Sender: Processing packet 82187 [packets to send 254, broken 253] [14:41:19]ProducePacketName [14:41:19]name=ofd_packets/00082187 [14:41:19]OFD Sender: To server: pG, [14:41:19]CommunicateWithHost lk.salyk.kg:30040 [14:41:19]ConnectInit lk.salyk.kg [14:41:24]ConnectInit Can't take IP for lk.salyk.kg [14:41:24]CommunicateWithHost connect error [14:41:24]CommunicateWithHost err = -1 [14:41:24]OFD Sender: Server communicate error [14:41:29]OFD Sender: Processing packet 82187 [packets to send 254, broken 253] [14:41:29]ProducePacketName [14:41:29]name=ofd_packets/00082187 [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]recv_with_timeout no data received [14:41:31]Connected sock=7 [14:41:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 09 23 07 01 32 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 03 22 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0B 41 01 00 35 04 06 00 10 83 E6 A3 AD 05 0F CD FE CC B8 C1 88 E1 [14:41:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 73 D1 47 00 9B 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0B 41 01 00 F4 03 04 00 58 C7 10 67 B6 04 01 00 00 BA 93 DF CA CF 22 75 E9 [14:41:33]CommunicateWithHost err = 0 [14:41:33]CheckOFDResponse [14:41:33]1017 (14) - 77093643461234 [14:41:33]1041 (16) - 0000000000871843 [14:41:33]1040 (4) - 82187 [14:41:33]1012 (4) - 17.10.2024 08:14 [14:41:33]1206 (1) - 0 [14:41:33]OFD Sender: Remove packet 82187 [14:41:33]ProducePacketName [14:41:33]name=ofd_packets/00082187 [14:41:33]NVStorageDeleteData [14:41:33]OFD Sender: No OFD packet to send [14:41:38]OFD Sender: No OFD packet to send [14:41:40]recv_with_timeout no data received [14:41:43]OFD Sender: No OFD packet to send [14:41:48]OFD Sender: No OFD packet to send [14:41:51]recv_with_timeout no data received [14:41:53]OFD Sender: No OFD packet to send [14:41:58]OFD Sender: No OFD packet to send [14:42:03]OFD Sender: No OFD packet to send [14:42:09]OFD Sender: No OFD packet to send [14:42:14]OFD Sender: No OFD packet to send [14:42:19]OFD Sender: No OFD packet to send [14:42:24]OFD Sender: No OFD packet to send [14:42:29]OFD Sender: No OFD packet to send [14:42:34]OFD Sender: No OFD packet to send [14:42:39]OFD Sender: No OFD packet to send [14:42:44]OFD Sender: No OFD packet to send [14:42:49]OFD Sender: No OFD packet to send [14:42:54]OFD Sender: No OFD packet to send [14:42:59]OFD Sender: No OFD packet to send [14:43:04]OFD Sender: No OFD packet to send [14:37:34]Method is POST - this is cgi request [14:37:34]url: /json_proto [14:37:34]query_string will be loaded in cgi processing [14:37:34]execute_cgi json_proto POST (null) [14:37:34]execute_cgi path=json_proto method=POST [14:37:34]POST find Content-Length [14:37:34]Host: 172.17.44.67:8080 [14:37:34]Content-Length: 331 [14:37:34]Content-Type: application/json [14:37:34] [14:37:34]POST finish read [14:37:34]Found Content-Length = 331 [14:37:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:37:34]execute_script... [14:37:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:37:34]POST & json_proto [14:37:34]process_json_proto [14:37:34]json parsed OK: [14:37:34]protocol is kg_v1.0 [14:37:34]action value=get_value [14:37:34]process_action get_value [14:37:34]cmd_get_value [14:37:34]process_action get_value done [14:37:34]requested_data is exist [14:37:34]produce_requested_data [14:37:34]requested_item fm.sale.total is exist - process it [14:37:34]SAM_PROTO_GetFMData [14:37:34]wFMCommunicate request_size=4 [14:37:34]MH_SAM_APDU [14:37:34]CAPDU: 80 13 03 00 [14:37:34]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [14:37:34]Write i2c OK [14:37:34]MH_I2C_Read... [14:37:34]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:37:34]Read from MH i2c: E2 [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: E2 FD 00 [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: E2 FD 00 13 00 00 C7 04 85 04 C3 04 6E 04 04 00 EE 3C 01 00 69 04 A3 00 6F 04 04 00 57 3A 01 00 B1 04 05 00 7B 22 D7 7A 01 70 04 05 00 1C 40 D5 40 01 72 04 04 00 5F E2 01 3A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 06 97 3E 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4B 79 5A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 97 02 00 00 B1 04 04 00 90 01 0B 13 70 04 04 00 28 BF 0A 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 33 BB 05 02 EF 90 00 5B [14:37:34]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 EE 3C 01 00 69 04 A3 00 6F 04 04 00 57 3A 01 00 B1 04 05 00 7B 22 D7 7A 01 70 04 05 00 1C 40 D5 40 01 72 04 04 00 5F E2 01 3A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 06 97 3E 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4B 79 5A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 97 02 00 00 B1 04 04 00 90 01 0B 13 70 04 04 00 28 BF 0A 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 33 BB 05 02 EF 90 00 [14:37:34]wFMCommunicate OK [14:37:34]wFMCommunicate request_size=4 [14:37:34]MH_SAM_APDU [14:37:34]CAPDU: 80 17 00 00 [14:37:34]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [14:37:34]Write i2c OK [14:37:34]MH_I2C_Read... [14:37:34]Connected sock=7 [14:37:34]Data to sent: 87 95 F6 70 47 2C 01 00 3[14:43:09]OFD Sender: No OFD packet to send [14:43:14]OFD Sender: No OFD packet to send [14:43:19]OFD Sender: No OFD packet to send [14:43:24]OFD Sender: No OFD packet to send [14:43:29]OFD Sender: No OFD packet to send [14:43:34]OFD Sender: No OFD packet to send [14:43:39]OFD Sender: No OFD packet to send 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [14:37:35]wFMCommunicate OK [14:37:35]wFMCommunicate request_size=4 [14:37:35]MH_SAM_APDU [14:37:35]CAPDU: 80 17 00 00 [14:37:35]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [14:37:35]Write i2c OK [14:37:35]MH_I2C_Read... [14:37:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 29 C6 47 00 3E 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 08 41 01 00 F4 03 04 00 6B C6 10 67 B6 04 01 00 00 D7 91 20 17 25 1C 84 31 [14:37:35]CommunicateWithHost err = 0 [14:37:35]CheckOFDResponse [14:37:35]1017 (14) - 77093643461234 [14:37:35]1041 (16) - 0000000000871843 [14:37:35]1040 (4) - 82184 [14:37:35]1012 (4) - 17.10.2024 08:10 [14:37:35]1206 (1) - 0 [14:37:35]OFD Sender: Remove packet 82184 [14:37:35]ProducePacketName [14:37:35]name=ofd_packets/00082184 [14:37:35]NVStorageDeleteData [14:37:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [14:37:35]Read from MH i2c: E2 [14:37:35]MH_I2C_Read... [14:37:35]Read from MH i2c: E2 E4 00 [14:37:35]MH_I2C_Read... [14:37:36]Read from MH i2c: E2 E4 00 17 00 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 77 [14:37:36]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:37:36]wFMCommunicate OK [14:37:36]SAM_PROTO_GetFMData done [14:37:36]requested_item fm.sale_refund.total is exist - process it [14:37:36]requested_item fm.buy.total is exist - process it [14:37:36]requested_item shift.sale.total is exist - process it [14:37:36]SAM_PROTO_GetShiftData [14:37:36]wFMCommunicate request_size=4 [14:37:36]MH_SAM_APDU [14:37:36]CAPDU: 80 13 02 00 [14:37:36]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [14:37:36]Write i2c OK [14:37:36]MH_I2C_Read... [14:37:36]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:37:36]Read from MH i2c: E2 [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: E2 FD 00 [14:37:36]MH_I2C_Read... [14:37:36]OFD Sender: No OFD packet to send [14:37:36]Read from MH i2c: E2 FD 00 18 00 00 B8 04 AA 04 B4 04 6E 04 04 00 6E 00 00 00 69 04 9B 00 6F 04 04 00 6C 00 00 00 B1 04 03 00 62 89 4C 70 04 03 00 E0 70 40 72 04 03 00 82 18 0C 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 5E 21 08 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 71 AD EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 A0 68 06 70 04 03 00 A0 68 06 72 04 00 00 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 43 AE EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 83 [14:37:36]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 6E 00 00 00 69 04 9B 00 6F 04 04 00 6C 00 00 00 B1 04 03 00 62 89 4C 70 04 03 00 E0 70 40 72 04 03 00 82 18 0C 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 5E 21 08 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 71 AD EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 A0 68 06 70 04 03 00 A0 68 06 72 04 00 00 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 43 AE EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [14:37:36]wFMCommunicate OK [14:37:36]wFMCommunicate request_size=4 [14:37:36]MH_SAM_APDU [14:37:36]CAPDU: 80 17 00 00 [14:37:36]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [14:37:36]Write i2c OK [14:37:36]MH_I2C_Read... [14:37:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:37:36]Read from MH i2c: E2 [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: E2 FD 00 [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: E2 FD 00 19 00 00 0B 00 F6 03 01 00 01 F7 03 02 00 85 0E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 5D [14:37:36]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 85 0E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 [14:37:36]wFMCommunicate OK [14:37:36]wFMCommunicate request_size=4 [14:37:36]MH_SAM_APDU [14:37:36]CAPDU: 80 17 00 00 [14:37:36]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [14:37:36]Write i2c OK [14:37:36]MH_I2C_Read... [14:37:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:37:37]Read from MH i2c: E2 [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: E2 FD 00 [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: E2 FD 00 1A 00 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 3C [14:37:37]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF [14:43:44]OFD Sender: No OFD packet to send [14:43:49]OFD Sender: No OFD packet to send [14:43:54]OFD Sender: No OFD packet to send [14:43:59]OFD Sender: No OFD packet to send [14:44:04]OFD Sender: No OFD packet to send [14:44:09]OFD Sender: No OFD packet to send [14:44:14]OFD Sender: No OFD packet to send [14:44:19]OFD Sender: No OFD packet to send [14:44:24]OFD Sender: No OFD packet to send [14:44:29]OFD Sender: No OFD packet to send [14:44:34]OFD Sender: No OFD packet to send [14:44:39]OFD Sender: No OFD packet to send [14:44:44]OFD Sender: No OFD packet to send [14:44:49]OFD Sender: No OFD packet to send [14:44:54]OFD Sender: No OFD packet to send [14:44:59]OFD Sender: No OFD packet to send [14:45:01]recv_with_timeout no data received [14:45:04]OFD Sender: No OFD packet to send [14:45:09]OFD Sender: No OFD packet to send [14:45:14]OFD Sender: No OFD packet to send [14:45:19]OFD Sender: No OFD packet to send [14:45:24]OFD Sender: No OFD packet to send [14:45:29]OFD Sender: No OFD packet to send [14:45:34]OFD Sender: No OFD packet to send [14:45:39]OFD Sender: No OFD packet to send [14:45:44]OFD Sender: No OFD packet to send [14:45:49]OFD Sender: No OFD packet to send [14:45:54]OFD Sender: No OFD packet to send [14:45:59]OFD Sender: No OFD packet to send [14:46:04]OFD Sender: No OFD packet to send [14:46:09]OFD Sender: No OFD packet to send [14:46:14]OFD Sender: No OFD packet to send [14:46:19]OFD Sender: No OFD packet to send [14:46:24]OFD Sender: No OFD packet to send [14:46:29]OFD Sender: No OFD packet to send [14:46:34]OFD Sender: No OFD packet to send [14:46:39]OFD Sender: No OFD packet to send [14:46:44]OFD Sender: No OFD packet to send [14:46:49]OFD Sender: No OFD packet to send [14:46:54]OFD Sender: No OFD packet to send [14:46:59]OFD Sender: No OFD packet to send [14:47:04]OFD Sender: No OFD packet to send [14:47:09]OFD Sender: No OFD packet to send [14:47:14]OFD Sender: No OFD packet to send [14:47:19]OFD Sender: No OFD packet to send [14:47:24]OFD Sender: No OFD packet to send [14:47:24]accept exits with 10 [14:47:24]New connection [14:47:24]New thread 3066813796 created [14:47:24]Thread 3066957156 joined [14:47:24]Waiting for new connection... [14:47:24] Sock 10.Parse request [14:47:24]Sock 10.Check first char [14:47:24]Sock 10.First char is OK [14:47:24]request: POST /json_proto HTTP/1.0 [14:47:24]Method: POST [14:47:24]URL: /json_proto [14:47:24]Method is POST - this is cgi request [14:47:24]url: /json_proto [14:47:24]query_string will be loaded in cgi processing [14:47:24]execute_cgi json_proto POST (null) [14:47:24]execute_cgi path=json_proto method=POST [14:47:24]POST find Content-Length [14:47:24]Host: 172.17.44.67:8080 [14:47:24]Content-Length: 754 [14:47:24]Content-Type: application/json [14:47:24] [14:47:24]POST finish read [14:47:24]Found Content-Length = 754 [14:47:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30036521", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:24]execute_script... [14:47:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30036521", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:24]POST & json_proto [14:47:24]process_json_proto [14:47:24]json parsed OK: [14:47:24]protocol is kg_v1.0 [14:47:24]action value=close_receipt [14:47:24]process_action close_receipt [14:47:24]cmd_close_receipt [14:47:24]MH_GetDate [14:47:24]Write to MH i2c: F0 00 00 FA 00 E9 [14:47:24]Write i2c OK [14:47:24]MH_I2C_Read... [14:47:24]Read from MH i2c: F0 [14:47:24]MH_I2C_Read... [14:47:24]Read from MH i2c: F0 09 00 [14:47:24]MH_I2C_Read... [14:47:24]Read from MH i2c: F0 09 00 FA 00 00 7D 23 11 67 F1 C7 6B 64 91 [14:47:24]GetLastDocTimeStamp 1729176067 [14:47:24]current date 1729176445 [14:47:24]FM_GetShiftState [14:47:24]SAM_PROTO_GetShiftState [14:47:24]wFMCommunicate request_size=4 [14:47:24]MH_SAM_APDU [14:47:24]CAPDU: 80 13 01 00 [14:47:24]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [14:47:24]Write i2c OK [14:47:24]MH_I2C_Read... [14:47:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:24]Read from MH i2c: E2 [14:47:24]MH_I2C_Read... [14:47:24]Read from MH i2c: E2 0E 00 [14:47:24]MH_I2C_Read... [14:47:24]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 80 [14:47:24]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [14:47:24]wFMCommunicate OK [14:47:24]SAM_PROTO_GetShiftState done [14:47:24]FM_GetShiftState done [14:47:24]opened in 1729125927 [14:47:24]opened+sec_in_day 1729212327 [14:47:24]quantity*price = 0 [14:47:24]sum+1 = 1 [14:47:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 114 17.10.2024 14:47 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30036521 ФМ: 0000000000871843 ФД: 82188 ФПД: 281054503023311 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T144725&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82188&fm=281054503023311&tin=02508201610067®Number=0000000000091680&sum=0 [14:47:25]StoreToDocumentArchive [14:47:25]shift 525 fd 82188 [14:47:25]save to /storage/0525/doc_00082188 [14:47:25]save last doc name /storage/0525/doc_00082188 to /storage/kkm_last_doc_name [14:47:25]save OK [14:47:25]Clear old archive folders... [14:47:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:47:25]tlvbuf is 01BEB580 [14:47:25]SAM_PROTO_ClearQueue [14:47:25]wFMCommunicate request_size=4 [14:47:25]MH_SAM_APDU [14:47:25]CAPDU: 80 09 00 00 [14:47:25]Write to MH i2c: E2 08 00 08 01 80 09 00 00 00 00 00 00 7B [14:47:25]Write i2c OK [14:47:25]MH_I2C_Read... [14:47:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:25]Read from MH i2c: E2 [14:47:25]MH_I2C_Read... [14:47:25]Read from MH i2c: E2 03 00 [14:47:25]MH_I2C_Read... [14:47:25]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [14:47:25]RAPDU: 90 00 [14:47:25]wFMCommunicate OK [14:47:25]SAM_PROTO_ClearQueue done [14:47:25]KKMCreateOFDPacket [14:47:25]OFDProtocolAddRootSTLVToBuf [14:47:25]FM_MakeSignedData [14:47:25]FM_MakeSignedData [14:47:25]SAM_PROTO_SignData [14:47:25]wFMCommunicate request_size=4 [14:47:25]MH_SAM_APDU [14:47:25]CAPDU: 80 0D 01 02 [14:47:25]Write to MH i2c: E2 08 00 09 01 80 0D 01 02 00 00 00 00 83 [14:47:25]Write i2c OK [14:47:25]MH_I2C_Read... [14:47:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:26]Read from MH i2c: E2 [14:47:26]MH_I2C_Read... [14:47:26]Read from MH i2c: E2 03 00 [14:47:26]MH_I2C_Read... [14:47:26]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [14:47:26]RAPDU: 90 00 [14:47:26]wFMCommunicate OK [14:47:26]wFMCommunicate request_size=255 [14:47:26]MH_SAM_APDU [14:47:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 7D 23 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0C 41 01 00 35 04 06 00 FF [14:47:26]Write to MH i2c: E2 02 01 0A 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 7D 23 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0C 41 01 00 35 04 06 00 FF 00 00 A7 [14:47:26]Write i2c OK [14:47:26]MH_I2C_Read... [14:47:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:26]Read from MH i2c: E2 [14:47:26]MH_I2C_Read... [14:47:26]Read from MH i2c: E2 03 00 [14:47:26]MH_I2C_Read... [14:47:26]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [14:47:26]RAPDU: 90 00 [14:47:26]wFMCommunicate OK [14:47:26]wFMCommunicate request_size=10 [14:47:26]MH_SAM_APDU [14:47:26]CAPDU: 80 0D 02 02 05 9E 19 D0 B2 CF [14:47:26]Write to MH i2c: E2 0D 00 0B 01 80 0D 02 02 05 00 9E 19 D0 B2 CF 00 00 98 [14:47:26]Write i2c OK [14:47:26]MH_I2C_Read... [14:47:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:26]Read from MH i2c: E2 [14:47:26]MH_I2C_Read... [14:47:26]Read from MH i2c: E2 03 00 [14:47:26]MH_I2C_Read... [14:47:26]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [14:47:26]RAPDU: 90 00 [14:47:26]wFMCommunicate OK [14:47:26]wFMCommunicate request_size=4 [14:47:26]MH_SAM_APDU [14:47:26]CAPDU: 80 0D 03 02 [14:47:26]Write to MH i2c: E2 08 00 0C 01 80 0D 03 02 00 00 00 00 88 [14:47:26]Write i2c OK [14:47:26]MH_I2C_Read... [14:47:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:26]Read from MH i2c: E2 [14:47:26]MH_I2C_Read... [14:47:26]Read from MH i2c: E2 0B 00 [14:47:26]MH_I2C_Read... [14:47:26]Read from MH i2c: E2 0B 00 0C 01 00 30 00 BC 95 58 99 1D 52 90 00 6A [14:47:26]RAPDU: 30 00 BC 95 58 99 1D 52 90 00 [14:47:26]wFMCommunicate OK [14:47:26]SAM_PROTO_SignData done [14:47:26]FM_MakeSignedData done [14:47:26]CreateOFDProtocolMessage [14:47:26]wFMCommunicate request_size=4 [14:47:26]MH_SAM_APDU [14:47:26]CAPDU: 80 11 00 00 [14:47:26]Write to MH i2c: E2 08 00 0D 01 80 11 00 00 00 00 00 00 88 [14:47:26]Write i2c OK [14:47:26]MH_I2C_Read... [14:47:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:26]Read from MH i2c: E2 [14:47:26]MH_I2C_Read... [14:47:26]Read from MH i2c: E2 17 00 [14:47:26]MH_I2C_Read... [14:47:26]Read from MH i2c: E2 17 00 0D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DA [14:47:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:47:26]wFMCommunicate OK [14:47:26]CreateOFDProtocolMessage done [14:47:26]OFDSenderStorePacket 82188 [14:47:26]StoreOFDPacket docnum=82188 [14:47:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 93 2C 07 01 C3 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 7D 23 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0C 41 01 00 35 04 06 00 FF 9E 19 D0 B2 CF 30 00 BC 95 58 99 1D 52 [14:47:26]CheckFolder [14:47:26]dirname=/storage/ofd_packets [14:47:26]CheckFolder done [14:47:26]ProducePacketName [14:47:26]name=ofd_packets/00082188 [14:47:26]NVStorageSaveData ofd_packets/00082188 [14:47:26]File name is /storage/ofd_packets/00082188 [14:47:26]Write 301 bytes [14:47:26]NVStorageSaveData done [14:47:26]OFDSenderStorePacket done [14:47:26]KKMCreateOFDPacket done [14:47:26]NVStorageSaveData kkm_last_timestamp [14:47:26]File name is /storage/kkm_last_timestamp [14:47:26]Write 4 bytes [14:47:26]NVStorageSaveData done [14:47:26]ExternCall_PrintAddStr [14:47:26]wPrintStart [14:47:26]Write to MH i2c: 01 00 00 0E 01 0F [14:47:26]OFD Sender: Processing packet 82188 [packets to send 254, broken 253] [14:47:26]ProducePacketName [14:47:26]name=ofd_packets/00082188 [14:47:26]OFD Sender: To server: pG, [14:47:26]CommunicateWithHost lk.salyk.kg:30040 [14:47:26]ConnectInit lk.salyk.kg [14:47:26]Write i2c OK [14:47:26]MH_I2C_Read... [14:47:26]Read from MH i2c: 01 [14:47:26]MH_I2C_Read... [14:47:26]Read from MH i2c: 01 07 00 [14:47:26]MH_I2C_Read... [14:47:26]Read from MH i2c: 01 07 00 0E 01 00 00 00 00 00 FF 0F 24 [14:47:26]RasterBufferAndPrint [14:47:26]line Счет N : (1)918694 [14:47:26]line ИНН: 02508201610067 [14:47:26]line Контрольно-Кассовый Чек [14:47:26]line ПРОДАЖА [14:47:26]line ТРК (МРК, ГНК) : 11 [14:47:26]line Товар: 2710124130 [14:47:26]line Аи-92-К-4 [14:47:26]line 10.000 * 0.00 [14:47:26]line = 0.00 [14:47:26]line НДС 12% НСП 1% [14:47:26]line > о реализуемом товаре [14:47:26]line ИТОГО: 0.00 [14:47:26]line НСП 1% : 0.00 [14:47:26]line НДС 12% : 0.00 [14:47:26]line Наличными: 0.00 [14:47:26]line Безнал.: 0.00 [14:47:26]line Место: АЗС № 114 "Партнер Нефть" [14:47:26]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [14:47:26]line СНО: Общий режим [14:47:26]line Чек 114 17.10.2024 14:47 [14:47:26]line Смена: 525 ФФД: 1.0 [14:47:26]line ЗНМ: 0300000086 [14:47:26]line РНМ: 0000000000091680 [14:47:26]line Версия ККМ: 001 [14:47:26]line Талоны: ТК ГПНА Online [14:47:26]line 30036521 [14:47:26]line ФМ: 0000000000871843 [14:47:26]line ФД: 82188 [14:47:26]line ФПД: 281054503023311 [14:47:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T144725&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82188&fm=281054503023311&tin=02508201610067®Number=0000000000091680&sum=0 [14:47:26]written 0, free lines is 4095 [14:47:27]Write to MH i2c: 01 00 00 38 01 39 [14:47:27]Write i2c OK [14:47:27]MH_I2C_Read... [14:47:27]Read from MH i2c: 01 [14:47:27]MH_I2C_Read... [14:47:27]Read from MH i2c: 01 07 00 [14:47:27]MH_I2C_Read... [14:47:27]Read from MH i2c: 01 07 00 38 01 00 00 00 00 00 D3 0C 1F [14:47:27]RasterBufferAndPrint [14:47:27]line [14:47:27]line [14:47:27]line [14:47:27]line [14:47:27]line [14:47:27]written 0, free lines is 3289 [14:47:27]MH_Cut [14:47:27]Write to MH i2c: D1 01 00 3F 01 01 12 [14:47:27]Write i2c OK [14:47:27]MH_I2C_Read... [14:47:27]Read from MH i2c: D1 [14:47:27]MH_I2C_Read... [14:47:27]Read from MH i2c: D1 01 00 [14:47:27]MH_I2C_Read... [14:47:27]Read from MH i2c: D1 01 00 3F 01 00 11 [14:47:27]Write to MH i2c: 01 00 00 40 01 41 [14:47:27]Write i2c OK [14:47:27]MH_I2C_Read... [14:47:27]*** Cut start [14:47:27]*** Partial cut [14:47:27]*** CUTSNS_PIN = 1 [14:47:28]*** CUTSNS_PIN = 0 [14:47:28]*** Brake cut motor [14:47:28]Read from MH i2c: 01 [14:47:28]MH_I2C_Read... [14:47:28]*** Stop cut motor [14:47:28]*** Cut end [14:47:28]Read from MH i2c: 01 07 00 [14:47:28]MH_I2C_Read... [14:47:28]Read from MH i2c: 01 07 00 40 01 00 00 00 00 00 FF 0F 56 [14:47:28]process_action close_receipt done [14:47:28]requested_data is exist [14:47:28]produce_requested_data [14:47:28]requested_item fm.sn is exist - process it [14:47:28]wFMCommunicate request_size=4 [14:47:28]MH_SAM_APDU [14:47:28]CAPDU: 80 11 00 00 [14:47:28]Write to MH i2c: E2 08 00 41 01 80 11 00 00 00 00 00 00 BC [14:47:28]Write i2c OK [14:47:28]MH_I2C_Read... [14:47:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:28]Read from MH i2c: E2 [14:47:28]MH_I2C_Read... [14:47:28]Read from MH i2c: E2 17 00 [14:47:28]MH_I2C_Read... [14:47:28]Read from MH i2c: E2 17 00 41 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 0E [14:47:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:47:28]wFMCommunicate OK [14:47:28]requested_item fd.num is exist - process it [14:47:28]SAM_PROTO_GetFieldsCounters [14:47:28]wFMCommunicate request_size=4 [14:47:28]MH_SAM_APDU [14:47:28]CAPDU: 80 13 00 00 [14:47:28]Write to MH i2c: E2 08 00 42 01 80 13 00 00 00 00 00 00 BF [14:47:28]Write i2c OK [14:47:28]MH_I2C_Read... [14:47:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:28]Read from MH i2c: E2 [14:47:28]MH_I2C_Read... [14:47:28]Read from MH i2c: E2 62 00 [14:47:28]MH_I2C_Read... [14:47:28]Read from MH i2c: E2 62 00 42 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 0C 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [14:47:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 0C 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:47:28]wFMCommunicate OK [14:47:28]SAM_PROTO_GetFieldsCounters done [14:47:28]requested_item shift.num is exist - process it [14:47:28]requested_item shift.opened is exist - process it [14:47:28]req_shift_opened [14:47:28]FM_GetShiftState [14:47:28]SAM_PROTO_GetShiftState [14:47:28]wFMCommunicate request_size=4 [14:47:28]MH_SAM_APDU [14:47:28]CAPDU: 80 13 01 00 [14:47:28]Write to MH i2c: E2 08 00 43 01 80 13 01 00 00 00 00 00 C1 [14:47:28]Write i2c OK [14:47:28]MH_I2C_Read... [14:47:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:28]Read from MH i2c: E2 [14:47:28]MH_I2C_Read... [14:47:28]Read from MH i2c: E2 0E 00 [14:47:28]MH_I2C_Read... [14:47:28]Read from MH i2c: E2 0E 00 43 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 C9 [14:47:28]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [14:47:28]wFMCommunicate OK [14:47:28]SAM_PROTO_GetShiftState done [14:47:28]FM_GetShiftState done [14:47:28]req_shift_opened done [14:47:28]requested_item shift.open_date is exist - process it [14:47:28]req_shift_open_date [14:47:28]req_shift_open_date done [14:47:28]produce_requested_data done [14:47:28]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82188,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [14:47:28]process_action_free close_receipt [14:47:28]json_value_free [14:47:28]json_value_free done [14:47:28]process_json_proto returns [14:47:28]Send response to host [14:47:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82188,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [14:47:28]free response buf [14:47:28]execute_script done [14:47:28]execute_script returns [14:47:28]free content buf [14:47:28]Sock 10.Close socket [14:47:28]Sock 10.Thread stoped [14:47:31]ConnectInit Can't take IP for lk.salyk.kg [14:47:31]CommunicateWithHost connect error [14:47:31]CommunicateWithHost err = -1 [14:47:31]OFD Sender: Server communicate error [14:47:36]OFD Sender: Processing packet 82188 [packets to send 254, broken 253] [14:47:36]ProducePacketName [14:47:36]name=ofd_packets/00082188 [14:47:36]OFD Sender: To server: pG, [14:47:36]CommunicateWithHost lk.salyk.kg:30040 [14:47:36]ConnectInit lk.salyk.kg [14:47:41]ConnectInit Can't take IP for lk.salyk.kg [14:47:41]CommunicateWithHost connect error [14:47:41]CommunicateWithHost err = -1 [14:47:41]OFD Sender: Server communicate error [14:47:46]OFD Sender: Processing packet 82188 [packets to send 254, broken 253] [14:47:46]ProducePacketName [14:47:46]name=ofd_packets/00082188 [14:47:46]OFD Sender: To server: pG, [14:47:46]CommunicateWithHost lk.salyk.kg:30040 [14:47:46]ConnectInit lk.salyk.kg [14:47:51]ConnectInit Can't take IP for lk.salyk.kg [14:47:51]CommunicateWithHost connect error [14:47:51]CommunicateWithHost err = -1 [14:47:51]OFD Sender: Server communicate error [14:47:56]OFD Sender: Processing packet 82188 [packets to send 254, broken 253] [14:47:56]ProducePacketName [14:47:56]name=ofd_packets/00082188 [14:47:56]OFD Sender: To server: pG, [14:47:56]CommunicateWithHost lk.salyk.kg:30040 [14:47:56]ConnectInit lk.salyk.kg [14:47:57]accept exits with 9 [14:47:57]New connection [14:47:57]New thread 3066957156 created [14:47:57]Thread 3066813796 joined [14:47:57]Waiting for new connection... [14:47:57] Sock 9.Parse request [14:47:57]Sock 9.Check first char [14:47:57]Sock 9.First char is OK [14:47:57]request: POST /json_proto HTTP/1.0 [14:47:57]Method: POST [14:47:57]URL: /json_proto [14:47:57]Method is POST - this is cgi request [14:47:57]url: /json_proto [14:47:57]query_string will be loaded in cgi processing [14:47:57]execute_cgi json_proto POST (null) [14:47:57]execute_cgi path=json_proto method=POST [14:47:57]POST find Content-Length [14:47:57]Host: 172.17.44.67:8080 [14:47:57]Content-Length: 677 [14:47:57]Content-Type: application/json [14:47:57] [14:47:57]POST finish read [14:47:57]Found Content-Length = 677 [14:47:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:57]execute_script... [14:47: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)918695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:57]POST & json_proto [14:47:57]process_json_proto [14:47:57]json parsed OK: [14:47:57]protocol is kg_v1.0 [14:47:57]action value=close_receipt [14:47:57]process_action close_receipt [14:47:57]cmd_close_receipt [14:47:57]MH_GetDate [14:47:57]Write to MH i2c: F0 00 00 44 01 34 [14:47:57]Write i2c OK [14:47:57]MH_I2C_Read... [14:47:57]Read from MH i2c: F0 [14:47:57]MH_I2C_Read... [14:47:57]Read from MH i2c: F0 09 00 [14:47:57]MH_I2C_Read... [14:47:57]Read from MH i2c: F0 09 00 44 01 00 9E 23 11 67 F1 C7 6B 64 FD [14:47:57]GetLastDocTimeStamp 1729176445 [14:47:57]current date 1729176478 [14:47:57]FM_GetShiftState [14:47:57]SAM_PROTO_GetShiftState [14:47:57]wFMCommunicate request_size=4 [14:47:57]MH_SAM_APDU [14:47:57]CAPDU: 80 13 01 00 [14:47:57]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [14:47:57]Write i2c OK [14:47:57]MH_I2C_Read... [14:47:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:57]Read from MH i2c: E2 [14:47:57]MH_I2C_Read... [14:47:57]Read from MH i2c: E2 0E 00 [14:47:57]MH_I2C_Read... [14:47:57]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 CB [14:47:57]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [14:47:57]wFMCommunicate OK [14:47:57]SAM_PROTO_GetShiftState done [14:47:57]FM_GetShiftState done [14:47:57]opened in 1729125927 [14:47:57]opened+sec_in_day 1729212327 [14:47:57]quantity*price = 30038 [14:47:57]sum+1 = 30039 [14:47:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 115 17.10.2024 14:47 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82189 ФПД: 256250843163478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T144758&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82189&fm=256250843163478&tin=02508201610067®Number=0000000000091680&sum=30000 [14:47:58]StoreToDocumentArchive [14:47:58]shift 525 fd 82189 [14:47:58]save to /storage/0525/doc_00082189 [14:47:58]save last doc name /storage/0525/doc_00082189 to /storage/kkm_last_doc_name [14:47:58]save OK [14:47:58]Clear old archive folders... [14:47:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:47:58]tlvbuf is 01B77930 [14:47:58]SAM_PROTO_ClearQueue [14:47:58]wFMCommunicate request_size=4 [14:47:58]MH_SAM_APDU [14:47:58]CAPDU: 80 09 00 00 [14:47:58]Write to MH i2c: E2 08 00 52 01 80 09 00 00 00 00 00 00 C5 [14:47:58]Write i2c OK [14:47:58]MH_I2C_Read... [14:47:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:58]Read from MH i2c: E2 [14:47:58]MH_I2C_Read... [14:47:58]Read from MH i2c: E2 03 00 [14:47:58]MH_I2C_Read... [14:47:58]Read from MH i2c: E2 03 00 52 01 00 90 00 C7 [14:47:58]RAPDU: 90 00 [14:47:58]wFMCommunicate OK [14:47:58]SAM_PROTO_ClearQueue done [14:47:58]KKMCreateOFDPacket [14:47:58]OFDProtocolAddRootSTLVToBuf [14:47:58]FM_MakeSignedData [14:47:58]FM_MakeSignedData [14:47:58]SAM_PROTO_SignData [14:47:58]wFMCommunicate request_size=4 [14:47:58]MH_SAM_APDU [14:47:58]CAPDU: 80 0D 01 02 [14:47:58]Write to MH i2c: E2 08 00 53 01 80 0D 01 02 00 00 00 00 CD [14:47:58]Write i2c OK [14:47:58]MH_I2C_Read... [14:47:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:58]Read from MH i2c: E2 [14:47:58]MH_I2C_Read... [14:47:58]Read from MH i2c: E2 03 00 [14:47:58]MH_I2C_Read... [14:47:58]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [14:47:58]RAPDU: 90 00 [14:47:58]wFMCommunicate OK [14:47:58]wFMCommunicate request_size=255 [14:47:58]MH_SAM_APDU [14:47:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 9E 23 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0D 41 01 00 35 04 06 00 E9 [14:47:58]Write to MH i2c: E2 02 01 54 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 9E 23 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0D 41 01 00 35 04 06 00 E9 00 00 40 [14:47:58]Write i2c OK [14:47:58]MH_I2C_Read... [14:47:59]recv_with_timeout no data received [14:47:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:59]Read from MH i2c: E2 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: E2 03 00 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [14:47:59]RAPDU: 90 00 [14:47:59]wFMCommunicate OK [14:47:59]wFMCommunicate request_size=10 [14:47:59]MH_SAM_APDU [14:47:59]CAPDU: 80 0D 02 02 05 0F 0C 7A EB 56 [14:47:59]Write to MH i2c: E2 0D 00 55 01 80 0D 02 02 05 00 0F 0C 7A EB 56 00 00 B0 [14:47:59]Write i2c OK [14:47:59]MH_I2C_Read... [14:47:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:59]Read from MH i2c: E2 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: E2 03 00 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [14:47:59]RAPDU: 90 00 [14:47:59]wFMCommunicate OK [14:47:59]wFMCommunicate request_size=4 [14:47:59]MH_SAM_APDU [14:47:59]CAPDU: 80 0D 03 02 [14:47:59]Write to MH i2c: E2 08 00 56 01 80 0D 03 02 00 00 00 00 D2 [14:47:59]Write i2c OK [14:47:59]MH_I2C_Read... [14:47:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:59]Read from MH i2c: E2 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: E2 0B 00 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: E2 0B 00 56 01 00 53 FC A8 10 66 C3 07 CB 90 00 D5 [14:47:59]RAPDU: 53 FC A8 10 66 C3 07 CB 90 00 [14:47:59]wFMCommunicate OK [14:47:59]SAM_PROTO_SignData done [14:47:59]FM_MakeSignedData done [14:47:59]CreateOFDProtocolMessage [14:47:59]wFMCommunicate request_size=4 [14:47:59]MH_SAM_APDU [14:47:59]CAPDU: 80 11 00 00 [14:47:59]Write to MH i2c: E2 08 00 57 01 80 11 00 00 00 00 00 00 D2 [14:47:59]Write i2c OK [14:47:59]MH_I2C_Read... [14:47:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:59]Read from MH i2c: E2 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: E2 17 00 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: E2 17 00 57 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 24 [14:47:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:47:59]wFMCommunicate OK [14:47:59]CreateOFDProtocolMessage done [14:47:59]OFDSenderStorePacket 82189 [14:47:59]StoreOFDPacket docnum=82189 [14:47:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 FE C6 07 01 58 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 9E 23 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0D 41 01 00 35 04 06 00 E9 0F 0C 7A EB 56 53 FC A8 10 66 C3 07 CB [14:47:59]CheckFolder [14:47:59]dirname=/storage/ofd_packets [14:47:59]CheckFolder done [14:47:59]ProducePacketName [14:47:59]name=ofd_packets/00082189 [14:47:59]NVStorageSaveData ofd_packets/00082189 [14:47:59]File name is /storage/ofd_packets/00082189 [14:47:59]Write 301 bytes [14:47:59]NVStorageSaveData done [14:47:59]OFDSenderStorePacket done [14:47:59]KKMCreateOFDPacket done [14:47:59]NVStorageSaveData kkm_last_timestamp [14:47:59]File name is /storage/kkm_last_timestamp [14:47:59]Write 4 bytes [14:47:59]NVStorageSaveData done [14:47:59]ExternCall_PrintAddStr [14:47:59]wPrintStart [14:47:59]Write to MH i2c: 01 00 00 58 01 59 [14:47:59]Write i2c OK [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: 01 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: 01 07 00 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: 01 07 00 58 01 00 00 00 00 00 FF 0F 6E [14:47:59]RasterBufferAndPrint [14:47:59]line Счет N : (1)918695 [14:47:59]line ИНН: 02508201610067 [14:47:59]line Контрольно-Кассовый Чек [14:47:59]line ПРОДАЖА [14:47:59]line ТРК (МРК, ГНК) : 11 [14:47:59]line Товар: 2710124130 [14:47:59]line Аи-92-К-4 [14:47:59]line 4.490 * 66.90 [14:47:59]line = 300.38 [14:47:59]line НДС 12% НСП 1% [14:47:59]line > о реализуемом товаре [14:47:59]line ОКРУГЛЕНИЕ: -0.38 [14:47:59]line ИТОГО: 300.00 [14:47:59]line Внесено: 300.00 [14:47:59]line СДАЧА: 0.00 [14:47:59]line НСП 1% : 2.66 [14:47:59]line НДС 12% : 31.90 [14:47:59]line Наличными: 300.00 [14:47:59]line Безнал.: 0.00 [14:47:59]line Место: АЗС № 114 "Партнер Нефть" [14:47:59]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [14:47:59]line СНО: Общий режим [14:47:59]line Чек 115 17.10.2024 14:47 [14:47:59]line Смена: 525 ФФД: 1.0 [14:47:59]line ЗНМ: 0300000086 [14:47:59]line РНМ: 0000000000091680 [14:47:59]line Версия ККМ: 001 [14:47:59]line ФМ: 0000000000871843 [14:47:59]line ФД: 82189 [14:47:59]line ФПД: 256250843163478 [14:47:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T144758&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82189&fm=256250843163478&tin=02508201610067®Number=0000000000091680&sum=30000 [14:47:59]written 0, free lines is 4095 [14:47:59]Write to MH i2c: 01 00 00 83 01 84 [14:47:59]Write i2c OK [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: 01 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: 01 07 00 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: 01 07 00 83 01 00 00 00 00 00 D3 0C 6A [14:47:59]RasterBufferAndPrint [14:47:59]line [14:47:59]line [14:47:59]line [14:47:59]line [14:47:59]line [14:47:59]written 0, free lines is 3301 [14:47:59]MH_Cut [14:47:59]Write to MH i2c: D1 01 00 8A 01 01 5D [14:47:59]Write i2c OK [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: D1 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: D1 01 00 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: D1 01 00 8A 01 00 5C [14:47:59]Write to MH i2c: 01 00 00 8B 01 8C [14:47:59]Write i2c OK [14:47:59]MH_I2C_Read... [14:48:00]*** Cut start [14:48:00]*** Partial cut [14:48:00]*** CUTSNS_PIN = 1 [14:48:00]*** CUTSNS_PIN = 0 [14:48:00]*** Brake cut motor [14:48:01]Read from MH i2c: 01 [14:48:01]MH_I2C_Read... [14:48:01]*** Stop cut motor [14:48:01]*** Cut end [14:48:01]Read from MH i2c: 01 07 00 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: 01 07 00 8B 01 00 00 00 00 00 FF 0F A1 [14:48:01]process_action close_receipt done [14:48:01]requested_data is exist [14:48:01]produce_requested_data [14:48:01]requested_item fm.sn is exist - process it [14:48:01]wFMCommunicate request_size=4 [14:48:01]MH_SAM_APDU [14:48:01]CAPDU: 80 11 00 00 [14:48:01]Write to MH i2c: E2 08 00 8C 01 80 11 00 00 00 00 00 00 07 [14:48:01]Write i2c OK [14:48:01]MH_I2C_Read... [14:48:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:01]Read from MH i2c: E2 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: E2 17 00 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: E2 17 00 8C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 59 [14:48:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:48:01]wFMCommunicate OK [14:48:01]requested_item fd.num is exist - process it [14:48:01]SAM_PROTO_GetFieldsCounters [14:48:01]wFMCommunicate request_size=4 [14:48:01]MH_SAM_APDU [14:48:01]CAPDU: 80 13 00 00 [14:48:01]Write to MH i2c: E2 08 00 8D 01 80 13 00 00 00 00 00 00 0A [14:48:01]Write i2c OK [14:48:01]MH_I2C_Read... [14:48:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:01]Read from MH i2c: E2 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: E2 62 00 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: E2 62 00 8D 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 0D 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [14:48:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 0D 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:48:01]wFMCommunicate OK [14:48:01]SAM_PROTO_GetFieldsCounters done [14:48:01]requested_item shift.num is exist - process it [14:48:01]requested_item shift.opened is exist - process it [14:48:01]req_shift_opened [14:48:01]FM_GetShiftState [14:48:01]SAM_PROTO_GetShiftState [14:48:01]wFMCommunicate request_size=4 [14:48:01]MH_SAM_APDU [14:48:01]CAPDU: 80 13 01 00 [14:48:01]Write to MH i2c: E2 08 00 8E 01 80 13 01 00 00 00 00 00 0C [14:48:01]Write i2c OK [14:48:01]MH_I2C_Read... [14:48:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:01]Read from MH i2c: E2 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: E2 0E 00 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: E2 0E 00 8E 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 14 [14:48:01]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [14:48:01]wFMCommunicate OK [14:48:01]SAM_PROTO_GetShiftState done [14:48:01]FM_GetShiftState done [14:48:01]req_shift_opened done [14:48:01]requested_item shift.open_date is exist - process it [14:48:01]req_shift_open_date [14:48:01]req_shift_open_date done [14:48:01]produce_requested_data done [14:48:01]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82189,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [14:48:01]process_action_free close_receipt [14:48:01]json_value_free [14:48:01]json_value_free done [14:48:01]process_json_proto returns [14:48:01]Send response to host [14:48:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82189,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [14:48:01]free response buf [14:48:01]execute_script done [14:48:01]execute_script returns [14:48:01]free content buf [14:48:01]Sock 9.Close socket [14:48:01]Sock 9.Thread stoped [14:48:02]Connected sock=10 [14:48:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 93 2C 07 01 C3 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 7D 23 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0C 41 01 00 35 04 06 00 FF 9E 19 D0 B2 CF 30 00 BC 95 58 99 1D 52 [14:48:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 C7 A6 47 00 07 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0C 41 01 00 F4 03 04 00 DF C8 10 67 B6 04 01 00 00 D4 D7 B8 1E 40 F3 96 43 [14:48:03]CommunicateWithHost err = 0 [14:48:03]CheckOFDResponse [14:48:03]1017 (14) - 77093643461234 [14:48:03]1041 (16) - 0000000000871843 [14:48:03]1040 (4) - 82188 [14:48:03]1012 (4) - 17.10.2024 08:20 [14:48:03]1206 (1) - 0 [14:48:03]OFD Sender: Remove packet 82188 [14:48:03]ProducePacketName [14:48:03]name=ofd_packets/00082188 [14:48:03]NVStorageDeleteData [14:48:04]OFD Sender: Processing packet 82189 [packets to send 254, broken 253] [14:48:04]ProducePacketName [14:48:04]name=ofd_packets/00082189 [14:48:04]OFD Sender: To server: pG, [14:48:04]CommunicateWithHost lk.salyk.kg:30040 [14:48:04]ConnectInit lk.salyk.kg [14:48:07]Connected sock=9 [14:48:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 FE C6 07 01 58 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 9E 23 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0D 41 01 00 35 04 06 00 E9 0F 0C 7A EB 56 53 FC A8 10 66 C3 07 CB [14:48:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 F6 B9 47 00 B7 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0D 41 01 00 F4 03 04 00 E3 C8 10 67 B6 04 01 00 00 86 45 A9 CB 89 0F 67 5F [14:48:08]CommunicateWithHost err = 0 [14:48:08]CheckOFDResponse [14:48:08]1017 (14) - 77093643461234 [14:48:08]1041 (16) - 0000000000871843 [14:48:08]1040 (4) - 82189 [14:48:08]1012 (4) - 17.10.2024 08:20 [14:48:08]1206 (1) - 0 [14:48:08]OFD Sender: Remove packet 82189 [14:48:08]ProducePacketName [14:48:08]name=ofd_packets/00082189 [14:48:08]NVStorageDeleteData [14:48:09]OFD Sender: No OFD packet to send [14:48:09]OFD Sender: No OFD packet to send [14:48:09]recv_with_timeout no data received [14:48:14]OFD Sender: No OFD packet to send [14:48:19]OFD Sender: No OFD packet to send [14:48:20]recv_with_timeout no data received [14:48:24]OFD Sender: No OFD packet to send [14:48:29]OFD Sender: No OFD packet to send [14:48:31]recv_with_timeout no data received [14:48:34]OFD Sender: No OFD packet to send [14:48:39]OFD Sender: No OFD packet to send [14:48:41]recv_with_timeout no data received [14:48:44]OFD Sender: No OFD packet to send [14:48:49]OFD Sender: No OFD packet to send [14:48:52]recv_with_timeout no data received [14:48:54]OFD Sender: No OFD packet to send [14:48:59]OFD Sender: No OFD packet to send [14:49:04]OFD Sender: No OFD packet to send [14:49:06]recv_with_timeout no data received [14:49:09]OFD Sender: No OFD packet to send [14:49:14]OFD Sender: No OFD packet to send [14:49:19]OFD Sender: No OFD packet to send [14:49:19]recv_with_timeout no data received [14:49:24]OFD Sender: No OFD packet to send [14:49:29]OFD Sender: No OFD packet to send [14:49:34]OFD Sender: No OFD packet to send [14:49:39]OFD Sender: No OFD packet to send [14:49:44]OFD Sender: No OFD packet to send [14:49:49]OFD Sender: No OFD packet to send [14:49:54]OFD Sender: No OFD packet to send [14:49:59]OFD Sender: No OFD packet to send [14:50:04]OFD Sender: No OFD packet to send [14:50:09]OFD Sender: No OFD packet to send [14:50:14]OFD Sender: No OFD packet to send [14:50:19]OFD Sender: No OFD packet to send [14:50:24]OFD Sender: No OFD packet to send [14:50:29]OFD Sender: No OFD packet to send [14:50:34]OFD Sender: No OFD packet to send [14:50:39]OFD Sender: No OFD packet to send [14:50:44]OFD Sender: No OFD packet to send [14:50:49]OFD Sender: No OFD packet to send [14:50:50]accept exits with 12 [14:50:50]New connection [14:50:50]New thread 3066813796 created [14:50:50]Thread 3066957156 joined [14:50:50]Waiting for new connection... [14:50:50] Sock 12.Parse request [14:50:50]Sock 12.Check first char [14:50:50]Sock 12.First char is OK [14:50:50]request: POST /json_proto HTTP/1.0 [14:50:50]Method: POST [14:50:50]URL: /json_proto [14:50:50]Method is POST - this is cgi request [14:50:50]url: /json_proto [14:50:50]query_string will be loaded in cgi processing [14:50:50]execute_cgi json_proto POST (null) [14:50:50]execute_cgi path=json_proto method=POST [14:50:50]POST find Content-Length [14:50:50]Host: 172.17.44.67:8080 [14:50:50]Content-Length: 759 [14:50:50]Content-Type: application/json [14:50:50] [14:50:50]POST finish read [14:50:50]Found Content-Length = 759 [14:50:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30087243", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:50]execute_script... [14:50:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30087243", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:50]POST & json_proto [14:50:50]process_json_proto [14:50:50]json parsed OK: [14:50:50]protocol is kg_v1.0 [14:50:50]action value=close_receipt [14:50:50]process_action close_receipt [14:50:50]cmd_close_receipt [14:50:50]MH_GetDate [14:50:50]Write to MH i2c: F0 00 00 8F 01 7F [14:50:50]Write i2c OK [14:50:50]MH_I2C_Read... [14:50:50]Read from MH i2c: F0 [14:50:50]MH_I2C_Read... [14:50:50]Read from MH i2c: F0 09 00 [14:50:50]MH_I2C_Read... [14:50:50]Read from MH i2c: F0 09 00 8F 01 00 4B 24 11 67 F1 C7 6B 64 F6 [14:50:50]GetLastDocTimeStamp 1729176478 [14:50:50]current date 1729176651 [14:50:50]FM_GetShiftState [14:50:50]SAM_PROTO_GetShiftState [14:50:50]wFMCommunicate request_size=4 [14:50:50]MH_SAM_APDU [14:50:50]CAPDU: 80 13 01 00 [14:50:50]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [14:50:50]Write i2c OK [14:50:50]MH_I2C_Read... [14:50:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:50]Read from MH i2c: E2 [14:50:50]MH_I2C_Read... [14:50:50]Read from MH i2c: E2 0E 00 [14:50:50]MH_I2C_Read... [14:50:50]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 16 [14:50:50]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [14:50:50]wFMCommunicate OK [14:50:50]SAM_PROTO_GetShiftState done [14:50:50]FM_GetShiftState done [14:50:50]opened in 1729125927 [14:50:50]opened+sec_in_day 1729212327 [14:50:50]quantity*price = 0 [14:50:50]sum+1 = 1 [14:50:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 116 17.10.2024 14:50 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30087243 ФМ: 0000000000871843 ФД: 82190 ФПД: 6240574665999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T145051&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82190&fm=6240574665999&tin=02508201610067®Number=0000000000091680&sum=0 [14:50:51]StoreToDocumentArchive [14:50:51]shift 525 fd 82190 [14:50:51]save to /storage/0525/doc_00082190 [14:50:51]save last doc name /storage/0525/doc_00082190 to /storage/kkm_last_doc_name [14:50:51]save OK [14:50:51]Clear old archive folders... [14:50:51]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:50:51]tlvbuf is 01C0B9C0 [14:50:51]SAM_PROTO_ClearQueue [14:50:51]wFMCommunicate request_size=4 [14:50:51]MH_SAM_APDU [14:50:51]CAPDU: 80 09 00 00 [14:50:51]Write to MH i2c: E2 08 00 9D 01 80 09 00 00 00 00 00 00 10 [14:50:51]Write i2c OK [14:50:51]MH_I2C_Read... [14:50:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:50:51]Read from MH i2c: E2 [14:50:51]MH_I2C_Read... [14:50:51]Read from MH i2c: E2 03 00 [14:50:51]MH_I2C_Read... [14:50:51]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [14:50:51]RAPDU: 90 00 [14:50:51]wFMCommunicate OK [14:50:51]SAM_PROTO_ClearQueue done [14:50:51]KKMCreateOFDPacket [14:50:51]OFDProtocolAddRootSTLVToBuf [14:50:51]FM_MakeSignedData [14:50:51]FM_MakeSignedData [14:50:51]SAM_PROTO_SignData [14:50:51]wFMCommunicate request_size=4 [14:50:51]MH_SAM_APDU [14:50:51]CAPDU: 80 0D 01 02 [14:50:51]Write to MH i2c: E2 08 00 9E 01 80 0D 01 02 00 00 00 00 18 [14:50:51]Write i2c OK [14:50:51]MH_I2C_Read... [14:50:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:50:51]Read from MH i2c: E2 [14:50:51]MH_I2C_Read... [14:50:51]Read from MH i2c: E2 03 00 [14:50:51]MH_I2C_Read... [14:50:51]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [14:50:51]RAPDU: 90 00 [14:50:51]wFMCommunicate OK [14:50:51]wFMCommunicate request_size=255 [14:50:51]MH_SAM_APDU [14:50:51]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 4B 24 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0E 41 01 00 35 04 06 00 [14:50:51]Write to MH i2c: E2 02 01 9F 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 4B 24 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0E 41 01 00 35 04 06 00 00 00 E7 [14:50:52]Write i2c OK [14:50:52]MH_I2C_Read... [14:50:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:52]Read from MH i2c: E2 [14:50:52]MH_I2C_Read... [14:50:52]Read from MH i2c: E2 03 00 [14:50:52]MH_I2C_Read... [14:50:52]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [14:50:52]RAPDU: 90 00 [14:50:52]wFMCommunicate OK [14:50:52]wFMCommunicate request_size=11 [14:50:52]MH_SAM_APDU [14:50:52]CAPDU: 80 0D 02 02 06 05 AC FF 3C 75 0F [14:50:52]Write to MH i2c: E2 0E 00 A0 01 80 0D 02 02 06 00 05 AC FF 3C 75 0F 00 00 97 [14:50:52]Write i2c OK [14:50:52]MH_I2C_Read... [14:50:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:52]Read from MH i2c: E2 [14:50:52]MH_I2C_Read... [14:50:52]Read from MH i2c: E2 03 00 [14:50:52]MH_I2C_Read... [14:50:52]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [14:50:52]RAPDU: 90 00 [14:50:52]wFMCommunicate OK [14:50:52]wFMCommunicate request_size=4 [14:50:52]MH_SAM_APDU [14:50:52]CAPDU: 80 0D 03 02 [14:50:52]Write to MH i2c: E2 08 00 A1 01 80 0D 03 02 00 00 00 00 1D [14:50:52]Write i2c OK [14:50:52]MH_I2C_Read... [14:50:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:50:52]Read from MH i2c: E2 [14:50:52]MH_I2C_Read... [14:50:52]Read from MH i2c: E2 0B 00 [14:50:52]MH_I2C_Read... [14:50:52]Read from MH i2c: E2 0B 00 A1 01 00 E6 32 89 F1 1A AA 9A 4C 90 00 5A [14:50:52]RAPDU: E6 32 89 F1 1A AA 9A 4C 90 00 [14:50:52]wFMCommunicate OK [14:50:52]SAM_PROTO_SignData done [14:50:52]FM_MakeSignedData done [14:50:52]CreateOFDProtocolMessage [14:50:52]wFMCommunicate request_size=4 [14:50:52]MH_SAM_APDU [14:50:52]CAPDU: 80 11 00 00 [14:50:52]Write to MH i2c: E2 08 00 A2 01 80 11 00 00 00 00 00 00 1D [14:50:52]Write i2c OK [14:50:52]MH_I2C_Read... [14:50:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:52]Read from MH i2c: E2 [14:50:52]MH_I2C_Read... [14:50:52]Read from MH i2c: E2 17 00 [14:50:52]MH_I2C_Read... [14:50:52]Read from MH i2c: E2 17 00 A2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 6F [14:50:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:50:52]wFMCommunicate OK [14:50:52]CreateOFDProtocolMessage done [14:50:52]OFDSenderStorePacket 82190 [14:50:52]StoreOFDPacket docnum=82190 [14:50:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 93 93 08 01 75 6A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 4B 24 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0E 41 01 00 35 04 06 00 05 AC FF 3C 75 0F E6 32 89 F1 1A AA 9A 4C [14:50:52]CheckFolder [14:50:52]dirname=/storage/ofd_packets [14:50:52]CheckFolder done [14:50:52]ProducePacketName [14:50:52]name=ofd_packets/00082190 [14:50:52]NVStorageSaveData ofd_packets/00082190 [14:50:52]File name is /storage/ofd_packets/00082190 [14:50:52]Write 302 bytes [14:50:52]NVStorageSaveData done [14:50:52]OFDSenderStorePacket done [14:50:52]KKMCreateOFDPacket done [14:50:52]NVStorageSaveData kkm_last_timestamp [14:50:52]File name is /storage/kkm_last_timestamp [14:50:52]Write 4 bytes [14:50:52]NVStorageSaveData done [14:50:52]OFD Sender: Processing packet 82190 [packets to send 254, broken 253] [14:50:52]ProducePacketName [14:50:52]name=ofd_packets/00082190 [14:50:52]OFD Sender: To server: pG, [14:50:52]CommunicateWithHost lk.salyk.kg:30040 [14:50:52]ConnectInit lk.salyk.kg [14:50:52]ExternCall_PrintAddStr [14:50:52]wPrintStart [14:50:52]Write to MH i2c: 01 00 00 A3 01 A4 [14:50:52]Write i2c OK [14:50:52]MH_I2C_Read... [14:50:52]Read from MH i2c: 01 [14:50:52]MH_I2C_Read... [14:50:52]Read from MH i2c: 01 07 00 [14:50:52]MH_I2C_Read... [14:50:52]Read from MH i2c: 01 07 00 A3 01 00 00 00 00 00 FF 0F B9 [14:50:52]RasterBufferAndPrint [14:50:52]line Счет N : (1)918696 [14:50:52]line ИНН: 02508201610067 [14:50:52]line Контрольно-Кассовый Чек [14:50:52]line ПРОДАЖА [14:50:52]line ТРК (МРК, ГНК) : 31 [14:50:52]line Товар: 2710194210 [14:50:52]line ДТ(л)-К-5 [14:50:52]line 15.000 * 0.00 [14:50:52]line = 0.00 [14:50:52]line НДС 12% НСП 1% [14:50:52]line > о реализуемом товаре [14:50:52]line ИТОГО: 0.00 [14:50:52]line НСП 1% : 0.00 [14:50:52]line НДС 12% : 0.00 [14:50:52]line Наличными: 0.00 [14:50:52]line Безнал.: 0.00 [14:50:52]line Место: АЗС № 114 "Партнер Нефть" [14:50:52]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [14:50:52]line СНО: Общий режим [14:50:52]line Чек 116 17.10.2024 14:50 [14:50:52]line Смена: 525 ФФД: 1.0 [14:50:52]line ЗНМ: 0300000086 [14:50:52]line РНМ: 0000000000091680 [14:50:52]line Версия ККМ: 001 [14:50:52]line Талоны: ТК ГПНА Online [14:50:52]line 30087243 [14:50:52]line ФМ: 0000000000871843 [14:50:52]line ФД: 82190 [14:50:52]line ФПД: 6240574665999 [14:50:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T145051&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82190&fm=6240574665999&tin=02508201610067®Number=0000000000091680&sum=0 [14:50:52]written 0, free lines is 4095 [14:50:53]Write to MH i2c: 01 00 00 CD 01 CE [14:50:53]Write i2c OK [14:50:53]MH_I2C_Read... [14:50:53]Read from MH i2c: 01 [14:50:53]MH_I2C_Read... [14:50:53]Read from MH i2c: 01 07 00 [14:50:53]MH_I2C_Read... [14:50:53]Read from MH i2c: 01 07 00 CD 01 00 00 00 00 00 D7 0C B8 [14:50:53]RasterBufferAndPrint [14:50:53]line [14:50:53]line [14:50:53]line [14:50:53]line [14:50:53]line [14:50:53]written 0, free lines is 3293 [14:50:53]MH_Cut [14:50:53]Write to MH i2c: D1 01 00 D4 01 01 A7 [14:50:53]Write i2c OK [14:50:53]MH_I2C_Read... [14:50:53]Read from MH i2c: D1 [14:50:53]MH_I2C_Read... [14:50:53]Read from MH i2c: D1 01 00 [14:50:53]MH_I2C_Read... [14:50:53]Read from MH i2c: D1 01 00 D4 01 00 A6 [14:50:53]Write to MH i2c: 01 00 00 D5 01 D6 [14:50:53]Write i2c OK [14:50:53]MH_I2C_Read... [14:50:53]Connected sock=10 [14:50:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 93 93 08 01 75 6A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 4B 24 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0E 41 01 00 35 04 06 00 05 AC FF 3C 75 0F E6 32 89 F1 1A AA 9A 4C [14:50:53]*** Cut start [14:50:53]*** Partial cut [14:50:53]*** CUTSNS_PIN = 1 [14:50:54]*** CUTSNS_PIN = 0 [14:50:54]*** Brake cut motor [14:50:54]Read from MH i2c: 01 [14:50:54]MH_I2C_Read... [14:50:54]*** Stop cut motor [14:50:54]*** Cut end [14:50:54]Read from MH i2c: 01 07 00 [14:50:54]MH_I2C_Read... [14:50:54]Read from MH i2c: 01 07 00 D5 01 00 00 00 00 00 FF 0F EB [14:50:54]process_action close_receipt done [14:50:54]requested_data is exist [14:50:54]produce_requested_data [14:50:54]requested_item fm.sn is exist - process it [14:50:54]wFMCommunicate request_size=4 [14:50:54]MH_SAM_APDU [14:50:54]CAPDU: 80 11 00 00 [14:50:54]Write to MH i2c: E2 08 00 D6 01 80 11 00 00 00 00 00 00 51 [14:50:54]Write i2c OK [14:50:54]MH_I2C_Read... [14:50:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:54]Read from MH i2c: E2 [14:50:54]MH_I2C_Read... [14:50:54]Read from MH i2c: E2 17 00 [14:50:54]MH_I2C_Read... [14:50:54]Read from MH i2c: E2 17 00 D6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 A3 [14:50:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:50:54]wFMCommunicate OK [14:50:54]requested_item fd.num is exist - process it [14:50:54]SAM_PROTO_GetFieldsCounters [14:50:54]wFMCommunicate request_size=4 [14:50:54]MH_SAM_APDU [14:50:54]CAPDU: 80 13 00 00 [14:50:54]Write to MH i2c: E2 08 00 D7 01 80 13 00 00 00 00 00 00 54 [14:50:54]Write i2c OK [14:50:54]MH_I2C_Read... [14:50:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:50:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 0C 6E 47 00 47 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0E 41 01 00 F4 03 04 00 8A C9 10 67 B6 04 01 00 00 66 1C 73 6B DE 39 AE A3 [14:50:54]CommunicateWithHost err = 0 [14:50:54]CheckOFDResponse [14:50:54]1017 (14) - 77093643461234 [14:50:54]1041 (16) - 0000000000871843 [14:50:54]1040 (4) - 82190 [14:50:54]1012 (4) - 17.10.2024 08:23 [14:50:54]1206 (1) - 0 [14:50:54]OFD Sender: Remove packet 82190 [14:50:54]ProducePacketName [14:50:54]name=ofd_packets/00082190 [14:50:54]NVStorageDeleteData [14:50:54]Read from MH i2c: E2 [14:50:54]MH_I2C_Read... [14:50:54]Read from MH i2c: E2 62 00 [14:50:54]MH_I2C_Read... [14:50:54]Read from MH i2c: E2 62 00 D7 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 0E 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [14:50:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 0E 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:50:54]wFMCommunicate OK [14:50:54]SAM_PROTO_GetFieldsCounters done [14:50:54]requested_item shift.num is exist - process it [14:50:54]requested_item shift.opened is exist - process it [14:50:54]req_shift_opened [14:50:54]FM_GetShiftState [14:50:54]SAM_PROTO_GetShiftState [14:50:54]wFMCommunicate request_size=4 [14:50:54]MH_SAM_APDU [14:50:54]CAPDU: 80 13 01 00 [14:50:54]Write to MH i2c: E2 08 00 D8 01 80 13 01 00 00 00 00 00 56 [14:50:54]Write i2c OK [14:50:54]MH_I2C_Read... [14:50:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:54]Read from MH i2c: E2 [14:50:54]MH_I2C_Read... [14:50:54]Read from MH i2c: E2 0E 00 [14:50:54]MH_I2C_Read... [14:50:54]Read from MH i2c: E2 0E 00 D8 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 5E [14:50:54]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [14:50:54]wFMCommunicate OK [14:50:54]SAM_PROTO_GetShiftState done [14:50:54]FM_GetShiftState done [14:50:54]req_shift_opened done [14:50:54]requested_item shift.open_date is exist - process it [14:50:54]req_shift_open_date [14:50:54]req_shift_open_date done [14:50:54]produce_requested_data done [14:50:54]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82190,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [14:50:54]process_action_free close_receipt [14:50:54]json_value_free [14:50:54]json_value_free done [14:50:54]process_json_proto returns [14:50:54]Send response to host [14:50:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82190,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [14:50:54]free response buf [14:50:54]execute_script done [14:50:54]execute_script returns [14:50:54]free content buf [14:50:54]Sock 12.Close socket [14:50:54]Sock 12.Thread stoped [14:50:55]OFD Sender: No OFD packet to send [14:50:59]recv_with_timeout no data received [14:51:00]OFD Sender: No OFD packet to send [14:51:05]OFD Sender: No OFD packet to send [14:51:10]OFD Sender: No OFD packet to send [14:51:10]recv_with_timeout no data received [14:51:15]OFD Sender: No OFD packet to send [14:51:20]OFD Sender: No OFD packet to send [14:51:21]recv_with_timeout no data received [14:51:25]OFD Sender: No OFD packet to send [14:51:30]OFD Sender: No OFD packet to send [14:51:35]OFD Sender: No OFD packet to send [14:51:40]OFD Sender: No OFD packet to send [14:51:45]OFD Sender: No OFD packet to send [14:51:50]OFD Sender: No OFD packet to send [14:51:55]OFD Sender: No OFD packet to send [14:52:00]OFD Sender: No OFD packet to send [14:52:05]OFD Sender: No OFD packet to send [14:52:10]OFD Sender: No OFD packet to send [14:52:15]OFD Sender: No OFD packet to send [14:52:19]accept exits with 7 [14:52:19]New connection [14:52:19]New thread 3066957156 created [14:52:19]Thread 3066813796 joined [14:52:19]Waiting for new connection... [14:52:19] Sock 7.Parse request [14:52:19]Sock 7.Check first char [14:52:19]Sock 7.First char is OK [14:52:19]request: POST /json_proto HTTP/1.0 [14:52:19]Method: POST [14:52:19]URL: /json_proto [14:52:19]Method is POST - this is cgi request [14:52:19]url: /json_proto [14:52:19]query_string will be loaded in cgi processing [14:52:19]execute_cgi json_proto POST (null) [14:52:19]execute_cgi path=json_proto method=POST [14:52:19]POST find Content-Length [14:52:19]Host: 172.17.44.67:8080 [14:52:19]Content-Length: 759 [14:52:19]Content-Type: application/json [14:52:19] [14:52:19]POST finish read [14:52:19]Found Content-Length = 759 [14:52:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 12.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30137675", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:19]execute_script... [14: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 : (1)918697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 12.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30137675", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:19]POST & json_proto [14:52:19]process_json_proto [14:52:19]json parsed OK: [14:52:19]protocol is kg_v1.0 [14:52:19]action value=close_receipt [14:52:19]process_action close_receipt [14:52:19]cmd_close_receipt [14:52:19]MH_GetDate [14:52:19]Write to MH i2c: F0 00 00 D9 01 C9 [14:52:19]Write i2c OK [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: F0 [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: F0 09 00 [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: F0 09 00 D9 01 00 A3 24 11 67 F1 C7 6B 64 98 [14:52:19]GetLastDocTimeStamp 1729176651 [14:52:19]current date 1729176739 [14:52:19]FM_GetShiftState [14:52:19]SAM_PROTO_GetShiftState [14:52:19]wFMCommunicate request_size=4 [14:52:19]MH_SAM_APDU [14:52:19]CAPDU: 80 13 01 00 [14:52:19]Write to MH i2c: E2 08 00 DA 01 80 13 01 00 00 00 00 00 58 [14:52:19]Write i2c OK [14:52:19]MH_I2C_Read... [14:52:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:19]Read from MH i2c: E2 [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: E2 0E 00 [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: E2 0E 00 DA 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 60 [14:52:19]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [14:52:19]wFMCommunicate OK [14:52:19]SAM_PROTO_GetShiftState done [14:52:19]FM_GetShiftState done [14:52:19]opened in 1729125927 [14:52:19]opened+sec_in_day 1729212327 [14:52:19]quantity*price = 0 [14:52:19]sum+1 = 1 [14:52:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 117 17.10.2024 14:52 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30137675 ФМ: 0000000000871843 ФД: 82191 ФПД: 75655534148970 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T145219&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82191&fm=75655534148970&tin=02508201610067®Number=0000000000091680&sum=0 [14:52:20]StoreToDocumentArchive [14:52:20]shift 525 fd 82191 [14:52:20]save to /storage/0525/doc_00082191 [14:52:20]save last doc name /storage/0525/doc_00082191 to /storage/kkm_last_doc_name [14:52:20]save OK [14:52:20]Clear old archive folders... [14:52:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:52:20]tlvbuf is 01C0D5D0 [14:52:20]SAM_PROTO_ClearQueue [14:52:20]wFMCommunicate request_size=4 [14:52:20]MH_SAM_APDU [14:52:20]CAPDU: 80 09 00 00 [14:52:20]Write to MH i2c: E2 08 00 E7 01 80 09 00 00 00 00 00 00 5A [14:52:20]Write i2c OK [14:52:20]MH_I2C_Read... [14:52:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:52:20]Read from MH i2c: E2 [14:52:20]MH_I2C_Read... [14:52:20]Read from MH i2c: E2 03 00 [14:52:20]MH_I2C_Read... [14:52:20]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [14:52:20]RAPDU: 90 00 [14:52:20]wFMCommunicate OK [14:52:20]SAM_PROTO_ClearQueue done [14:52:20]KKMCreateOFDPacket [14:52:20]OFDProtocolAddRootSTLVToBuf [14:52:20]FM_MakeSignedData [14:52:20]FM_MakeSignedData [14:52:20]SAM_PROTO_SignData [14:52:20]wFMCommunicate request_size=4 [14:52:20]MH_SAM_APDU [14:52:20]CAPDU: 80 0D 01 02 [14:52:20]Write to MH i2c: E2 08 00 E8 01 80 0D 01 02 00 00 00 00 62 [14:52:20]Write i2c OK [14:52:20]MH_I2C_Read... [14:52:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:52:20]Read from MH i2c: E2 [14:52:20]MH_I2C_Read... [14:52:20]Read from MH i2c: E2 03 00 [14:52:20]MH_I2C_Read... [14:52:20]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [14:52:20]RAPDU: 90 00 [14:52:20]wFMCommunicate OK [14:52:20]wFMCommunicate request_size=255 [14:52:20]MH_SAM_APDU [14:52:20]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 2E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 A3 24 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0F 41 01 00 35 04 06 00 [14:52:20]Write to MH i2c: E2 02 01 E9 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 2E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 A3 24 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0F 41 01 00 35 04 06 00 00 00 C7 [14:52:20]Write i2c OK [14:52:20]MH_I2C_Read... [14:52:20]OFD Sender: No OFD packet to send [14:52:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:20]Read from MH i2c: E2 [14:52:20]MH_I2C_Read... [14:52:20]Read from MH i2c: E2 03 00 [14:52:20]MH_I2C_Read... [14:52:20]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [14:52:20]RAPDU: 90 00 [14:52:20]wFMCommunicate OK [14:52:20]wFMCommunicate request_size=11 [14:52:20]MH_SAM_APDU [14:52:20]CAPDU: 80 0D 02 02 06 44 CE ED 3C FD 6A [14:52:20]Write to MH i2c: E2 0E 00 EA 01 80 0D 02 02 06 00 44 CE ED 3C FD 6A 00 00 13 [14:52:20]Write i2c OK [14:52:20]MH_I2C_Read... [14:52:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:20]Read from MH i2c: E2 [14:52:20]MH_I2C_Read... [14:52:20]Read from MH i2c: E2 03 00 [14:52:20]MH_I2C_Read... [14:52:20]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [14:52:20]RAPDU: 90 00 [14:52:20]wFMCommunicate OK [14:52:20]wFMCommunicate request_size=4 [14:52:20]MH_SAM_APDU [14:52:20]CAPDU: 80 0D 03 02 [14:52:20]Write to MH i2c: E2 08 00 EB 01 80 0D 03 02 00 00 00 00 67 [14:52:20]Write i2c OK [14:52:20]MH_I2C_Read... [14:52:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:52:20]Read from MH i2c: E2 [14:52:20]MH_I2C_Read... [14:52:20]Read from MH i2c: E2 0B 00 [14:52:20]MH_I2C_Read... [14:52:20]Read from MH i2c: E2 0B 00 EB 01 00 7A 1F C4 9A A6 EE 7D A4 90 00 14 [14:52:20]RAPDU: 7A 1F C4 9A A6 EE 7D A4 90 00 [14:52:20]wFMCommunicate OK [14:52:20]SAM_PROTO_SignData done [14:52:20]FM_MakeSignedData done [14:52:20]CreateOFDProtocolMessage [14:52:20]wFMCommunicate request_size=4 [14:52:20]MH_SAM_APDU [14:52:20]CAPDU: 80 11 00 00 [14:52:20]Write to MH i2c: E2 08 00 EC 01 80 11 00 00 00 00 00 00 67 [14:52:20]Write i2c OK [14:52:20]MH_I2C_Read... [14:52:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:20]Read from MH i2c: E2 [14:52:20]MH_I2C_Read... [14:52:20]Read from MH i2c: E2 17 00 [14:52:20]MH_I2C_Read... [14:52:20]Read from MH i2c: E2 17 00 EC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 B9 [14:52:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:52:20]wFMCommunicate OK [14:52:20]CreateOFDProtocolMessage done [14:52:20]OFDSenderStorePacket 82191 [14:52:20]StoreOFDPacket docnum=82191 [14:52:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 41 06 08 01 D0 3E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 2E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 A3 24 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0F 41 01 00 35 04 06 00 44 CE ED 3C FD 6A 7A 1F C4 9A A6 EE 7D A4 [14:52:20]CheckFolder [14:52:20]dirname=/storage/ofd_packets [14:52:20]CheckFolder done [14:52:20]ProducePacketName [14:52:20]name=ofd_packets/00082191 [14:52:20]NVStorageSaveData ofd_packets/00082191 [14:52:20]File name is /storage/ofd_packets/00082191 [14:52:20]Write 302 bytes [14:52:20]NVStorageSaveData done [14:52:20]OFDSenderStorePacket done [14:52:20]KKMCreateOFDPacket done [14:52:20]NVStorageSaveData kkm_last_timestamp [14:52:20]File name is /storage/kkm_last_timestamp [14:52:20]Write 4 bytes [14:52:20]NVStorageSaveData done [14:52:20]ExternCall_PrintAddStr [14:52:20]wPrintStart [14:52:20]Write to MH i2c: 01 00 00 ED 01 EE [14:52:20]Write i2c OK [14:52:20]MH_I2C_Read... [14:52:20]Read from MH i2c: 01 [14:52:20]MH_I2C_Read... [14:52:20]Read from MH i2c: 01 07 00 [14:52:20]MH_I2C_Read... [14:52:20]Read from MH i2c: 01 07 00 ED 01 00 00 00 00 00 FF 0F 03 [14:52:20]RasterBufferAndPrint [14:52:20]line Счет N : (1)918697 [14:52:20]line ИНН: 02508201610067 [14:52:20]line Контрольно-Кассовый Чек [14:52:20]line ПРОДАЖА [14:52:20]line ТРК (МРК, ГНК) : 31 [14:52:20]line Товар: 2710194210 [14:52:20]line ДТ(л)-К-5 [14:52:20]line 12.000 * 0.00 [14:52:20]line = 0.00 [14:52:20]line НДС 12% НСП 1% [14:52:20]line > о реализуемом товаре [14:52:20]line ИТОГО: 0.00 [14:52:20]line НСП 1% : 0.00 [14:52:20]line НДС 12% : 0.00 [14:52:20]line Наличными: 0.00 [14:52:20]line Безнал.: 0.00 [14:52:20]line Место: АЗС № 114 "Партнер Нефть" [14:52:20]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [14:52:20]line СНО: Общий режим [14:52:20]line Чек 117 17.10.2024 14:52 [14:52:20]line Смена: 525 ФФД: 1.0 [14:52:20]line ЗНМ: 0300000086 [14:52:20]line РНМ: 0000000000091680 [14:52:20]line Версия ККМ: 001 [14:52:20]line Талоны: ТК ГПНА Online [14:52:20]line 30137675 [14:52:20]line ФМ: 0000000000871843 [14:52:20]line ФД: 82191 [14:52:20]line ФПД: 75655534148970 [14:52:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T145219&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82191&fm=75655534148970&tin=02508201610067®Number=0000000000091680&sum=0 [14:52:21]OFD Sender: Processing packet 82191 [packets to send 254, broken 253] [14:52:21]ProducePacketName [14:52:21]name=ofd_packets/00082191 [14:52:21]OFD Sender: To server: pG, [14:52:21]CommunicateWithHost lk.salyk.kg:30040 [14:52:21]ConnectInit lk.salyk.kg [14:52:21]written 0, free lines is 4095 [14:52:21]Write to MH i2c: 01 00 00 17 02 19 [14:52:21]Write i2c OK [14:52:21]MH_I2C_Read... [14:52:21]Read from MH i2c: 01 [14:52:21]MH_I2C_Read... [14:52:21]Read from MH i2c: 01 07 00 [14:52:21]MH_I2C_Read... [14:52:21]Read from MH i2c: 01 07 00 17 02 00 00 00 00 00 D4 0C 00 [14:52:21]RasterBufferAndPrint [14:52:21]line [14:52:21]line [14:52:21]line [14:52:21]line [14:52:21]line [14:52:21]written 0, free lines is 3290 [14:52:21]MH_Cut [14:52:21]Write to MH i2c: D1 01 00 1E 02 01 F2 [14:52:21]Write i2c OK [14:52:21]MH_I2C_Read... [14:52:21]Read from MH i2c: D1 [14:52:21]MH_I2C_Read... [14:52:21]Read from MH i2c: D1 01 00 [14:52:21]MH_I2C_Read... [14:52:21]Read from MH i2c: D1 01 00 1E 02 00 F1 [14:52:21]Write to MH i2c: 01 00 00 1F 02 21 [14:52:21]Write i2c OK [14:52:21]MH_I2C_Read... [14:52:21]Connected sock=10 [14:52:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 41 06 08 01 D0 3E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 2E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 A3 24 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0F 41 01 00 35 04 06 00 44 CE ED 3C FD 6A 7A 1F C4 9A A6 EE 7D A4 [14:52:22]*** Cut start [14:52:22]*** Partial cut [14:52:22]*** CUTSNS_PIN = 1 [14:52:22]*** CUTSNS_PIN = 0 [14:52:22]*** Brake cut motor [14:52:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 50 1F 47 00 B9 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0F 41 01 00 F4 03 04 00 E2 C9 10 67 B6 04 01 00 00 C6 73 82 72 74 D2 BB A4 [14:52:22]CommunicateWithHost err = 0 [14:52:22]CheckOFDResponse [14:52:22]1017 (14) - 77093643461234 [14:52:22]1041 (16) - 0000000000871843 [14:52:22]1040 (4) - 82191 [14:52:22]1012 (4) - 17.10.2024 08:25 [14:52:22]1206 (1) - 0 [14:52:22]OFD Sender: Remove packet 82191 [14:52:22]ProducePacketName [14:52:22]name=ofd_packets/00082191 [14:52:22]NVStorageDeleteData [14:52:22]Read from MH i2c: 01 [14:52:22]MH_I2C_Read... [14:52:23]*** Stop cut motor [14:52:23]*** Cut end [14:52:23]Read from MH i2c: 01 07 00 [14:52:23]MH_I2C_Read... [14:52:23]Read from MH i2c: 01 07 00 1F 02 00 00 00 00 00 FF 0F 36 [14:52:23]process_action close_receipt done [14:52:23]requested_data is exist [14:52:23]produce_requested_data [14:52:23]requested_item fm.sn is exist - process it [14:52:23]wFMCommunicate request_size=4 [14:52:23]MH_SAM_APDU [14:52:23]CAPDU: 80 11 00 00 [14:52:23]Write to MH i2c: E2 08 00 20 02 80 11 00 00 00 00 00 00 9C [14:52:23]Write i2c OK [14:52:23]MH_I2C_Read... [14:52:23]Read from MH i2c: E2 [14:52:23]MH_I2C_Read... [14:52:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:23]Read from MH i2c: E2 17 00 [14:52:23]MH_I2C_Read... [14:52:23]Read from MH i2c: E2 17 00 20 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 EE [14:52:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:52:23]wFMCommunicate OK [14:52:23]requested_item fd.num is exist - process it [14:52:23]SAM_PROTO_GetFieldsCounters [14:52:23]wFMCommunicate request_size=4 [14:52:23]MH_SAM_APDU [14:52:23]CAPDU: 80 13 00 00 [14:52:23]Write to MH i2c: E2 08 00 21 02 80 13 00 00 00 00 00 00 9F [14:52:23]Write i2c OK [14:52:23]MH_I2C_Read... [14:52:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:52:23]Read from MH i2c: E2 [14:52:23]MH_I2C_Read... [14:52:23]Read from MH i2c: E2 62 00 [14:52:23]MH_I2C_Read... [14:52:23]OFD Sender: No OFD packet to send [14:52:23]Read from MH i2c: E2 62 00 21 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 0F 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [14:52:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 0F 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:52:23]wFMCommunicate OK [14:52:23]SAM_PROTO_GetFieldsCounters done [14:52:23]requested_item shift.num is exist - process it [14:52:23]requested_item shift.opened is exist - process it [14:52:23]req_shift_opened [14:52:23]FM_GetShiftState [14:52:23]SAM_PROTO_GetShiftState [14:52:23]wFMCommunicate request_size=4 [14:52:23]MH_SAM_APDU [14:52:23]CAPDU: 80 13 01 00 [14:52:23]Write to MH i2c: E2 08 00 22 02 80 13 01 00 00 00 00 00 A1 [14:52:23]Write i2c OK [14:52:23]MH_I2C_Read... [14:52:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:23]Read from MH i2c: E2 [14:52:23]MH_I2C_Read... [14:52:23]Read from MH i2c: E2 0E 00 [14:52:23]MH_I2C_Read... [14:52:23]Read from MH i2c: E2 0E 00 22 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 A9 [14:52:23]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [14:52:23]wFMCommunicate OK [14:52:23]SAM_PROTO_GetShiftState done [14:52:23]FM_GetShiftState done [14:52:23]req_shift_opened done [14:52:23]requested_item shift.open_date is exist - process it [14:52:23]req_shift_open_date [14:52:23]req_shift_open_date done [14:52:23]produce_requested_data done [14:52:23]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82191,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [14:52:23]process_action_free close_receipt [14:52:23]json_value_free [14:52:23]json_value_free done [14:52:23]process_json_proto returns [14:52:23]Send response to host [14:52:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82191,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [14:52:23]free response buf [14:52:23]execute_script done [14:52:23]execute_script returns [14:52:23]free content buf [14:52:23]Sock 7.Close socket [14:52:23]Sock 7.Thread stoped [14:52:23]accept exits with 9 [14:52:23]New connection [14:52:23]New thread 3066813796 created [14:52:23]Thread 3066957156 joined [14:52:23]Waiting for new connection... [14:52:23] Sock 9.Parse request [14:52:23]Sock 9.Check first char [14:52:23]Sock 9.First char is OK [14:52:23]request: POST /json_proto HTTP/1.0 [14:52:23]Method: POST [14:52:23]URL: /json_proto [14:52:23]Method is POST - this is cgi request [14:52:23]url: /json_proto [14:52:23]query_string will be loaded in cgi processing [14:52:23]execute_cgi json_proto POST (null) [14:52:23]execute_cgi path=json_proto method=POST [14:52:23]POST find Content-Length [14:52:23]Host: 172.17.44.67:8080 [14:52:23]Content-Length: 677 [14:52:23]Content-Type: application/json [14:52:23] [14:52:23]POST finish read [14:52:23]Found Content-Length = 677 [14:52:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:23]execute_script... [14:52:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:23]POST & json_proto [14:52:23]process_json_proto [14:52:23]json parsed OK: [14:52:23]protocol is kg_v1.0 [14:52:23]action value=close_receipt [14:52:23]process_action close_receipt [14:52:23]cmd_close_receipt [14:52:23]MH_GetDate [14:52:23]Write to MH i2c: F0 00 00 23 02 14 [14:52:23]Write i2c OK [14:52:23]MH_I2C_Read... [14:52:23]Read from MH i2c: F0 [14:52:23]MH_I2C_Read... [14:52:23]Read from MH i2c: F0 09 00 [14:52:23]MH_I2C_Read... [14:52:23]Read from MH i2c: F0 09 00 23 02 00 A8 24 11 67 F1 C7 6B 64 E8 [14:52:23]GetLastDocTimeStamp 1729176739 [14:52:23]current date 1729176744 [14:52:23]FM_GetShiftState [14:52:23]SAM_PROTO_GetShiftState [14:52:23]wFMCommunicate request_size=4 [14:52:23]MH_SAM_APDU [14:52:23]CAPDU: 80 13 01 00 [14:52:23]Write to MH i2c: E2 08 00 24 02 80 13 01 00 00 00 00 00 A3 [14:52:23]Write i2c OK [14:52:23]MH_I2C_Read... [14:52:23]Read from MH i2c: E2 [14:52:23]MH_I2C_Read... [14:52:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:23]Read from MH i2c: E2 0E 00 [14:52:23]MH_I2C_Read... [14:52:23]Read from MH i2c: E2 0E 00 24 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 AB [14:52:23]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [14:52:23]wFMCommunicate OK [14:52:23]SAM_PROTO_GetShiftState done [14:52:23]FM_GetShiftState done [14:52:23]opened in 1729125927 [14:52:23]opened+sec_in_day 1729212327 [14:52:23]quantity*price = 40006 [14:52:23]sum+1 = 40007 [14:52:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 118 17.10.2024 14:52 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82192 ФПД: 36383921467066 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T145224&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82192&fm=36383921467066&tin=02508201610067®Number=0000000000091680&sum=40000 [14:52:24]StoreToDocumentArchive [14:52:24]shift 525 fd 82192 [14:52:24]save to /storage/0525/doc_00082192 [14:52:24]save last doc name /storage/0525/doc_00082192 to /storage/kkm_last_doc_name [14:52:24]save OK [14:52:24]Clear old archive folders... [14:52:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:52:24]tlvbuf is 01B78260 [14:52:24]SAM_PROTO_ClearQueue [14:52:24]wFMCommunicate request_size=4 [14:52:24]MH_SAM_APDU [14:52:24]CAPDU: 80 09 00 00 [14:52:24]Write to MH i2c: E2 08 00 31 02 80 09 00 00 00 00 00 00 A5 [14:52:24]Write i2c OK [14:52:24]MH_I2C_Read... [14:52:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:52:24]Read from MH i2c: E2 [14:52:24]MH_I2C_Read... [14:52:24]Read from MH i2c: E2 03 00 [14:52:24]MH_I2C_Read... [14:52:24]Read from MH i2c: E2 03 00 31 02 00 90 00 A7 [14:52:24]RAPDU: 90 00 [14:52:24]wFMCommunicate OK [14:52:24]SAM_PROTO_ClearQueue done [14:52:24]KKMCreateOFDPacket [14:52:24]OFDProtocolAddRootSTLVToBuf [14:52:24]FM_MakeSignedData [14:52:24]FM_MakeSignedData [14:52:24]SAM_PROTO_SignData [14:52:24]wFMCommunicate request_size=4 [14:52:24]MH_SAM_APDU [14:52:24]CAPDU: 80 0D 01 02 [14:52:24]Write to MH i2c: E2 08 00 32 02 80 0D 01 02 00 00 00 00 AD [14:52:24]Write i2c OK [14:52:24]MH_I2C_Read... [14:52:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:52:25]Read from MH i2c: E2 [14:52:25]MH_I2C_Read... [14:52:25]Read from MH i2c: E2 03 00 [14:52:25]MH_I2C_Read... [14:52:25]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [14:52:25]RAPDU: 90 00 [14:52:25]wFMCommunicate OK [14:52:25]wFMCommunicate request_size=255 [14:52:25]MH_SAM_APDU [14:52:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 A8 24 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 10 41 01 00 35 04 06 00 21 [14:52:25]Write to MH i2c: E2 02 01 33 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 A8 24 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 10 41 01 00 35 04 06 00 21 00 00 44 [14:52:25]Write i2c OK [14:52:25]MH_I2C_Read... [14:52:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:25]Read from MH i2c: E2 [14:52:25]MH_I2C_Read... [14:52:25]Read from MH i2c: E2 03 00 [14:52:25]MH_I2C_Read... [14:52:25]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [14:52:25]RAPDU: 90 00 [14:52:25]wFMCommunicate OK [14:52:25]wFMCommunicate request_size=10 [14:52:25]MH_SAM_APDU [14:52:25]CAPDU: 80 0D 02 02 05 17 4A B6 EE BA [14:52:25]Write to MH i2c: E2 0D 00 34 02 80 0D 02 02 05 00 17 4A B6 EE BA 00 00 79 [14:52:25]Write i2c OK [14:52:25]MH_I2C_Read... [14:52:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:25]Read from MH i2c: E2 [14:52:25]MH_I2C_Read... [14:52:25]Read from MH i2c: E2 03 00 [14:52:25]MH_I2C_Read... [14:52:25]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [14:52:25]RAPDU: 90 00 [14:52:25]wFMCommunicate OK [14:52:25]wFMCommunicate request_size=4 [14:52:25]MH_SAM_APDU [14:52:25]CAPDU: 80 0D 03 02 [14:52:25]Write to MH i2c: E2 08 00 35 02 80 0D 03 02 00 00 00 00 B2 [14:52:25]Write i2c OK [14:52:25]MH_I2C_Read... [14:52:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:52:25]Read from MH i2c: E2 [14:52:25]MH_I2C_Read... [14:52:25]Read from MH i2c: E2 0B 00 [14:52:25]MH_I2C_Read... [14:52:25]Read from MH i2c: E2 0B 00 35 02 00 BF 78 CA AF 95 85 CB 3D 90 00 85 [14:52:25]RAPDU: BF 78 CA AF 95 85 CB 3D 90 00 [14:52:25]wFMCommunicate OK [14:52:25]SAM_PROTO_SignData done [14:52:25]FM_MakeSignedData done [14:52:25]CreateOFDProtocolMessage [14:52:25]wFMCommunicate request_size=4 [14:52:25]MH_SAM_APDU [14:52:25]CAPDU: 80 11 00 00 [14:52:25]Write to MH i2c: E2 08 00 36 02 80 11 00 00 00 00 00 00 B2 [14:52:25]Write i2c OK [14:52:25]MH_I2C_Read... [14:52:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:25]Read from MH i2c: E2 [14:52:25]MH_I2C_Read... [14:52:25]Read from MH i2c: E2 17 00 [14:52:25]MH_I2C_Read... [14:52:25]Read from MH i2c: E2 17 00 36 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 04 [14:52:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:52:25]wFMCommunicate OK [14:52:25]CreateOFDProtocolMessage done [14:52:25]OFDSenderStorePacket 82192 [14:52:25]StoreOFDPacket docnum=82192 [14:52:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 FB AC 07 01 FB E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 A8 24 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 10 41 01 00 35 04 06 00 21 17 4A B6 EE BA BF 78 CA AF 95 85 CB 3D [14:52:25]CheckFolder [14:52:25]dirname=/storage/ofd_packets [14:52:25]CheckFolder done [14:52:25]ProducePacketName [14:52:25]name=ofd_packets/00082192 [14:52:25]NVStorageSaveData ofd_packets/00082192 [14:52:25]File name is /storage/ofd_packets/00082192 [14:52:25]Write 301 bytes [14:52:25]NVStorageSaveData done [14:52:25]OFDSenderStorePacket done [14:52:25]KKMCreateOFDPacket done [14:52:25]NVStorageSaveData kkm_last_timestamp [14:52:25]File name is /storage/kkm_last_timestamp [14:52:25]Write 4 bytes [14:52:25]NVStorageSaveData done [14:52:25]ExternCall_PrintAddStr [14:52:25]wPrintStart [14:52:25]Write to MH i2c: 01 00 00 37 02 39 [14:52:25]Write i2c OK [14:52:25]MH_I2C_Read... [14:52:25]Read from MH i2c: 01 [14:52:25]MH_I2C_Read... [14:52:25]Read from MH i2c: 01 07 00 [14:52:25]MH_I2C_Read... [14:52:25]Read from MH i2c: 01 07 00 37 02 00 00 00 00 00 FF 0F 4E [14:52:25]RasterBufferAndPrint [14:52:25]line Счет N : (1)918698 [14:52:25]line ИНН: 02508201610067 [14:52:25]line Контрольно-Кассовый Чек [14:52:25]line ПРОДАЖА [14:52:25]line ТРК (МРК, ГНК) : 11 [14:52:25]line Товар: 2710124130 [14:52:25]line Аи-92-К-4 [14:52:25]line 5.980 * 66.90 [14:52:25]line = 400.06 [14:52:25]line НДС 12% НСП 1% [14:52:25]line > о реализуемом товаре [14:52:25]line ОКРУГЛЕНИЕ: -0.06 [14:52:25]line ИТОГО: 400.00 [14:52:25]line Внесено: 400.00 [14:52:25]line СДАЧА: 0.00 [14:52:25]line НСП 1% : 3.54 [14:52:25]line НДС 12% : 42.48 [14:52:25]line Наличными: 400.00 [14:52:25]line Безнал.: 0.00 [14:52:25]line Место: АЗС № 114 "Партнер Нефть" [14:52:26]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [14:52:26]line СНО: Общий режим [14:52:26]line Чек 118 17.10.2024 14:52 [14:52:26]line Смена: 525 ФФД: 1.0 [14:52:26]line ЗНМ: 0300000086 [14:52:26]line РНМ: 0000000000091680 [14:52:26]line Версия ККМ: 001 [14:52:26]line ФМ: 0000000000871843 [14:52:26]line ФД: 82192 [14:52:26]line ФПД: 36383921467066 [14:52:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T145224&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82192&fm=36383921467066&tin=02508201610067®Number=0000000000091680&sum=40000 [14:52:26]OFD Sender: Processing packet 82192 [packets to send 254, broken 253] [14:52:26]ProducePacketName [14:52:26]name=ofd_packets/00082192 [14:52:26]OFD Sender: To server: pG, [14:52:26]CommunicateWithHost lk.salyk.kg:30040 [14:52:26]ConnectInit lk.salyk.kg [14:52:26]written 0, free lines is 4095 [14:52:26]Write to MH i2c: 01 00 00 62 02 64 [14:52:26]Write i2c OK [14:52:26]MH_I2C_Read... [14:52:26]Read from MH i2c: 01 [14:52:26]MH_I2C_Read... [14:52:26]Read from MH i2c: 01 07 00 [14:52:26]MH_I2C_Read... [14:52:26]Read from MH i2c: 01 07 00 62 02 00 00 00 00 00 DD 0C 54 [14:52:26]RasterBufferAndPrint [14:52:26]line [14:52:26]line [14:52:26]line [14:52:26]line [14:52:26]line [14:52:26]written 0, free lines is 3305 [14:52:26]MH_Cut [14:52:26]Write to MH i2c: D1 01 00 69 02 01 3D [14:52:26]Write i2c OK [14:52:26]MH_I2C_Read... [14:52:26]Read from MH i2c: D1 [14:52:26]MH_I2C_Read... [14:52:26]Read from MH i2c: D1 01 00 [14:52:26]MH_I2C_Read... [14:52:26]Read from MH i2c: D1 01 00 69 02 00 3C [14:52:26]Write to MH i2c: 01 00 00 6A 02 6C [14:52:26]Write i2c OK [14:52:26]MH_I2C_Read... [14:52:27]*** Cut start [14:52:27]*** Partial cut [14:52:27]*** CUTSNS_PIN = 1 [14:52:27]*** CUTSNS_PIN = 0 [14:52:27]*** Brake cut motor [14:52:27]Connected sock=11 [14:52:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 FB AC 07 01 FB E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 A8 24 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 10 41 01 00 35 04 06 00 21 17 4A B6 EE BA BF 78 CA AF 95 85 CB 3D [14:52:27]Read from MH i2c: 01 [14:52:27]MH_I2C_Read... [14:52:27]*** Stop cut motor [14:52:27]*** Cut end [14:52:27]Read from MH i2c: 01 07 00 [14:52:27]MH_I2C_Read... [14:52:27]Read from MH i2c: 01 07 00 6A 02 00 00 00 00 00 FF 0F 81 [14:52:27]process_action close_receipt done [14:52:27]requested_data is exist [14:52:27]produce_requested_data [14:52:27]requested_item fm.sn is exist - process it [14:52:27]wFMCommunicate request_size=4 [14:52:27]MH_SAM_APDU [14:52:27]CAPDU: 80 11 00 00 [14:52:27]Write to MH i2c: E2 08 00 6B 02 80 11 00 00 00 00 00 00 E7 [14:52:27]Write i2c OK [14:52:27]MH_I2C_Read... [14:52:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:27]Read from MH i2c: E2 [14:52:27]MH_I2C_Read... [14:52:27]Read from MH i2c: E2 17 00 [14:52:27]MH_I2C_Read... [14:52:27]Read from MH i2c: E2 17 00 6B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 39 [14:52:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:52:27]wFMCommunicate OK [14:52:27]requested_item fd.num is exist - process it [14:52:27]SAM_PROTO_GetFieldsCounters [14:52:27]wFMCommunicate request_size=4 [14:52:27]MH_SAM_APDU [14:52:27]CAPDU: 80 13 00 00 [14:52:27]Write to MH i2c: E2 08 00 6C 02 80 13 00 00 00 00 00 00 EA [14:52:27]Write i2c OK [14:52:27]MH_I2C_Read... [14:52:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:52:28]Read from MH i2c: E2 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 62 00 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 62 00 6C 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 10 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [14:52:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 10 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:52:28]wFMCommunicate OK [14:52:28]SAM_PROTO_GetFieldsCounters done [14:52:28]requested_item shift.num is exist - process it [14:52:28]requested_item shift.opened is exist - process it [14:52:28]req_shift_opened [14:52:28]FM_GetShiftState [14:52:28]SAM_PROTO_GetShiftState [14:52:28]wFMCommunicate request_size=4 [14:52:28]MH_SAM_APDU [14:52:28]CAPDU: 80 13 01 00 [14:52:28]Write to MH i2c: E2 08 00 6D 02 80 13 01 00 00 00 00 00 EC [14:52:28]Write i2c OK [14:52:28]MH_I2C_Read... [14:52:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:28]Read from MH i2c: E2 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 0E 00 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 0E 00 6D 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 F4 [14:52:28]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [14:52:28]wFMCommunicate OK [14:52:28]SAM_PROTO_GetShiftState done [14:52:28]FM_GetShiftState done [14:52:28]req_shift_opened done [14:52:28]requested_item shift.open_date is exist - process it [14:52:28]req_shift_open_date [14:52:28]req_shift_open_date done [14:52:28]produce_requested_data done [14:52:28]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82192,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [14:52:28]process_action_free close_receipt [14:52:28]json_value_free [14:52:28]json_value_free done [14:52:28]process_json_proto returns [14:52:28]Send response to host [14:52:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82192,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [14:52:28]free response buf [14:52:28]execute_script done [14:52:28]execute_script returns [14:52:28]free content buf [14:52:28]Sock 9.Close socket [14:52:28]Sock 9.Thread stoped [14:52:28]recv_with_timeout no data received [14:52:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 8B D5 47 00 8A 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 10 41 01 00 F4 03 04 00 E8 C9 10 67 B6 04 01 00 00 D7 78 5A D1 9A 4E F6 B9 [14:52:29]CommunicateWithHost err = 0 [14:52:29]CheckOFDResponse [14:52:29]1017 (14) - 77093643461234 [14:52:29]1041 (16) - 0000000000871843 [14:52:29]1040 (4) - 82192 [14:52:29]1012 (4) - 17.10.2024 08:25 [14:52:29]1206 (1) - 0 [14:52:29]OFD Sender: Remove packet 82192 [14:52:29]ProducePacketName [14:52:29]name=ofd_packets/00082192 [14:52:29]NVStorageDeleteData [14:52:30]OFD Sender: No OFD packet to send [14:52:35]OFD Sender: No OFD packet to send [14:52:39]recv_with_timeout no data received [14:52:40]OFD Sender: No OFD packet to send [14:52:45]OFD Sender: No OFD packet to send [14:52:49]recv_with_timeout no data received [14:52:50]OFD Sender: No OFD packet to send [14:52:55]OFD Sender: No OFD packet to send [14:53:00]OFD Sender: No OFD packet to send [14:53:00]recv_with_timeout no data received [14:53:05]OFD Sender: No OFD packet to send [14:53:10]OFD Sender: No OFD packet to send [14:53:11]recv_with_timeout no data received [14:53:15]OFD Sender: No OFD packet to send [14:53:20]OFD Sender: No OFD packet to send [14:53:21]recv_with_timeout no data received [14:53:25]OFD Sender: No OFD packet to send [14:53:30]OFD Sender: No OFD packet to send [14:53:35]OFD Sender: No OFD packet to send [14:53:40]OFD Sender: No OFD packet to send [14:53:45]OFD Sender: No OFD packet to send [14:53:50]OFD Sender: No OFD packet to send [14:53:55]OFD Sender: No OFD packet to send [14:54:00]OFD Sender: No OFD packet to send [14:54:05]OFD Sender: No OFD packet to send [14:54:10]OFD Sender: No OFD packet to send [14:54:15]OFD Sender: No OFD packet to send [14:54:20]OFD Sender: No OFD packet to send [14:54:25]OFD Sender: No OFD packet to send [14:54:30]OFD Sender: No OFD packet to send [14:54:35]OFD Sender: No OFD packet to send [14:54:40]OFD Sender: No OFD packet to send [14:54:45]OFD Sender: No OFD packet to send [14:54:50]OFD Sender: No OFD packet to send [14:54:55]OFD Sender: No OFD packet to send [14:55:00]OFD Sender: No OFD packet to send [14:55:05]OFD Sender: No OFD packet to send [14:55:10]OFD Sender: No OFD packet to send [14:55:15]OFD Sender: No OFD packet to send [14:55:20]OFD Sender: No OFD packet to send [14:55:25]OFD Sender: No OFD packet to send [14:55:30]OFD Sender: No OFD packet to send [14:55:35]OFD Sender: No OFD packet to send [14:55:40]OFD Sender: No OFD packet to send [14:55:45]OFD Sender: No OFD packet to send [14:55:50]OFD Sender: No OFD packet to send [14:55:55]OFD Sender: No OFD packet to send [14:56:00]OFD Sender: No OFD packet to send [14:56:05]OFD Sender: No OFD packet to send [14:56:10]OFD Sender: No OFD packet to send [14:56:15]OFD Sender: No OFD packet to send [14:56:20]OFD Sender: No OFD packet to send [14:56:25]OFD Sender: No OFD packet to send [14:56:30]OFD Sender: No OFD packet to send [14:56:35]OFD Sender: No OFD packet to send [14:56:40]OFD Sender: No OFD packet to send [14:56:45]OFD Sender: No OFD packet to send [14:56:50]OFD Sender: No OFD packet to send [14:56:55]OFD Sender: No OFD packet to send [14:57:00]OFD Sender: No OFD packet to send [14:57:05]OFD Sender: No OFD packet to send [14:57:10]OFD Sender: No OFD packet to send [14:57:15]OFD Sender: No OFD packet to send [14:57:20]OFD Sender: No OFD packet to send [14:57:25]OFD Sender: No OFD packet to send [14:57:30]OFD Sender: No OFD packet to send [14:57:35]OFD Sender: No OFD packet to send [14:57:40]OFD Sender: No OFD packet to send [14:57:45]OFD Sender: No OFD packet to send [14:57:50]OFD Sender: No OFD packet to send [14:57:55]OFD Sender: No OFD packet to send [14:58:00]OFD Sender: No OFD packet to send [14:58:05]OFD Sender: No OFD packet to send [14:58:10]OFD Sender: No OFD packet to send [14:58:15]OFD Sender: No OFD packet to send [14:58:20]OFD Sender: No OFD packet to send [14:58:25]OFD Sender: No OFD packet to send [14:58:30]OFD Sender: No OFD packet to send [14:58:35]OFD Sender: No OFD packet to send [14:58:40]OFD Sender: No OFD packet to send [14:58:45]OFD Sender: No OFD packet to send [14:58:50]OFD Sender: No OFD packet to send [14:58:55]OFD Sender: No OFD packet to send [14:59:00]OFD Sender: No OFD packet to send [14:59:05]OFD Sender: No OFD packet to send [14:59:10]OFD Sender: No OFD packet to send [14:59:15]OFD Sender: No OFD packet to send [14:59:20]OFD Sender: No OFD packet to send [14:59:25]OFD Sender: No OFD packet to send [14:59:30]OFD Sender: No OFD packet to send [14:59:35]OFD Sender: No OFD packet to send [14:59:40]OFD Sender: No OFD packet to send [14:59:45]OFD Sender: No OFD packet to send [14:59:50]OFD Sender: No OFD packet to send [14:59:55]OFD Sender: No OFD packet to send [15:00:00]OFD Sender: No OFD packet to send [15:00:05]OFD Sender: No OFD packet to send [15:00:10]OFD Sender: No OFD packet to send [15:00:15]OFD Sender: No OFD packet to send [15:00:20]OFD Sender: No OFD packet to send [15:00:25]OFD Sender: No OFD packet to send [15:00:30]OFD Sender: No OFD packet to send [15:00:35]OFD Sender: No OFD packet to send [15:00:40]OFD Sender: No OFD packet to send [15:00:45]OFD Sender: No OFD packet to send [15:00:50]OFD Sender: No OFD packet to send [15:00:55]OFD Sender: No OFD packet to send [15:01:00]OFD Sender: No OFD packet to send [15:01:05]OFD Sender: No OFD packet to send [15:01:10]OFD Sender: No OFD packet to send [15:01:15]OFD Sender: No OFD packet to send [15:01:20]OFD Sender: No OFD packet to send [15:01:25]OFD Sender: No OFD packet to send [15:01:30]OFD Sender: No OFD packet to send [15:01:35]OFD Sender: No OFD packet to send [15:01:40]OFD Sender: No OFD packet to send [15:01:45]OFD Sender: No OFD packet to send [15:01:51]OFD Sender: No OFD packet to send [15:01:56]OFD Sender: No OFD packet to send [15:02:01]OFD Sender: No OFD packet to send [15:02:06]OFD Sender: No OFD packet to send [15:02:11]OFD Sender: No OFD packet to send [15:02:16]OFD Sender: No OFD packet to send [15:02:21]OFD Sender: No OFD packet to send [15:02:26]OFD Sender: No OFD packet to send [15:02:31]OFD Sender: No OFD packet to send [15:02:36]OFD Sender: No OFD packet to send [15:02:41]OFD Sender: No OFD packet to send [15:02:46]OFD Sender: No OFD packet to send [15:02:51]OFD Sender: No OFD packet to send [15:02:56]OFD Sender: No OFD packet to send [15:03:01]OFD Sender: No OFD packet to send [15:03:06]OFD Sender: No OFD packet to send [15:03:11]accept exits with 7 [15:03:11]New connection [15:03:11]New thread 3066957156 created [15:03:11]Thread 3066813796 joined [15:03:11]Waiting for new connection... [15:03:11] Sock 7.Parse request [15:03:11]Sock 7.Check first char [15:03:11]Sock 7.First char is OK [15:03:11]request: POST /json_proto HTTP/1.0 [15:03:11]Method: POST [15:03:11]URL: /json_proto [15:03:11]Method is POST - this is cgi request [15:03:11]url: /json_proto [15:03:11]query_string will be loaded in cgi processing [15:03:11]execute_cgi json_proto POST (null) [15:03:11]execute_cgi path=json_proto method=POST [15:03:11]POST find Content-Length [15:03:11]Host: 172.17.44.67:8080 [15:03:11]Content-Length: 800 [15:03:11]Content-Type: application/json [15:03:11] [15:03:11]POST finish read [15:03:11]Found Content-Length = 800 [15:03:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:11]execute_script... [15:03:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:11]POST & json_proto [15:03:11]process_json_proto [15:03:11]json parsed OK: [15:03:11]protocol is kg_v1.0 [15:03:11]action value=close_receipt [15:03:11]process_action close_receipt [15:03:11]cmd_close_receipt [15:03:11]MH_GetDate [15:03:11]Write to MH i2c: F0 00 00 6E 02 5F [15:03:11]Write i2c OK [15:03:11]MH_I2C_Read... [15:03:11]Read from MH i2c: F0 [15:03:11]MH_I2C_Read... [15:03:11]Read from MH i2c: F0 09 00 [15:03:11]MH_I2C_Read... [15:03:11]Read from MH i2c: F0 09 00 6E 02 00 2F 27 11 67 F1 C7 6B 64 BD [15:03:11]GetLastDocTimeStamp 1729176744 [15:03:11]current date 1729177391 [15:03:11]FM_GetShiftState [15:03:11]SAM_PROTO_GetShiftState [15:03:11]wFMCommunicate request_size=4 [15:03:11]MH_SAM_APDU [15:03:11]CAPDU: 80 13 01 00 [15:03:11]Write to MH i2c: E2 08 00 6F 02 80 13 01 00 00 00 00 00 EE [15:03:11]Write i2c OK [15:03:11]MH_I2C_Read... [15:03:11]OFD Sender: No OFD packet to send [15:03:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:11]Read from MH i2c: E2 [15:03:11]MH_I2C_Read... [15:03:11]Read from MH i2c: E2 0E 00 [15:03:11]MH_I2C_Read... [15:03:11]Read from MH i2c: E2 0E 00 6F 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 F6 [15:03:11]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [15:03:11]wFMCommunicate OK [15:03:11]SAM_PROTO_GetShiftState done [15:03:11]FM_GetShiftState done [15:03:11]opened in 1729125927 [15:03:11]opened+sec_in_day 1729212327 [15:03:11]quantity*price = 20003 [15:03:11]sum+1 = 20004 [15:03:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 119 17.10.2024 15:03 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871843 ФД: 82193 ФПД: 141106508690280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T150311&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82193&fm=141106508690280&tin=02508201610067®Number=0000000000091680&sum=20003 [15:03:12]StoreToDocumentArchive [15:03:12]shift 525 fd 82193 [15:03:12]save to /storage/0525/doc_00082193 [15:03:12]save last doc name /storage/0525/doc_00082193 to /storage/kkm_last_doc_name [15:03:12]save OK [15:03:12]Clear old archive folders... [15:03:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:03:12]tlvbuf is B6EA9570 [15:03:12]SAM_PROTO_ClearQueue [15:03:12]wFMCommunicate request_size=4 [15:03:12]MH_SAM_APDU [15:03:12]CAPDU: 80 09 00 00 [15:03:12]Write to MH i2c: E2 08 00 7C 02 80 09 00 00 00 00 00 00 F0 [15:03:12]Write i2c OK [15:03:12]MH_I2C_Read... [15:03:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:12]Read from MH i2c: E2 [15:03:12]MH_I2C_Read... [15:03:12]Read from MH i2c: E2 03 00 [15:03:12]MH_I2C_Read... [15:03:12]Read from MH i2c: E2 03 00 7C 02 00 90 00 F2 [15:03:12]RAPDU: 90 00 [15:03:12]wFMCommunicate OK [15:03:12]SAM_PROTO_ClearQueue done [15:03:12]KKMCreateOFDPacket [15:03:12]OFDProtocolAddRootSTLVToBuf [15:03:12]FM_MakeSignedData [15:03:12]FM_MakeSignedData [15:03:12]SAM_PROTO_SignData [15:03:12]wFMCommunicate request_size=4 [15:03:12]MH_SAM_APDU [15:03:12]CAPDU: 80 0D 01 02 [15:03:12]Write to MH i2c: E2 08 00 7D 02 80 0D 01 02 00 00 00 00 F8 [15:03:12]Write i2c OK [15:03:12]MH_I2C_Read... [15:03:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:12]Read from MH i2c: E2 [15:03:12]MH_I2C_Read... [15:03:12]Read from MH i2c: E2 03 00 [15:03:12]MH_I2C_Read... [15:03:12]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [15:03:12]RAPDU: 90 00 [15:03:12]wFMCommunicate OK [15:03:12]wFMCommunicate request_size=255 [15:03:12]MH_SAM_APDU [15:03:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 2F 27 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 11 41 01 00 35 04 06 00 80 [15:03:12]Write to MH i2c: E2 02 01 7E 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 2F 27 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 11 41 01 00 35 04 06 00 80 00 00 73 [15:03:12]Write i2c OK [15:03:12]MH_I2C_Read... [15:03:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:12]Read from MH i2c: E2 [15:03:12]MH_I2C_Read... [15:03:12]Read from MH i2c: E2 03 00 [15:03:12]MH_I2C_Read... [15:03:12]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [15:03:12]RAPDU: 90 00 [15:03:12]wFMCommunicate OK [15:03:12]wFMCommunicate request_size=10 [15:03:12]MH_SAM_APDU [15:03:12]CAPDU: 80 0D 02 02 05 55 EB 53 73 68 [15:03:12]Write to MH i2c: E2 0D 00 7F 02 80 0D 02 02 05 00 55 EB 53 73 68 00 00 73 [15:03:12]Write i2c OK [15:03:12]MH_I2C_Read... [15:03:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:12]Read from MH i2c: E2 [15:03:12]MH_I2C_Read... [15:03:12]Read from MH i2c: E2 03 00 [15:03:12]MH_I2C_Read... [15:03:12]Read from MH i2c: E2 03 00 7F 02 00 90 00 F5 [15:03:12]RAPDU: 90 00 [15:03:12]wFMCommunicate OK [15:03:12]wFMCommunicate request_size=4 [15:03:12]MH_SAM_APDU [15:03:12]CAPDU: 80 0D 03 02 [15:03:12]Write to MH i2c: E2 08 00 80 02 80 0D 03 02 00 00 00 00 FD [15:03:12]Write i2c OK [15:03:12]MH_I2C_Read... [15:03:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:12]Read from MH i2c: E2 [15:03:12]MH_I2C_Read... [15:03:12]Read from MH i2c: E2 0B 00 [15:03:12]MH_I2C_Read... [15:03:12]Read from MH i2c: E2 0B 00 80 02 00 8B 92 14 F8 F1 A8 DA B6 90 00 50 [15:03:12]RAPDU: 8B 92 14 F8 F1 A8 DA B6 90 00 [15:03:12]wFMCommunicate OK [15:03:12]SAM_PROTO_SignData done [15:03:12]FM_MakeSignedData done [15:03:12]CreateOFDProtocolMessage [15:03:12]wFMCommunicate request_size=4 [15:03:12]MH_SAM_APDU [15:03:12]CAPDU: 80 11 00 00 [15:03:12]Write to MH i2c: E2 08 00 81 02 80 11 00 00 00 00 00 00 FD [15:03:12]Write i2c OK [15:03:12]MH_I2C_Read... [15:03:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:12]Read from MH i2c: E2 [15:03:12]MH_I2C_Read... [15:03:12]Read from MH i2c: E2 17 00 [15:03:12]MH_I2C_Read... [15:03:12]Read from MH i2c: E2 17 00 81 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 4F [15:03:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:03:12]wFMCommunicate OK [15:03:12]CreateOFDProtocolMessage done [15:03:12]OFDSenderStorePacket 82193 [15:03:12]StoreOFDPacket docnum=82193 [15:03:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 41 2C 07 01 65 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 2F 27 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 11 41 01 00 35 04 06 00 80 55 EB 53 73 68 8B 92 14 F8 F1 A8 DA B6 [15:03:12]CheckFolder [15:03:12]dirname=/storage/ofd_packets [15:03:12]CheckFolder done [15:03:12]ProducePacketName [15:03:12]name=ofd_packets/00082193 [15:03:12]NVStorageSaveData ofd_packets/00082193 [15:03:12]File name is /storage/ofd_packets/00082193 [15:03:12]Write 301 bytes [15:03:12]NVStorageSaveData done [15:03:12]OFDSenderStorePacket done [15:03:12]KKMCreateOFDPacket done [15:03:12]NVStorageSaveData kkm_last_timestamp [15:03:12]File name is /storage/kkm_last_timestamp [15:03:12]Write 4 bytes [15:03:12]NVStorageSaveData done [15:03:12]ExternCall_PrintAddStr [15:03:12]wPrintStart [15:03:12]Write to MH i2c: 01 00 00 82 02 84 [15:03:12]Write i2c OK [15:03:12]MH_I2C_Read... [15:03:12]Read from MH i2c: 01 [15:03:12]MH_I2C_Read... [15:03:12]Read from MH i2c: 01 07 00 [15:03:12]MH_I2C_Read... [15:03:12]Read from MH i2c: 01 07 00 82 02 00 00 00 00 00 FF 0F 99 [15:03:12]RasterBufferAndPrint [15:03:12]line Счет N : (1)918699 [15:03:12]line ИНН: 02508201610067 [15:03:12]line Контрольно-Кассовый Чек [15:03:12]line ПРОДАЖА [15:03:12]line ТРК (МРК, ГНК) : 22 [15:03:12]line Товар: 2710124130 [15:03:12]line Аи-92-К-4 [15:03:12]line 2.990 * 66.90 [15:03:12]line = 200.03 [15:03:12]line НДС 12% НСП 1% [15:03:12]line > о реализуемом товаре [15:03:12]line ИТОГО: 200.03 [15:03:12]line НСП 1% : 1.77 [15:03:12]line НДС 12% : 21.24 [15:03:12]line Наличными: 0.00 [15:03:12]line Безнал.: 200.03 [15:03:12]line Место: АЗС № 114 "Партнер Нефть" [15:03:12]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [15:03:12]line СНО: Общий режим [15:03:12]line Чек 119 17.10.2024 15:03 [15:03:12]line Смена: 525 ФФД: 1.0 [15:03:12]line ЗНМ: 0300000086 [15:03:12]line РНМ: 0000000000091680 [15:03:12]line Версия ККМ: 001 [15:03:12]line Платежная система: O! деньги [15:03:12]line ФМ: 0000000000871843 [15:03:12]line ФД: 82193 [15:03:12]line ФПД: 141106508690280 [15:03:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T150311&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82193&fm=141106508690280&tin=02508201610067®Number=0000000000091680&sum=20003 [15:03:13]OFD Sender: Processing packet 82193 [packets to send 254, broken 253] [15:03:13]ProducePacketName [15:03:13]name=ofd_packets/00082193 [15:03:13]OFD Sender: To server: pG, [15:03:13]CommunicateWithHost lk.salyk.kg:30040 [15:03:13]ConnectInit lk.salyk.kg [15:03:13]written 0, free lines is 4095 [15:03:13]Write to MH i2c: 01 00 00 AC 02 AE [15:03:13]Write i2c OK [15:03:13]MH_I2C_Read... [15:03:13]Read from MH i2c: 01 [15:03:13]MH_I2C_Read... [15:03:13]Read from MH i2c: 01 07 00 [15:03:13]MH_I2C_Read... [15:03:13]Read from MH i2c: 01 07 00 AC 02 00 00 00 00 00 E4 0C A5 [15:03:13]RasterBufferAndPrint [15:03:13]line [15:03:13]line [15:03:13]line [15:03:13]line [15:03:13]line [15:03:13]written 0, free lines is 3307 [15:03:13]MH_Cut [15:03:13]Write to MH i2c: D1 01 00 B3 02 01 87 [15:03:13]Write i2c OK [15:03:13]MH_I2C_Read... [15:03:13]Read from MH i2c: D1 [15:03:13]MH_I2C_Read... [15:03:13]Read from MH i2c: D1 01 00 [15:03:13]MH_I2C_Read... [15:03:13]Read from MH i2c: D1 01 00 B3 02 00 86 [15:03:13]Write to MH i2c: 01 00 00 B4 02 B6 [15:03:13]Write i2c OK [15:03:13]MH_I2C_Read... [15:03:14]Connected sock=11 [15:03:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 41 2C 07 01 65 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 2F 27 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 11 41 01 00 35 04 06 00 80 55 EB 53 73 68 8B 92 14 F8 F1 A8 DA B6 [15:03:14]*** Cut start [15:03:14]*** Partial cut [15:03:14]*** CUTSNS_PIN = 1 [15:03:14]*** CUTSNS_PIN = 0 [15:03:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 BA 74 47 00 CA FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 11 41 01 00 F4 03 04 00 6E CC 10 67 B6 04 01 00 00 EF 90 E4 58 82 F3 09 28 [15:03:14]CommunicateWithHost err = 0 [15:03:14]CheckOFDResponse [15:03:14]1017 (14) - 77093643461234 [15:03:14]1041 (16) - 0000000000871843 [15:03:14]1040 (4) - 82193 [15:03:14]1012 (4) - 17.10.2024 08:35 [15:03:14]1206 (1) - 0 [15:03:14]OFD Sender: Remove packet 82193 [15:03:14]ProducePacketName [15:03:14]name=ofd_packets/00082193 [15:03:14]NVStorageDeleteData [15:03:14]*** Brake cut motor [15:03:15]Read from MH i2c: 01 [15:03:15]MH_I2C_Read... [15:03:15]*** Stop cut motor [15:03:15]*** Cut end [15:03:15]Read from MH i2c: 01 07 00 [15:03:15]MH_I2C_Read... [15:03:15]Read from MH i2c: 01 07 00 B4 02 00 00 00 00 00 FF 0F CB [15:03:15]process_action close_receipt done [15:03:15]requested_data is exist [15:03:15]produce_requested_data [15:03:15]requested_item fm.sn is exist - process it [15:03:15]wFMCommunicate request_size=4 [15:03:15]MH_SAM_APDU [15:03:15]CAPDU: 80 11 00 00 [15:03:15]Write to MH i2c: E2 08 00 B5 02 80 11 00 00 00 00 00 00 31 [15:03:15]Write i2c OK [15:03:15]MH_I2C_Read... [15:03:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:15]Read from MH i2c: E2 [15:03:15]MH_I2C_Read... [15:03:15]Read from MH i2c: E2 17 00 [15:03:15]MH_I2C_Read... [15:03:15]Read from MH i2c: E2 17 00 B5 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 83 [15:03:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:03:15]wFMCommunicate OK [15:03:15]requested_item fd.num is exist - process it [15:03:15]SAM_PROTO_GetFieldsCounters [15:03:15]wFMCommunicate request_size=4 [15:03:15]MH_SAM_APDU [15:03:15]CAPDU: 80 13 00 00 [15:03:15]Write to MH i2c: E2 08 00 B6 02 80 13 00 00 00 00 00 00 34 [15:03:15]Write i2c OK [15:03:15]MH_I2C_Read... [15:03:15]OFD Sender: No OFD packet to send [15:03:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:15]Read from MH i2c: E2 [15:03:15]MH_I2C_Read... [15:03:15]Read from MH i2c: E2 62 00 [15:03:15]MH_I2C_Read... [15:03:15]Read from MH i2c: E2 62 00 B6 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 11 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [15:03:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 11 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:03:15]wFMCommunicate OK [15:03:15]SAM_PROTO_GetFieldsCounters done [15:03:15]requested_item shift.num is exist - process it [15:03:15]requested_item shift.opened is exist - process it [15:03:15]req_shift_opened [15:03:15]FM_GetShiftState [15:03:15]SAM_PROTO_GetShiftState [15:03:15]wFMCommunicate request_size=4 [15:03:15]MH_SAM_APDU [15:03:15]CAPDU: 80 13 01 00 [15:03:15]Write to MH i2c: E2 08 00 B7 02 80 13 01 00 00 00 00 00 36 [15:03:15]Write i2c OK [15:03:15]MH_I2C_Read... [15:03:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:15]Read from MH i2c: E2 [15:03:15]MH_I2C_Read... [15:03:15]Read from MH i2c: E2 0E 00 [15:03:15]MH_I2C_Read... [15:03:15]Read from MH i2c: E2 0E 00 B7 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 3E [15:03:15]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [15:03:15]wFMCommunicate OK [15:03:15]SAM_PROTO_GetShiftState done [15:03:15]FM_GetShiftState done [15:03:15]req_shift_opened done [15:03:15]requested_item shift.open_date is exist - process it [15:03:15]req_shift_open_date [15:03:15]req_shift_open_date done [15:03:15]produce_requested_data done [15:03:15]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82193,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [15:03:15]process_action_free close_receipt [15:03:15]json_value_free [15:03:15]json_value_free done [15:03:15]process_json_proto returns [15:03:15]Send response to host [15:03:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82193,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [15:03:15]free response buf [15:03:15]execute_script done [15:03:15]execute_script returns [15:03:15]free content buf [15:03:15]Sock 7.Close socket [15:03:15]Sock 7.Thread stoped [15:03:20]OFD Sender: No OFD packet to send [15:03:25]OFD Sender: No OFD packet to send [15:03:30]OFD Sender: No OFD packet to send [15:03:35]OFD Sender: No OFD packet to send [15:03:40]OFD Sender: No OFD packet to send [15:03:45]OFD Sender: No OFD packet to send [15:03:50]OFD Sender: No OFD packet to send [15:03:55]OFD Sender: No OFD packet to send [15:04:00]OFD Sender: No OFD packet to send [15:04:05]OFD Sender: No OFD packet to send [15:04:10]OFD Sender: No OFD packet to send [15:04:15]OFD Sender: No OFD packet to send [15:04:20]OFD Sender: No OFD packet to send [15:04:25]OFD Sender: No OFD packet to send [15:04:30]OFD Sender: No OFD packet to send [15:04:35]OFD Sender: No OFD packet to send [15:04:40]OFD Sender: No OFD packet to send [15:04:45]OFD Sender: No OFD packet to send [15:04:50]OFD Sender: No OFD packet to send [15:04:55]OFD Sender: No OFD packet to send [15:05:00]OFD Sender: No OFD packet to send [15:05:05]OFD Sender: No OFD packet to send [15:05:10]OFD Sender: No OFD packet to send [15:05:15]OFD Sender: No OFD packet to send [15:05:20]OFD Sender: No OFD packet to send [15:05:25]OFD Sender: No OFD packet to send [15:05:30]OFD Sender: No OFD packet to send [15:05:35]OFD Sender: No OFD packet to send [15:05:40]OFD Sender: No OFD packet to send [15:05:45]OFD Sender: No OFD packet to send [15:05:50]OFD Sender: No OFD packet to send [15:05:55]OFD Sender: No OFD packet to send [15:06:00]OFD Sender: No OFD packet to send [15:06:05]OFD Sender: No OFD packet to send [15:06:10]OFD Sender: No OFD packet to send [15:06:15]OFD Sender: No OFD packet to send [15:06:20]OFD Sender: No OFD packet to send [15:06:25]OFD Sender: No OFD packet to send [15:06:30]OFD Sender: No OFD packet to send [15:06:35]OFD Sender: No OFD packet to send [15:06:40]OFD Sender: No OFD packet to send [15:06:45]OFD Sender: No OFD packet to send [15:06:50]OFD Sender: No OFD packet to send [15:06:55]OFD Sender: No OFD packet to send [15:07:00]OFD Sender: No OFD packet to send [15:07:05]OFD Sender: No OFD packet to send [15:07:10]OFD Sender: No OFD packet to send [15:07:15]OFD Sender: No OFD packet to send [15:07:20]OFD Sender: No OFD packet to send [15:07:25]OFD Sender: No OFD packet to send [15:07:30]OFD Sender: No OFD packet to send [15:07:35]OFD Sender: No OFD packet to send [15:07:40]OFD Sender: No OFD packet to send [15:07:45]OFD Sender: No OFD packet to send [15:07:50]OFD Sender: No OFD packet to send [15:07:55]OFD Sender: No OFD packet to send [15:08:00]OFD Sender: No OFD packet to send [15:08:05]OFD Sender: No OFD packet to send [15:08:10]OFD Sender: No OFD packet to send [15:08:15]OFD Sender: No OFD packet to send [15:08:20]OFD Sender: No OFD packet to send [15:08:25]OFD Sender: No OFD packet to send [15:08:30]OFD Sender: No OFD packet to send [15:08:35]OFD Sender: No OFD packet to send [15:08:40]OFD Sender: No OFD packet to send [15:08:40]accept exits with 9 [15:08:40]New connection [15:08:40]New thread 3066813796 created [15:08:40]Thread 3066957156 joined [15:08:40]Waiting for new connection... [15:08:40] Sock 9.Parse request [15:08:40]Sock 9.Check first char [15:08:40]Sock 9.First char is OK [15:08:40]request: POST /json_proto HTTP/1.0 [15:08:40]Method: POST [15:08:40]URL: /json_proto [15:08:40]Method is POST - this is cgi request [15:08:40]url: /json_proto [15:08:40]query_string will be loaded in cgi processing [15:08:40]execute_cgi json_proto POST (null) [15:08:40]execute_cgi path=json_proto method=POST [15:08:40]POST find Content-Length [15:08:40]Host: 172.17.44.67:8080 [15:08:40]Content-Length: 803 [15:08:40]Content-Type: application/json [15:08:40] [15:08:40]POST finish read [15:08:40]Found Content-Length = 803 [15:08:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:40]execute_script... [15:08:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:40]POST & json_proto [15:08:40]process_json_proto [15:08:40]json parsed OK: [15:08:40]protocol is kg_v1.0 [15:08:40]action value=close_receipt [15:08:40]process_action close_receipt [15:08:40]cmd_close_receipt [15:08:40]MH_GetDate [15:08:40]Write to MH i2c: F0 00 00 B8 02 A9 [15:08:40]Write i2c OK [15:08:40]MH_I2C_Read... [15:08:40]Read from MH i2c: F0 [15:08:40]MH_I2C_Read... [15:08:40]Read from MH i2c: F0 09 00 [15:08:40]MH_I2C_Read... [15:08:40]Read from MH i2c: F0 09 00 B8 02 00 79 28 11 67 F1 C7 6B 64 52 [15:08:40]GetLastDocTimeStamp 1729177391 [15:08:40]current date 1729177721 [15:08:40]FM_GetShiftState [15:08:40]SAM_PROTO_GetShiftState [15:08:40]wFMCommunicate request_size=4 [15:08:40]MH_SAM_APDU [15:08:40]CAPDU: 80 13 01 00 [15:08:40]Write to MH i2c: E2 08 00 B9 02 80 13 01 00 00 00 00 00 38 [15:08:40]Write i2c OK [15:08:40]MH_I2C_Read... [15:08:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:40]Read from MH i2c: E2 [15:08:40]MH_I2C_Read... [15:08:40]Read from MH i2c: E2 0E 00 [15:08:40]MH_I2C_Read... [15:08:40]Read from MH i2c: E2 0E 00 B9 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 40 [15:08:40]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [15:08:40]wFMCommunicate OK [15:08:40]SAM_PROTO_GetShiftState done [15:08:40]FM_GetShiftState done [15:08:40]opened in 1729125927 [15:08:40]opened+sec_in_day 1729212327 [15:08:40]quantity*price = 100015 [15:08:40]sum+1 = 100017 [15:08:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 120 17.10.2024 15:08 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871843 ФД: 82194 ФПД: 158645342040795 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T150841&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82194&fm=158645342040795&tin=02508201610067®Number=0000000000091680&sum=100016 [15:08:41]StoreToDocumentArchive [15:08:41]shift 525 fd 82194 [15:08:41]save to /storage/0525/doc_00082194 [15:08:41]save last doc name /storage/0525/doc_00082194 to /storage/kkm_last_doc_name [15:08:41]save OK [15:08:41]Clear old archive folders... [15:08:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:08:42]tlvbuf is 01C03880 [15:08:42]SAM_PROTO_ClearQueue [15:08:42]wFMCommunicate request_size=4 [15:08:42]MH_SAM_APDU [15:08:42]CAPDU: 80 09 00 00 [15:08:42]Write to MH i2c: E2 08 00 C6 02 80 09 00 00 00 00 00 00 3A [15:08:42]Write i2c OK [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: E2 [15:08:42]MH_I2C_Read... [15:08:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:42]Read from MH i2c: E2 03 00 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: E2 03 00 C6 02 00 90 00 3C [15:08:42]RAPDU: 90 00 [15:08:42]wFMCommunicate OK [15:08:42]SAM_PROTO_ClearQueue done [15:08:42]KKMCreateOFDPacket [15:08:42]OFDProtocolAddRootSTLVToBuf [15:08:42]FM_MakeSignedData [15:08:42]FM_MakeSignedData [15:08:42]SAM_PROTO_SignData [15:08:42]wFMCommunicate request_size=4 [15:08:42]MH_SAM_APDU [15:08:42]CAPDU: 80 0D 01 02 [15:08:42]Write to MH i2c: E2 08 00 C7 02 80 0D 01 02 00 00 00 00 42 [15:08:42]Write i2c OK [15:08:42]MH_I2C_Read... [15:08:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:42]Read from MH i2c: E2 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: E2 03 00 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: E2 03 00 C7 02 00 90 00 3D [15:08:42]RAPDU: 90 00 [15:08:42]wFMCommunicate OK [15:08:42]wFMCommunicate request_size=255 [15:08:42]MH_SAM_APDU [15:08:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 79 28 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 12 41 01 00 35 04 06 00 90 [15:08:42]Write to MH i2c: E2 02 01 C8 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 79 28 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 12 41 01 00 35 04 06 00 90 00 00 6C [15:08:42]Write i2c OK [15:08:42]MH_I2C_Read... [15:08:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:42]Read from MH i2c: E2 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: E2 03 00 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [15:08:42]RAPDU: 90 00 [15:08:42]wFMCommunicate OK [15:08:42]wFMCommunicate request_size=10 [15:08:42]MH_SAM_APDU [15:08:42]CAPDU: 80 0D 02 02 05 49 7F 41 F2 DB [15:08:42]Write to MH i2c: E2 0D 00 C9 02 80 0D 02 02 05 00 49 7F 41 F2 DB 00 00 25 [15:08:42]Write i2c OK [15:08:42]MH_I2C_Read... [15:08:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:42]Read from MH i2c: E2 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: E2 03 00 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: E2 03 00 C9 02 00 90 00 3F [15:08:42]RAPDU: 90 00 [15:08:42]wFMCommunicate OK [15:08:42]wFMCommunicate request_size=4 [15:08:42]MH_SAM_APDU [15:08:42]CAPDU: 80 0D 03 02 [15:08:42]Write to MH i2c: E2 08 00 CA 02 80 0D 03 02 00 00 00 00 47 [15:08:42]Write i2c OK [15:08:42]MH_I2C_Read... [15:08:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:42]Read from MH i2c: E2 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: E2 0B 00 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: E2 0B 00 CA 02 00 80 13 DD 14 C7 6A 11 74 90 00 82 [15:08:42]RAPDU: 80 13 DD 14 C7 6A 11 74 90 00 [15:08:42]wFMCommunicate OK [15:08:42]SAM_PROTO_SignData done [15:08:42]FM_MakeSignedData done [15:08:42]CreateOFDProtocolMessage [15:08:42]wFMCommunicate request_size=4 [15:08:42]MH_SAM_APDU [15:08:42]CAPDU: 80 11 00 00 [15:08:42]Write to MH i2c: E2 08 00 CB 02 80 11 00 00 00 00 00 00 47 [15:08:42]Write i2c OK [15:08:42]MH_I2C_Read... [15:08:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:42]Read from MH i2c: E2 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: E2 17 00 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: E2 17 00 CB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 99 [15:08:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:08:42]wFMCommunicate OK [15:08:42]CreateOFDProtocolMessage done [15:08:42]OFDSenderStorePacket 82194 [15:08:42]StoreOFDPacket docnum=82194 [15:08:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 45 AC 07 01 0D A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 79 28 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 12 41 01 00 35 04 06 00 90 49 7F 41 F2 DB 80 13 DD 14 C7 6A 11 74 [15:08:42]CheckFolder [15:08:42]dirname=/storage/ofd_packets [15:08:42]CheckFolder done [15:08:42]ProducePacketName [15:08:42]name=ofd_packets/00082194 [15:08:42]NVStorageSaveData ofd_packets/00082194 [15:08:42]File name is /storage/ofd_packets/00082194 [15:08:42]Write 301 bytes [15:08:42]NVStorageSaveData done [15:08:42]OFDSenderStorePacket done [15:08:42]KKMCreateOFDPacket done [15:08:42]NVStorageSaveData kkm_last_timestamp [15:08:42]File name is /storage/kkm_last_timestamp [15:08:42]Write 4 bytes [15:08:42]NVStorageSaveData done [15:08:42]ExternCall_PrintAddStr [15:08:42]wPrintStart [15:08:42]Write to MH i2c: 01 00 00 CC 02 CE [15:08:42]Write i2c OK [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: 01 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: 01 07 00 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: 01 07 00 CC 02 00 00 00 00 00 FF 0F E3 [15:08:42]RasterBufferAndPrint [15:08:42]line Счет N : (1)918700 [15:08:42]line ИНН: 02508201610067 [15:08:42]line Контрольно-Кассовый Чек [15:08:42]line ПРОДАЖА [15:08:42]line ТРК (МРК, ГНК) : 22 [15:08:42]line Товар: 2710124130 [15:08:42]line Аи-92-К-4 [15:08:42]line 14.950 * 66.90 [15:08:42]line = 1000.16 [15:08:42]line НДС 12% НСП 1% [15:08:42]line > о реализуемом товаре [15:08:42]line ИТОГО: 1000.16 [15:08:42]line НСП 1% : 8.85 [15:08:42]line НДС 12% : 106.21 [15:08:42]line Наличными: 0.00 [15:08:42]line Безнал.: 1000.16 [15:08:42]line Место: АЗС № 114 "Партнер Нефть" [15:08:42]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [15:08:42]line СНО: Общий режим [15:08:42]line Чек 120 17.10.2024 15:08 [15:08:42]line Смена: 525 ФФД: 1.0 [15:08:42]line ЗНМ: 0300000086 [15:08:42]line РНМ: 0000000000091680 [15:08:42]line Версия ККМ: 001 [15:08:42]line Платежная система: O! деньги [15:08:42]line ФМ: 0000000000871843 [15:08:42]line ФД: 82194 [15:08:42]line ФПД: 158645342040795 [15:08:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T150841&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82194&fm=158645342040795&tin=02508201610067®Number=0000000000091680&sum=100016 [15:08:42]OFD Sender: Processing packet 82194 [packets to send 254, broken 253] [15:08:42]ProducePacketName [15:08:42]name=ofd_packets/00082194 [15:08:42]OFD Sender: To server: pG, [15:08:42]CommunicateWithHost lk.salyk.kg:30040 [15:08:42]ConnectInit lk.salyk.kg [15:08:42]written 0, free lines is 4095 [15:08:43]Write to MH i2c: 01 00 00 F6 02 F8 [15:08:43]Write i2c OK [15:08:43]MH_I2C_Read... [15:08:43]Read from MH i2c: 01 [15:08:43]MH_I2C_Read... [15:08:43]Read from MH i2c: 01 07 00 [15:08:43]MH_I2C_Read... [15:08:43]Connected sock=11 [15:08:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 45 AC 07 01 0D A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 79 28 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 12 41 01 00 35 04 06 00 90 49 7F 41 F2 DB 80 13 DD 14 C7 6A 11 74 [15:08:43]Read from MH i2c: 01 07 00 F6 02 00 00 00 00 00 ED 0C F8 [15:08:43]RasterBufferAndPrint [15:08:43]line [15:08:43]line [15:08:43]line [15:08:43]line [15:08:43]line [15:08:43]written 0, free lines is 3360 [15:08:43]MH_Cut [15:08:43]Write to MH i2c: D1 01 00 FD 02 01 D1 [15:08:43]Write i2c OK [15:08:43]MH_I2C_Read... [15:08:43]Read from MH i2c: D1 [15:08:43]MH_I2C_Read... [15:08:43]Read from MH i2c: D1 01 00 [15:08:43]MH_I2C_Read... [15:08:43]Read from MH i2c: D1 01 00 FD 02 00 D0 [15:08:43]Write to MH i2c: 01 00 00 FE 02 00 [15:08:43]Write i2c OK [15:08:43]MH_I2C_Read... [15:08:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 1B FE 47 00 FA C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 12 41 01 00 F4 03 04 00 B7 CD 10 67 B6 04 01 00 00 89 A3 D5 C4 39 E3 8D F2 [15:08:43]CommunicateWithHost err = 0 [15:08:43]CheckOFDResponse [15:08:43]1017 (14) - 77093643461234 [15:08:43]1041 (16) - 0000000000871843 [15:08:43]1040 (4) - 82194 [15:08:43]1012 (4) - 17.10.2024 08:41 [15:08:43]1206 (1) - 0 [15:08:43]OFD Sender: Remove packet 82194 [15:08:43]ProducePacketName [15:08:43]name=ofd_packets/00082194 [15:08:43]NVStorageDeleteData [15:08:44]*** Cut start [15:08:44]*** Partial cut [15:08:44]*** CUTSNS_PIN = 1 [15:08:44]*** CUTSNS_PIN = 0 [15:08:44]OFD Sender: No OFD packet to send [15:08:44]*** Brake cut motor [15:08:44]Read from MH i2c: 01 [15:08:44]MH_I2C_Read... [15:08:44]*** Stop cut motor [15:08:44]*** Cut end [15:08:44]Read from MH i2c: 01 07 00 [15:08:44]MH_I2C_Read... [15:08:44]Read from MH i2c: 01 07 00 FE 02 00 00 00 00 00 FF 0F 15 [15:08:44]process_action close_receipt done [15:08:44]requested_data is exist [15:08:44]produce_requested_data [15:08:44]requested_item fm.sn is exist - process it [15:08:44]wFMCommunicate request_size=4 [15:08:44]MH_SAM_APDU [15:08:44]CAPDU: 80 11 00 00 [15:08:44]Write to MH i2c: E2 08 00 FF 02 80 11 00 00 00 00 00 00 7B [15:08:44]Write i2c OK [15:08:44]MH_I2C_Read... [15:08:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:44]Read from MH i2c: E2 [15:08:44]MH_I2C_Read... [15:08:44]Read from MH i2c: E2 17 00 [15:08:44]MH_I2C_Read... [15:08:44]Read from MH i2c: E2 17 00 FF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 CD [15:08:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:08:44]wFMCommunicate OK [15:08:44]requested_item fd.num is exist - process it [15:08:44]SAM_PROTO_GetFieldsCounters [15:08:44]wFMCommunicate request_size=4 [15:08:44]MH_SAM_APDU [15:08:44]CAPDU: 80 13 00 00 [15:08:44]Write to MH i2c: E2 08 00 00 03 80 13 00 00 00 00 00 00 7F [15:08:44]Write i2c OK [15:08:44]MH_I2C_Read... [15:08:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:44]Read from MH i2c: E2 [15:08:44]MH_I2C_Read... [15:08:44]Read from MH i2c: E2 62 00 [15:08:44]MH_I2C_Read... [15:08:44]Read from MH i2c: E2 62 00 00 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 12 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [15:08:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 12 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:08:44]wFMCommunicate OK [15:08:44]SAM_PROTO_GetFieldsCounters done [15:08:44]requested_item shift.num is exist - process it [15:08:44]requested_item shift.opened is exist - process it [15:08:44]req_shift_opened [15:08:44]FM_GetShiftState [15:08:44]SAM_PROTO_GetShiftState [15:08:44]wFMCommunicate request_size=4 [15:08:44]MH_SAM_APDU [15:08:44]CAPDU: 80 13 01 00 [15:08:44]Write to MH i2c: E2 08 00 01 03 80 13 01 00 00 00 00 00 81 [15:08:44]Write i2c OK [15:08:44]MH_I2C_Read... [15:08:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:44]Read from MH i2c: E2 [15:08:44]MH_I2C_Read... [15:08:44]Read from MH i2c: E2 0E 00 [15:08:44]MH_I2C_Read... [15:08:44]Read from MH i2c: E2 0E 00 01 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 89 [15:08:44]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [15:08:44]wFMCommunicate OK [15:08:44]SAM_PROTO_GetShiftState done [15:08:44]FM_GetShiftState done [15:08:44]req_shift_opened done [15:08:44]requested_item shift.open_date is exist - process it [15:08:44]req_shift_open_date [15:08:44]req_shift_open_date done [15:08:44]produce_requested_data done [15:08:44]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82194,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [15:08:44]process_action_free close_receipt [15:08:44]json_value_free [15:08:44]json_value_free done [15:08:44]process_json_proto returns [15:08:44]Send response to host [15:08:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82194,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [15:08:44]free response buf [15:08:44]execute_script done [15:08:44]execute_script returns [15:08:44]free content buf [15:08:44]Sock 9.Close socket [15:08:44]Sock 9.Thread stoped [15:08:49]OFD Sender: No OFD packet to send [15:08:54]OFD Sender: No OFD packet to send [15:08:59]OFD Sender: No OFD packet to send [15:09:04]OFD Sender: No OFD packet to send [15:09:09]OFD Sender: No OFD packet to send [15:09:14]OFD Sender: No OFD packet to send [15:09:19]OFD Sender: No OFD packet to send [15:09:24]OFD Sender: No OFD packet to send [15:09:29]OFD Sender: No OFD packet to send [15:09:34]OFD Sender: No OFD packet to send [15:09:39]OFD Sender: No OFD packet to send [15:09:44]OFD Sender: No OFD packet to send [15:09:49]OFD Sender: No OFD packet to send [15:09:52]accept exits with 7 [15:09:52]New connection [15:09:52]New thread 3066957156 created [15:09:52]Thread 3066813796 joined [15:09:52]Waiting for new connection... [15:09:52] Sock 7.Parse request [15:09:52]Sock 7.Check first char [15:09:52]Sock 7.First char is OK [15:09:52]request: POST /json_proto HTTP/1.0 [15:09:52]Method: POST [15:09:52]URL: /json_proto [15:09:52]Method is POST - this is cgi request [15:09:52]url: /json_proto [15:09:52]query_string will be loaded in cgi processing [15:09:52]execute_cgi json_proto POST (null) [15:09:52]execute_cgi path=json_proto method=POST [15:09:52]POST find Content-Length [15:09:52]Host: 172.17.44.67:8080 [15:09:52]Content-Length: 803 [15:09:52]Content-Type: application/json [15:09:52] [15:09:52]POST finish read [15:09:52]Found Content-Length = 803 [15:09:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:52]execute_script... [15:09:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:52]POST & json_proto [15:09:52]process_json_proto [15:09:52]json parsed OK: [15:09:52]protocol is kg_v1.0 [15:09:52]action value=close_receipt [15:09:52]process_action close_receipt [15:09:52]cmd_close_receipt [15:09:52]MH_GetDate [15:09:52]Write to MH i2c: F0 00 00 02 03 F4 [15:09:52]Write i2c OK [15:09:52]MH_I2C_Read... [15:09:52]Read from MH i2c: F0 [15:09:52]MH_I2C_Read... [15:09:52]Read from MH i2c: F0 09 00 [15:09:52]MH_I2C_Read... [15:09:52]Read from MH i2c: F0 09 00 02 03 00 C1 28 11 67 F1 C7 6B 64 E5 [15:09:52]GetLastDocTimeStamp 1729177721 [15:09:52]current date 1729177793 [15:09:52]FM_GetShiftState [15:09:52]SAM_PROTO_GetShiftState [15:09:52]wFMCommunicate request_size=4 [15:09:52]MH_SAM_APDU [15:09:52]CAPDU: 80 13 01 00 [15:09:52]Write to MH i2c: E2 08 00 03 03 80 13 01 00 00 00 00 00 83 [15:09:52]Write i2c OK [15:09:52]MH_I2C_Read... [15:09:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:52]Read from MH i2c: E2 [15:09:52]MH_I2C_Read... [15:09:52]Read from MH i2c: E2 0E 00 [15:09:52]MH_I2C_Read... [15:09:52]Read from MH i2c: E2 0E 00 03 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 8B [15:09:52]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [15:09:52]wFMCommunicate OK [15:09:52]SAM_PROTO_GetShiftState done [15:09:52]FM_GetShiftState done [15:09:52]opened in 1729125927 [15:09:52]opened+sec_in_day 1729212327 [15:09:52]quantity*price = 100015 [15:09:52]sum+1 = 100017 [15:09:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 121 17.10.2024 15:09 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871843 ФД: 82195 ФПД: 269025829807197 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T150953&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82195&fm=269025829807197&tin=02508201610067®Number=0000000000091680&sum=100016 [15:09:54]StoreToDocumentArchive [15:09:54]shift 525 fd 82195 [15:09:54]save to /storage/0525/doc_00082195 [15:09:54]save last doc name /storage/0525/doc_00082195 to /storage/kkm_last_doc_name [15:09:54]save OK [15:09:54]Clear old archive folders... [15:09:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:09:54]tlvbuf is 01BFCE70 [15:09:54]SAM_PROTO_ClearQueue [15:09:54]wFMCommunicate request_size=4 [15:09:54]MH_SAM_APDU [15:09:54]CAPDU: 80 09 00 00 [15:09:54]Write to MH i2c: E2 08 00 10 03 80 09 00 00 00 00 00 00 85 [15:09:54]Write i2c OK [15:09:54]MH_I2C_Read... [15:09:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:54]Read from MH i2c: E2 [15:09:54]MH_I2C_Read... [15:09:54]Read from MH i2c: E2 03 00 [15:09:54]MH_I2C_Read... [15:09:54]Read from MH i2c: E2 03 00 10 03 00 90 00 87 [15:09:54]RAPDU: 90 00 [15:09:54]wFMCommunicate OK [15:09:54]SAM_PROTO_ClearQueue done [15:09:54]KKMCreateOFDPacket [15:09:54]OFDProtocolAddRootSTLVToBuf [15:09:54]FM_MakeSignedData [15:09:54]FM_MakeSignedData [15:09:54]SAM_PROTO_SignData [15:09:54]wFMCommunicate request_size=4 [15:09:54]MH_SAM_APDU [15:09:54]CAPDU: 80 0D 01 02 [15:09:54]Write to MH i2c: E2 08 00 11 03 80 0D 01 02 00 00 00 00 8D [15:09:54]Write i2c OK [15:09:54]MH_I2C_Read... [15:09:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:54]Read from MH i2c: E2 [15:09:54]MH_I2C_Read... [15:09:54]Read from MH i2c: E2 03 00 [15:09:54]MH_I2C_Read... [15:09:54]Read from MH i2c: E2 03 00 11 03 00 90 00 88 [15:09:54]RAPDU: 90 00 [15:09:54]wFMCommunicate OK [15:09:54]wFMCommunicate request_size=255 [15:09:54]MH_SAM_APDU [15:09:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 C1 28 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 13 41 01 00 35 04 06 00 F4 [15:09:54]Write to MH i2c: E2 02 01 12 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 C1 28 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 13 41 01 00 35 04 06 00 F4 00 00 65 [15:09:54]Write i2c OK [15:09:54]MH_I2C_Read... [15:09:54]OFD Sender: No OFD packet to send [15:09:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:54]Read from MH i2c: E2 [15:09:54]MH_I2C_Read... [15:09:54]Read from MH i2c: E2 03 00 [15:09:54]MH_I2C_Read... [15:09:54]Read from MH i2c: E2 03 00 12 03 00 90 00 89 [15:09:54]RAPDU: 90 00 [15:09:54]wFMCommunicate OK [15:09:54]wFMCommunicate request_size=10 [15:09:54]MH_SAM_APDU [15:09:54]CAPDU: 80 0D 02 02 05 AD 75 05 64 5D [15:09:54]Write to MH i2c: E2 0D 00 13 03 80 0D 02 02 05 00 AD 75 05 64 5D 00 00 82 [15:09:54]Write i2c OK [15:09:54]MH_I2C_Read... [15:09:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:54]Read from MH i2c: E2 [15:09:54]MH_I2C_Read... [15:09:54]Read from MH i2c: E2 03 00 [15:09:54]MH_I2C_Read... [15:09:54]Read from MH i2c: E2 03 00 13 03 00 90 00 8A [15:09:54]RAPDU: 90 00 [15:09:54]wFMCommunicate OK [15:09:54]wFMCommunicate request_size=4 [15:09:54]MH_SAM_APDU [15:09:54]CAPDU: 80 0D 03 02 [15:09:54]Write to MH i2c: E2 08 00 14 03 80 0D 03 02 00 00 00 00 92 [15:09:54]Write i2c OK [15:09:54]MH_I2C_Read... [15:09:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:54]Read from MH i2c: E2 [15:09:54]MH_I2C_Read... [15:09:54]Read from MH i2c: E2 0B 00 [15:09:54]MH_I2C_Read... [15:09:54]Read from MH i2c: E2 0B 00 14 03 00 F5 5D 90 23 B9 BB 44 05 90 00 55 [15:09:54]RAPDU: F5 5D 90 23 B9 BB 44 05 90 00 [15:09:54]wFMCommunicate OK [15:09:54]SAM_PROTO_SignData done [15:09:54]FM_MakeSignedData done [15:09:54]CreateOFDProtocolMessage [15:09:54]wFMCommunicate request_size=4 [15:09:54]MH_SAM_APDU [15:09:54]CAPDU: 80 11 00 00 [15:09:54]Write to MH i2c: E2 08 00 15 03 80 11 00 00 00 00 00 00 92 [15:09:54]Write i2c OK [15:09:54]MH_I2C_Read... [15:09:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:54]Read from MH i2c: E2 [15:09:54]MH_I2C_Read... [15:09:54]Read from MH i2c: E2 17 00 [15:09:54]MH_I2C_Read... [15:09:54]Read from MH i2c: E2 17 00 15 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 E4 [15:09:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:09:54]wFMCommunicate OK [15:09:54]CreateOFDProtocolMessage done [15:09:54]OFDSenderStorePacket 82195 [15:09:54]StoreOFDPacket docnum=82195 [15:09:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 0F 49 07 01 ED 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 C1 28 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 13 41 01 00 35 04 06 00 F4 AD 75 05 64 5D F5 5D 90 23 B9 BB 44 05 [15:09:54]CheckFolder [15:09:54]dirname=/storage/ofd_packets [15:09:54]CheckFolder done [15:09:54]ProducePacketName [15:09:54]name=ofd_packets/00082195 [15:09:54]NVStorageSaveData ofd_packets/00082195 [15:09:54]File name is /storage/ofd_packets/00082195 [15:09:54]Write 301 bytes [15:09:54]NVStorageSaveData done [15:09:54]OFDSenderStorePacket done [15:09:54]KKMCreateOFDPacket done [15:09:54]NVStorageSaveData kkm_last_timestamp [15:09:54]File name is /storage/kkm_last_timestamp [15:09:54]Write 4 bytes [15:09:54]NVStorageSaveData done [15:09:54]ExternCall_PrintAddStr [15:09:54]wPrintStart [15:09:54]Write to MH i2c: 01 00 00 16 03 19 [15:09:54]Write i2c OK [15:09:54]MH_I2C_Read... [15:09:54]Read from MH i2c: 01 [15:09:54]MH_I2C_Read... [15:09:54]Read from MH i2c: 01 07 00 [15:09:54]MH_I2C_Read... [15:09:54]Read from MH i2c: 01 07 00 16 03 00 00 00 00 00 FF 0F 2E [15:09:54]RasterBufferAndPrint [15:09:54]line Счет N : (1)918701 [15:09:54]line ИНН: 02508201610067 [15:09:54]line Контрольно-Кассовый Чек [15:09:54]line ПРОДАЖА [15:09:54]line ТРК (МРК, ГНК) : 11 [15:09:54]line Товар: 2710124130 [15:09:54]line Аи-92-К-4 [15:09:54]line 14.950 * 66.90 [15:09:54]line = 1000.16 [15:09:54]line НДС 12% НСП 1% [15:09:54]line > о реализуемом товаре [15:09:54]line ИТОГО: 1000.16 [15:09:54]line НСП 1% : 8.85 [15:09:54]line НДС 12% : 106.21 [15:09:54]line Наличными: 0.00 [15:09:54]line Безнал.: 1000.16 [15:09:54]line Место: АЗС № 114 "Партнер Нефть" [15:09:54]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [15:09:54]line СНО: Общий режим [15:09:54]line Чек 121 17.10.2024 15:09 [15:09:54]line Смена: 525 ФФД: 1.0 [15:09:54]line ЗНМ: 0300000086 [15:09:54]line РНМ: 0000000000091680 [15:09:54]line Версия ККМ: 001 [15:09:54]line Платежная система: O! деньги [15:09:54]line ФМ: 0000000000871843 [15:09:54]line ФД: 82195 [15:09:54]line ФПД: 269025829807197 [15:09:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T150953&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82195&fm=269025829807197&tin=02508201610067®Number=0000000000091680&sum=100016 [15:09:54]OFD Sender: Processing packet 82195 [packets to send 254, broken 253] [15:09:54]ProducePacketName [15:09:54]name=ofd_packets/00082195 [15:09:54]OFD Sender: To server: pG, [15:09:54]CommunicateWithHost lk.salyk.kg:30040 [15:09:54]ConnectInit lk.salyk.kg [15:09:54]written 0, free lines is 4095 [15:09:55]Write to MH i2c: 01 00 00 40 03 43 [15:09:55]Write i2c OK [15:09:55]MH_I2C_Read... [15:09:55]Read from MH i2c: 01 [15:09:55]MH_I2C_Read... [15:09:55]Read from MH i2c: 01 07 00 [15:09:55]MH_I2C_Read... [15:09:55]Read from MH i2c: 01 07 00 40 03 00 00 00 00 00 EE 0C 44 [15:09:55]RasterBufferAndPrint [15:09:55]line [15:09:55]line [15:09:55]line [15:09:55]line [15:09:55]line [15:09:55]written 0, free lines is 3317 [15:09:55]MH_Cut [15:09:55]Write to MH i2c: D1 01 00 47 03 01 1C [15:09:55]Write i2c OK [15:09:55]MH_I2C_Read... [15:09:55]Read from MH i2c: D1 [15:09:55]MH_I2C_Read... [15:09:55]Read from MH i2c: D1 01 00 [15:09:55]MH_I2C_Read... [15:09:55]Read from MH i2c: D1 01 00 47 03 00 1B [15:09:55]Write to MH i2c: 01 00 00 48 03 4B [15:09:55]Write i2c OK [15:09:55]MH_I2C_Read... [15:09:56]*** Cut start [15:09:56]*** Partial cut [15:09:56]*** CUTSNS_PIN = 1 [15:09:56]*** CUTSNS_PIN = 0 [15:09:56]*** Brake cut motor [15:09:56]Read from MH i2c: 01 [15:09:56]MH_I2C_Read... [15:09:56]*** Stop cut motor [15:09:56]*** Cut end [15:09:56]Read from MH i2c: 01 07 00 [15:09:56]MH_I2C_Read... [15:09:56]Read from MH i2c: 01 07 00 48 03 00 00 00 00 00 FF 0F 60 [15:09:56]process_action close_receipt done [15:09:56]requested_data is exist [15:09:56]produce_requested_data [15:09:56]requested_item fm.sn is exist - process it [15:09:56]wFMCommunicate request_size=4 [15:09:56]MH_SAM_APDU [15:09:56]CAPDU: 80 11 00 00 [15:09:56]Write to MH i2c: E2 08 00 49 03 80 11 00 00 00 00 00 00 C6 [15:09:56]Write i2c OK [15:09:56]MH_I2C_Read... [15:09:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:56]Read from MH i2c: E2 [15:09:56]MH_I2C_Read... [15:09:56]Read from MH i2c: E2 17 00 [15:09:56]MH_I2C_Read... [15:09:56]Read from MH i2c: E2 17 00 49 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 18 [15:09:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:09:56]wFMCommunicate OK [15:09:56]requested_item fd.num is exist - process it [15:09:56]SAM_PROTO_GetFieldsCounters [15:09:56]wFMCommunicate request_size=4 [15:09:56]MH_SAM_APDU [15:09:56]CAPDU: 80 13 00 00 [15:09:56]Write to MH i2c: E2 08 00 4A 03 80 13 00 00 00 00 00 00 C9 [15:09:56]Write i2c OK [15:09:56]MH_I2C_Read... [15:09:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:56]Read from MH i2c: E2 [15:09:56]MH_I2C_Read... [15:09:56]Read from MH i2c: E2 62 00 [15:09:56]MH_I2C_Read... [15:09:56]Read from MH i2c: E2 62 00 4A 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 13 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [15:09:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 13 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:56]wFMCommunicate OK [15:09:56]SAM_PROTO_GetFieldsCounters done [15:09:56]requested_item shift.num is exist - process it [15:09:56]requested_item shift.opened is exist - process it [15:09:56]req_shift_opened [15:09:56]FM_GetShiftState [15:09:56]SAM_PROTO_GetShiftState [15:09:56]wFMCommunicate request_size=4 [15:09:56]MH_SAM_APDU [15:09:56]CAPDU: 80 13 01 00 [15:09:56]Write to MH i2c: E2 08 00 4B 03 80 13 01 00 00 00 00 00 CB [15:09:56]Write i2c OK [15:09:56]MH_I2C_Read... [15:09:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:56]Read from MH i2c: E2 [15:09:56]MH_I2C_Read... [15:09:56]Read from MH i2c: E2 0E 00 [15:09:56]MH_I2C_Read... [15:09:56]Read from MH i2c: E2 0E 00 4B 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 D3 [15:09:56]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [15:09:56]wFMCommunicate OK [15:09:56]SAM_PROTO_GetShiftState done [15:09:56]FM_GetShiftState done [15:09:56]req_shift_opened done [15:09:56]requested_item shift.open_date is exist - process it [15:09:56]req_shift_open_date [15:09:56]req_shift_open_date done [15:09:56]produce_requested_data done [15:09:56]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82195,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [15:09:56]process_action_free close_receipt [15:09:56]json_value_free [15:09:56]json_value_free done [15:09:56]process_json_proto returns [15:09:56]Send response to host [15:09:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82195,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [15:09:56]free response buf [15:09:56]execute_script done [15:09:56]execute_script returns [15:09:56]free content buf [15:09:56]Sock 7.Close socket [15:09:56]Sock 7.Thread stoped [15:09:57]Connected sock=11 [15:09:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 0F 49 07 01 ED 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 C1 28 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 13 41 01 00 35 04 06 00 F4 AD 75 05 64 5D F5 5D 90 23 B9 BB 44 05 [15:09:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 BF 41 47 00 56 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 13 41 01 00 F4 03 04 00 01 CE 10 67 B6 04 01 00 00 B5 01 7D 8F 98 BE 6F B3 [15:09:58]CommunicateWithHost err = 0 [15:09:58]CheckOFDResponse [15:09:58]1017 (14) - 77093643461234 [15:09:58]1041 (16) - 0000000000871843 [15:09:58]1040 (4) - 82195 [15:09:58]1012 (4) - 17.10.2024 08:42 [15:09:58]1206 (1) - 0 [15:09:58]OFD Sender: Remove packet 82195 [15:09:58]ProducePacketName [15:09:58]name=ofd_packets/00082195 [15:09:58]NVStorageDeleteData [15:09:58]OFD Sender: No OFD packet to send [15:09:59]recv_with_timeout no data received [15:10:03]OFD Sender: No OFD packet to send [15:10:08]OFD Sender: No OFD packet to send [15:10:10]recv_with_timeout no data received [15:10:13]OFD Sender: No OFD packet to send [15:10:18]OFD Sender: No OFD packet to send [15:10:23]OFD Sender: No OFD packet to send [15:10:28]OFD Sender: No OFD packet to send [15:10:33]OFD Sender: No OFD packet to send [15:10:38]OFD Sender: No OFD packet to send [15:10:43]OFD Sender: No OFD packet to send [15:10:48]OFD Sender: No OFD packet to send [15:10:53]OFD Sender: No OFD packet to send [15:10:58]OFD Sender: No OFD packet to send [15:11:03]OFD Sender: No OFD packet to send [15:11:08]OFD Sender: No OFD packet to send [15:11:13]OFD Sender: No OFD packet to send [15:11:18]OFD Sender: No OFD packet to send [15:11:23]OFD Sender: No OFD packet to send [15:11:28]OFD Sender: No OFD packet to send [15:11:33]OFD Sender: No OFD packet to send [15:11:38]OFD Sender: No OFD packet to send [15:11:43]OFD Sender: No OFD packet to send [15:11:48]OFD Sender: No OFD packet to send [15:11:53]OFD Sender: No OFD packet to send [15:11:58]OFD Sender: No OFD packet to send [15:12:03]OFD Sender: No OFD packet to send [15:12:08]OFD Sender: No OFD packet to send [15:12:13]OFD Sender: No OFD packet to send [15:12:18]OFD Sender: No OFD packet to send [15:12:23]OFD Sender: No OFD packet to send [15:12:25]recv_with_timeout no data received [15:12:28]OFD Sender: No OFD packet to send [15:12:33]OFD Sender: No OFD packet to send [15:12:38]OFD Sender: No OFD packet to send [15:12:43]OFD Sender: No OFD packet to send [15:12:48]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:13:53]OFD Sender: No OFD packet to send [15:13:58]OFD Sender: No OFD packet to send [15:14:03]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:49]OFD Sender: No OFD packet to send [15:14:54]OFD Sender: No OFD packet to send [15:14:59]OFD Sender: No OFD packet to send [15:15:04]OFD Sender: No OFD packet to send [15:15:09]OFD Sender: No OFD packet to send [15:15:14]OFD Sender: No OFD packet to send [15:15:19]OFD Sender: No OFD packet to send [15:15:24]OFD Sender: No OFD packet to send [15:15:29]OFD Sender: No OFD packet to send [15:15:34]OFD Sender: No OFD packet to send [15:15:39]OFD Sender: No OFD packet to send [15:15:44]OFD Sender: No OFD packet to send [15:15:49]OFD Sender: No OFD packet to send [15:15:54]OFD Sender: No OFD packet to send [15:15:59]OFD Sender: No OFD packet to send [15:16:04]OFD Sender: No OFD packet to send [15:16:09]OFD Sender: No OFD packet to send [15:16:14]OFD Sender: No OFD packet to send [15:16:19]OFD Sender: No OFD packet to send [15:16:24]OFD Sender: No OFD packet to send [15:16:29]OFD Sender: No OFD packet to send [15:16:34]OFD Sender: No OFD packet to send [15:16:39]OFD Sender: No OFD packet to send [15:16:44]OFD Sender: No OFD packet to send [15:16:49]OFD Sender: No OFD packet to send [15:16:54]OFD Sender: No OFD packet to send [15:16:59]OFD Sender: No OFD packet to send [15:17:04]OFD Sender: No OFD packet to send [15:17:09]OFD Sender: No OFD packet to send [15:17:14]OFD Sender: No OFD packet to send [15:17:19]OFD Sender: No OFD packet to send [15:17:24]OFD Sender: No OFD packet to send [15:17:29]OFD Sender: No OFD packet to send [15:17:34]OFD Sender: No OFD packet to send [15:17:39]OFD Sender: No OFD packet to send [15:17:44]OFD Sender: No OFD packet to send [15:17:49]OFD Sender: No OFD packet to send [15:17:54]OFD Sender: No OFD packet to send [15:17:59]OFD Sender: No OFD packet to send [15:18:04]OFD Sender: No OFD packet to send [15:18:09]OFD Sender: No OFD packet to send [15:18:14]OFD Sender: No OFD packet to send [15:18:19]OFD Sender: No OFD packet to send [15:18:24]OFD Sender: No OFD packet to send [15:18:29]OFD Sender: No OFD packet to send [15:18:34]OFD Sender: No OFD packet to send [15:18:39]OFD Sender: No OFD packet to send [15:18:44]OFD Sender: No OFD packet to send [15:18:49]OFD Sender: No OFD packet to send [15:18:54]OFD Sender: No OFD packet to send [15:18:59]OFD Sender: No OFD packet to send [15:19:04]OFD Sender: No OFD packet to send [15:19:09]accept exits with 9 [15:19:09]New connection [15:19:09]New thread 3066813796 created [15:19:09]Thread 3066957156 joined [15:19:09]Waiting for new connection... [15:19:09] Sock 9.Parse request [15:19:09]Sock 9.Check first char [15:19:09]Sock 9.First char is OK [15:19:09]request: POST /json_proto HTTP/1.0 [15:19:09]Method: POST [15:19:09]URL: /json_proto [15:19:09]Method is POST - this is cgi request [15:19:09]url: /json_proto [15:19:09]query_string will be loaded in cgi processing [15:19:09]execute_cgi json_proto POST (null) [15:19:09]execute_cgi path=json_proto method=POST [15:19:09]POST find Content-Length [15:19:09]Host: 172.17.44.67:8080 [15:19:09]Content-Length: 808 [15:19:09]Content-Type: application/json [15:19:09] [15:19:09]POST finish read [15:19:09]Found Content-Length = 808 [15:19:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:09]execute_script... [15:19: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)918702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:09]POST & json_proto [15:19:09]process_json_proto [15:19:09]json parsed OK: [15:19:09]protocol is kg_v1.0 [15:19:09]action value=close_receipt [15:19:09]process_action close_receipt [15:19:09]cmd_close_receipt [15:19:09]MH_GetDate [15:19:09]Write to MH i2c: F0 00 00 4C 03 3E [15:19:09]Write i2c OK [15:19:09]MH_I2C_Read... [15:19:09]Read from MH i2c: F0 [15:19:09]MH_I2C_Read... [15:19:09]Read from MH i2c: F0 09 00 [15:19:09]MH_I2C_Read... [15:19:09]Read from MH i2c: F0 09 00 4C 03 00 ED 2A 11 67 F1 C7 6B 64 5D [15:19:09]GetLastDocTimeStamp 1729177793 [15:19:09]current date 1729178349 [15:19:09]FM_GetShiftState [15:19:09]SAM_PROTO_GetShiftState [15:19:09]wFMCommunicate request_size=4 [15:19:09]MH_SAM_APDU [15:19:09]CAPDU: 80 13 01 00 [15:19:09]Write to MH i2c: E2 08 00 4D 03 80 13 01 00 00 00 00 00 CD [15:19:09]Write i2c OK [15:19:09]MH_I2C_Read... [15:19:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:09]Read from MH i2c: E2 [15:19:09]MH_I2C_Read... [15:19:09]Read from MH i2c: E2 0E 00 [15:19:09]MH_I2C_Read... [15:19:09]Read from MH i2c: E2 0E 00 4D 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 D5 [15:19:09]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [15:19:09]wFMCommunicate OK [15:19:09]SAM_PROTO_GetShiftState done [15:19:09]FM_GetShiftState done [15:19:09]opened in 1729125927 [15:19:09]opened+sec_in_day 1729212327 [15:19:09]quantity*price = 100050 [15:19:09]sum+1 = 100052 [15:19:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 122 17.10.2024 15:19 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871843 ФД: 82196 ФПД: 151195620599090 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T151910&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82196&fm=151195620599090&tin=02508201610067®Number=0000000000091680&sum=100051 [15:19:10]StoreToDocumentArchive [15:19:10]shift 525 fd 82196 [15:19:10]save to /storage/0525/doc_00082196 [15:19:10]save last doc name /storage/0525/doc_00082196 to /storage/kkm_last_doc_name [15:19:10]save OK [15:19:10]Clear old archive folders... [15:19:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:19:10]tlvbuf is 01B77A90 [15:19:10]SAM_PROTO_ClearQueue [15:19:10]wFMCommunicate request_size=4 [15:19:10]MH_SAM_APDU [15:19:10]CAPDU: 80 09 00 00 [15:19:10]Write to MH i2c: E2 08 00 5A 03 80 09 00 00 00 00 00 00 CF [15:19:10]Write i2c OK [15:19:10]MH_I2C_Read... [15:19:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:19:10]Read from MH i2c: E2 [15:19:10]MH_I2C_Read... [15:19:10]Read from MH i2c: E2 03 00 [15:19:10]MH_I2C_Read... [15:19:10]Read from MH i2c: E2 03 00 5A 03 00 90 00 D1 [15:19:10]RAPDU: 90 00 [15:19:10]wFMCommunicate OK [15:19:10]SAM_PROTO_ClearQueue done [15:19:10]KKMCreateOFDPacket [15:19:10]OFDProtocolAddRootSTLVToBuf [15:19:10]FM_MakeSignedData [15:19:10]FM_MakeSignedData [15:19:10]SAM_PROTO_SignData [15:19:10]wFMCommunicate request_size=4 [15:19:10]MH_SAM_APDU [15:19:10]CAPDU: 80 0D 01 02 [15:19:10]Write to MH i2c: E2 08 00 5B 03 80 0D 01 02 00 00 00 00 D7 [15:19:10]Write i2c OK [15:19:10]MH_I2C_Read... [15:19:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:19:10]Read from MH i2c: E2 [15:19:10]MH_I2C_Read... [15:19:10]Read from MH i2c: E2 03 00 [15:19:10]MH_I2C_Read... [15:19:10]Read from MH i2c: E2 03 00 5B 03 00 90 00 D2 [15:19:10]RAPDU: 90 00 [15:19:10]wFMCommunicate OK [15:19:10]wFMCommunicate request_size=255 [15:19:10]MH_SAM_APDU [15:19:10]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 EE 2A 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 14 41 01 00 35 04 06 00 [15:19:10]Write to MH i2c: E2 02 01 5C 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 EE 2A 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 14 41 01 00 35 04 06 00 00 00 17 [15:19:10]Write i2c OK [15:19:10]MH_I2C_Read... [15:19:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:10]Read from MH i2c: E2 [15:19:10]MH_I2C_Read... [15:19:10]Read from MH i2c: E2 03 00 [15:19:10]MH_I2C_Read... [15:19:10]Read from MH i2c: E2 03 00 5C 03 00 90 00 D3 [15:19:10]RAPDU: 90 00 [15:19:10]wFMCommunicate OK [15:19:10]wFMCommunicate request_size=11 [15:19:10]MH_SAM_APDU [15:19:10]CAPDU: 80 0D 02 02 06 89 82 F9 41 E5 32 [15:19:10]Write to MH i2c: E2 0E 00 5D 03 80 0D 02 02 06 00 89 82 F9 41 E5 32 00 00 42 [15:19:10]Write i2c OK [15:19:10]MH_I2C_Read... [15:19:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:10]Read from MH i2c: E2 [15:19:10]MH_I2C_Read... [15:19:10]Read from MH i2c: E2 03 00 [15:19:10]MH_I2C_Read... [15:19:10]Read from MH i2c: E2 03 00 5D 03 00 90 00 D4 [15:19:10]RAPDU: 90 00 [15:19:10]wFMCommunicate OK [15:19:10]wFMCommunicate request_size=4 [15:19:10]MH_SAM_APDU [15:19:10]CAPDU: 80 0D 03 02 [15:19:10]Write to MH i2c: E2 08 00 5E 03 80 0D 03 02 00 00 00 00 DC [15:19:10]Write i2c OK [15:19:10]MH_I2C_Read... [15:19:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:19:11]Read from MH i2c: E2 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: E2 0B 00 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: E2 0B 00 5E 03 00 0A FB E5 48 76 1D 28 B6 90 00 80 [15:19:11]RAPDU: 0A FB E5 48 76 1D 28 B6 90 00 [15:19:11]wFMCommunicate OK [15:19:11]SAM_PROTO_SignData done [15:19:11]FM_MakeSignedData done [15:19:11]CreateOFDProtocolMessage [15:19:11]wFMCommunicate request_size=4 [15:19:11]MH_SAM_APDU [15:19:11]CAPDU: 80 11 00 00 [15:19:11]Write to MH i2c: E2 08 00 5F 03 80 11 00 00 00 00 00 00 DC [15:19:11]Write i2c OK [15:19:11]MH_I2C_Read... [15:19:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:11]Read from MH i2c: E2 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: E2 17 00 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: E2 17 00 5F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 2E [15:19:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:19:11]wFMCommunicate OK [15:19:11]CreateOFDProtocolMessage done [15:19:11]OFDSenderStorePacket 82196 [15:19:11]StoreOFDPacket docnum=82196 [15:19:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 25 E3 08 01 25 49 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 EE 2A 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 14 41 01 00 35 04 06 00 89 82 F9 41 E5 32 0A FB E5 48 76 1D 28 B6 [15:19:11]CheckFolder [15:19:11]dirname=/storage/ofd_packets [15:19:11]CheckFolder done [15:19:11]ProducePacketName [15:19:11]name=ofd_packets/00082196 [15:19:11]NVStorageSaveData ofd_packets/00082196 [15:19:11]File name is /storage/ofd_packets/00082196 [15:19:11]Write 302 bytes [15:19:11]NVStorageSaveData done [15:19:11]OFDSenderStorePacket done [15:19:11]KKMCreateOFDPacket done [15:19:11]NVStorageSaveData kkm_last_timestamp [15:19:11]File name is /storage/kkm_last_timestamp [15:19:11]Write 4 bytes [15:19:11]NVStorageSaveData done [15:19:11]ExternCall_PrintAddStr [15:19:11]wPrintStart [15:19:11]Write to MH i2c: 01 00 00 60 03 63 [15:19:11]Write i2c OK [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: 01 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: 01 07 00 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: 01 07 00 60 03 00 00 00 00 00 FF 0F 78 [15:19:11]RasterBufferAndPrint [15:19:11]line Счет N : (1)918702 [15:19:11]line ИНН: 02508201610067 [15:19:11]line Контрольно-Кассовый Чек [15:19:11]line ПРОДАЖА [15:19:11]line ТРК (МРК, ГНК) : 31 [15:19:11]line Товар: 2710194210 [15:19:11]line ДТ(л)-К-5 [15:19:11]line 13.130 * 76.20 [15:19:11]line = 1000.51 [15:19:11]line НДС 12% НСП 1% [15:19:11]line > о реализуемом товаре [15:19:11]line ИТОГО: 1000.51 [15:19:11]line НСП 1% : 8.85 [15:19:11]line НДС 12% : 106.25 [15:19:11]line Наличными: 0.00 [15:19:11]line Безнал.: 1000.51 [15:19:11]line Место: АЗС № 114 "Партнер Нефть" [15:19:11]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [15:19:11]line СНО: Общий режим [15:19:11]line Чек 122 17.10.2024 15:19 [15:19:11]line Смена: 525 ФФД: 1.0 [15:19:11]line ЗНМ: 0300000086 [15:19:11]line РНМ: 0000000000091680 [15:19:11]line Версия ККМ: 001 [15:19:11]line Платежная система: O! деньги [15:19:11]line ФМ: 0000000000871843 [15:19:11]line ФД: 82196 [15:19:11]line ФПД: 151195620599090 [15:19:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T151910&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82196&fm=151195620599090&tin=02508201610067®Number=0000000000091680&sum=100051 [15:19:11]written 0, free lines is 4095 [15:19:11]OFD Sender: Processing packet 82196 [packets to send 254, broken 253] [15:19:11]ProducePacketName [15:19:11]name=ofd_packets/00082196 [15:19:11]OFD Sender: To server: pG, [15:19:11]CommunicateWithHost lk.salyk.kg:30040 [15:19:11]ConnectInit lk.salyk.kg [15:19:11]Write to MH i2c: 01 00 00 8A 03 8D [15:19:11]Write i2c OK [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: 01 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: 01 07 00 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: 01 07 00 8A 03 00 00 00 00 00 DD 0C 7D [15:19:11]RasterBufferAndPrint [15:19:11]line [15:19:11]line [15:19:11]line [15:19:11]line [15:19:11]line [15:19:11]written 0, free lines is 3300 [15:19:11]MH_Cut [15:19:11]Write to MH i2c: D1 01 00 91 03 01 66 [15:19:11]Write i2c OK [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: D1 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: D1 01 00 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: D1 01 00 91 03 00 65 [15:19:11]Write to MH i2c: 01 00 00 92 03 95 [15:19:11]Write i2c OK [15:19:11]MH_I2C_Read... [15:19:12]Connected sock=11 [15:19:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 25 E3 08 01 25 49 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 EE 2A 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 14 41 01 00 35 04 06 00 89 82 F9 41 E5 32 0A FB E5 48 76 1D 28 B6 [15:19:12]*** Cut start [15:19:12]*** Partial cut [15:19:12]*** CUTSNS_PIN = 1 [15:19:12]*** CUTSNS_PIN = 0 [15:19:12]*** Brake cut motor [15:19:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 7E 34 47 00 CB 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 14 41 01 00 F4 03 04 00 2C D0 10 67 B6 04 01 00 00 89 CF A7 7D F4 39 38 B8 [15:19:12]CommunicateWithHost err = 0 [15:19:12]CheckOFDResponse [15:19:12]1017 (14) - 77093643461234 [15:19:12]1041 (16) - 0000000000871843 [15:19:12]1040 (4) - 82196 [15:19:12]1012 (4) - 17.10.2024 08:51 [15:19:12]1206 (1) - 0 [15:19:12]OFD Sender: Remove packet 82196 [15:19:12]ProducePacketName [15:19:12]name=ofd_packets/00082196 [15:19:12]NVStorageDeleteData [15:19:13]Read from MH i2c: 01 [15:19:13]MH_I2C_Read... [15:19:13]*** Stop cut motor [15:19:13]*** Cut end [15:19:13]Read from MH i2c: 01 07 00 [15:19:13]MH_I2C_Read... [15:19:13]Read from MH i2c: 01 07 00 92 03 00 00 00 00 00 FF 0F AA [15:19:13]process_action close_receipt done [15:19:13]requested_data is exist [15:19:13]produce_requested_data [15:19:13]requested_item fm.sn is exist - process it [15:19:13]wFMCommunicate request_size=4 [15:19:13]MH_SAM_APDU [15:19:13]CAPDU: 80 11 00 00 [15:19:13]Write to MH i2c: E2 08 00 93 03 80 11 00 00 00 00 00 00 10 [15:19:13]Write i2c OK [15:19:13]MH_I2C_Read... [15:19:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:13]Read from MH i2c: E2 [15:19:13]MH_I2C_Read... [15:19:13]Read from MH i2c: E2 17 00 [15:19:13]MH_I2C_Read... [15:19:13]Read from MH i2c: E2 17 00 93 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 62 [15:19:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:19:13]wFMCommunicate OK [15:19:13]requested_item fd.num is exist - process it [15:19:13]SAM_PROTO_GetFieldsCounters [15:19:13]wFMCommunicate request_size=4 [15:19:13]MH_SAM_APDU [15:19:13]CAPDU: 80 13 00 00 [15:19:13]Write to MH i2c: E2 08 00 94 03 80 13 00 00 00 00 00 00 13 [15:19:13]Write i2c OK [15:19:13]MH_I2C_Read... [15:19:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:19:13]Read from MH i2c: E2 [15:19:13]MH_I2C_Read... [15:19:13]Read from MH i2c: E2 62 00 [15:19:13]MH_I2C_Read... [15:19:13]Read from MH i2c: E2 62 00 94 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 14 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [15:19:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 14 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:19:13]wFMCommunicate OK [15:19:13]SAM_PROTO_GetFieldsCounters done [15:19:13]requested_item shift.num is exist - process it [15:19:13]requested_item shift.opened is exist - process it [15:19:13]req_shift_opened [15:19:13]FM_GetShiftState [15:19:13]SAM_PROTO_GetShiftState [15:19:13]wFMCommunicate request_size=4 [15:19:13]MH_SAM_APDU [15:19:13]CAPDU: 80 13 01 00 [15:19:13]Write to MH i2c: E2 08 00 95 03 80 13 01 00 00 00 00 00 15 [15:19:13]Write i2c OK [15:19:13]MH_I2C_Read... [15:19:13]OFD Sender: No OFD packet to send [15:19:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:13]Read from MH i2c: E2 [15:19:13]MH_I2C_Read... [15:19:13]Read from MH i2c: E2 0E 00 [15:19:13]MH_I2C_Read... [15:19:13]Read from MH i2c: E2 0E 00 95 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 1D [15:19:13]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [15:19:13]wFMCommunicate OK [15:19:13]SAM_PROTO_GetShiftState done [15:19:13]FM_GetShiftState done [15:19:13]req_shift_opened done [15:19:13]requested_item shift.open_date is exist - process it [15:19:13]req_shift_open_date [15:19:13]req_shift_open_date done [15:19:13]produce_requested_data done [15:19:13]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82196,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [15:19:13]process_action_free close_receipt [15:19:13]json_value_free [15:19:13]json_value_free done [15:19:13]process_json_proto returns [15:19:13]Send response to host [15:19:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82196,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [15:19:13]free response buf [15:19:13]execute_script done [15:19:13]execute_script returns [15:19:13]free content buf [15:19:13]Sock 9.Close socket [15:19:13]Sock 9.Thread stoped [15:19:15]recv_with_timeout no data received [15:19:18]OFD Sender: No OFD packet to send [15:19:23]OFD Sender: No OFD packet to send [15:19:25]recv_with_timeout no data received [15:19:28]OFD Sender: No OFD packet to send [15:19:33]OFD Sender: No OFD packet to send [15:19:36]recv_with_timeout no data received [15:19:38]OFD Sender: No OFD packet to send [15:19:43]OFD Sender: No OFD packet to send [15:19:43]accept exits with 7 [15:19:43]New connection [15:19:43]New thread 3066957156 created [15:19:43]Thread 3066813796 joined [15:19:43]Waiting for new connection... [15:19:43] Sock 7.Parse request [15:19:43]Sock 7.Check first char [15:19:43]Sock 7.First char is OK [15:19:43]request: POST /json_proto HTTP/1.0 [15:19:43]Method: POST [15:19:43]URL: /json_proto [15:19:43]Method is POST - this is cgi request [15:19:43]url: /json_proto [15:19:43]query_string will be loaded in cgi processing [15:19:43]execute_cgi json_proto POST (null) [15:19:43]execute_cgi path=json_proto method=POST [15:19:43]POST find Content-Length [15:19:43]Host: 172.17.44.67:8080 [15:19:43]Content-Length: 800 [15:19:43]Content-Type: application/json [15:19:43] [15:19:43]POST finish read [15:19:43]Found Content-Length = 800 [15:19:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:43]execute_script... [15:19:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:43]POST & json_proto [15:19:43]process_json_proto [15:19:43]json parsed OK: [15:19:43]protocol is kg_v1.0 [15:19:43]action value=close_receipt [15:19:43]process_action close_receipt [15:19:43]cmd_close_receipt [15:19:43]MH_GetDate [15:19:43]Write to MH i2c: F0 00 00 96 03 88 [15:19:43]Write i2c OK [15:19:43]MH_I2C_Read... [15:19:43]Read from MH i2c: F0 [15:19:43]MH_I2C_Read... [15:19:43]Read from MH i2c: F0 09 00 [15:19:43]MH_I2C_Read... [15:19:43]Read from MH i2c: F0 09 00 96 03 00 10 2B 11 67 F1 C7 6B 64 CB [15:19:43]GetLastDocTimeStamp 1729178350 [15:19:43]current date 1729178384 [15:19:43]FM_GetShiftState [15:19:43]SAM_PROTO_GetShiftState [15:19:43]wFMCommunicate request_size=4 [15:19:43]MH_SAM_APDU [15:19:43]CAPDU: 80 13 01 00 [15:19:43]Write to MH i2c: E2 08 00 97 03 80 13 01 00 00 00 00 00 17 [15:19:43]Write i2c OK [15:19:43]MH_I2C_Read... [15:19:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:43]Read from MH i2c: E2 [15:19:43]MH_I2C_Read... [15:19:43]Read from MH i2c: E2 0E 00 [15:19:43]MH_I2C_Read... [15:19:43]Read from MH i2c: E2 0E 00 97 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 1F [15:19:43]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [15:19:43]wFMCommunicate OK [15:19:43]SAM_PROTO_GetShiftState done [15:19:43]FM_GetShiftState done [15:19:43]opened in 1729125927 [15:19:43]opened+sec_in_day 1729212327 [15:19:43]quantity*price = 50041 [15:19:43]sum+1 = 50042 [15:19:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 123 17.10.2024 15:19 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871843 ФД: 82197 ФПД: 70476980833364 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T151944&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82197&fm=70476980833364&tin=02508201610067®Number=0000000000091680&sum=50041 [15:19:44]StoreToDocumentArchive [15:19:44]shift 525 fd 82197 [15:19:44]save to /storage/0525/doc_00082197 [15:19:44]save last doc name /storage/0525/doc_00082197 to /storage/kkm_last_doc_name [15:19:44]save OK [15:19:44]Clear old archive folders... [15:19:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:19:44]tlvbuf is 01C11840 [15:19:44]SAM_PROTO_ClearQueue [15:19:44]wFMCommunicate request_size=4 [15:19:44]MH_SAM_APDU [15:19:44]CAPDU: 80 09 00 00 [15:19:44]Write to MH i2c: E2 08 00 A4 03 80 09 00 00 00 00 00 00 19 [15:19:44]Write i2c OK [15:19:44]MH_I2C_Read... [15:19:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:19:44]Read from MH i2c: E2 [15:19:44]MH_I2C_Read... [15:19:44]Read from MH i2c: E2 03 00 [15:19:44]MH_I2C_Read... [15:19:44]Read from MH i2c: E2 03 00 A4 03 00 90 00 1B [15:19:44]RAPDU: 90 00 [15:19:44]wFMCommunicate OK [15:19:44]SAM_PROTO_ClearQueue done [15:19:44]KKMCreateOFDPacket [15:19:44]OFDProtocolAddRootSTLVToBuf [15:19:44]FM_MakeSignedData [15:19:44]FM_MakeSignedData [15:19:44]SAM_PROTO_SignData [15:19:44]wFMCommunicate request_size=4 [15:19:44]MH_SAM_APDU [15:19:44]CAPDU: 80 0D 01 02 [15:19:44]Write to MH i2c: E2 08 00 A5 03 80 0D 01 02 00 00 00 00 21 [15:19:44]Write i2c OK [15:19:44]MH_I2C_Read... [15:19:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:19:45]Read from MH i2c: E2 [15:19:45]MH_I2C_Read... [15:19:45]Read from MH i2c: E2 03 00 [15:19:45]MH_I2C_Read... [15:19:45]Read from MH i2c: E2 03 00 A5 03 00 90 00 1C [15:19:45]RAPDU: 90 00 [15:19:45]wFMCommunicate OK [15:19:45]wFMCommunicate request_size=255 [15:19:45]MH_SAM_APDU [15:19:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 10 2B 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 15 41 01 00 35 04 06 00 40 [15:19:45]Write to MH i2c: E2 02 01 A6 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 10 2B 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 15 41 01 00 35 04 06 00 40 00 00 D3 [15:19:45]Write i2c OK [15:19:45]MH_I2C_Read... [15:19:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:45]Read from MH i2c: E2 [15:19:45]MH_I2C_Read... [15:19:45]Read from MH i2c: E2 03 00 [15:19:45]MH_I2C_Read... [15:19:45]Read from MH i2c: E2 03 00 A6 03 00 90 00 1D [15:19:45]RAPDU: 90 00 [15:19:45]wFMCommunicate OK [15:19:45]wFMCommunicate request_size=10 [15:19:45]MH_SAM_APDU [15:19:45]CAPDU: 80 0D 02 02 05 19 33 68 4C 54 [15:19:45]Write to MH i2c: E2 0D 00 A7 03 80 0D 02 02 05 00 19 33 68 4C 54 00 00 82 [15:19:45]Write i2c OK [15:19:45]MH_I2C_Read... [15:19:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:45]Read from MH i2c: E2 [15:19:45]MH_I2C_Read... [15:19:45]Read from MH i2c: E2 03 00 [15:19:45]MH_I2C_Read... [15:19:45]Read from MH i2c: E2 03 00 A7 03 00 90 00 1E [15:19:45]RAPDU: 90 00 [15:19:45]wFMCommunicate OK [15:19:45]wFMCommunicate request_size=4 [15:19:45]MH_SAM_APDU [15:19:45]CAPDU: 80 0D 03 02 [15:19:45]Write to MH i2c: E2 08 00 A8 03 80 0D 03 02 00 00 00 00 26 [15:19:45]Write i2c OK [15:19:45]MH_I2C_Read... [15:19:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:19:45]Read from MH i2c: E2 [15:19:45]MH_I2C_Read... [15:19:45]Read from MH i2c: E2 0B 00 [15:19:45]MH_I2C_Read... [15:19:45]Read from MH i2c: E2 0B 00 A8 03 00 DA 1B 7B E7 5C D5 0E D1 90 00 8E [15:19:45]RAPDU: DA 1B 7B E7 5C D5 0E D1 90 00 [15:19:45]wFMCommunicate OK [15:19:45]SAM_PROTO_SignData done [15:19:45]FM_MakeSignedData done [15:19:45]CreateOFDProtocolMessage [15:19:45]wFMCommunicate request_size=4 [15:19:45]MH_SAM_APDU [15:19:45]CAPDU: 80 11 00 00 [15:19:45]Write to MH i2c: E2 08 00 A9 03 80 11 00 00 00 00 00 00 26 [15:19:45]Write i2c OK [15:19:45]MH_I2C_Read... [15:19:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:45]Read from MH i2c: E2 [15:19:45]MH_I2C_Read... [15:19:45]Read from MH i2c: E2 17 00 [15:19:45]MH_I2C_Read... [15:19:45]Read from MH i2c: E2 17 00 A9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 78 [15:19:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:19:45]wFMCommunicate OK [15:19:45]CreateOFDProtocolMessage done [15:19:45]OFDSenderStorePacket 82197 [15:19:45]StoreOFDPacket docnum=82197 [15:19:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 65 80 07 01 81 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 10 2B 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 15 41 01 00 35 04 06 00 40 19 33 68 4C 54 DA 1B 7B E7 5C D5 0E D1 [15:19:45]CheckFolder [15:19:45]dirname=/storage/ofd_packets [15:19:45]CheckFolder done [15:19:45]ProducePacketName [15:19:45]name=ofd_packets/00082197 [15:19:45]NVStorageSaveData ofd_packets/00082197 [15:19:45]File name is /storage/ofd_packets/00082197 [15:19:45]Write 301 bytes [15:19:45]NVStorageSaveData done [15:19:45]OFDSenderStorePacket done [15:19:45]KKMCreateOFDPacket done [15:19:45]NVStorageSaveData kkm_last_timestamp [15:19:45]File name is /storage/kkm_last_timestamp [15:19:45]Write 4 bytes [15:19:45]NVStorageSaveData done [15:19:45]ExternCall_PrintAddStr [15:19:45]wPrintStart [15:19:45]Write to MH i2c: 01 00 00 AA 03 AD [15:19:45]Write i2c OK [15:19:45]MH_I2C_Read... [15:19:45]Read from MH i2c: 01 [15:19:45]MH_I2C_Read... [15:19:45]Read from MH i2c: 01 07 00 [15:19:45]MH_I2C_Read... [15:19:45]Read from MH i2c: 01 07 00 AA 03 00 00 00 00 00 FF 0F C2 [15:19:45]RasterBufferAndPrint [15:19:45]line Счет N : (1)918703 [15:19:45]line ИНН: 02508201610067 [15:19:45]line Контрольно-Кассовый Чек [15:19:45]line ПРОДАЖА [15:19:45]line ТРК (МРК, ГНК) : 22 [15:19:45]line Товар: 2710124130 [15:19:45]line Аи-92-К-4 [15:19:45]line 7.480 * 66.90 [15:19:45]line = 500.41 [15:19:45]line НДС 12% НСП 1% [15:19:45]line > о реализуемом товаре [15:19:45]line ИТОГО: 500.41 [15:19:45]line НСП 1% : 4.43 [15:19:45]line НДС 12% : 53.14 [15:19:45]line Наличными: 0.00 [15:19:45]line Безнал.: 500.41 [15:19:45]line Место: АЗС № 114 "Партнер Нефть" [15:19:45]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [15:19:45]line СНО: Общий режим [15:19:45]line Чек 123 17.10.2024 15:19 [15:19:45]line Смена: 525 ФФД: 1.0 [15:19:45]line ЗНМ: 0300000086 [15:19:45]line РНМ: 0000000000091680 [15:19:45]line Версия ККМ: 001 [15:19:45]line Платежная система: O! деньги [15:19:45]line ФМ: 0000000000871843 [15:19:45]line ФД: 82197 [15:19:45]line ФПД: 70476980833364 [15:19:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T151944&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82197&fm=70476980833364&tin=02508201610067®Number=0000000000091680&sum=50041 [15:19:45]written 0, free lines is 4095 [15:19:45]OFD Sender: Processing packet 82197 [packets to send 254, broken 253] [15:19:45]ProducePacketName [15:19:45]name=ofd_packets/00082197 [15:19:45]OFD Sender: To server: pG, [15:19:45]CommunicateWithHost lk.salyk.kg:30040 [15:19:45]ConnectInit lk.salyk.kg [15:19:45]Write to MH i2c: 01 00 00 D4 03 D7 [15:19:45]Write i2c OK [15:19:45]MH_I2C_Read... [15:19:45]Read from MH i2c: 01 [15:19:45]MH_I2C_Read... [15:19:45]Read from MH i2c: 01 07 00 [15:19:45]MH_I2C_Read... [15:19:45]Read from MH i2c: 01 07 00 D4 03 00 00 00 00 00 DF 0C C9 [15:19:45]RasterBufferAndPrint [15:19:45]line [15:19:45]line [15:19:45]line [15:19:45]line [15:19:45]line [15:19:45]written 0, free lines is 3300 [15:19:45]MH_Cut [15:19:45]Write to MH i2c: D1 01 00 DB 03 01 B0 [15:19:45]Write i2c OK [15:19:45]MH_I2C_Read... [15:19:45]Read from MH i2c: D1 [15:19:45]MH_I2C_Read... [15:19:45]Read from MH i2c: D1 01 00 [15:19:45]MH_I2C_Read... [15:19:45]Read from MH i2c: D1 01 00 DB 03 00 AF [15:19:45]Write to MH i2c: 01 00 00 DC 03 DF [15:19:45]Write i2c OK [15:19:45]MH_I2C_Read... [15:19:46]*** Cut start [15:19:46]*** Partial cut [15:19:46]*** CUTSNS_PIN = 1 [15:19:46]*** CUTSNS_PIN = 0 [15:19:47]*** Brake cut motor [15:19:47]Connected sock=11 [15:19:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 65 80 07 01 81 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 10 2B 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 15 41 01 00 35 04 06 00 40 19 33 68 4C 54 DA 1B 7B E7 5C D5 0E D1 [15:19:47]Read from MH i2c: 01 [15:19:47]MH_I2C_Read... [15:19:47]*** Stop cut motor [15:19:47]*** Cut end [15:19:47]Read from MH i2c: 01 07 00 [15:19:47]MH_I2C_Read... [15:19:47]Read from MH i2c: 01 07 00 DC 03 00 00 00 00 00 FF 0F F4 [15:19:47]process_action close_receipt done [15:19:47]requested_data is exist [15:19:47]produce_requested_data [15:19:47]requested_item fm.sn is exist - process it [15:19:47]wFMCommunicate request_size=4 [15:19:47]MH_SAM_APDU [15:19:47]CAPDU: 80 11 00 00 [15:19:47]Write to MH i2c: E2 08 00 DD 03 80 11 00 00 00 00 00 00 5A [15:19:47]Write i2c OK [15:19:47]MH_I2C_Read... [15:19:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:47]Read from MH i2c: E2 [15:19:47]MH_I2C_Read... [15:19:47]Read from MH i2c: E2 17 00 [15:19:47]MH_I2C_Read... [15:19:47]Read from MH i2c: E2 17 00 DD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 AC [15:19:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:19:47]wFMCommunicate OK [15:19:47]requested_item fd.num is exist - process it [15:19:47]SAM_PROTO_GetFieldsCounters [15:19:47]wFMCommunicate request_size=4 [15:19:47]MH_SAM_APDU [15:19:47]CAPDU: 80 13 00 00 [15:19:47]Write to MH i2c: E2 08 00 DE 03 80 13 00 00 00 00 00 00 5D [15:19:47]Write i2c OK [15:19:47]MH_I2C_Read... [15:19:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:19:47]Read from MH i2c: E2 [15:19:47]MH_I2C_Read... [15:19:47]Read from MH i2c: E2 62 00 [15:19:47]MH_I2C_Read... [15:19:47]Read from MH i2c: E2 62 00 DE 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 15 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [15:19:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 15 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:19:47]wFMCommunicate OK [15:19:47]SAM_PROTO_GetFieldsCounters done [15:19:47]requested_item shift.num is exist - process it [15:19:47]requested_item shift.opened is exist - process it [15:19:47]req_shift_opened [15:19:47]FM_GetShiftState [15:19:47]SAM_PROTO_GetShiftState [15:19:47]wFMCommunicate request_size=4 [15:19:47]MH_SAM_APDU [15:19:47]CAPDU: 80 13 01 00 [15:19:47]Write to MH i2c: E2 08 00 DF 03 80 13 01 00 00 00 00 00 5F [15:19:47]Write i2c OK [15:19:47]MH_I2C_Read... [15:19:47]recv_with_timeout no data received [15:19:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:47]Read from MH i2c: E2 [15:19:47]MH_I2C_Read... [15:19:47]Read from MH i2c: E2 0E 00 [15:19:47]MH_I2C_Read... [15:19:47]Read from MH i2c: E2 0E 00 DF 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 67 [15:19:47]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [15:19:47]wFMCommunicate OK [15:19:47]SAM_PROTO_GetShiftState done [15:19:47]FM_GetShiftState done [15:19:47]req_shift_opened done [15:19:47]requested_item shift.open_date is exist - process it [15:19:47]req_shift_open_date [15:19:47]req_shift_open_date done [15:19:47]produce_requested_data done [15:19:47]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82197,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [15:19:47]process_action_free close_receipt [15:19:47]json_value_free [15:19:47]json_value_free done [15:19:47]process_json_proto returns [15:19:47]Send response to host [15:19:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82197,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [15:19:47]free response buf [15:19:47]execute_script done [15:19:47]execute_script returns [15:19:47]free content buf [15:19:47]Sock 7.Close socket [15:19:47]Sock 7.Thread stoped [15:19:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 A9 3D 47 00 2D E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 15 41 01 00 F4 03 04 00 4F D0 10 67 B6 04 01 00 00 21 78 31 4C 1B CD 33 BF [15:19:47]CommunicateWithHost err = 0 [15:19:47]CheckOFDResponse [15:19:47]1017 (14) - 77093643461234 [15:19:47]1041 (16) - 0000000000871843 [15:19:47]1040 (4) - 82197 [15:19:47]1012 (4) - 17.10.2024 08:52 [15:19:47]1206 (1) - 0 [15:19:47]OFD Sender: Remove packet 82197 [15:19:47]ProducePacketName [15:19:47]name=ofd_packets/00082197 [15:19:47]NVStorageDeleteData [15:19:48]OFD Sender: No OFD packet to send [15:19:53]OFD Sender: No OFD packet to send [15:19:58]OFD Sender: No OFD packet to send [15:20:03]OFD Sender: No OFD packet to send [15:20:08]OFD Sender: No OFD packet to send [15:20:13]OFD Sender: No OFD packet to send [15:20:18]OFD Sender: No OFD packet to send [15:20:23]OFD Sender: No OFD packet to send [15:20:28]OFD Sender: No OFD packet to send [15:20:33]OFD Sender: No OFD packet to send [15:20:38]OFD Sender: No OFD packet to send [15:20:43]OFD Sender: No OFD packet to send [15:20:48]OFD Sender: No OFD packet to send [15:20:53]OFD Sender: No OFD packet to send [15:20:58]OFD Sender: No OFD packet to send [15:21:03]OFD Sender: No OFD packet to send [15:21:08]OFD Sender: No OFD packet to send [15:21:13]OFD Sender: No OFD packet to send [15:21:18]OFD Sender: No OFD packet to send [15:21:23]OFD Sender: No OFD packet to send [15:21:28]OFD Sender: No OFD packet to send [15:21:33]OFD Sender: No OFD packet to send [15:21:38]OFD Sender: No OFD packet to send [15:21:43]OFD Sender: No OFD packet to send [15:21:48]OFD Sender: No OFD packet to send [15:21:53]OFD Sender: No OFD packet to send [15:21:58]OFD Sender: No OFD packet to send [15:22:03]OFD Sender: No OFD packet to send [15:22:08]OFD Sender: No OFD packet to send [15:22:13]OFD Sender: No OFD packet to send [15:22:18]OFD Sender: No OFD packet to send [15:22:23]OFD Sender: No OFD packet to send [15:22:28]OFD Sender: No OFD packet to send [15:22:33]OFD Sender: No OFD packet to send [15:22:38]OFD Sender: No OFD packet to send [15:22:43]OFD Sender: No OFD packet to send [15:22:48]OFD Sender: No OFD packet to send [15:22:53]OFD Sender: No OFD packet to send [15:22:58]OFD Sender: No OFD packet to send [15:23:03]OFD Sender: No OFD packet to send [15:23:08]OFD Sender: No OFD packet to send [15:23:13]OFD Sender: No OFD packet to send [15:23:18]OFD Sender: No OFD packet to send [15:23:23]OFD Sender: No OFD packet to send [15:23:28]OFD Sender: No OFD packet to send [15:23:33]OFD Sender: No OFD packet to send [15:23:38]OFD Sender: No OFD packet to send [15:23:43]OFD Sender: No OFD packet to send [15:23:48]OFD Sender: No OFD packet to send [15:23:53]OFD Sender: No OFD packet to send [15:23:58]OFD Sender: No OFD packet to send [15:24:03]OFD Sender: No OFD packet to send [15:24:08]OFD Sender: No OFD packet to send [15:24:13]OFD Sender: No OFD packet to send [15:24:18]OFD Sender: No OFD packet to send [15:24:23]OFD Sender: No OFD packet to send [15:24:28]OFD Sender: No OFD packet to send [15:24:33]OFD Sender: No OFD packet to send [15:24:38]OFD Sender: No OFD packet to send [15:24:43]OFD Sender: No OFD packet to send [15:24:48]OFD Sender: No OFD packet to send [15:24:53]OFD Sender: No OFD packet to send [15:24:58]OFD Sender: No OFD packet to send [15:25:03]OFD Sender: No OFD packet to send [15:25:08]OFD Sender: No OFD packet to send [15:25:13]OFD Sender: No OFD packet to send [15:25:18]OFD Sender: No OFD packet to send [15:25:23]OFD Sender: No OFD packet to send [15:25:28]OFD Sender: No OFD packet to send [15:25:33]OFD Sender: No OFD packet to send [15:25:38]OFD Sender: No OFD packet to send [15:25: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:26:44]OFD Sender: No OFD packet to send [15:26:49]OFD Sender: No OFD packet to send [15:26:54]OFD Sender: No OFD packet to send [15:26:59]OFD Sender: No OFD packet to send [15:27:04]OFD Sender: No OFD packet to send [15:27:09]OFD Sender: No OFD packet to send [15:27:14]OFD Sender: No OFD packet to send [15:27:19]OFD Sender: No OFD packet to send [15:27:24]OFD Sender: No OFD packet to send [15:27:29]OFD Sender: No OFD packet to send [15:27:34]OFD Sender: No OFD packet to send [15:27:39]OFD Sender: No OFD packet to send [15:27:44]OFD Sender: No OFD packet to send [15:27:49]OFD Sender: No OFD packet to send [15:27:54]OFD Sender: No OFD packet to send [15:27:59]OFD Sender: No OFD packet to send [15:28:04]OFD Sender: No OFD packet to send [15:28:09]OFD Sender: No OFD packet to send [15:28:14]OFD Sender: No OFD packet to send [15:28:19]OFD Sender: No OFD packet to send [15:28:24]OFD Sender: No OFD packet to send [15:28:29]OFD Sender: No OFD packet to send [15:28:34]OFD Sender: No OFD packet to send [15:28:39]OFD Sender: No OFD packet to send [15:28:44]OFD Sender: No OFD packet to send [15:28:49]OFD Sender: No OFD packet to send [15:28:54]OFD Sender: No OFD packet to send [15:28:59]OFD Sender: No OFD packet to send [15:29:04]OFD Sender: No OFD packet to send [15:29:09]OFD Sender: No OFD packet to send [15:29:14]OFD Sender: No OFD packet to send [15:29:19]OFD Sender: No OFD packet to send [15:29:24]OFD Sender: No OFD packet to send [15:29:29]OFD Sender: No OFD packet to send [15:29:34]OFD Sender: No OFD packet to send [15:29:39]OFD Sender: No OFD packet to send [15:29:44]OFD Sender: No OFD packet to send [15:29:49]OFD Sender: No OFD packet to send [15:29:54]OFD Sender: No OFD packet to send [15:29:59]OFD Sender: No OFD packet to send [15:30:04]OFD Sender: No OFD packet to send [15:30:09]OFD Sender: No OFD packet to send [15:30:14]OFD Sender: No OFD packet to send [15:30:19]OFD Sender: No OFD packet to send [15:30:24]OFD Sender: No OFD packet to send [15:30:29]OFD Sender: No OFD packet to send [15:30:34]OFD Sender: No OFD packet to send [15:30:39]OFD Sender: No OFD packet to send [15:30:44]OFD Sender: No OFD packet to send [15:30:49]OFD Sender: No OFD packet to send [15:30:54]OFD Sender: No OFD packet to send [15:30:59]OFD Sender: No OFD packet to send [15:31:04]OFD Sender: No OFD packet to send [15:31:09]OFD Sender: No OFD packet to send [15:31:14]OFD Sender: No OFD packet to send [15:31:19]OFD Sender: No OFD packet to send [15:31:24]OFD Sender: No OFD packet to send [15:31:29]OFD Sender: No OFD packet to send [15:31:34]accept exits with 10 [15:31:34]New connection [15:31:34]New thread 3066813796 created [15:31:34]Thread 3066957156 joined [15:31:34]Waiting for new connection... [15:31:34] Sock 10.Parse request [15:31:34]Sock 10.Check first char [15:31:34]Sock 10.First char is OK [15:31:34]request: POST /json_proto HTTP/1.0 [15:31:34]Method: POST [15:31:34]URL: /json_proto [15:31:34]Method is POST - this is cgi request [15:31:34]url: /json_proto [15:31:34]query_string will be loaded in cgi processing [15:31:34]execute_cgi json_proto POST (null) [15:31:34]execute_cgi path=json_proto method=POST [15:31:34]POST find Content-Length [15:31:34]Host: 172.17.44.67:8080 [15:31:34]Content-Length: 800 [15:31:34]Content-Type: application/json [15:31:34] [15:31:34]POST finish read [15:31:34]Found Content-Length = 800 [15:31:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:34]execute_script... [15:31:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:34]POST & json_proto [15:31:34]process_json_proto [15:31:34]json parsed OK: [15:31:34]protocol is kg_v1.0 [15:31:34]action value=close_receipt [15:31:34]process_action close_receipt [15:31:34]cmd_close_receipt [15:31:34]MH_GetDate [15:31:34]Write to MH i2c: F0 00 00 E0 03 D2 [15:31:34]Write i2c OK [15:31:34]MH_I2C_Read... [15:31:34]Read from MH i2c: F0 [15:31:34]MH_I2C_Read... [15:31:34]Read from MH i2c: F0 09 00 [15:31:34]MH_I2C_Read... [15:31:34]Read from MH i2c: F0 09 00 E0 03 00 D6 2D 11 67 F1 C7 6B 64 DD [15:31:34]GetLastDocTimeStamp 1729178384 [15:31:34]current date 1729179094 [15:31:34]FM_GetShiftState [15:31:34]SAM_PROTO_GetShiftState [15:31:34]wFMCommunicate request_size=4 [15:31:34]MH_SAM_APDU [15:31:34]CAPDU: 80 13 01 00 [15:31:34]Write to MH i2c: E2 08 00 E1 03 80 13 01 00 00 00 00 00 61 [15:31:34]Write i2c OK [15:31:34]MH_I2C_Read... [15:31:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:34]Read from MH i2c: E2 [15:31:34]MH_I2C_Read... [15:31:34]Read from MH i2c: E2 0E 00 [15:31:34]MH_I2C_Read... [15:31:34]Read from MH i2c: E2 0E 00 E1 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 69 [15:31:34]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [15:31:34]wFMCommunicate OK [15:31:34]SAM_PROTO_GetShiftState done [15:31:34]FM_GetShiftState done [15:31:34]opened in 1729125927 [15:31:34]opened+sec_in_day 1729212327 [15:31:34]quantity*price = 50041 [15:31:34]sum+1 = 50042 [15:31:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 124 17.10.2024 15:31 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871843 ФД: 82198 ФПД: 26984520553249 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T153134&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82198&fm=26984520553249&tin=02508201610067®Number=0000000000091680&sum=50041 [15:31:35]StoreToDocumentArchive [15:31:35]shift 525 fd 82198 [15:31:35]save to /storage/0525/doc_00082198 [15:31:35]save last doc name /storage/0525/doc_00082198 to /storage/kkm_last_doc_name [15:31:35]save OK [15:31:35]Clear old archive folders... [15:31:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:31:35]tlvbuf is 01C1A970 [15:31:35]SAM_PROTO_ClearQueue [15:31:35]wFMCommunicate request_size=4 [15:31:35]MH_SAM_APDU [15:31:35]CAPDU: 80 09 00 00 [15:31:35]Write to MH i2c: E2 08 00 EE 03 80 09 00 00 00 00 00 00 63 [15:31:35]Write i2c OK [15:31:35]MH_I2C_Read... [15:31:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:31:35]Read from MH i2c: E2 [15:31:35]MH_I2C_Read... [15:31:35]Read from MH i2c: E2 03 00 [15:31:35]MH_I2C_Read... [15:31:35]Read from MH i2c: E2 03 00 EE 03 00 90 00 65 [15:31:35]RAPDU: 90 00 [15:31:35]wFMCommunicate OK [15:31:35]SAM_PROTO_ClearQueue done [15:31:35]KKMCreateOFDPacket [15:31:35]OFDProtocolAddRootSTLVToBuf [15:31:35]FM_MakeSignedData [15:31:35]FM_MakeSignedData [15:31:35]SAM_PROTO_SignData [15:31:35]wFMCommunicate request_size=4 [15:31:35]MH_SAM_APDU [15:31:35]CAPDU: 80 0D 01 02 [15:31:35]Write to MH i2c: E2 08 00 EF 03 80 0D 01 02 00 00 00 00 6B [15:31:35]Write i2c OK [15:31:35]MH_I2C_Read... [15:31:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:31:35]Read from MH i2c: E2 [15:31:35]MH_I2C_Read... [15:31:35]Read from MH i2c: E2 03 00 [15:31:35]MH_I2C_Read... [15:31:35]Read from MH i2c: E2 03 00 EF 03 00 90 00 66 [15:31:35]RAPDU: 90 00 [15:31:35]wFMCommunicate OK [15:31:35]wFMCommunicate request_size=255 [15:31:35]MH_SAM_APDU [15:31:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 D6 2D 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 16 41 01 00 35 04 06 00 18 [15:31:35]Write to MH i2c: E2 02 01 F0 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 D6 2D 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 16 41 01 00 35 04 06 00 18 00 00 BF [15:31:35]Write i2c OK [15:31:35]MH_I2C_Read... [15:31:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:35]Read from MH i2c: E2 [15:31:35]MH_I2C_Read... [15:31:35]Read from MH i2c: E2 03 00 [15:31:35]MH_I2C_Read... [15:31:35]Read from MH i2c: E2 03 00 F0 03 00 90 00 67 [15:31:35]RAPDU: 90 00 [15:31:35]wFMCommunicate OK [15:31:35]wFMCommunicate request_size=10 [15:31:35]MH_SAM_APDU [15:31:35]CAPDU: 80 0D 02 02 05 8A D2 C3 13 21 [15:31:35]Write to MH i2c: E2 0D 00 F1 03 80 0D 02 02 05 00 8A D2 C3 13 21 00 00 CB [15:31:35]Write i2c OK [15:31:35]MH_I2C_Read... [15:31:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:35]Read from MH i2c: E2 [15:31:35]MH_I2C_Read... [15:31:35]Read from MH i2c: E2 03 00 [15:31:35]MH_I2C_Read... [15:31:35]Read from MH i2c: E2 03 00 F1 03 00 90 00 68 [15:31:35]RAPDU: 90 00 [15:31:35]wFMCommunicate OK [15:31:35]wFMCommunicate request_size=4 [15:31:35]MH_SAM_APDU [15:31:35]CAPDU: 80 0D 03 02 [15:31:35]Write to MH i2c: E2 08 00 F2 03 80 0D 03 02 00 00 00 00 70 [15:31:35]Write i2c OK [15:31:35]MH_I2C_Read... [15:31:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:31:35]Read from MH i2c: E2 [15:31:35]MH_I2C_Read... [15:31:35]Read from MH i2c: E2 0B 00 [15:31:35]MH_I2C_Read... [15:31:35]Read from MH i2c: E2 0B 00 F2 03 00 43 4E 63 79 E7 9B 45 B3 90 00 58 [15:31:35]RAPDU: 43 4E 63 79 E7 9B 45 B3 90 00 [15:31:35]wFMCommunicate OK [15:31:35]SAM_PROTO_SignData done [15:31:35]FM_MakeSignedData done [15:31:35]CreateOFDProtocolMessage [15:31:35]wFMCommunicate request_size=4 [15:31:35]MH_SAM_APDU [15:31:35]CAPDU: 80 11 00 00 [15:31:35]Write to MH i2c: E2 08 00 F3 03 80 11 00 00 00 00 00 00 70 [15:31:35]Write i2c OK [15:31:35]MH_I2C_Read... [15:31:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:35]Read from MH i2c: E2 [15:31:35]MH_I2C_Read... [15:31:35]Read from MH i2c: E2 17 00 [15:31:35]MH_I2C_Read... [15:31:35]Read from MH i2c: E2 17 00 F3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C2 [15:31:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:31:35]wFMCommunicate OK [15:31:35]CreateOFDProtocolMessage done [15:31:35]OFDSenderStorePacket 82198 [15:31:35]StoreOFDPacket docnum=82198 [15:31:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 44 43 07 01 E4 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 D6 2D 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 16 41 01 00 35 04 06 00 18 8A D2 C3 13 21 43 4E 63 79 E7 9B 45 B3 [15:31:35]CheckFolder [15:31:35]dirname=/storage/ofd_packets [15:31:35]CheckFolder done [15:31:35]ProducePacketName [15:31:35]name=ofd_packets/00082198 [15:31:35]NVStorageSaveData ofd_packets/00082198 [15:31:35]File name is /storage/ofd_packets/00082198 [15:31:35]Write 301 bytes [15:31:35]NVStorageSaveData done [15:31:35]OFDSenderStorePacket done [15:31:35]KKMCreateOFDPacket done [15:31:35]NVStorageSaveData kkm_last_timestamp [15:31:35]File name is /storage/kkm_last_timestamp [15:31:35]Write 4 bytes [15:31:35]NVStorageSaveData done [15:31:35]ExternCall_PrintAddStr [15:31:35]wPrintStart [15:31:35]Write to MH i2c: 01 00 00 F4 03 F7 [15:31:35]Write i2c OK [15:31:35]MH_I2C_Read... [15:31:35]Read from MH i2c: 01 [15:31:35]MH_I2C_Read... [15:31:35]Read from MH i2c: 01 07 00 [15:31:35]MH_I2C_Read... [15:31:35]Read from MH i2c: 01 07 00 F4 03 00 00 00 00 00 FF 0F 0C [15:31:35]RasterBufferAndPrint [15:31:35]line Счет N : (1)918704 [15:31:35]line ИНН: 02508201610067 [15:31:35]line Контрольно-Кассовый Чек [15:31:35]line ПРОДАЖА [15:31:35]line ТРК (МРК, ГНК) : 11 [15:31:35]line Товар: 2710124130 [15:31:35]line Аи-92-К-4 [15:31:35]line 7.480 * 66.90 [15:31:35]line = 500.41 [15:31:35]line НДС 12% НСП 1% [15:31:35]line > о реализуемом товаре [15:31:35]line ИТОГО: 500.41 [15:31:35]line НСП 1% : 4.43 [15:31:35]line НДС 12% : 53.14 [15:31:35]line Наличными: 0.00 [15:31:35]line Безнал.: 500.41 [15:31:35]line Место: АЗС № 114 "Партнер Нефть" [15:31:35]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [15:31:35]line СНО: Общий режим [15:31:35]line Чек 124 17.10.2024 15:31 [15:31:35]line Смена: 525 ФФД: 1.0 [15:31:35]line ЗНМ: 0300000086 [15:31:35]line РНМ: 0000000000091680 [15:31:35]line Версия ККМ: 001 [15:31:35]line Платежная система: O! деньги [15:31:35]line ФМ: 0000000000871843 [15:31:35]line ФД: 82198 [15:31:35]line ФПД: 26984520553249 [15:31:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T153134&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82198&fm=26984520553249&tin=02508201610067®Number=0000000000091680&sum=50041 [15:31:35]written 0, free lines is 4095 [15:31:35]OFD Sender: Processing packet 82198 [packets to send 254, broken 253] [15:31:35]ProducePacketName [15:31:35]name=ofd_packets/00082198 [15:31:35]OFD Sender: To server: pG, [15:31:35]CommunicateWithHost lk.salyk.kg:30040 [15:31:35]ConnectInit lk.salyk.kg [15:31:36]Write to MH i2c: 01 00 00 1E 04 22 [15:31:36]Write i2c OK [15:31:36]MH_I2C_Read... [15:31:36]Read from MH i2c: 01 [15:31:36]MH_I2C_Read... [15:31:36]Read from MH i2c: 01 07 00 [15:31:36]MH_I2C_Read... [15:31:36]Read from MH i2c: 01 07 00 1E 04 00 00 00 00 00 DE 0C 13 [15:31:36]RasterBufferAndPrint [15:31:36]line [15:31:36]line [15:31:36]line [15:31:36]line [15:31:36]line [15:31:36]written 0, free lines is 3300 [15:31:36]MH_Cut [15:31:36]Write to MH i2c: D1 01 00 25 04 01 FB [15:31:36]Write i2c OK [15:31:36]MH_I2C_Read... [15:31:36]Read from MH i2c: D1 [15:31:36]MH_I2C_Read... [15:31:36]Read from MH i2c: D1 01 00 [15:31:36]MH_I2C_Read... [15:31:36]Read from MH i2c: D1 01 00 25 04 00 FA [15:31:36]Write to MH i2c: 01 00 00 26 04 2A [15:31:36]Write i2c OK [15:31:36]MH_I2C_Read... [15:31:36]Connected sock=7 [15:31:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 44 43 07 01 E4 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 D6 2D 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 16 41 01 00 35 04 06 00 18 8A D2 C3 13 21 43 4E 63 79 E7 9B 45 B3 [15:31:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 D6 4B 47 00 00 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 16 41 01 00 F4 03 04 00 14 D3 10 67 B6 04 01 00 00 A2 9F 66 D8 BD D5 A0 AE [15:31:36]CommunicateWithHost err = 0 [15:31:36]CheckOFDResponse [15:31:36]1017 (14) - 77093643461234 [15:31:36]1041 (16) - 0000000000871843 [15:31:36]1040 (4) - 82198 [15:31:36]1012 (4) - 17.10.2024 09:04 [15:31:36]1206 (1) - 0 [15:31:36]OFD Sender: Remove packet 82198 [15:31:36]ProducePacketName [15:31:36]name=ofd_packets/00082198 [15:31:36]NVStorageDeleteData [15:31:37]*** Cut start [15:31:37]*** Partial cut [15:31:37]*** CUTSNS_PIN = 1 [15:31:37]*** CUTSNS_PIN = 0 [15:31:37]OFD Sender: No OFD packet to send [15:31:37]*** Brake cut motor [15:31:37]Read from MH i2c: 01 [15:31:37]MH_I2C_Read... [15:31:37]*** Stop cut motor [15:31:37]*** Cut end [15:31:37]Read from MH i2c: 01 07 00 [15:31:37]MH_I2C_Read... [15:31:37]Read from MH i2c: 01 07 00 26 04 00 00 00 00 00 FF 0F 3F [15:31:37]process_action close_receipt done [15:31:37]requested_data is exist [15:31:37]produce_requested_data [15:31:37]requested_item fm.sn is exist - process it [15:31:37]wFMCommunicate request_size=4 [15:31:37]MH_SAM_APDU [15:31:37]CAPDU: 80 11 00 00 [15:31:37]Write to MH i2c: E2 08 00 27 04 80 11 00 00 00 00 00 00 A5 [15:31:37]Write i2c OK [15:31:37]MH_I2C_Read... [15:31:37]Read from MH i2c: E2 [15:31:37]MH_I2C_Read... [15:31:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:37]Read from MH i2c: E2 17 00 [15:31:37]MH_I2C_Read... [15:31:37]Read from MH i2c: E2 17 00 27 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 F7 [15:31:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:31:37]wFMCommunicate OK [15:31:37]requested_item fd.num is exist - process it [15:31:37]SAM_PROTO_GetFieldsCounters [15:31:37]wFMCommunicate request_size=4 [15:31:37]MH_SAM_APDU [15:31:37]CAPDU: 80 13 00 00 [15:31:37]Write to MH i2c: E2 08 00 28 04 80 13 00 00 00 00 00 00 A8 [15:31:37]Write i2c OK [15:31:37]MH_I2C_Read... [15:31:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:31:37]Read from MH i2c: E2 [15:31:37]MH_I2C_Read... [15:31:37]Read from MH i2c: E2 62 00 [15:31:37]MH_I2C_Read... [15:31:37]Read from MH i2c: E2 62 00 28 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 16 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [15:31:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 16 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:31:37]wFMCommunicate OK [15:31:37]SAM_PROTO_GetFieldsCounters done [15:31:37]requested_item shift.num is exist - process it [15:31:37]requested_item shift.opened is exist - process it [15:31:37]req_shift_opened [15:31:37]FM_GetShiftState [15:31:37]SAM_PROTO_GetShiftState [15:31:37]wFMCommunicate request_size=4 [15:31:37]MH_SAM_APDU [15:31:37]CAPDU: 80 13 01 00 [15:31:37]Write to MH i2c: E2 08 00 29 04 80 13 01 00 00 00 00 00 AA [15:31:37]Write i2c OK [15:31:37]MH_I2C_Read... [15:31:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:37]Read from MH i2c: E2 [15:31:37]MH_I2C_Read... [15:31:37]Read from MH i2c: E2 0E 00 [15:31:37]MH_I2C_Read... [15:31:37]Read from MH i2c: E2 0E 00 29 04 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 B2 [15:31:37]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [15:31:37]wFMCommunicate OK [15:31:38]SAM_PROTO_GetShiftState done [15:31:38]FM_GetShiftState done [15:31:38]req_shift_opened done [15:31:38]requested_item shift.open_date is exist - process it [15:31:38]req_shift_open_date [15:31:38]req_shift_open_date done [15:31:38]produce_requested_data done [15:31:38]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82198,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [15:31:38]process_action_free close_receipt [15:31:38]json_value_free [15:31:38]json_value_free done [15:31:38]process_json_proto returns [15:31:38]Send response to host [15:31:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82198,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [15:31:38]free response buf [15:31:38]execute_script done [15:31:38]execute_script returns [15:31:38]free content buf [15:31:38]Sock 10.Close socket [15:31:38]Sock 10.Thread stoped [15:31:42]OFD Sender: No OFD packet to send [15:31:47]OFD Sender: No OFD packet to send [15:31:52]OFD Sender: No OFD packet to send [15:31:57]OFD Sender: No OFD packet to send [15:32:02]OFD Sender: No OFD packet to send [15:32:04]recv_with_timeout no data received [15:32:07]OFD Sender: No OFD packet to send [15:32:12]OFD Sender: No OFD packet to send [15:32:17]OFD Sender: No OFD packet to send [15:32:22]OFD Sender: No OFD packet to send [15:32:27]OFD Sender: No OFD packet to send [15:32:32]OFD Sender: No OFD packet to send [15:32:37]OFD Sender: No OFD packet to send [15:32:42]OFD Sender: No OFD packet to send [15:32:47]OFD Sender: No OFD packet to send [15:32:52]OFD Sender: No OFD packet to send [15:32:57]OFD Sender: No OFD packet to send [15:33:02]OFD Sender: No OFD packet to send [15:33:07]OFD Sender: No OFD packet to send [15:33:12]OFD Sender: No OFD packet to send [15:33:17]OFD Sender: No OFD packet to send [15:33:22]OFD Sender: No OFD packet to send [15:33:27]OFD Sender: No OFD packet to send [15:33:32]OFD Sender: No OFD packet to send [15:33:37]OFD Sender: No OFD packet to send [15:33:42]OFD Sender: No OFD packet to send [15:33:47]OFD Sender: No OFD packet to send [15:33:52]OFD Sender: No OFD packet to send [15:33:57]OFD Sender: No OFD packet to send [15:34:02]OFD Sender: No OFD packet to send [15:34:07]OFD Sender: No OFD packet to send [15:34:12]OFD Sender: No OFD packet to send [15:34:17]OFD Sender: No OFD packet to send [15:34:22]OFD Sender: No OFD packet to send [15:34:27]OFD Sender: No OFD packet to send [15:34:32]OFD Sender: No OFD packet to send [15:34:37]OFD Sender: No OFD packet to send [15:34:42]OFD Sender: No OFD packet to send [15:34:47]OFD Sender: No OFD packet to send [15:34:52]OFD Sender: No OFD packet to send [15:34:57]OFD Sender: No OFD packet to send [15:35:02]OFD Sender: No OFD packet to send [15:35:07]OFD Sender: No OFD packet to send [15:35:12]OFD Sender: No OFD packet to send [15:35:17]OFD Sender: No OFD packet to send [15:35:22]OFD Sender: No OFD packet to send [15:35:27]OFD Sender: No OFD packet to send [15:35:32]OFD Sender: No OFD packet to send [15:35:37]OFD Sender: No OFD packet to send [15:35:42]OFD Sender: No OFD packet to send [15:35:47]OFD Sender: No OFD packet to send [15:35:52]OFD Sender: No OFD packet to send [15:35:57]OFD Sender: No OFD packet to send [15:36:02]OFD Sender: No OFD packet to send [15:36:07]OFD Sender: No OFD packet to send [15:36:12]OFD Sender: No OFD packet to send [15:36:17]OFD Sender: No OFD packet to send [15:36:22]OFD Sender: No OFD packet to send [15:36:27]OFD Sender: No OFD packet to send [15:36:32]OFD Sender: No OFD packet to send [15:36:37]OFD Sender: No OFD packet to send [15:36:42]OFD Sender: No OFD packet to send [15:36:47]OFD Sender: No OFD packet to send [15:36:52]OFD Sender: No OFD packet to send [15:36:57]OFD Sender: No OFD packet to send [15:37:02]OFD Sender: No OFD packet to send [15:37:07]OFD Sender: No OFD packet to send [15:37:12]OFD Sender: No OFD packet to send [15:37:17]OFD Sender: No OFD packet to send [15:37:22]OFD Sender: No OFD packet to send [15:37:27]OFD Sender: No OFD packet to send [15:37:32]OFD Sender: No OFD packet to send [15:37:37]OFD Sender: No OFD packet to send [15:37:38]accept exits with 9 [15:37:38]New connection [15:37:38]New thread 3066957156 created [15:37:38]Thread 3066813796 joined [15:37:38]Waiting for new connection... [15:37:38] Sock 9.Parse request [15:37:38]Sock 9.Check first char [15:37:38]Sock 9.First char is OK [15:37:38]request: POST /json_proto HTTP/1.0 [15:37:38]Method: POST [15:37:38]URL: /json_proto [15:37:38]Method is POST - this is cgi request [15:37:38]url: /json_proto [15:37:38]query_string will be loaded in cgi processing [15:37:38]execute_cgi json_proto POST (null) [15:37:38]execute_cgi path=json_proto method=POST [15:37:38]POST find Content-Length [15:37:38]Host: 172.17.44.67:8080 [15:37:38]Content-Length: 754 [15:37:38]Content-Type: application/json [15:37:38] [15:37:38]POST finish read [15:37:38]Found Content-Length = 754 [15:37:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100756", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:38]execute_script... [15:37:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100756", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:38]POST & json_proto [15:37:38]process_json_proto [15:37:38]json parsed OK: [15:37:38]protocol is kg_v1.0 [15:37:38]action value=close_receipt [15:37:38]process_action close_receipt [15:37:38]cmd_close_receipt [15:37:38]MH_GetDate [15:37:38]Write to MH i2c: F0 00 00 2A 04 1D [15:37:38]Write i2c OK [15:37:38]MH_I2C_Read... [15:37:38]Read from MH i2c: F0 [15:37:38]MH_I2C_Read... [15:37:38]Read from MH i2c: F0 09 00 [15:37:38]MH_I2C_Read... [15:37:38]Read from MH i2c: F0 09 00 2A 04 00 42 2F 11 67 F1 C7 6B 64 96 [15:37:38]GetLastDocTimeStamp 1729179094 [15:37:38]current date 1729179458 [15:37:38]FM_GetShiftState [15:37:38]SAM_PROTO_GetShiftState [15:37:38]wFMCommunicate request_size=4 [15:37:38]MH_SAM_APDU [15:37:38]CAPDU: 80 13 01 00 [15:37:38]Write to MH i2c: E2 08 00 2B 04 80 13 01 00 00 00 00 00 AC [15:37:38]Write i2c OK [15:37:38]MH_I2C_Read... [15:37:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:38]Read from MH i2c: E2 [15:37:38]MH_I2C_Read... [15:37:38]Read from MH i2c: E2 0E 00 [15:37:38]MH_I2C_Read... [15:37:38]Read from MH i2c: E2 0E 00 2B 04 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 B4 [15:37:38]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [15:37:38]wFMCommunicate OK [15:37:38]SAM_PROTO_GetShiftState done [15:37:38]FM_GetShiftState done [15:37:38]opened in 1729125927 [15:37:38]opened+sec_in_day 1729212327 [15:37:38]quantity*price = 0 [15:37:38]sum+1 = 1 [15:37:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 125 17.10.2024 15:37 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30100756 ФМ: 0000000000871843 ФД: 82199 ФПД: 172712999113877 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T153738&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82199&fm=172712999113877&tin=02508201610067®Number=0000000000091680&sum=0 [15:37:39]StoreToDocumentArchive [15:37:39]shift 525 fd 82199 [15:37:39]save to /storage/0525/doc_00082199 [15:37:39]save last doc name /storage/0525/doc_00082199 to /storage/kkm_last_doc_name [15:37:39]save OK [15:37:39]Clear old archive folders... [15:37:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:37:39]tlvbuf is 01C1A540 [15:37:39]SAM_PROTO_ClearQueue [15:37:39]wFMCommunicate request_size=4 [15:37:39]MH_SAM_APDU [15:37:39]CAPDU: 80 09 00 00 [15:37:39]Write to MH i2c: E2 08 00 38 04 80 09 00 00 00 00 00 00 AE [15:37:39]Write i2c OK [15:37:39]MH_I2C_Read... [15:37:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:39]Read from MH i2c: E2 [15:37:39]MH_I2C_Read... [15:37:39]Read from MH i2c: E2 03 00 [15:37:39]MH_I2C_Read... [15:37:39]Read from MH i2c: E2 03 00 38 04 00 90 00 B0 [15:37:39]RAPDU: 90 00 [15:37:39]wFMCommunicate OK [15:37:39]SAM_PROTO_ClearQueue done [15:37:39]KKMCreateOFDPacket [15:37:39]OFDProtocolAddRootSTLVToBuf [15:37:39]FM_MakeSignedData [15:37:39]FM_MakeSignedData [15:37:39]SAM_PROTO_SignData [15:37:39]wFMCommunicate request_size=4 [15:37:39]MH_SAM_APDU [15:37:39]CAPDU: 80 0D 01 02 [15:37:39]Write to MH i2c: E2 08 00 39 04 80 0D 01 02 00 00 00 00 B6 [15:37:39]Write i2c OK [15:37:39]MH_I2C_Read... [15:37:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:39]Read from MH i2c: E2 [15:37:39]MH_I2C_Read... [15:37:39]Read from MH i2c: E2 03 00 [15:37:39]MH_I2C_Read... [15:37:39]Read from MH i2c: E2 03 00 39 04 00 90 00 B1 [15:37:39]RAPDU: 90 00 [15:37:39]wFMCommunicate OK [15:37:39]wFMCommunicate request_size=255 [15:37:39]MH_SAM_APDU [15:37:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 42 2F 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 17 41 01 00 35 04 06 00 9D [15:37:39]Write to MH i2c: E2 02 01 3A 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 42 2F 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 17 41 01 00 35 04 06 00 9D 00 00 04 [15:37:39]Write i2c OK [15:37:39]MH_I2C_Read... [15:37:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:39]Read from MH i2c: E2 [15:37:39]MH_I2C_Read... [15:37:39]Read from MH i2c: E2 03 00 [15:37:39]MH_I2C_Read... [15:37:39]Read from MH i2c: E2 03 00 3A 04 00 90 00 B2 [15:37:39]RAPDU: 90 00 [15:37:39]wFMCommunicate OK [15:37:39]wFMCommunicate request_size=10 [15:37:39]MH_SAM_APDU [15:37:39]CAPDU: 80 0D 02 02 05 14 E0 F5 D4 95 [15:37:39]Write to MH i2c: E2 0D 00 3B 04 80 0D 02 02 05 00 14 E0 F5 D4 95 00 00 15 [15:37:39]Write i2c OK [15:37:39]MH_I2C_Read... [15:37:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:39]Read from MH i2c: E2 [15:37:39]MH_I2C_Read... [15:37:39]Read from MH i2c: E2 03 00 [15:37:39]MH_I2C_Read... [15:37:39]Read from MH i2c: E2 03 00 3B 04 00 90 00 B3 [15:37:39]RAPDU: 90 00 [15:37:39]wFMCommunicate OK [15:37:39]wFMCommunicate request_size=4 [15:37:39]MH_SAM_APDU [15:37:39]CAPDU: 80 0D 03 02 [15:37:39]Write to MH i2c: E2 08 00 3C 04 80 0D 03 02 00 00 00 00 BB [15:37:39]Write i2c OK [15:37:39]MH_I2C_Read... [15:37:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:39]Read from MH i2c: E2 [15:37:39]MH_I2C_Read... [15:37:39]Read from MH i2c: E2 0B 00 [15:37:39]MH_I2C_Read... [15:37:39]Read from MH i2c: E2 0B 00 3C 04 00 D5 CF 6A D0 18 B4 A6 43 90 00 4F [15:37:39]RAPDU: D5 CF 6A D0 18 B4 A6 43 90 00 [15:37:39]wFMCommunicate OK [15:37:39]SAM_PROTO_SignData done [15:37:39]FM_MakeSignedData done [15:37:39]CreateOFDProtocolMessage [15:37:39]wFMCommunicate request_size=4 [15:37:39]MH_SAM_APDU [15:37:39]CAPDU: 80 11 00 00 [15:37:39]Write to MH i2c: E2 08 00 3D 04 80 11 00 00 00 00 00 00 BB [15:37:39]Write i2c OK [15:37:39]MH_I2C_Read... [15:37:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:39]Read from MH i2c: E2 [15:37:39]MH_I2C_Read... [15:37:39]Read from MH i2c: E2 17 00 [15:37:39]MH_I2C_Read... [15:37:39]Read from MH i2c: E2 17 00 3D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 0D [15:37:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:37:39]wFMCommunicate OK [15:37:39]CreateOFDProtocolMessage done [15:37:39]OFDSenderStorePacket 82199 [15:37:39]StoreOFDPacket docnum=82199 [15:37:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 ED 15 07 01 E4 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 42 2F 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 17 41 01 00 35 04 06 00 9D 14 E0 F5 D4 95 D5 CF 6A D0 18 B4 A6 43 [15:37:39]CheckFolder [15:37:39]dirname=/storage/ofd_packets [15:37:39]CheckFolder done [15:37:39]ProducePacketName [15:37:39]name=ofd_packets/00082199 [15:37:39]NVStorageSaveData ofd_packets/00082199 [15:37:39]File name is /storage/ofd_packets/00082199 [15:37:39]Write 301 bytes [15:37:39]NVStorageSaveData done [15:37:39]OFDSenderStorePacket done [15:37:39]KKMCreateOFDPacket done [15:37:39]NVStorageSaveData kkm_last_timestamp [15:37:39]File name is /storage/kkm_last_timestamp [15:37:39]Write 4 bytes [15:37:39]NVStorageSaveData done [15:37:39]ExternCall_PrintAddStr [15:37:39]wPrintStart [15:37:39]Write to MH i2c: 01 00 00 3E 04 42 [15:37:39]Write i2c OK [15:37:39]MH_I2C_Read... [15:37:39]Read from MH i2c: 01 [15:37:39]MH_I2C_Read... [15:37:39]Read from MH i2c: 01 07 00 [15:37:39]MH_I2C_Read... [15:37:39]Read from MH i2c: 01 07 00 3E 04 00 00 00 00 00 FF 0F 57 [15:37:39]RasterBufferAndPrint [15:37:39]line Счет N : (1)918705 [15:37:39]line ИНН: 02508201610067 [15:37:39]line Контрольно-Кассовый Чек [15:37:39]line ПРОДАЖА [15:37:39]line ТРК (МРК, ГНК) : 22 [15:37:39]line Товар: 2710124130 [15:37:39]line Аи-92-К-4 [15:37:39]line 40.000 * 0.00 [15:37:39]line = 0.00 [15:37:39]line НДС 12% НСП 1% [15:37:39]line > о реализуемом товаре [15:37:39]line ИТОГО: 0.00 [15:37:39]line НСП 1% : 0.00 [15:37:39]line НДС 12% : 0.00 [15:37:39]line Наличными: 0.00 [15:37:39]line Безнал.: 0.00 [15:37:39]line Место: АЗС № 114 "Партнер Нефть" [15:37:39]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [15:37:39]line СНО: Общий режим [15:37:39]line Чек 125 17.10.2024 15:37 [15:37:39]line Смена: 525 ФФД: 1.0 [15:37:39]line ЗНМ: 0300000086 [15:37:39]line РНМ: 0000000000091680 [15:37:39]line Версия ККМ: 001 [15:37:39]line Талоны: ТК ГПНА Online [15:37:39]line 30100756 [15:37:39]line ФМ: 0000000000871843 [15:37:39]line ФД: 82199 [15:37:39]line ФПД: 172712999113877 [15:37:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T153738&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82199&fm=172712999113877&tin=02508201610067®Number=0000000000091680&sum=0 [15:37:39]written 0, free lines is 4095 [15:37:39]OFD Sender: Processing packet 82199 [packets to send 254, broken 253] [15:37:39]ProducePacketName [15:37:39]name=ofd_packets/00082199 [15:37:39]OFD Sender: To server: pG, [15:37:39]CommunicateWithHost lk.salyk.kg:30040 [15:37:39]ConnectInit lk.salyk.kg [15:37:40]Connected sock=10 [15:37:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 ED 15 07 01 E4 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 42 2F 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 17 41 01 00 35 04 06 00 9D 14 E0 F5 D4 95 D5 CF 6A D0 18 B4 A6 43 [15:37:40]Write to MH i2c: 01 00 00 68 04 6C [15:37:40]Write i2c OK [15:37:40]MH_I2C_Read... [15:37:40]Read from MH i2c: 01 [15:37:40]MH_I2C_Read... [15:37:40]Read from MH i2c: 01 07 00 [15:37:40]MH_I2C_Read... [15:37:40]Read from MH i2c: 01 07 00 68 04 00 00 00 00 00 E9 0C 68 [15:37:40]RasterBufferAndPrint [15:37:40]line [15:37:40]line [15:37:40]line [15:37:40]line [15:37:40]line [15:37:40]written 0, free lines is 3312 [15:37:40]MH_Cut [15:37:40]Write to MH i2c: D1 01 00 6F 04 01 45 [15:37:40]Write i2c OK [15:37:40]MH_I2C_Read... [15:37:40]Read from MH i2c: D1 [15:37:40]MH_I2C_Read... [15:37:40]Read from MH i2c: D1 01 00 [15:37:40]MH_I2C_Read... [15:37:40]Read from MH i2c: D1 01 00 6F 04 00 44 [15:37:40]Write to MH i2c: 01 00 00 70 04 74 [15:37:40]Write i2c OK [15:37:40]MH_I2C_Read... [15:37:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 40 A0 47 00 AB 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 17 41 01 00 F4 03 04 00 80 D4 10 67 B6 04 01 00 00 E3 0B DC A2 27 24 C5 C1 [15:37:40]CommunicateWithHost err = 0 [15:37:40]CheckOFDResponse [15:37:40]1017 (14) - 77093643461234 [15:37:40]1041 (16) - 0000000000871843 [15:37:40]1040 (4) - 82199 [15:37:40]1012 (4) - 17.10.2024 09:10 [15:37:40]1206 (1) - 0 [15:37:40]OFD Sender: Remove packet 82199 [15:37:40]ProducePacketName [15:37:40]name=ofd_packets/00082199 [15:37:40]NVStorageDeleteData [15:37:40]*** Cut start [15:37:40]*** Partial cut [15:37:40]*** CUTSNS_PIN = 1 [15:37:41]*** CUTSNS_PIN = 0 [15:37:41]OFD Sender: No OFD packet to send [15:37:41]*** Brake cut motor [15:37:41]Read from MH i2c: 01 [15:37:41]MH_I2C_Read... [15:37:41]*** Stop cut motor [15:37:41]*** Cut end [15:37:41]Read from MH i2c: 01 07 00 [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: 01 07 00 70 04 00 00 00 00 00 FF 0F 89 [15:37:41]process_action close_receipt done [15:37:41]requested_data is exist [15:37:41]produce_requested_data [15:37:41]requested_item fm.sn is exist - process it [15:37:41]wFMCommunicate request_size=4 [15:37:41]MH_SAM_APDU [15:37:41]CAPDU: 80 11 00 00 [15:37:41]Write to MH i2c: E2 08 00 71 04 80 11 00 00 00 00 00 00 EF [15:37:41]Write i2c OK [15:37:41]MH_I2C_Read... [15:37:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:41]Read from MH i2c: E2 [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: E2 17 00 [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: E2 17 00 71 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 41 [15:37:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:37:41]wFMCommunicate OK [15:37:41]requested_item fd.num is exist - process it [15:37:41]SAM_PROTO_GetFieldsCounters [15:37:41]wFMCommunicate request_size=4 [15:37:41]MH_SAM_APDU [15:37:41]CAPDU: 80 13 00 00 [15:37:41]Write to MH i2c: E2 08 00 72 04 80 13 00 00 00 00 00 00 F2 [15:37:41]Write i2c OK [15:37:41]MH_I2C_Read... [15:37:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:41]Read from MH i2c: E2 [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: E2 62 00 [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: E2 62 00 72 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 17 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [15:37:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 17 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:37:41]wFMCommunicate OK [15:37:41]SAM_PROTO_GetFieldsCounters done [15:37:41]requested_item shift.num is exist - process it [15:37:41]requested_item shift.opened is exist - process it [15:37:41]req_shift_opened [15:37:41]FM_GetShiftState [15:37:41]SAM_PROTO_GetShiftState [15:37:41]wFMCommunicate request_size=4 [15:37:41]MH_SAM_APDU [15:37:41]CAPDU: 80 13 01 00 [15:37:41]Write to MH i2c: E2 08 00 73 04 80 13 01 00 00 00 00 00 F4 [15:37:41]Write i2c OK [15:37:41]MH_I2C_Read... [15:37:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:41]Read from MH i2c: E2 [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: E2 0E 00 [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: E2 0E 00 73 04 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 FC [15:37:41]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [15:37:41]wFMCommunicate OK [15:37:41]SAM_PROTO_GetShiftState done [15:37:41]FM_GetShiftState done [15:37:41]req_shift_opened done [15:37:41]requested_item shift.open_date is exist - process it [15:37:41]req_shift_open_date [15:37:41]req_shift_open_date done [15:37:41]produce_requested_data done [15:37:41]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82199,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [15:37:41]process_action_free close_receipt [15:37:41]json_value_free [15:37:41]json_value_free done [15:37:41]process_json_proto returns [15:37:41]Send response to host [15:37:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82199,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [15:37:41]free response buf [15:37:41]execute_script done [15:37:41]execute_script returns [15:37:41]free content buf [15:37:41]Sock 9.Close socket [15:37:41]Sock 9.Thread stoped [15:37:46]OFD Sender: No OFD packet to send [15:37:51]OFD Sender: No OFD packet to send [15:37:56]OFD Sender: No OFD packet to send [15:38:01]OFD Sender: No OFD packet to send [15:38:06]OFD Sender: No OFD packet to send [15:38:11]OFD Sender: No OFD packet to send [15:38:16]OFD Sender: No OFD packet to send [15:38:21]OFD Sender: No OFD packet to send [15:38:26]OFD Sender: No OFD packet to send [15:38:31]OFD Sender: No OFD packet to send [15:38:36]OFD Sender: No OFD packet to send [15:38:39]accept exits with 7 [15:38:39]New connection [15:38:39]New thread 3066813796 created [15:38:39]Thread 3066957156 joined [15:38:39]Waiting for new connection... [15:38:39] Sock 7.Parse request [15:38:39]Sock 7.Check first char [15:38:39]Sock 7.First char is OK [15:38:39]request: POST /json_proto HTTP/1.0 [15:38:39]Method: POST [15:38:39]URL: /json_proto [15:38:39]Method is POST - this is cgi request [15:38:39]url: /json_proto [15:38:39]query_string will be loaded in cgi processing [15:38:39]execute_cgi json_proto POST (null) [15:38:39]execute_cgi path=json_proto method=POST [15:38:39]POST find Content-Length [15:38:39]Host: 172.17.44.67:8080 [15:38:39]Content-Length: 759 [15:38:39]Content-Type: application/json [15:38:39] [15:38:39]POST finish read [15:38:39]Found Content-Length = 759 [15:38:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30087268", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:39]execute_script... [15:38:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30087268", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:39]POST & json_proto [15:38:39]process_json_proto [15:38:39]json parsed OK: [15:38:39]protocol is kg_v1.0 [15:38:39]action value=close_receipt [15:38:39]process_action close_receipt [15:38:39]cmd_close_receipt [15:38:39]MH_GetDate [15:38:39]Write to MH i2c: F0 00 00 74 04 67 [15:38:39]Write i2c OK [15:38:39]MH_I2C_Read... [15:38:39]Read from MH i2c: F0 [15:38:39]MH_I2C_Read... [15:38:39]Read from MH i2c: F0 09 00 [15:38:39]MH_I2C_Read... [15:38:39]Read from MH i2c: F0 09 00 74 04 00 80 2F 11 67 F1 C7 6B 64 1E [15:38:39]GetLastDocTimeStamp 1729179458 [15:38:39]current date 1729179520 [15:38:39]FM_GetShiftState [15:38:39]SAM_PROTO_GetShiftState [15:38:39]wFMCommunicate request_size=4 [15:38:39]MH_SAM_APDU [15:38:39]CAPDU: 80 13 01 00 [15:38:39]Write to MH i2c: E2 08 00 75 04 80 13 01 00 00 00 00 00 F6 [15:38:39]Write i2c OK [15:38:39]MH_I2C_Read... [15:38:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:39]Read from MH i2c: E2 [15:38:39]MH_I2C_Read... [15:38:39]Read from MH i2c: E2 0E 00 [15:38:39]MH_I2C_Read... [15:38:39]Read from MH i2c: E2 0E 00 75 04 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 FE [15:38:39]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [15:38:39]wFMCommunicate OK [15:38:39]SAM_PROTO_GetShiftState done [15:38:39]FM_GetShiftState done [15:38:39]opened in 1729125927 [15:38:39]opened+sec_in_day 1729212327 [15:38:39]quantity*price = 0 [15:38:39]sum+1 = 1 [15:38:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 126 17.10.2024 15:38 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30087268 ФМ: 0000000000871843 ФД: 82200 ФПД: 202877374070534 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T153840&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82200&fm=202877374070534&tin=02508201610067®Number=0000000000091680&sum=0 [15:38:40]StoreToDocumentArchive [15:38:40]shift 525 fd 82200 [15:38:40]save to /storage/0525/doc_00082200 [15:38:40]save last doc name /storage/0525/doc_00082200 to /storage/kkm_last_doc_name [15:38:40]save OK [15:38:40]Clear old archive folders... [15:38:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:38:40]tlvbuf is 01B74630 [15:38:40]SAM_PROTO_ClearQueue [15:38:40]wFMCommunicate request_size=4 [15:38:40]MH_SAM_APDU [15:38:40]CAPDU: 80 09 00 00 [15:38:40]Write to MH i2c: E2 08 00 82 04 80 09 00 00 00 00 00 00 F8 [15:38:40]Write i2c OK [15:38:40]MH_I2C_Read... [15:38:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:38:40]Read from MH i2c: E2 [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: E2 03 00 [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: E2 03 00 82 04 00 90 00 FA [15:38:40]RAPDU: 90 00 [15:38:40]wFMCommunicate OK [15:38:40]SAM_PROTO_ClearQueue done [15:38:40]KKMCreateOFDPacket [15:38:40]OFDProtocolAddRootSTLVToBuf [15:38:40]FM_MakeSignedData [15:38:40]FM_MakeSignedData [15:38:40]SAM_PROTO_SignData [15:38:40]wFMCommunicate request_size=4 [15:38:40]MH_SAM_APDU [15:38:40]CAPDU: 80 0D 01 02 [15:38:40]Write to MH i2c: E2 08 00 83 04 80 0D 01 02 00 00 00 00 00 [15:38:40]Write i2c OK [15:38:40]MH_I2C_Read... [15:38:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:38:40]Read from MH i2c: E2 [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: E2 03 00 [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: E2 03 00 83 04 00 90 00 FB [15:38:40]RAPDU: 90 00 [15:38:40]wFMCommunicate OK [15:38:40]wFMCommunicate request_size=255 [15:38:40]MH_SAM_APDU [15:38:40]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 80 2F 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 18 41 01 00 35 04 06 00 [15:38:40]Write to MH i2c: E2 02 01 84 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 80 2F 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 18 41 01 00 35 04 06 00 00 00 23 [15:38:40]Write i2c OK [15:38:40]MH_I2C_Read... [15:38:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:40]Read from MH i2c: E2 [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: E2 03 00 [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: E2 03 00 84 04 00 90 00 FC [15:38:40]RAPDU: 90 00 [15:38:40]wFMCommunicate OK [15:38:40]wFMCommunicate request_size=11 [15:38:40]MH_SAM_APDU [15:38:40]CAPDU: 80 0D 02 02 06 B8 84 11 D0 7F 06 [15:38:40]Write to MH i2c: E2 0E 00 85 04 80 0D 02 02 06 00 B8 84 11 D0 7F 06 00 00 B1 [15:38:40]Write i2c OK [15:38:40]MH_I2C_Read... [15:38:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:40]Read from MH i2c: E2 [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: E2 03 00 [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: E2 03 00 85 04 00 90 00 FD [15:38:40]RAPDU: 90 00 [15:38:40]wFMCommunicate OK [15:38:40]wFMCommunicate request_size=4 [15:38:40]MH_SAM_APDU [15:38:40]CAPDU: 80 0D 03 02 [15:38:40]Write to MH i2c: E2 08 00 86 04 80 0D 03 02 00 00 00 00 05 [15:38:40]Write i2c OK [15:38:40]MH_I2C_Read... [15:38:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:38:40]Read from MH i2c: E2 [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: E2 0B 00 [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: E2 0B 00 86 04 00 EA 68 03 37 1B 17 33 AB 90 00 A2 [15:38:40]RAPDU: EA 68 03 37 1B 17 33 AB 90 00 [15:38:40]wFMCommunicate OK [15:38:40]SAM_PROTO_SignData done [15:38:40]FM_MakeSignedData done [15:38:40]CreateOFDProtocolMessage [15:38:40]wFMCommunicate request_size=4 [15:38:40]MH_SAM_APDU [15:38:40]CAPDU: 80 11 00 00 [15:38:40]Write to MH i2c: E2 08 00 87 04 80 11 00 00 00 00 00 00 05 [15:38:40]Write i2c OK [15:38:40]MH_I2C_Read... [15:38:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:41]Read from MH i2c: E2 [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: E2 17 00 [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: E2 17 00 87 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 57 [15:38:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:38:41]wFMCommunicate OK [15:38:41]CreateOFDProtocolMessage done [15:38:41]OFDSenderStorePacket 82200 [15:38:41]StoreOFDPacket docnum=82200 [15:38:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 44 81 08 01 CA 1C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 80 2F 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 18 41 01 00 35 04 06 00 B8 84 11 D0 7F 06 EA 68 03 37 1B 17 33 AB [15:38:41]CheckFolder [15:38:41]dirname=/storage/ofd_packets [15:38:41]CheckFolder done [15:38:41]ProducePacketName [15:38:41]name=ofd_packets/00082200 [15:38:41]NVStorageSaveData ofd_packets/00082200 [15:38:41]File name is /storage/ofd_packets/00082200 [15:38:41]Write 302 bytes [15:38:41]NVStorageSaveData done [15:38:41]OFDSenderStorePacket done [15:38:41]KKMCreateOFDPacket done [15:38:41]NVStorageSaveData kkm_last_timestamp [15:38:41]File name is /storage/kkm_last_timestamp [15:38:41]Write 4 bytes [15:38:41]NVStorageSaveData done [15:38:41]ExternCall_PrintAddStr [15:38:41]wPrintStart [15:38:41]Write to MH i2c: 01 00 00 88 04 8C [15:38:41]Write i2c OK [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: 01 [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: 01 07 00 [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: 01 07 00 88 04 00 00 00 00 00 FF 0F A1 [15:38:41]RasterBufferAndPrint [15:38:41]line Счет N : (1)918706 [15:38:41]line ИНН: 02508201610067 [15:38:41]line Контрольно-Кассовый Чек [15:38:41]line ПРОДАЖА [15:38:41]line ТРК (МРК, ГНК) : 31 [15:38:41]line Товар: 2710194210 [15:38:41]line ДТ(л)-К-5 [15:38:41]line 15.000 * 0.00 [15:38:41]line = 0.00 [15:38:41]line НДС 12% НСП 1% [15:38:41]line > о реализуемом товаре [15:38:41]line ИТОГО: 0.00 [15:38:41]line НСП 1% : 0.00 [15:38:41]line НДС 12% : 0.00 [15:38:41]line Наличными: 0.00 [15:38:41]line Безнал.: 0.00 [15:38:41]line Место: АЗС № 114 "Партнер Нефть" [15:38:41]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [15:38:41]line СНО: Общий режим [15:38:41]line Чек 126 17.10.2024 15:38 [15:38:41]line Смена: 525 ФФД: 1.0 [15:38:41]line ЗНМ: 0300000086 [15:38:41]line РНМ: 0000000000091680 [15:38:41]line Версия ККМ: 001 [15:38:41]line Талоны: ТК ГПНА Online [15:38:41]line 30087268 [15:38:41]line ФМ: 0000000000871843 [15:38:41]line ФД: 82200 [15:38:41]line ФПД: 202877374070534 [15:38:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T153840&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82200&fm=202877374070534&tin=02508201610067®Number=0000000000091680&sum=0 [15:38:41]written 0, free lines is 4095 [15:38:41]OFD Sender: Processing packet 82200 [packets to send 254, broken 253] [15:38:41]ProducePacketName [15:38:41]name=ofd_packets/00082200 [15:38:41]OFD Sender: To server: pG, [15:38:41]CommunicateWithHost lk.salyk.kg:30040 [15:38:41]ConnectInit lk.salyk.kg [15:38:41]Connected sock=10 [15:38:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 44 81 08 01 CA 1C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 80 2F 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 18 41 01 00 35 04 06 00 B8 84 11 D0 7F 06 EA 68 03 37 1B 17 33 AB [15:38:41]Write to MH i2c: 01 00 00 B2 04 B6 [15:38:41]Write i2c OK [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: 01 [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: 01 07 00 [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: 01 07 00 B2 04 00 00 00 00 00 EC 0C B5 [15:38:41]RasterBufferAndPrint [15:38:41]line [15:38:41]line [15:38:41]line [15:38:41]line [15:38:41]line [15:38:41]written 0, free lines is 3313 [15:38:41]MH_Cut [15:38:41]Write to MH i2c: D1 01 00 B9 04 01 8F [15:38:41]Write i2c OK [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: D1 [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: D1 01 00 [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: D1 01 00 B9 04 00 8E [15:38:41]Write to MH i2c: 01 00 00 BA 04 BE [15:38:41]Write i2c OK [15:38:41]MH_I2C_Read... [15:38:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 1E 5E 47 00 1B 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 18 41 01 00 F4 03 04 00 BD D4 10 67 B6 04 01 00 00 EA 29 29 E8 E9 56 DD 44 [15:38:41]CommunicateWithHost err = 0 [15:38:41]CheckOFDResponse [15:38:41]1017 (14) - 77093643461234 [15:38:41]1041 (16) - 0000000000871843 [15:38:41]1040 (4) - 82200 [15:38:41]1012 (4) - 17.10.2024 09:11 [15:38:41]1206 (1) - 0 [15:38:41]OFD Sender: Remove packet 82200 [15:38:41]ProducePacketName [15:38:41]name=ofd_packets/00082200 [15:38:41]NVStorageDeleteData [15:38:42]*** Cut start [15:38:42]*** Partial cut [15:38:42]*** CUTSNS_PIN = 1 [15:38:42]*** CUTSNS_PIN = 0 [15:38:42]OFD Sender: No OFD packet to send [15:38:42]*** Brake cut motor [15:38:42]Read from MH i2c: 01 [15:38:42]MH_I2C_Read... [15:38:42]*** Stop cut motor [15:38:42]*** Cut end [15:38:42]Read from MH i2c: 01 07 00 [15:38:42]MH_I2C_Read... [15:38:42]Read from MH i2c: 01 07 00 BA 04 00 00 00 00 00 FF 0F D3 [15:38:42]process_action close_receipt done [15:38:42]requested_data is exist [15:38:42]produce_requested_data [15:38:42]requested_item fm.sn is exist - process it [15:38:42]wFMCommunicate request_size=4 [15:38:42]MH_SAM_APDU [15:38:42]CAPDU: 80 11 00 00 [15:38:42]Write to MH i2c: E2 08 00 BB 04 80 11 00 00 00 00 00 00 39 [15:38:42]Write i2c OK [15:38:42]MH_I2C_Read... [15:38:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:42]Read from MH i2c: E2 [15:38:42]MH_I2C_Read... [15:38:42]Read from MH i2c: E2 17 00 [15:38:42]MH_I2C_Read... [15:38:42]Read from MH i2c: E2 17 00 BB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 8B [15:38:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:38:42]wFMCommunicate OK [15:38:42]requested_item fd.num is exist - process it [15:38:42]SAM_PROTO_GetFieldsCounters [15:38:42]wFMCommunicate request_size=4 [15:38:42]MH_SAM_APDU [15:38:42]CAPDU: 80 13 00 00 [15:38:42]Write to MH i2c: E2 08 00 BC 04 80 13 00 00 00 00 00 00 3C [15:38:42]Write i2c OK [15:38:42]MH_I2C_Read... [15:38:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:38:43]Read from MH i2c: E2 [15:38:43]MH_I2C_Read... [15:38:43]Read from MH i2c: E2 62 00 [15:38:43]MH_I2C_Read... [15:38:43]Read from MH i2c: E2 62 00 BC 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 18 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [15:38:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 18 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:38:43]wFMCommunicate OK [15:38:43]SAM_PROTO_GetFieldsCounters done [15:38:43]requested_item shift.num is exist - process it [15:38:43]requested_item shift.opened is exist - process it [15:38:43]req_shift_opened [15:38:43]FM_GetShiftState [15:38:43]SAM_PROTO_GetShiftState [15:38:43]wFMCommunicate request_size=4 [15:38:43]MH_SAM_APDU [15:38:43]CAPDU: 80 13 01 00 [15:38:43]Write to MH i2c: E2 08 00 BD 04 80 13 01 00 00 00 00 00 3E [15:38:43]Write i2c OK [15:38:43]MH_I2C_Read... [15:38:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:43]Read from MH i2c: E2 [15:38:43]MH_I2C_Read... [15:38:43]Read from MH i2c: E2 0E 00 [15:38:43]MH_I2C_Read... [15:38:43]Read from MH i2c: E2 0E 00 BD 04 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 46 [15:38:43]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [15:38:43]wFMCommunicate OK [15:38:43]SAM_PROTO_GetShiftState done [15:38:43]FM_GetShiftState done [15:38:43]req_shift_opened done [15:38:43]requested_item shift.open_date is exist - process it [15:38:43]req_shift_open_date [15:38:43]req_shift_open_date done [15:38:43]produce_requested_data done [15:38:43]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82200,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [15:38:43]process_action_free close_receipt [15:38:43]json_value_free [15:38:43]json_value_free done [15:38:43]process_json_proto returns [15:38:43]Send response to host [15:38:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82200,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [15:38:43]free response buf [15:38:43]execute_script done [15:38:43]execute_script returns [15:38:43]free content buf [15:38:43]Sock 7.Close socket [15:38:43]Sock 7.Thread stoped [15:38:47]OFD Sender: No OFD packet to send [15:38:52]OFD Sender: No OFD packet to send [15:38:57]OFD Sender: No OFD packet to send [15:39:02]OFD Sender: No OFD packet to send [15:39:04]recv_with_timeout no data received [15:39:07]OFD Sender: No OFD packet to send [15:39:12]OFD Sender: No OFD packet to send [15:39:17]OFD Sender: No OFD packet to send [15:39:22]OFD Sender: No OFD packet to send [15:39:27]OFD Sender: No OFD packet to send [15:39:32]OFD Sender: No OFD packet to send [15:39:37]OFD Sender: No OFD packet to send [15:39:42]OFD Sender: No OFD packet to send [15:39:47]OFD Sender: No OFD packet to send [15:39:52]OFD Sender: No OFD packet to send [15:39:57]OFD Sender: No OFD packet to send [15:40:02]OFD Sender: No OFD packet to send [15:40:07]OFD Sender: No OFD packet to send [15:40:12]OFD Sender: No OFD packet to send [15:40:17]OFD Sender: No OFD packet to send [15:40:22]OFD Sender: No OFD packet to send [15:40:27]OFD Sender: No OFD packet to send [15:40:32]OFD Sender: No OFD packet to send [15:40:37]OFD Sender: No OFD packet to send [15:40:42]OFD Sender: No OFD packet to send [15:40:47]OFD Sender: No OFD packet to send [15:40:52]OFD Sender: No OFD packet to send [15:40:57]OFD Sender: No OFD packet to send [15:41:02]OFD Sender: No OFD packet to send [15:41:07]OFD Sender: No OFD packet to send [15:41:12]OFD Sender: No OFD packet to send [15:41:17]OFD Sender: No OFD packet to send [15:41:22]OFD Sender: No OFD packet to send [15:41:27]OFD Sender: No OFD packet to send [15:41:29]accept exits with 9 [15:41:29]New connection [15:41:29]New thread 3066957156 created [15:41:29]Thread 3066813796 joined [15:41:29]Waiting for new connection... [15:41:29] Sock 9.Parse request [15:41:29]Sock 9.Check first char [15:41:29]Sock 9.First char is OK [15:41:29]request: POST /json_proto HTTP/1.0 [15:41:29]Method: POST [15:41:29]URL: /json_proto [15:41:29]Method is POST - this is cgi request [15:41:29]url: /json_proto [15:41:29]query_string will be loaded in cgi processing [15:41:29]execute_cgi json_proto POST (null) [15:41:29]execute_cgi path=json_proto method=POST [15:41:29]POST find Content-Length [15:41:29]Host: 172.17.44.67:8080 [15:41:29]Content-Length: 627 [15:41:29]Content-Type: application/json [15:41:29] [15:41:29]POST finish read [15:41:29]Found Content-Length = 627 [15:41:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10589", "tax_sys" : 0, "items" : [ { "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "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" ] } } [15:41:29]execute_script... [15:41: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)10589", "tax_sys" : 0, "items" : [ { "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "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" ] } } [15:41:29]POST & json_proto [15:41:29]process_json_proto [15:41:29]json parsed OK: [15:41:29]protocol is kg_v1.0 [15:41:29]action value=close_receipt [15:41:29]process_action close_receipt [15:41:29]cmd_close_receipt [15:41:29]MH_GetDate [15:41:29]Write to MH i2c: F0 00 00 BE 04 B1 [15:41:29]Write i2c OK [15:41:29]MH_I2C_Read... [15:41:29]Read from MH i2c: F0 [15:41:29]MH_I2C_Read... [15:41:29]Read from MH i2c: F0 09 00 [15:41:29]MH_I2C_Read... [15:41:29]Read from MH i2c: F0 09 00 BE 04 00 29 30 11 67 F1 C7 6B 64 12 [15:41:29]GetLastDocTimeStamp 1729179520 [15:41:29]current date 1729179689 [15:41:29]FM_GetShiftState [15:41:29]SAM_PROTO_GetShiftState [15:41:29]wFMCommunicate request_size=4 [15:41:29]MH_SAM_APDU [15:41:29]CAPDU: 80 13 01 00 [15:41:29]Write to MH i2c: E2 08 00 BF 04 80 13 01 00 00 00 00 00 40 [15:41:29]Write i2c OK [15:41:29]MH_I2C_Read... [15:41:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:29]Read from MH i2c: E2 [15:41:29]MH_I2C_Read... [15:41:29]Read from MH i2c: E2 0E 00 [15:41:29]MH_I2C_Read... [15:41:29]Read from MH i2c: E2 0E 00 BF 04 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 48 [15:41:29]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [15:41:29]wFMCommunicate OK [15:41:29]SAM_PROTO_GetShiftState done [15:41:29]FM_GetShiftState done [15:41:29]opened in 1729125927 [15:41:29]opened+sec_in_day 1729212327 [15:41:29]quantity*price = 13000 [15:41:29]sum+1 = 13001 [15:41:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 127 17.10.2024 15:41 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82201 ФПД: 88199109101011 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T154129&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82201&fm=88199109101011&tin=02508201610067®Number=0000000000091680&sum=13000 0 [15:41:30]StoreToDocumentArchive [15:41:30]shift 525 fd 82201 [15:41:30]save to /storage/0525/doc_00082201 [15:41:30]save last doc name /storage/0525/doc_00082201 to /storage/kkm_last_doc_name [15:41:30]save OK [15:41:30]Clear old archive folders... [15:41:30]ProcessDocumentItem done err = 0, tmpTLVsize=280 [15:41:30]tlvbuf is 01C19E50 [15:41:30]SAM_PROTO_ClearQueue [15:41:30]wFMCommunicate request_size=4 [15:41:30]MH_SAM_APDU [15:41:30]CAPDU: 80 09 00 00 [15:41:30]Write to MH i2c: E2 08 00 CC 04 80 09 00 00 00 00 00 00 42 [15:41:30]Write i2c OK [15:41:30]MH_I2C_Read... [15:41:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:30]Read from MH i2c: E2 [15:41:30]MH_I2C_Read... [15:41:30]Read from MH i2c: E2 03 00 [15:41:30]MH_I2C_Read... [15:41:30]Read from MH i2c: E2 03 00 CC 04 00 90 00 44 [15:41:30]RAPDU: 90 00 [15:41:30]wFMCommunicate OK [15:41:30]SAM_PROTO_ClearQueue done [15:41:30]KKMCreateOFDPacket [15:41:30]OFDProtocolAddRootSTLVToBuf [15:41:30]FM_MakeSignedData [15:41:30]FM_MakeSignedData [15:41:30]SAM_PROTO_SignData [15:41:30]wFMCommunicate request_size=4 [15:41:30]MH_SAM_APDU [15:41:30]CAPDU: 80 0D 01 02 [15:41:30]Write to MH i2c: E2 08 00 CD 04 80 0D 01 02 00 00 00 00 4A [15:41:30]Write i2c OK [15:41:30]MH_I2C_Read... [15:41:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:30]Read from MH i2c: E2 [15:41:30]MH_I2C_Read... [15:41:30]Read from MH i2c: E2 03 00 [15:41:30]MH_I2C_Read... [15:41:30]Read from MH i2c: E2 03 00 CD 04 00 90 00 45 [15:41:30]RAPDU: 90 00 [15:41:30]wFMCommunicate OK [15:41:30]wFMCommunicate request_size=255 [15:41:30]MH_SAM_APDU [15:41:30]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 7F 00 00 00 F4 03 04 00 29 30 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 [15:41:30]Write to MH i2c: E2 02 01 CE 04 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 7F 00 00 00 F4 03 04 00 29 30 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 00 00 F1 [15:41:30]Write i2c OK [15:41:30]MH_I2C_Read... [15:41:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:30]Read from MH i2c: E2 [15:41:30]MH_I2C_Read... [15:41:30]Read from MH i2c: E2 03 00 [15:41:30]MH_I2C_Read... [15:41:30]Read from MH i2c: E2 03 00 CE 04 00 90 00 46 [15:41:30]RAPDU: 90 00 [15:41:30]wFMCommunicate OK [15:41:30]wFMCommunicate request_size=39 [15:41:30]MH_SAM_APDU [15:41:30]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 19 41 01 00 35 04 06 00 50 37 74 91 45 D3 [15:41:30]Write to MH i2c: E2 2A 00 CF 04 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 19 41 01 00 35 04 06 00 50 37 74 91 45 D3 00 00 06 [15:41:30]Write i2c OK [15:41:30]MH_I2C_Read... [15:41:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:30]Read from MH i2c: E2 [15:41:30]MH_I2C_Read... [15:41:30]Read from MH i2c: E2 03 00 [15:41:30]MH_I2C_Read... [15:41:30]Read from MH i2c: E2 03 00 CF 04 00 90 00 47 [15:41:30]RAPDU: 90 00 [15:41:30]wFMCommunicate OK [15:41:30]wFMCommunicate request_size=4 [15:41:30]MH_SAM_APDU [15:41:30]CAPDU: 80 0D 03 02 [15:41:30]Write to MH i2c: E2 08 00 D0 04 80 0D 03 02 00 00 00 00 4F [15:41:30]Write i2c OK [15:41:30]MH_I2C_Read... [15:41:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:30]Read from MH i2c: E2 [15:41:30]MH_I2C_Read... [15:41:30]Read from MH i2c: E2 0B 00 [15:41:30]MH_I2C_Read... [15:41:30]Read from MH i2c: E2 0B 00 D0 04 00 F8 91 31 97 47 D6 BB 55 90 00 CE [15:41:30]RAPDU: F8 91 31 97 47 D6 BB 55 90 00 [15:41:30]wFMCommunicate OK [15:41:30]SAM_PROTO_SignData done [15:41:30]FM_MakeSignedData done [15:41:30]CreateOFDProtocolMessage [15:41:30]wFMCommunicate request_size=4 [15:41:30]MH_SAM_APDU [15:41:30]CAPDU: 80 11 00 00 [15:41:30]Write to MH i2c: E2 08 00 D1 04 80 11 00 00 00 00 00 00 4F [15:41:30]Write i2c OK [15:41:30]MH_I2C_Read... [15:41:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:30]Read from MH i2c: E2 [15:41:30]MH_I2C_Read... [15:41:30]Read from MH i2c: E2 17 00 [15:41:30]MH_I2C_Read... [15:41:30]Read from MH i2c: E2 17 00 D1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 A1 [15:41:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:41:30]wFMCommunicate OK [15:41:30]CreateOFDProtocolMessage done [15:41:30]OFDSenderStorePacket 82201 [15:41:30]StoreOFDPacket docnum=82201 [15:41:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 2C 01 00 00 74 21 24 01 4B E8 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 7F 00 00 00 F4 03 04 00 29 30 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 19 41 01 00 35 04 06 00 50 37 74 91 45 D3 F8 91 31 97 47 D6 BB 55 [15:41:30]CheckFolder [15:41:30]dirname=/storage/ofd_packets [15:41:30]CheckFolder done [15:41:30]ProducePacketName [15:41:30]name=ofd_packets/00082201 [15:41:30]NVStorageSaveData ofd_packets/00082201 [15:41:30]File name is /storage/ofd_packets/00082201 [15:41:30]Write 330 bytes [15:41:30]NVStorageSaveData done [15:41:30]OFDSenderStorePacket done [15:41:30]KKMCreateOFDPacket done [15:41:30]NVStorageSaveData kkm_last_timestamp [15:41:30]File name is /storage/kkm_last_timestamp [15:41:30]Write 4 bytes [15:41:30]NVStorageSaveData done [15:41:30]ExternCall_PrintAddStr [15:41:30]wPrintStart [15:41:30]Write to MH i2c: 01 00 00 D2 04 D6 [15:41:30]Write i2c OK [15:41:30]MH_I2C_Read... [15:41:30]Read from MH i2c: 01 [15:41:30]MH_I2C_Read... [15:41:30]Read from MH i2c: 01 07 00 [15:41:30]MH_I2C_Read... [15:41:30]Read from MH i2c: 01 07 00 D2 04 00 00 00 00 00 FF 0F EB [15:41:30]RasterBufferAndPrint [15:41:30]line Счет N : (3)10589 [15:41:30]line ИНН: 02508201610067 [15:41:30]line Контрольно-Кассовый Чек [15:41:30]line ПРОДАЖА [15:41:30]line Товар: 48741231 [15:41:30]line Сигареты Winston Super Slims Silver [15:41:30]line 1.000 * 130.00 [15:41:30]line = 130.00 [15:41:30]line НДС 12% НСП 1% [15:41:30]line > о реализуемом товаре [15:41:30]line ИТОГО: 130.00 [15:41:30]line НСП 1% : 1.15 [15:41:30]line НДС 12% : 13.80 [15:41:30]line Наличными: 130.00 [15:41:30]line Безнал.: 0.00 [15:41:30]line Место: АЗС № 114 "Партнер Нефть" [15:41:30]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [15:41:30]line СНО: Общий режим [15:41:30]line Чек 127 17.10.2024 15:41 [15:41:30]line Смена: 525 ФФД: 1.0 [15:41:30]line ЗНМ: 0300000086 [15:41:30]line РНМ: 0000000000091680 [15:41:30]line Версия ККМ: 001 [15:41:30]line ФМ: 0000000000871843 [15:41:30]line ФД: 82201 [15:41:30]line ФПД: 88199109101011 [15:41:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T154129&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82201&fm=88199109101011&tin=02508201610067®Number=0000000000091680&sum=13000 [15:41:31]line 0 [15:41:31]OFD Sender: Processing packet 82201 [packets to send 254, broken 253] [15:41:31]ProducePacketName [15:41:31]name=ofd_packets/00082201 [15:41:31]OFD Sender: To server: pG, [15:41:31]CommunicateWithHost lk.salyk.kg:30040 [15:41:31]ConnectInit lk.salyk.kg [15:41:31]written 0, free lines is 4095 [15:41:31]Connected sock=7 [15:41:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 2C 01 00 00 74 21 24 01 4B E8 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 7F 00 00 00 F4 03 04 00 29 30 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 19 41 01 00 35 04 06 00 50 37 74 91 45 D3 F8 91 31 97 47 D6 BB 55 [15:41:31]Write to MH i2c: 01 00 00 FB 04 FF [15:41:31]Write i2c OK [15:41:31]MH_I2C_Read... [15:41:31]Read from MH i2c: 01 [15:41:31]MH_I2C_Read... [15:41:31]Read from MH i2c: 01 07 00 [15:41:31]MH_I2C_Read... [15:41:31]Read from MH i2c: 01 07 00 FB 04 00 00 00 00 00 D8 0C EA [15:41:31]RasterBufferAndPrint [15:41:31]line [15:41:31]line [15:41:31]line [15:41:31]line [15:41:31]line [15:41:31]written 0, free lines is 3294 [15:41:31]MH_Cut [15:41:31]Write to MH i2c: D1 01 00 02 05 01 D9 [15:41:31]Write i2c OK [15:41:31]MH_I2C_Read... [15:41:31]Read from MH i2c: D1 [15:41:31]MH_I2C_Read... [15:41:31]Read from MH i2c: D1 01 00 [15:41:31]MH_I2C_Read... [15:41:31]Read from MH i2c: D1 01 00 02 05 00 D8 [15:41:31]Write to MH i2c: 01 00 00 03 05 08 [15:41:31]Write i2c OK [15:41:31]MH_I2C_Read... [15:41:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 70 18 47 00 AB BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 19 41 01 00 F4 03 04 00 67 D5 10 67 B6 04 01 00 00 AC BE 32 14 55 6B 53 5A [15:41:31]CommunicateWithHost err = 0 [15:41:31]CheckOFDResponse [15:41:31]1017 (14) - 77093643461234 [15:41:31]1041 (16) - 0000000000871843 [15:41:31]1040 (4) - 82201 [15:41:31]1012 (4) - 17.10.2024 09:14 [15:41:31]1206 (1) - 0 [15:41:31]OFD Sender: Remove packet 82201 [15:41:31]ProducePacketName [15:41:31]name=ofd_packets/00082201 [15:41:31]NVStorageDeleteData [15:41:32]*** Cut start [15:41:32]*** Partial cut [15:41:32]*** CUTSNS_PIN = 1 [15:41:32]OFD Sender: No OFD packet to send [15:41:32]*** CUTSNS_PIN = 0 [15:41:32]*** Brake cut motor [15:41:32]Read from MH i2c: 01 [15:41:32]MH_I2C_Read... [15:41:32]*** Stop cut motor [15:41:32]*** Cut end [15:41:32]Read from MH i2c: 01 07 00 [15:41:32]MH_I2C_Read... [15:41:32]Read from MH i2c: 01 07 00 03 05 00 00 00 00 00 FF 0F 1D [15:41:32]process_action close_receipt done [15:41:32]requested_data is exist [15:41:32]produce_requested_data [15:41:32]requested_item fm.sn is exist - process it [15:41:32]wFMCommunicate request_size=4 [15:41:32]MH_SAM_APDU [15:41:32]CAPDU: 80 11 00 00 [15:41:32]Write to MH i2c: E2 08 00 04 05 80 11 00 00 00 00 00 00 83 [15:41:32]Write i2c OK [15:41:32]MH_I2C_Read... [15:41:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:32]Read from MH i2c: E2 [15:41:32]MH_I2C_Read... [15:41:32]Read from MH i2c: E2 17 00 [15:41:32]MH_I2C_Read... [15:41:32]Read from MH i2c: E2 17 00 04 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D5 [15:41:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:41:32]wFMCommunicate OK [15:41:32]requested_item fd.num is exist - process it [15:41:32]SAM_PROTO_GetFieldsCounters [15:41:32]wFMCommunicate request_size=4 [15:41:32]MH_SAM_APDU [15:41:32]CAPDU: 80 13 00 00 [15:41:32]Write to MH i2c: E2 08 00 05 05 80 13 00 00 00 00 00 00 86 [15:41:33]Write i2c OK [15:41:33]MH_I2C_Read... [15:41:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:33]Read from MH i2c: E2 [15:41:33]MH_I2C_Read... [15:41:33]Read from MH i2c: E2 62 00 [15:41:33]MH_I2C_Read... [15:41:33]Read from MH i2c: E2 62 00 05 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 19 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [15:41:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 19 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:41:33]wFMCommunicate OK [15:41:33]SAM_PROTO_GetFieldsCounters done [15:41:33]requested_item shift.num is exist - process it [15:41:33]requested_item shift.opened is exist - process it [15:41:33]req_shift_opened [15:41:33]FM_GetShiftState [15:41:33]SAM_PROTO_GetShiftState [15:41:33]wFMCommunicate request_size=4 [15:41:33]MH_SAM_APDU [15:41:33]CAPDU: 80 13 01 00 [15:41:33]Write to MH i2c: E2 08 00 06 05 80 13 01 00 00 00 00 00 88 [15:41:33]Write i2c OK [15:41:33]MH_I2C_Read... [15:41:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:33]Read from MH i2c: E2 [15:41:33]MH_I2C_Read... [15:41:33]Read from MH i2c: E2 0E 00 [15:41:33]MH_I2C_Read... [15:41:33]Read from MH i2c: E2 0E 00 06 05 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 90 [15:41:33]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [15:41:33]wFMCommunicate OK [15:41:33]SAM_PROTO_GetShiftState done [15:41:33]FM_GetShiftState done [15:41:33]req_shift_opened done [15:41:33]requested_item shift.open_date is exist - process it [15:41:33]req_shift_open_date [15:41:33]req_shift_open_date done [15:41:33]produce_requested_data done [15:41:33]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82201,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [15:41:33]process_action_free close_receipt [15:41:33]json_value_free [15:41:33]json_value_free done [15:41:33]process_json_proto returns [15:41:33]Send response to host [15:41:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82201,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [15:41:33]free response buf [15:41:33]execute_script done [15:41:33]execute_script returns [15:41:33]free content buf [15:41:33]Sock 9.Close socket [15:41:33]Sock 9.Thread stoped [15:41:37]OFD Sender: No OFD packet to send [15:41:42]OFD Sender: No OFD packet to send [15:41:47]OFD Sender: No OFD packet to send [15:41:49]recv_with_timeout no data received [15:41:52]OFD Sender: No OFD packet to send [15:41:57]OFD Sender: No OFD packet to send [15:42:02]OFD Sender: No OFD packet to send [15:42:07]OFD Sender: No OFD packet to send [15:42:12]OFD Sender: No OFD packet to send [15:42:17]OFD Sender: No OFD packet to send [15:42:22]OFD Sender: No OFD packet to send [15:42:27]OFD Sender: No OFD packet to send [15:42:32]OFD Sender: No OFD packet to send [15:42:37]OFD Sender: No OFD packet to send [15:42:42]OFD Sender: No OFD packet to send [15:42:47]OFD Sender: No OFD packet to send [15:42:52]OFD Sender: No OFD packet to send [15:42:57]OFD Sender: No OFD packet to send [15:43:02]OFD Sender: No OFD packet to send [15:43:07]OFD Sender: No OFD packet to send [15:43:12]OFD Sender: No OFD packet to send [15:43:17]OFD Sender: No OFD packet to send [15:43:22]OFD Sender: No OFD packet to send [15:43:27]OFD Sender: No OFD packet to send [15:43:32]OFD Sender: No OFD packet to send [15:43:37]OFD Sender: No OFD packet to send [15:43:42]OFD Sender: No OFD packet to send [15:43:47]OFD Sender: No OFD packet to send [15:43:52]OFD Sender: No OFD packet to send [15:43:57]OFD Sender: No OFD packet to send [15:44:02]OFD Sender: No OFD packet to send [15:44:07]OFD Sender: No OFD packet to send [15:44:12]OFD Sender: No OFD packet to send [15:44:17]OFD Sender: No OFD packet to send [15:44:22]OFD Sender: No OFD packet to send [15:44:27]OFD Sender: No OFD packet to send [15:44:32]OFD Sender: No OFD packet to send [15:44:37]OFD Sender: No OFD packet to send [15:44:42]OFD Sender: No OFD packet to send [15:44:47]OFD Sender: No OFD packet to send [15:44:52]OFD Sender: No OFD packet to send [15:44:57]OFD Sender: No OFD packet to send [15:45:02]OFD Sender: No OFD packet to send [15:45:07]OFD Sender: No OFD packet to send [15:45:12]OFD Sender: No OFD packet to send [15:45:17]OFD Sender: No OFD packet to send [15:45:22]OFD Sender: No OFD packet to send [15:45:27]OFD Sender: No OFD packet to send [15:45:32]OFD Sender: No OFD packet to send [15:45:37]OFD Sender: No OFD packet to send [15:45:42]OFD Sender: No OFD packet to send [15:45:47]OFD Sender: No OFD packet to send [15:45:52]OFD Sender: No OFD packet to send [15:45:57]OFD Sender: No OFD packet to send [15:46:02]OFD Sender: No OFD packet to send [15:46:07]OFD Sender: No OFD packet to send [15:46:12]OFD Sender: No OFD packet to send [15:46:17]OFD Sender: No OFD packet to send [15:46:22]OFD Sender: No OFD packet to send [15:46:27]OFD Sender: No OFD packet to send [15:46:32]OFD Sender: No OFD packet to send [15:46:37]OFD Sender: No OFD packet to send [15:46:42]OFD Sender: No OFD packet to send [15:46:47]OFD Sender: No OFD packet to send [15:46:52]OFD Sender: No OFD packet to send [15:46:57]OFD Sender: No OFD packet to send [15:47:02]OFD Sender: No OFD packet to send [15:47:07]OFD Sender: No OFD packet to send [15:47:12]OFD Sender: No OFD packet to send [15:47:17]OFD Sender: No OFD packet to send [15:47:22]accept exits with 10 [15:47:22]New connection [15:47:22]New thread 3066813796 created [15:47:22]Thread 3066957156 joined [15:47:22]Waiting for new connection... [15:47:22] Sock 10.Parse request [15:47:22]Sock 10.Check first char [15:47:22]Sock 10.First char is OK [15:47:22]request: POST /json_proto HTTP/1.0 [15:47:22]Method: POST [15:47:22]URL: /json_proto [15:47:22]Method is POST - this is cgi request [15:47:22]url: /json_proto [15:47:22]query_string will be loaded in cgi processing [15:47:22]execute_cgi json_proto POST (null) [15:47:22]execute_cgi path=json_proto method=POST [15:47:22]POST find Content-Length [15:47:22]Host: 172.17.44.67:8080 [15:47:22]Content-Length: 677 [15:47:22]Content-Type: application/json [15:47:22] [15:47:22]POST finish read [15:47:22]Found Content-Length = 677 [15:47:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 9.720, "sum" : 650.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:22]execute_script... [15:47:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 9.720, "sum" : 650.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:22]POST & json_proto [15:47:22]process_json_proto [15:47:22]json parsed OK: [15:47:22]protocol is kg_v1.0 [15:47:22]action value=close_receipt [15:47:22]process_action close_receipt [15:47:22]cmd_close_receipt [15:47:22]MH_GetDate [15:47:22]Write to MH i2c: F0 00 00 07 05 FB [15:47:22]Write i2c OK [15:47:22]MH_I2C_Read... [15:47:22]Read from MH i2c: F0 [15:47:22]MH_I2C_Read... [15:47:22]Read from MH i2c: F0 09 00 [15:47:22]MH_I2C_Read... [15:47:22]Read from MH i2c: F0 09 00 07 05 00 8B 31 11 67 F1 C7 6B 64 BF [15:47:22]GetLastDocTimeStamp 1729179689 [15:47:22]current date 1729180043 [15:47:22]FM_GetShiftState [15:47:22]SAM_PROTO_GetShiftState [15:47:22]wFMCommunicate request_size=4 [15:47:22]MH_SAM_APDU [15:47:22]CAPDU: 80 13 01 00 [15:47:22]Write to MH i2c: E2 08 00 08 05 80 13 01 00 00 00 00 00 8A [15:47:22]Write i2c OK [15:47:22]MH_I2C_Read... [15:47:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:22]Read from MH i2c: E2 [15:47:22]MH_I2C_Read... [15:47:22]Read from MH i2c: E2 0E 00 [15:47:22]MH_I2C_Read... [15:47:22]Read from MH i2c: E2 0E 00 08 05 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 92 [15:47:22]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [15:47:22]wFMCommunicate OK [15:47:22]SAM_PROTO_GetShiftState done [15:47:22]FM_GetShiftState done [15:47:22]opened in 1729125927 [15:47:22]opened+sec_in_day 1729212327 [15:47:22]quantity*price = 65026 [15:47:22]sum+1 = 65028 [15:47:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.05 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 128 17.10.2024 15:47 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82202 ФПД: 108369864212817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T154723&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82202&fm=108369864212817&tin=02508201610067®Number=0000000000091680&sum=65000 [15:47:23]StoreToDocumentArchive [15:47:23]shift 525 fd 82202 [15:47:23]save to /storage/0525/doc_00082202 [15:47:23]save last doc name /storage/0525/doc_00082202 to /storage/kkm_last_doc_name [15:47:23]save OK [15:47:23]Clear old archive folders... [15:47:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:47:23]tlvbuf is 01C10BD0 [15:47:23]SAM_PROTO_ClearQueue [15:47:23]wFMCommunicate request_size=4 [15:47:23]MH_SAM_APDU [15:47:23]CAPDU: 80 09 00 00 [15:47:23]Write to MH i2c: E2 08 00 15 05 80 09 00 00 00 00 00 00 8C [15:47:23]Write i2c OK [15:47:23]MH_I2C_Read... [15:47:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:23]Read from MH i2c: E2 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: E2 03 00 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: E2 03 00 15 05 00 90 00 8E [15:47:23]RAPDU: 90 00 [15:47:23]wFMCommunicate OK [15:47:23]SAM_PROTO_ClearQueue done [15:47:23]KKMCreateOFDPacket [15:47:23]OFDProtocolAddRootSTLVToBuf [15:47:23]FM_MakeSignedData [15:47:23]FM_MakeSignedData [15:47:23]SAM_PROTO_SignData [15:47:23]wFMCommunicate request_size=4 [15:47:23]MH_SAM_APDU [15:47:23]CAPDU: 80 0D 01 02 [15:47:23]Write to MH i2c: E2 08 00 16 05 80 0D 01 02 00 00 00 00 94 [15:47:23]Write i2c OK [15:47:23]MH_I2C_Read... [15:47:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:23]Read from MH i2c: E2 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: E2 03 00 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: E2 03 00 16 05 00 90 00 8F [15:47:23]RAPDU: 90 00 [15:47:23]wFMCommunicate OK [15:47:23]wFMCommunicate request_size=255 [15:47:23]MH_SAM_APDU [15:47:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 8B 31 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1A 41 01 00 35 04 06 00 62 [15:47:23]Write to MH i2c: E2 02 01 17 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 8B 31 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1A 41 01 00 35 04 06 00 62 00 00 94 [15:47:23]Write i2c OK [15:47:23]MH_I2C_Read... [15:47:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:24]Read from MH i2c: E2 [15:47:24]MH_I2C_Read... [15:47:24]Read from MH i2c: E2 03 00 [15:47:24]MH_I2C_Read... [15:47:24]Read from MH i2c: E2 03 00 17 05 00 90 00 90 [15:47:24]RAPDU: 90 00 [15:47:24]wFMCommunicate OK [15:47:24]wFMCommunicate request_size=10 [15:47:24]MH_SAM_APDU [15:47:24]CAPDU: 80 0D 02 02 05 8F D3 42 C1 51 [15:47:24]Write to MH i2c: E2 0D 00 18 05 80 0D 02 02 05 00 8F D3 42 C1 51 00 00 57 [15:47:24]Write i2c OK [15:47:24]MH_I2C_Read... [15:47:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:24]Read from MH i2c: E2 [15:47:24]MH_I2C_Read... [15:47:24]Read from MH i2c: E2 03 00 [15:47:24]MH_I2C_Read... [15:47:24]Read from MH i2c: E2 03 00 18 05 00 90 00 91 [15:47:24]RAPDU: 90 00 [15:47:24]wFMCommunicate OK [15:47:24]wFMCommunicate request_size=4 [15:47:24]MH_SAM_APDU [15:47:24]CAPDU: 80 0D 03 02 [15:47:24]Write to MH i2c: E2 08 00 19 05 80 0D 03 02 00 00 00 00 99 [15:47:24]Write i2c OK [15:47:24]MH_I2C_Read... [15:47:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:24]Read from MH i2c: E2 [15:47:24]MH_I2C_Read... [15:47:24]Read from MH i2c: E2 0B 00 [15:47:24]MH_I2C_Read... [15:47:24]Read from MH i2c: E2 0B 00 19 05 00 41 9F E6 C5 D4 02 D3 AB 90 00 79 [15:47:24]RAPDU: 41 9F E6 C5 D4 02 D3 AB 90 00 [15:47:24]wFMCommunicate OK [15:47:24]SAM_PROTO_SignData done [15:47:24]FM_MakeSignedData done [15:47:24]CreateOFDProtocolMessage [15:47:24]wFMCommunicate request_size=4 [15:47:24]MH_SAM_APDU [15:47:24]CAPDU: 80 11 00 00 [15:47:24]Write to MH i2c: E2 08 00 1A 05 80 11 00 00 00 00 00 00 99 [15:47:24]Write i2c OK [15:47:24]MH_I2C_Read... [15:47:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:24]Read from MH i2c: E2 [15:47:24]MH_I2C_Read... [15:47:24]Read from MH i2c: E2 17 00 [15:47:24]MH_I2C_Read... [15:47:24]Read from MH i2c: E2 17 00 1A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 EB [15:47:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:47:24]wFMCommunicate OK [15:47:24]CreateOFDProtocolMessage done [15:47:24]OFDSenderStorePacket 82202 [15:47:24]StoreOFDPacket docnum=82202 [15:47:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 76 41 07 01 FD 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 8B 31 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1A 41 01 00 35 04 06 00 62 8F D3 42 C1 51 41 9F E6 C5 D4 02 D3 AB [15:47:24]CheckFolder [15:47:24]dirname=/storage/ofd_packets [15:47:24]CheckFolder done [15:47:24]ProducePacketName [15:47:24]name=ofd_packets/00082202 [15:47:24]NVStorageSaveData ofd_packets/00082202 [15:47:24]File name is /storage/ofd_packets/00082202 [15:47:24]Write 301 bytes [15:47:24]NVStorageSaveData done [15:47:24]OFDSenderStorePacket done [15:47:24]KKMCreateOFDPacket done [15:47:24]NVStorageSaveData kkm_last_timestamp [15:47:24]File name is /storage/kkm_last_timestamp [15:47:24]Write 4 bytes [15:47:24]NVStorageSaveData done [15:47:24]ExternCall_PrintAddStr [15:47:24]wPrintStart [15:47:24]Write to MH i2c: 01 00 00 1B 05 20 [15:47:24]Write i2c OK [15:47:24]MH_I2C_Read... [15:47:24]Read from MH i2c: 01 [15:47:24]MH_I2C_Read... [15:47:24]Read from MH i2c: 01 07 00 [15:47:24]MH_I2C_Read... [15:47:24]Read from MH i2c: 01 07 00 1B 05 00 00 00 00 00 FF 0F 35 [15:47:24]RasterBufferAndPrint [15:47:24]line Счет N : (1)918707 [15:47:24]line ИНН: 02508201610067 [15:47:24]line Контрольно-Кассовый Чек [15:47:24]line ПРОДАЖА [15:47:24]line ТРК (МРК, ГНК) : 11 [15:47:24]line Товар: 2710124130 [15:47:24]line Аи-92-К-4 [15:47:24]line 9.720 * 66.90 [15:47:24]line = 650.27 [15:47:24]line НДС 12% НСП 1% [15:47:24]line > о реализуемом товаре [15:47:24]line ОКРУГЛЕНИЕ: -0.27 [15:47:24]line ИТОГО: 650.00 [15:47:24]line Внесено: 650.00 [15:47:24]line СДАЧА: 0.00 [15:47:24]line НСП 1% : 5.75 [15:47:24]line НДС 12% : 69.05 [15:47:24]line Наличными: 650.00 [15:47:24]line Безнал.: 0.00 [15:47:24]line Место: АЗС № 114 "Партнер Нефть" [15:47:24]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [15:47:24]line СНО: Общий режим [15:47:24]line Чек 128 17.10.2024 15:47 [15:47:24]line Смена: 525 ФФД: 1.0 [15:47:24]line ЗНМ: 0300000086 [15:47:24]line РНМ: 0000000000091680 [15:47:24]line Версия ККМ: 001 [15:47:24]line ФМ: 0000000000871843 [15:47:24]line ФД: 82202 [15:47:24]line ФПД: 108369864212817 [15:47:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T154723&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82202&fm=108369864212817&tin=02508201610067®Number=0000000000091680&sum=65000 [15:47:24]OFD Sender: Processing packet 82202 [packets to send 254, broken 253] [15:47:24]ProducePacketName [15:47:24]name=ofd_packets/00082202 [15:47:24]OFD Sender: To server: pG, [15:47:24]CommunicateWithHost lk.salyk.kg:30040 [15:47:24]ConnectInit lk.salyk.kg [15:47:24]written 0, free lines is 4095 [15:47:25]Connected sock=7 [15:47:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 76 41 07 01 FD 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 8B 31 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1A 41 01 00 35 04 06 00 62 8F D3 42 C1 51 41 9F E6 C5 D4 02 D3 AB [15:47:25]Write to MH i2c: 01 00 00 46 05 4B [15:47:25]Write i2c OK [15:47:25]MH_I2C_Read... [15:47:25]Read from MH i2c: 01 [15:47:25]MH_I2C_Read... [15:47:25]Read from MH i2c: 01 07 00 [15:47:25]MH_I2C_Read... [15:47:25]Read from MH i2c: 01 07 00 46 05 00 00 00 00 00 EE 0C 4C [15:47:25]RasterBufferAndPrint [15:47:25]line [15:47:25]line [15:47:25]line [15:47:25]line [15:47:25]line [15:47:25]written 0, free lines is 3316 [15:47:25]MH_Cut [15:47:25]Write to MH i2c: D1 01 00 4D 05 01 24 [15:47:25]Write i2c OK [15:47:25]MH_I2C_Read... [15:47:25]Read from MH i2c: D1 [15:47:25]MH_I2C_Read... [15:47:25]Read from MH i2c: D1 01 00 [15:47:25]MH_I2C_Read... [15:47:25]Read from MH i2c: D1 01 00 4D 05 00 23 [15:47:25]Write to MH i2c: 01 00 00 4E 05 53 [15:47:25]Write i2c OK [15:47:25]MH_I2C_Read... [15:47:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 A8 48 47 00 E8 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1A 41 01 00 F4 03 04 00 C9 D6 10 67 B6 04 01 00 00 BB 87 AC 50 67 2B C3 7F [15:47:25]CommunicateWithHost err = 0 [15:47:25]CheckOFDResponse [15:47:25]1017 (14) - 77093643461234 [15:47:25]1041 (16) - 0000000000871843 [15:47:25]1040 (4) - 82202 [15:47:25]1012 (4) - 17.10.2024 09:20 [15:47:25]1206 (1) - 0 [15:47:25]OFD Sender: Remove packet 82202 [15:47:25]ProducePacketName [15:47:25]name=ofd_packets/00082202 [15:47:25]NVStorageDeleteData [15:47:25]*** Cut start [15:47:25]*** Partial cut [15:47:25]*** CUTSNS_PIN = 1 [15:47:25]*** CUTSNS_PIN = 0 [15:47:26]OFD Sender: No OFD packet to send [15:47:26]*** Brake cut motor [15:47:26]Read from MH i2c: 01 [15:47:26]MH_I2C_Read... [15:47:26]*** Stop cut motor [15:47:26]*** Cut end [15:47:26]Read from MH i2c: 01 07 00 [15:47:26]MH_I2C_Read... [15:47:26]Read from MH i2c: 01 07 00 4E 05 00 00 00 00 00 FF 0F 68 [15:47:26]process_action close_receipt done [15:47:26]requested_data is exist [15:47:26]produce_requested_data [15:47:26]requested_item fm.sn is exist - process it [15:47:26]wFMCommunicate request_size=4 [15:47:26]MH_SAM_APDU [15:47:26]CAPDU: 80 11 00 00 [15:47:26]Write to MH i2c: E2 08 00 4F 05 80 11 00 00 00 00 00 00 CE [15:47:26]Write i2c OK [15:47:26]MH_I2C_Read... [15:47:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:26]Read from MH i2c: E2 [15:47:26]MH_I2C_Read... [15:47:26]Read from MH i2c: E2 17 00 [15:47:26]MH_I2C_Read... [15:47:26]Read from MH i2c: E2 17 00 4F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 20 [15:47:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:47:26]wFMCommunicate OK [15:47:26]requested_item fd.num is exist - process it [15:47:26]SAM_PROTO_GetFieldsCounters [15:47:26]wFMCommunicate request_size=4 [15:47:26]MH_SAM_APDU [15:47:26]CAPDU: 80 13 00 00 [15:47:26]Write to MH i2c: E2 08 00 50 05 80 13 00 00 00 00 00 00 D1 [15:47:26]Write i2c OK [15:47:26]MH_I2C_Read... [15:47:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:26]Read from MH i2c: E2 [15:47:26]MH_I2C_Read... [15:47:26]Read from MH i2c: E2 62 00 [15:47:26]MH_I2C_Read... [15:47:26]Read from MH i2c: E2 62 00 50 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 1A 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [15:47:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 1A 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:47:26]wFMCommunicate OK [15:47:26]SAM_PROTO_GetFieldsCounters done [15:47:26]requested_item shift.num is exist - process it [15:47:26]requested_item shift.opened is exist - process it [15:47:26]req_shift_opened [15:47:26]FM_GetShiftState [15:47:26]SAM_PROTO_GetShiftState [15:47:26]wFMCommunicate request_size=4 [15:47:26]MH_SAM_APDU [15:47:26]CAPDU: 80 13 01 00 [15:47:26]Write to MH i2c: E2 08 00 51 05 80 13 01 00 00 00 00 00 D3 [15:47:26]Write i2c OK [15:47:26]MH_I2C_Read... [15:47:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:26]Read from MH i2c: E2 [15:47:26]MH_I2C_Read... [15:47:26]Read from MH i2c: E2 0E 00 [15:47:26]MH_I2C_Read... [15:47:26]Read from MH i2c: E2 0E 00 51 05 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 DB [15:47:26]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [15:47:26]wFMCommunicate OK [15:47:26]SAM_PROTO_GetShiftState done [15:47:26]FM_GetShiftState done [15:47:26]req_shift_opened done [15:47:26]requested_item shift.open_date is exist - process it [15:47:26]req_shift_open_date [15:47:26]req_shift_open_date done [15:47:26]produce_requested_data done [15:47:26]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82202,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [15:47:26]process_action_free close_receipt [15:47:26]json_value_free [15:47:26]json_value_free done [15:47:26]process_json_proto returns [15:47:26]Send response to host [15:47:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82202,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [15:47:26]free response buf [15:47:26]execute_script done [15:47:26]execute_script returns [15:47:26]free content buf [15:47:26]Sock 10.Close socket [15:47:26]Sock 10.Thread stoped [15:47:31]OFD Sender: No OFD packet to send [15:47:36]OFD Sender: No OFD packet to send [15:47:41]OFD Sender: No OFD packet to send [15:47:46]OFD Sender: No OFD packet to send [15:47:51]OFD Sender: No OFD packet to send [15:47:56]OFD Sender: No OFD packet to send [15:48:01]OFD Sender: No OFD packet to send [15:48:06]OFD Sender: No OFD packet to send [15:48:11]OFD Sender: No OFD packet to send [15:48:16]OFD Sender: No OFD packet to send [15:48:21]OFD Sender: No OFD packet to send [15:48:26]OFD Sender: No OFD packet to send [15:48:31]OFD Sender: No OFD packet to send [15:48:36]OFD Sender: No OFD packet to send [15:48:41]OFD Sender: No OFD packet to send [15:48:46]OFD Sender: No OFD packet to send [15:48:51]OFD Sender: No OFD packet to send [15:48:56]OFD Sender: No OFD packet to send [15:49:01]OFD Sender: No OFD packet to send [15:49:06]OFD Sender: No OFD packet to send [15:49:11]OFD Sender: No OFD packet to send [15:49:16]OFD Sender: No OFD packet to send [15:49:21]OFD Sender: No OFD packet to send [15:49:26]OFD Sender: No OFD packet to send [15:49:31]OFD Sender: No OFD packet to send [15:49:36]OFD Sender: No OFD packet to send [15:49:41]OFD Sender: No OFD packet to send [15:49:46]OFD Sender: No OFD packet to send [15:49:51]OFD Sender: No OFD packet to send [15:49:56]OFD Sender: No OFD packet to send [15:50:01]OFD Sender: No OFD packet to send [15:50:06]OFD Sender: No OFD packet to send [15:50:11]OFD Sender: No OFD packet to send [15:50:16]OFD Sender: No OFD packet to send [15:50:21]OFD Sender: No OFD packet to send [15:50:26]OFD Sender: No OFD packet to send [15:50:31]OFD Sender: No OFD packet to send [15:50:36]OFD Sender: No OFD packet to send [15:50:41]OFD Sender: No OFD packet to send [15:50:46]OFD Sender: No OFD packet to send [15:50:51]OFD Sender: No OFD packet to send [15:50:56]OFD Sender: No OFD packet to send [15:51:01]OFD Sender: No OFD packet to send [15:51:06]OFD Sender: No OFD packet to send [15:51:11]OFD Sender: No OFD packet to send [15:51:16]OFD Sender: No OFD packet to send [15:51:21]OFD Sender: No OFD packet to send [15:51:26]OFD Sender: No OFD packet to send [15:51:31]OFD Sender: No OFD packet to send [15:51:36]OFD Sender: No OFD packet to send [15:51:41]OFD Sender: No OFD packet to send [15:51:46]OFD Sender: No OFD packet to send [15:51:51]OFD Sender: No OFD packet to send [15:51:56]accept exits with 9 [15:51:56]New connection [15:51:56]New thread 3066957156 created [15:51:56]Thread 3066813796 joined [15:51:56]Waiting for new connection... [15:51:56] Sock 9.Parse request [15:51:56]Sock 9.Check first char [15:51:56]Sock 9.First char is OK [15:51:56]request: POST /json_proto HTTP/1.0 [15:51:56]Method: POST [15:51:56]URL: /json_proto [15:51:56]Method is POST - this is cgi request [15:51:56]url: /json_proto [15:51:56]query_string will be loaded in cgi processing [15:51:56]execute_cgi json_proto POST (null) [15:51:56]execute_cgi path=json_proto method=POST [15:51:56]POST find Content-Length [15:51:56]Host: 172.17.44.67:8080 [15:51:56]Content-Length: 677 [15:51:56]Content-Type: application/json [15:51:56] [15:51:56]POST finish read [15:51:56]Found Content-Length = 677 [15:51:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:56]execute_script... [15:51:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:56]POST & json_proto [15:51:56]process_json_proto [15:51:56]json parsed OK: [15:51:56]protocol is kg_v1.0 [15:51:56]action value=close_receipt [15:51:56]process_action close_receipt [15:51:56]cmd_close_receipt [15:51:56]MH_GetDate [15:51:56]Write to MH i2c: F0 00 00 52 05 46 [15:51:56]Write i2c OK [15:51:56]MH_I2C_Read... [15:51:56]Read from MH i2c: F0 [15:51:56]MH_I2C_Read... [15:51:56]Read from MH i2c: F0 09 00 [15:51:56]MH_I2C_Read... [15:51:56]Read from MH i2c: F0 09 00 52 05 00 9C 32 11 67 F1 C7 6B 64 1C [15:51:56]GetLastDocTimeStamp 1729180043 [15:51:56]current date 1729180316 [15:51:56]FM_GetShiftState [15:51:56]SAM_PROTO_GetShiftState [15:51:56]wFMCommunicate request_size=4 [15:51:56]MH_SAM_APDU [15:51:56]CAPDU: 80 13 01 00 [15:51:56]Write to MH i2c: E2 08 00 53 05 80 13 01 00 00 00 00 00 D5 [15:51:56]Write i2c OK [15:51:56]MH_I2C_Read... [15:51:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:56]Read from MH i2c: E2 [15:51:56]MH_I2C_Read... [15:51:56]Read from MH i2c: E2 0E 00 [15:51:56]MH_I2C_Read... [15:51:56]Read from MH i2c: E2 0E 00 53 05 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 DD [15:51:56]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [15:51:56]wFMCommunicate OK [15:51:56]SAM_PROTO_GetShiftState done [15:51:56]FM_GetShiftState done [15:51:56]opened in 1729125927 [15:51:56]opened+sec_in_day 1729212327 [15:51:56]quantity*price = 50041 [15:51:56]sum+1 = 50042 [15:51:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 129 17.10.2024 15:51 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82203 ФПД: 210179081422900 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T155157&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82203&fm=210179081422900&tin=02508201610067®Number=0000000000091680&sum=50000 [15:51:57]StoreToDocumentArchive [15:51:57]shift 525 fd 82203 [15:51:57]save to /storage/0525/doc_00082203 [15:51:57]save last doc name /storage/0525/doc_00082203 to /storage/kkm_last_doc_name [15:51:57]save OK [15:51:57]Clear old archive folders... [15:51:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:51:57]tlvbuf is 01C07430 [15:51:57]SAM_PROTO_ClearQueue [15:51:57]wFMCommunicate request_size=4 [15:51:57]MH_SAM_APDU [15:51:57]CAPDU: 80 09 00 00 [15:51:57]Write to MH i2c: E2 08 00 60 05 80 09 00 00 00 00 00 00 D7 [15:51:57]Write i2c OK [15:51:57]MH_I2C_Read... [15:51:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:51:57]Read from MH i2c: E2 [15:51:57]MH_I2C_Read... [15:51:57]Read from MH i2c: E2 03 00 [15:51:57]MH_I2C_Read... [15:51:57]Read from MH i2c: E2 03 00 60 05 00 90 00 D9 [15:51:57]RAPDU: 90 00 [15:51:57]wFMCommunicate OK [15:51:57]SAM_PROTO_ClearQueue done [15:51:57]KKMCreateOFDPacket [15:51:57]OFDProtocolAddRootSTLVToBuf [15:51:57]FM_MakeSignedData [15:51:57]FM_MakeSignedData [15:51:57]SAM_PROTO_SignData [15:51:57]wFMCommunicate request_size=4 [15:51:57]MH_SAM_APDU [15:51:57]CAPDU: 80 0D 01 02 [15:51:57]Write to MH i2c: E2 08 00 61 05 80 0D 01 02 00 00 00 00 DF [15:51:57]Write i2c OK [15:51:57]MH_I2C_Read... [15:51:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:51:57]Read from MH i2c: E2 [15:51:57]MH_I2C_Read... [15:51:57]Read from MH i2c: E2 03 00 [15:51:57]MH_I2C_Read... [15:51:57]Read from MH i2c: E2 03 00 61 05 00 90 00 DA [15:51:57]RAPDU: 90 00 [15:51:57]wFMCommunicate OK [15:51:57]wFMCommunicate request_size=255 [15:51:57]MH_SAM_APDU [15:51:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 9D 32 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1B 41 01 00 35 04 06 00 BF [15:51:57]Write to MH i2c: E2 02 01 62 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 9D 32 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1B 41 01 00 35 04 06 00 BF 00 00 5E [15:51:57]Write i2c OK [15:51:57]MH_I2C_Read... [15:51:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:57]Read from MH i2c: E2 [15:51:57]MH_I2C_Read... [15:51:57]Read from MH i2c: E2 03 00 [15:51:57]MH_I2C_Read... [15:51:57]Read from MH i2c: E2 03 00 62 05 00 90 00 DB [15:51:57]RAPDU: 90 00 [15:51:57]wFMCommunicate OK [15:51:57]wFMCommunicate request_size=10 [15:51:57]MH_SAM_APDU [15:51:57]CAPDU: 80 0D 02 02 05 28 21 7C C8 34 [15:51:57]Write to MH i2c: E2 0D 00 63 05 80 0D 02 02 05 00 28 21 7C C8 34 00 00 AD [15:51:57]Write i2c OK [15:51:57]MH_I2C_Read... [15:51:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:57]Read from MH i2c: E2 [15:51:57]MH_I2C_Read... [15:51:57]Read from MH i2c: E2 03 00 [15:51:57]MH_I2C_Read... [15:51:57]Read from MH i2c: E2 03 00 63 05 00 90 00 DC [15:51:57]RAPDU: 90 00 [15:51:57]wFMCommunicate OK [15:51:57]wFMCommunicate request_size=4 [15:51:57]MH_SAM_APDU [15:51:57]CAPDU: 80 0D 03 02 [15:51:57]Write to MH i2c: E2 08 00 64 05 80 0D 03 02 00 00 00 00 E4 [15:51:57]Write i2c OK [15:51:57]MH_I2C_Read... [15:51:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:51:57]Read from MH i2c: E2 [15:51:57]MH_I2C_Read... [15:51:57]Read from MH i2c: E2 0B 00 [15:51:57]MH_I2C_Read... [15:51:57]Read from MH i2c: E2 0B 00 64 05 00 5A E2 8D F3 2C 7F E8 FE 90 00 32 [15:51:57]RAPDU: 5A E2 8D F3 2C 7F E8 FE 90 00 [15:51:57]wFMCommunicate OK [15:51:57]SAM_PROTO_SignData done [15:51:57]FM_MakeSignedData done [15:51:57]CreateOFDProtocolMessage [15:51:57]wFMCommunicate request_size=4 [15:51:57]MH_SAM_APDU [15:51:57]CAPDU: 80 11 00 00 [15:51:57]Write to MH i2c: E2 08 00 65 05 80 11 00 00 00 00 00 00 E4 [15:51:57]Write i2c OK [15:51:57]MH_I2C_Read... [15:51:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:57]Read from MH i2c: E2 [15:51:57]MH_I2C_Read... [15:51:57]Read from MH i2c: E2 17 00 [15:51:57]MH_I2C_Read... [15:51:57]Read from MH i2c: E2 17 00 65 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 36 [15:51:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:51:57]wFMCommunicate OK [15:51:57]CreateOFDProtocolMessage done [15:51:57]OFDSenderStorePacket 82203 [15:51:57]StoreOFDPacket docnum=82203 [15:51:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 2D 3B 07 01 D7 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 9D 32 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1B 41 01 00 35 04 06 00 BF 28 21 7C C8 34 5A E2 8D F3 2C 7F E8 FE [15:51:57]CheckFolder [15:51:57]dirname=/storage/ofd_packets [15:51:57]CheckFolder done [15:51:57]ProducePacketName [15:51:57]name=ofd_packets/00082203 [15:51:57]NVStorageSaveData ofd_packets/00082203 [15:51:57]File name is /storage/ofd_packets/00082203 [15:51:57]Write 301 bytes [15:51:57]NVStorageSaveData done [15:51:57]OFDSenderStorePacket done [15:51:57]KKMCreateOFDPacket done [15:51:57]NVStorageSaveData kkm_last_timestamp [15:51:57]File name is /storage/kkm_last_timestamp [15:51:57]Write 4 bytes [15:51:57]NVStorageSaveData done [15:51:57]ExternCall_PrintAddStr [15:51:57]wPrintStart [15:51:57]Write to MH i2c: 01 00 00 66 05 6B [15:51:57]Write i2c OK [15:51:57]MH_I2C_Read... [15:51:57]Read from MH i2c: 01 [15:51:57]MH_I2C_Read... [15:51:57]Read from MH i2c: 01 07 00 [15:51:57]MH_I2C_Read... [15:51:57]Read from MH i2c: 01 07 00 66 05 00 00 00 00 00 FF 0F 80 [15:51:57]RasterBufferAndPrint [15:51:57]line Счет N : (1)918708 [15:51:57]line ИНН: 02508201610067 [15:51:57]line Контрольно-Кассовый Чек [15:51:57]line ПРОДАЖА [15:51:57]line ТРК (МРК, ГНК) : 22 [15:51:57]line Товар: 2710124130 [15:51:57]line Аи-92-К-4 [15:51:57]line 7.480 * 66.90 [15:51:57]line = 500.41 [15:51:57]line НДС 12% НСП 1% [15:51:57]line > о реализуемом товаре [15:51:57]line ОКРУГЛЕНИЕ: -0.41 [15:51:57]line ИТОГО: 500.00 [15:51:57]line Внесено: 500.00 [15:51:57]line СДАЧА: 0.00 [15:51:57]line НСП 1% : 4.43 [15:51:57]line НДС 12% : 53.14 [15:51:57]line Наличными: 500.00 [15:51:57]line Безнал.: 0.00 [15:51:57]line Место: АЗС № 114 "Партнер Нефть" [15:51:57]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [15:51:57]line СНО: Общий режим [15:51:57]line Чек 129 17.10.2024 15:51 [15:51:57]line Смена: 525 ФФД: 1.0 [15:51:57]line ЗНМ: 0300000086 [15:51:57]line РНМ: 0000000000091680 [15:51:57]line Версия ККМ: 001 [15:51:57]line ФМ: 0000000000871843 [15:51:57]line ФД: 82203 [15:51:57]line ФПД: 210179081422900 [15:51:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T155157&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82203&fm=210179081422900&tin=02508201610067®Number=0000000000091680&sum=50000 [15:51:58]OFD Sender: Processing packet 82203 [packets to send 254, broken 253] [15:51:58]ProducePacketName [15:51:58]name=ofd_packets/00082203 [15:51:58]OFD Sender: To server: pG, [15:51:58]CommunicateWithHost lk.salyk.kg:30040 [15:51:58]ConnectInit lk.salyk.kg [15:51:58]written 0, free lines is 4095 [15:51:58]Write to MH i2c: 01 00 00 91 05 96 [15:51:58]Write i2c OK [15:51:58]MH_I2C_Read... [15:51:58]Read from MH i2c: 01 [15:51:58]MH_I2C_Read... [15:51:58]Read from MH i2c: 01 07 00 [15:51:58]MH_I2C_Read... [15:51:58]Read from MH i2c: 01 07 00 91 05 00 00 00 00 00 DC 0C 85 [15:51:58]RasterBufferAndPrint [15:51:58]line [15:51:58]line [15:51:58]line [15:51:58]line [15:51:58]line [15:51:58]written 0, free lines is 3298 [15:51:58]MH_Cut [15:51:58]Write to MH i2c: D1 01 00 98 05 01 6F [15:51:58]Write i2c OK [15:51:58]MH_I2C_Read... [15:51:58]Read from MH i2c: D1 [15:51:58]MH_I2C_Read... [15:51:58]Read from MH i2c: D1 01 00 [15:51:58]MH_I2C_Read... [15:51:58]Read from MH i2c: D1 01 00 98 05 00 6E [15:51:58]Write to MH i2c: 01 00 00 99 05 9E [15:51:58]Write i2c OK [15:51:58]MH_I2C_Read... [15:51:59]Connected sock=11 [15:51:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 2D 3B 07 01 D7 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 9D 32 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1B 41 01 00 35 04 06 00 BF 28 21 7C C8 34 5A E2 8D F3 2C 7F E8 FE [15:51:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 B8 A8 47 00 82 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1B 41 01 00 F4 03 04 00 DB D7 10 67 B6 04 01 00 00 78 59 E0 3F F8 B4 7C 3A [15:51:59]CommunicateWithHost err = 0 [15:51:59]CheckOFDResponse [15:51:59]1017 (14) - 77093643461234 [15:51:59]1041 (16) - 0000000000871843 [15:51:59]1040 (4) - 82203 [15:51:59]1012 (4) - 17.10.2024 09:24 [15:51:59]1206 (1) - 0 [15:51:59]OFD Sender: Remove packet 82203 [15:51:59]ProducePacketName [15:51:59]name=ofd_packets/00082203 [15:51:59]NVStorageDeleteData [15:51:59]*** Cut start [15:51:59]*** Partial cut [15:51:59]*** CUTSNS_PIN = 1 [15:51:59]*** CUTSNS_PIN = 0 [15:51:59]*** Brake cut motor [15:51:59]OFD Sender: No OFD packet to send [15:52:00]Read from MH i2c: 01 [15:52:00]MH_I2C_Read... [15:52:00]*** Stop cut motor [15:52:00]*** Cut end [15:52:00]Read from MH i2c: 01 07 00 [15:52:00]MH_I2C_Read... [15:52:00]Read from MH i2c: 01 07 00 99 05 00 00 00 00 00 FF 0F B3 [15:52:00]process_action close_receipt done [15:52:00]requested_data is exist [15:52:00]produce_requested_data [15:52:00]requested_item fm.sn is exist - process it [15:52:00]wFMCommunicate request_size=4 [15:52:00]MH_SAM_APDU [15:52:00]CAPDU: 80 11 00 00 [15:52:00]Write to MH i2c: E2 08 00 9A 05 80 11 00 00 00 00 00 00 19 [15:52:00]Write i2c OK [15:52:00]MH_I2C_Read... [15:52:00]Read from MH i2c: E2 [15:52:00]MH_I2C_Read... [15:52:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:00]Read from MH i2c: E2 17 00 [15:52:00]MH_I2C_Read... [15:52:00]Read from MH i2c: E2 17 00 9A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 6B [15:52:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:52:00]wFMCommunicate OK [15:52:00]requested_item fd.num is exist - process it [15:52:00]SAM_PROTO_GetFieldsCounters [15:52:00]wFMCommunicate request_size=4 [15:52:00]MH_SAM_APDU [15:52:00]CAPDU: 80 13 00 00 [15:52:00]Write to MH i2c: E2 08 00 9B 05 80 13 00 00 00 00 00 00 1C [15:52:00]Write i2c OK [15:52:00]MH_I2C_Read... [15:52:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:00]Read from MH i2c: E2 [15:52:00]MH_I2C_Read... [15:52:00]Read from MH i2c: E2 62 00 [15:52:00]MH_I2C_Read... [15:52:00]Read from MH i2c: E2 62 00 9B 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 1B 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [15:52:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 1B 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:52:00]wFMCommunicate OK [15:52:00]SAM_PROTO_GetFieldsCounters done [15:52:00]requested_item shift.num is exist - process it [15:52:00]requested_item shift.opened is exist - process it [15:52:00]req_shift_opened [15:52:00]FM_GetShiftState [15:52:00]SAM_PROTO_GetShiftState [15:52:00]wFMCommunicate request_size=4 [15:52:00]MH_SAM_APDU [15:52:00]CAPDU: 80 13 01 00 [15:52:00]Write to MH i2c: E2 08 00 9C 05 80 13 01 00 00 00 00 00 1E [15:52:00]Write i2c OK [15:52:00]MH_I2C_Read... [15:52:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:00]Read from MH i2c: E2 [15:52:00]MH_I2C_Read... [15:52:00]Read from MH i2c: E2 0E 00 [15:52:00]MH_I2C_Read... [15:52:00]Read from MH i2c: E2 0E 00 9C 05 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 26 [15:52:00]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [15:52:00]wFMCommunicate OK [15:52:00]SAM_PROTO_GetShiftState done [15:52:00]FM_GetShiftState done [15:52:00]req_shift_opened done [15:52:00]requested_item shift.open_date is exist - process it [15:52:00]req_shift_open_date [15:52:00]req_shift_open_date done [15:52:00]produce_requested_data done [15:52:00]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82203,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [15:52:00]process_action_free close_receipt [15:52:00]json_value_free [15:52:00]json_value_free done [15:52:00]process_json_proto returns [15:52:00]Send response to host [15:52:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82203,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [15:52:00]free response buf [15:52:00]execute_script done [15:52:00]execute_script returns [15:52:00]free content buf [15:52:00]Sock 9.Close socket [15:52:00]Sock 9.Thread stoped [15:52:04]OFD Sender: No OFD packet to send [15:52:09]recv_with_timeout no data received [15:52:09]OFD Sender: No OFD packet to send [15:52:14]OFD Sender: No OFD packet to send [15:52:19]OFD Sender: No OFD packet to send [15:52:20]recv_with_timeout no data received [15:52:25]OFD Sender: No OFD packet to send [15:52:30]OFD Sender: No OFD packet to send [15:52:35]OFD Sender: No OFD packet to send [15:52:40]OFD Sender: No OFD packet to send [15:52:45]OFD Sender: No OFD packet to send [15:52:50]OFD Sender: No OFD packet to send [15:52:55]OFD Sender: No OFD packet to send [15:53:00]OFD Sender: No OFD packet to send [15:53:05]OFD Sender: No OFD packet to send [15:53:10]OFD Sender: No OFD packet to send [15:53:15]OFD Sender: No OFD packet to send [15:53:20]OFD Sender: No OFD packet to send [15:53:25]OFD Sender: No OFD packet to send [15:53:30]OFD Sender: No OFD packet to send [15:53:35]OFD Sender: No OFD packet to send [15:53:40]OFD Sender: No OFD packet to send [15:53:45]OFD Sender: No OFD packet to send [15:53:50]OFD Sender: No OFD packet to send [15:53:55]OFD Sender: No OFD packet to send [15:54:00]OFD Sender: No OFD packet to send [15:54:05]OFD Sender: No OFD packet to send [15:54:10]OFD Sender: No OFD packet to send [15:54:15]OFD Sender: No OFD packet to send [15:54:20]OFD Sender: No OFD packet to send [15:54:25]OFD Sender: No OFD packet to send [15:54:30]OFD Sender: No OFD packet to send [15:54:35]OFD Sender: No OFD packet to send [15:54:40]OFD Sender: No OFD packet to send [15:54:45]OFD Sender: No OFD packet to send [15:54:50]OFD Sender: No OFD packet to send [15:54:55]OFD Sender: No OFD packet to send [15:55:00]OFD Sender: No OFD packet to send [15:55:05]OFD Sender: No OFD packet to send [15:55:10]OFD Sender: No OFD packet to send [15:55:15]OFD Sender: No OFD packet to send [15:55:20]OFD Sender: No OFD packet to send [15:55:25]OFD Sender: No OFD packet to send [15:55:30]OFD Sender: No OFD packet to send [15:55:35]OFD Sender: No OFD packet to send [15:55:40]OFD Sender: No OFD packet to send [15:55:45]OFD Sender: No OFD packet to send [15:55:50]OFD Sender: No OFD packet to send [15:55:55]OFD Sender: No OFD packet to send [15:56:00]OFD Sender: No OFD packet to send [15:56:05]OFD Sender: No OFD packet to send [15:56:10]OFD Sender: No OFD packet to send [15:56:15]accept exits with 7 [15:56:15]New connection [15:56:15]New thread 3066813796 created [15:56:15]Thread 3066957156 joined [15:56:15]Waiting for new connection... [15:56:15] Sock 7.Parse request [15:56:15]Sock 7.Check first char [15:56:15]Sock 7.First char is OK [15:56:15]request: POST /json_proto HTTP/1.0 [15:56:15]Method: POST [15:56:15]URL: /json_proto [15:56:15]Method is POST - this is cgi request [15:56:15]url: /json_proto [15:56:15]query_string will be loaded in cgi processing [15:56:15]execute_cgi json_proto POST (null) [15:56:15]execute_cgi path=json_proto method=POST [15:56:15]POST find Content-Length [15:56:15]Host: 172.17.44.67:8080 [15:56:15]Content-Length: 687 [15:56:15]Content-Type: application/json [15:56:15] [15:56:15]POST finish read [15:56:15]Found Content-Length = 687 [15:56:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 78.750, "sum" : 6000.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:15]execute_script... [15:56:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 78.750, "sum" : 6000.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:15]POST & json_proto [15:56:15]process_json_proto [15:56:15]json parsed OK: [15:56:15]protocol is kg_v1.0 [15:56:15]action value=close_receipt [15:56:15]process_action close_receipt [15:56:15]cmd_close_receipt [15:56:15]MH_GetDate [15:56:15]Write to MH i2c: F0 00 00 9D 05 91 [15:56:15]Write i2c OK [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: F0 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: F0 09 00 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: F0 09 00 9D 05 00 9F 33 11 67 F1 C7 6B 64 6B [15:56:15]GetLastDocTimeStamp 1729180317 [15:56:15]current date 1729180575 [15:56:15]FM_GetShiftState [15:56:15]SAM_PROTO_GetShiftState [15:56:15]wFMCommunicate request_size=4 [15:56:15]MH_SAM_APDU [15:56:15]CAPDU: 80 13 01 00 [15:56:15]Write to MH i2c: E2 08 00 9E 05 80 13 01 00 00 00 00 00 20 [15:56:15]Write i2c OK [15:56:15]MH_I2C_Read... [15:56:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:15]Read from MH i2c: E2 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: E2 0E 00 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: E2 0E 00 9E 05 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 28 [15:56:15]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [15:56:15]wFMCommunicate OK [15:56:15]SAM_PROTO_GetShiftState done [15:56:15]FM_GetShiftState done [15:56:15]opened in 1729125927 [15:56:15]opened+sec_in_day 1729212327 [15:56:15]quantity*price = 600075 [15:56:15]sum+1 = 600076 [15:56:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.75 ИТОГО: 6000.00 Внесено: 6000.00 СДАЧА: 0.00 НСП 1% : 53.10 НДС 12% : 637.25 Наличными: 6000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 130 17.10.2024 15:56 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82204 ФПД: 64576510912297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T155615&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82204&fm=64576510912297&tin=02508201610067®Number=0000000000091680&sum=600000 [15:56:16]StoreToDocumentArchive [15:56:16]shift 525 fd 82204 [15:56:16]save to /storage/0525/doc_00082204 [15:56:16]save last doc name /storage/0525/doc_00082204 to /storage/kkm_last_doc_name [15:56:16]save OK [15:56:16]Clear old archive folders... [15:56:16]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:56:16]tlvbuf is 01B59E40 [15:56:16]SAM_PROTO_ClearQueue [15:56:16]wFMCommunicate request_size=4 [15:56:16]MH_SAM_APDU [15:56:16]CAPDU: 80 09 00 00 [15:56:16]Write to MH i2c: E2 08 00 AB 05 80 09 00 00 00 00 00 00 22 [15:56:16]Write i2c OK [15:56:16]MH_I2C_Read... [15:56:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:16]Read from MH i2c: E2 [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: E2 03 00 [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: E2 03 00 AB 05 00 90 00 24 [15:56:16]RAPDU: 90 00 [15:56:16]wFMCommunicate OK [15:56:16]SAM_PROTO_ClearQueue done [15:56:16]KKMCreateOFDPacket [15:56:16]OFDProtocolAddRootSTLVToBuf [15:56:16]FM_MakeSignedData [15:56:16]FM_MakeSignedData [15:56:16]SAM_PROTO_SignData [15:56:16]wFMCommunicate request_size=4 [15:56:16]MH_SAM_APDU [15:56:16]CAPDU: 80 0D 01 02 [15:56:16]Write to MH i2c: E2 08 00 AC 05 80 0D 01 02 00 00 00 00 2A [15:56:16]Write i2c OK [15:56:16]MH_I2C_Read... [15:56:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:16]Read from MH i2c: E2 [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: E2 03 00 [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: E2 03 00 AC 05 00 90 00 25 [15:56:16]RAPDU: 90 00 [15:56:16]wFMCommunicate OK [15:56:16]wFMCommunicate request_size=255 [15:56:16]MH_SAM_APDU [15:56:16]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 9F 33 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1C 41 01 00 35 04 06 00 [15:56:16]Write to MH i2c: E2 02 01 AD 05 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 9F 33 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1C 41 01 00 35 04 06 00 00 00 2C [15:56:16]Write i2c OK [15:56:16]MH_I2C_Read... [15:56:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:16]Read from MH i2c: E2 [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: E2 03 00 [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: E2 03 00 AD 05 00 90 00 26 [15:56:16]RAPDU: 90 00 [15:56:16]wFMCommunicate OK [15:56:16]wFMCommunicate request_size=11 [15:56:16]MH_SAM_APDU [15:56:16]CAPDU: 80 0D 02 02 06 3A BB 63 FE 67 29 [15:56:16]Write to MH i2c: E2 0E 00 AE 05 80 0D 02 02 06 00 3A BB 63 FE 67 29 00 00 1F [15:56:16]Write i2c OK [15:56:16]MH_I2C_Read... [15:56:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:16]Read from MH i2c: E2 [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: E2 03 00 [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: E2 03 00 AE 05 00 90 00 27 [15:56:16]RAPDU: 90 00 [15:56:16]wFMCommunicate OK [15:56:16]wFMCommunicate request_size=4 [15:56:16]MH_SAM_APDU [15:56:16]CAPDU: 80 0D 03 02 [15:56:16]Write to MH i2c: E2 08 00 AF 05 80 0D 03 02 00 00 00 00 2F [15:56:16]Write i2c OK [15:56:16]MH_I2C_Read... [15:56:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:16]Read from MH i2c: E2 [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: E2 0B 00 [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: E2 0B 00 AF 05 00 64 68 95 9B 25 7D 27 13 90 00 08 [15:56:16]RAPDU: 64 68 95 9B 25 7D 27 13 90 00 [15:56:16]wFMCommunicate OK [15:56:16]SAM_PROTO_SignData done [15:56:16]FM_MakeSignedData done [15:56:16]CreateOFDProtocolMessage [15:56:16]wFMCommunicate request_size=4 [15:56:16]MH_SAM_APDU [15:56:16]CAPDU: 80 11 00 00 [15:56:16]Write to MH i2c: E2 08 00 B0 05 80 11 00 00 00 00 00 00 2F [15:56:16]Write i2c OK [15:56:16]MH_I2C_Read... [15:56:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:16]Read from MH i2c: E2 [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: E2 17 00 [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: E2 17 00 B0 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 81 [15:56:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:56:16]wFMCommunicate OK [15:56:16]CreateOFDProtocolMessage done [15:56:16]OFDSenderStorePacket 82204 [15:56:16]StoreOFDPacket docnum=82204 [15:56:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 B1 EE 08 01 4E 55 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 9F 33 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1C 41 01 00 35 04 06 00 3A BB 63 FE 67 29 64 68 95 9B 25 7D 27 13 [15:56:16]CheckFolder [15:56:16]dirname=/storage/ofd_packets [15:56:16]CheckFolder done [15:56:16]ProducePacketName [15:56:16]name=ofd_packets/00082204 [15:56:16]NVStorageSaveData ofd_packets/00082204 [15:56:16]File name is /storage/ofd_packets/00082204 [15:56:16]Write 302 bytes [15:56:16]NVStorageSaveData done [15:56:16]OFDSenderStorePacket done [15:56:16]KKMCreateOFDPacket done [15:56:16]NVStorageSaveData kkm_last_timestamp [15:56:16]File name is /storage/kkm_last_timestamp [15:56:16]Write 4 bytes [15:56:16]NVStorageSaveData done [15:56:16]ExternCall_PrintAddStr [15:56:16]wPrintStart [15:56:16]Write to MH i2c: 01 00 00 B1 05 B6 [15:56:16]Write i2c OK [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: 01 [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: 01 07 00 [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: 01 07 00 B1 05 00 00 00 00 00 FF 0F CB [15:56:16]RasterBufferAndPrint [15:56:16]line Счет N : (1)918709 [15:56:16]line ИНН: 02508201610067 [15:56:16]line Контрольно-Кассовый Чек [15:56:16]line ПРОДАЖА [15:56:16]line ТРК (МРК, ГНК) : 31 [15:56:16]line Товар: 2710194210 [15:56:16]line ДТ(л)-К-5 [15:56:16]line 78.750 * 76.20 [15:56:16]line = 6000.75 [15:56:16]line НДС 12% НСП 1% [15:56:16]line > о реализуемом товаре [15:56:16]line ОКРУГЛЕНИЕ: -0.75 [15:56:16]line ИТОГО: 6000.00 [15:56:16]line Внесено: 6000.00 [15:56:16]line СДАЧА: 0.00 [15:56:16]line НСП 1% : 53.10 [15:56:16]line НДС 12% : 637.25 [15:56:16]line Наличными: 6000.00 [15:56:16]line Безнал.: 0.00 [15:56:16]line Место: АЗС № 114 "Партнер Нефть" [15:56:16]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [15:56:16]line СНО: Общий режим [15:56:16]line Чек 130 17.10.2024 15:56 [15:56:16]line Смена: 525 ФФД: 1.0 [15:56:16]line ЗНМ: 0300000086 [15:56:16]line РНМ: 0000000000091680 [15:56:16]line Версия ККМ: 001 [15:56:16]line ФМ: 0000000000871843 [15:56:16]line ФД: 82204 [15:56:16]line ФПД: 64576510912297 [15:56:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T155615&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82204&fm=64576510912297&tin=02508201610067®Number=0000000000091680&sum=600000 [15:56:17]OFD Sender: Processing packet 82204 [packets to send 254, broken 253] [15:56:17]ProducePacketName [15:56:17]name=ofd_packets/00082204 [15:56:17]OFD Sender: To server: pG, [15:56:17]CommunicateWithHost lk.salyk.kg:30040 [15:56:17]ConnectInit lk.salyk.kg [15:56:17]written 0, free lines is 4095 [15:56:17]Connected sock=11 [15:56:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 B1 EE 08 01 4E 55 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 9F 33 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1C 41 01 00 35 04 06 00 3A BB 63 FE 67 29 64 68 95 9B 25 7D 27 13 [15:56:17]Write to MH i2c: 01 00 00 DC 05 E1 [15:56:17]Write i2c OK [15:56:17]MH_I2C_Read... [15:56:17]Read from MH i2c: 01 [15:56:17]MH_I2C_Read... [15:56:17]Read from MH i2c: 01 07 00 [15:56:17]MH_I2C_Read... [15:56:17]Read from MH i2c: 01 07 00 DC 05 00 00 00 00 00 EF 0C E3 [15:56:17]RasterBufferAndPrint [15:56:17]line [15:56:17]line [15:56:17]line [15:56:17]line [15:56:17]line [15:56:17]written 0, free lines is 3317 [15:56:17]MH_Cut [15:56:17]Write to MH i2c: D1 01 00 E3 05 01 BA [15:56:17]Write i2c OK [15:56:17]MH_I2C_Read... [15:56:17]Read from MH i2c: D1 [15:56:17]MH_I2C_Read... [15:56:17]Read from MH i2c: D1 01 00 [15:56:17]MH_I2C_Read... [15:56:17]Read from MH i2c: D1 01 00 E3 05 00 B9 [15:56:17]Write to MH i2c: 01 00 00 E4 05 E9 [15:56:17]Write i2c OK [15:56:17]MH_I2C_Read... [15:56:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 4F B2 47 00 5B BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1C 41 01 00 F4 03 04 00 DD D8 10 67 B6 04 01 00 00 CE FA 69 4B 92 CD 41 A1 [15:56:17]CommunicateWithHost err = 0 [15:56:17]CheckOFDResponse [15:56:17]1017 (14) - 77093643461234 [15:56:17]1041 (16) - 0000000000871843 [15:56:17]1040 (4) - 82204 [15:56:17]1012 (4) - 17.10.2024 09:29 [15:56:17]1206 (1) - 0 [15:56:17]OFD Sender: Remove packet 82204 [15:56:17]ProducePacketName [15:56:17]name=ofd_packets/00082204 [15:56:17]NVStorageDeleteData [15:56:18]*** Cut start [15:56:18]*** Partial cut [15:56:18]*** CUTSNS_PIN = 1 [15:56:18]OFD Sender: No OFD packet to send [15:56:18]*** CUTSNS_PIN = 0 [15:56:18]*** Brake cut motor [15:56:19]Read from MH i2c: 01 [15:56:19]MH_I2C_Read... [15:56:19]*** Stop cut motor [15:56:19]*** Cut end [15:56:19]Read from MH i2c: 01 07 00 [15:56:19]MH_I2C_Read... [15:56:19]Read from MH i2c: 01 07 00 E4 05 00 00 00 00 00 FF 0F FE [15:56:19]process_action close_receipt done [15:56:19]requested_data is exist [15:56:19]produce_requested_data [15:56:19]requested_item fm.sn is exist - process it [15:56:19]wFMCommunicate request_size=4 [15:56:19]MH_SAM_APDU [15:56:19]CAPDU: 80 11 00 00 [15:56:19]Write to MH i2c: E2 08 00 E5 05 80 11 00 00 00 00 00 00 64 [15:56:19]Write i2c OK [15:56:19]MH_I2C_Read... [15:56:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:19]Read from MH i2c: E2 [15:56:19]MH_I2C_Read... [15:56:19]Read from MH i2c: E2 17 00 [15:56:19]MH_I2C_Read... [15:56:19]Read from MH i2c: E2 17 00 E5 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 B6 [15:56:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:56:19]wFMCommunicate OK [15:56:19]requested_item fd.num is exist - process it [15:56:19]SAM_PROTO_GetFieldsCounters [15:56:19]wFMCommunicate request_size=4 [15:56:19]MH_SAM_APDU [15:56:19]CAPDU: 80 13 00 00 [15:56:19]Write to MH i2c: E2 08 00 E6 05 80 13 00 00 00 00 00 00 67 [15:56:19]Write i2c OK [15:56:19]MH_I2C_Read... [15:56:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:19]Read from MH i2c: E2 [15:56:19]MH_I2C_Read... [15:56:19]Read from MH i2c: E2 62 00 [15:56:19]MH_I2C_Read... [15:56:19]Read from MH i2c: E2 62 00 E6 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 1C 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [15:56:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 1C 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:56:19]wFMCommunicate OK [15:56:19]SAM_PROTO_GetFieldsCounters done [15:56:19]requested_item shift.num is exist - process it [15:56:19]requested_item shift.opened is exist - process it [15:56:19]req_shift_opened [15:56:19]FM_GetShiftState [15:56:19]SAM_PROTO_GetShiftState [15:56:19]wFMCommunicate request_size=4 [15:56:19]MH_SAM_APDU [15:56:19]CAPDU: 80 13 01 00 [15:56:19]Write to MH i2c: E2 08 00 E7 05 80 13 01 00 00 00 00 00 69 [15:56:19]Write i2c OK [15:56:19]MH_I2C_Read... [15:56:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:19]Read from MH i2c: E2 [15:56:19]MH_I2C_Read... [15:56:19]Read from MH i2c: E2 0E 00 [15:56:19]MH_I2C_Read... [15:56:19]Read from MH i2c: E2 0E 00 E7 05 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 71 [15:56:19]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [15:56:19]wFMCommunicate OK [15:56:19]SAM_PROTO_GetShiftState done [15:56:19]FM_GetShiftState done [15:56:19]req_shift_opened done [15:56:19]requested_item shift.open_date is exist - process it [15:56:19]req_shift_open_date [15:56:19]req_shift_open_date done [15:56:19]produce_requested_data done [15:56:19]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82204,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [15:56:19]process_action_free close_receipt [15:56:19]json_value_free [15:56:19]json_value_free done [15:56:19]process_json_proto returns [15:56:19]Send response to host [15:56:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82204,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [15:56:19]free response buf [15:56:19]execute_script done [15:56:19]execute_script returns [15:56:19]free content buf [15:56:19]Sock 7.Close socket [15:56:19]Sock 7.Thread stoped [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:47]accept exits with 9 [15:56:47]New connection [15:56:47]New thread 3066957156 created [15:56:47]Thread 3066813796 joined [15:56:47]Waiting for new connection... [15:56:47] Sock 9.Parse request [15:56:47]Sock 9.Check first char [15:56:47]Sock 9.First char is OK [15:56:47]request: POST /json_proto HTTP/1.0 [15:56:47]Method: POST [15:56:47]URL: /json_proto [15:56:47]Method is POST - this is cgi request [15:56:47]url: /json_proto [15:56:47]query_string will be loaded in cgi processing [15:56:47]execute_cgi json_proto POST (null) [15:56:47]execute_cgi path=json_proto method=POST [15:56:47]POST find Content-Length [15:56:47]Host: 172.17.44.67:8080 [15:56:47]Content-Length: 677 [15:56:47]Content-Type: application/json [15:56:47] [15:56:47]POST finish read [15:56:47]Found Content-Length = 677 [15:56:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:47]execute_script... [15:56: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)918710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:47]POST & json_proto [15:56:47]process_json_proto [15:56:47]json parsed OK: [15:56:47]protocol is kg_v1.0 [15:56:47]action value=close_receipt [15:56:47]process_action close_receipt [15:56:47]cmd_close_receipt [15:56:47]MH_GetDate [15:56:47]Write to MH i2c: F0 00 00 E8 05 DC [15:56:47]Write i2c OK [15:56:47]MH_I2C_Read... [15:56:47]Read from MH i2c: F0 [15:56:47]MH_I2C_Read... [15:56:47]Read from MH i2c: F0 09 00 [15:56:47]MH_I2C_Read... [15:56:47]Read from MH i2c: F0 09 00 E8 05 00 C0 33 11 67 F1 C7 6B 64 D7 [15:56:47]GetLastDocTimeStamp 1729180575 [15:56:47]current date 1729180608 [15:56:47]FM_GetShiftState [15:56:47]SAM_PROTO_GetShiftState [15:56:47]wFMCommunicate request_size=4 [15:56:47]MH_SAM_APDU [15:56:47]CAPDU: 80 13 01 00 [15:56:47]Write to MH i2c: E2 08 00 E9 05 80 13 01 00 00 00 00 00 6B [15:56:47]Write i2c OK [15:56:47]MH_I2C_Read... [15:56:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:47]Read from MH i2c: E2 [15:56:47]MH_I2C_Read... [15:56:47]Read from MH i2c: E2 0E 00 [15:56:47]MH_I2C_Read... [15:56:47]Read from MH i2c: E2 0E 00 E9 05 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 73 [15:56:47]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [15:56:47]wFMCommunicate OK [15:56:47]SAM_PROTO_GetShiftState done [15:56:47]FM_GetShiftState done [15:56:47]opened in 1729125927 [15:56:47]opened+sec_in_day 1729212327 [15:56:47]quantity*price = 50041 [15:56:47]sum+1 = 50042 [15:56:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 131 17.10.2024 15:56 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82205 ФПД: 70332027240466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T155648&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82205&fm=70332027240466&tin=02508201610067®Number=0000000000091680&sum=50000 [15:56:48]StoreToDocumentArchive [15:56:48]shift 525 fd 82205 [15:56:48]save to /storage/0525/doc_00082205 [15:56:48]save last doc name /storage/0525/doc_00082205 to /storage/kkm_last_doc_name [15:56:48]save OK [15:56:48]Clear old archive folders... [15:56:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:56:48]tlvbuf is 01C00390 [15:56:48]SAM_PROTO_ClearQueue [15:56:48]wFMCommunicate request_size=4 [15:56:48]MH_SAM_APDU [15:56:48]CAPDU: 80 09 00 00 [15:56:48]Write to MH i2c: E2 08 00 F6 05 80 09 00 00 00 00 00 00 6D [15:56:48]Write i2c OK [15:56:48]MH_I2C_Read... [15:56:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:48]Read from MH i2c: E2 [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: E2 03 00 [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: E2 03 00 F6 05 00 90 00 6F [15:56:48]RAPDU: 90 00 [15:56:48]wFMCommunicate OK [15:56:48]SAM_PROTO_ClearQueue done [15:56:48]KKMCreateOFDPacket [15:56:48]OFDProtocolAddRootSTLVToBuf [15:56:48]FM_MakeSignedData [15:56:48]FM_MakeSignedData [15:56:48]SAM_PROTO_SignData [15:56:48]wFMCommunicate request_size=4 [15:56:48]MH_SAM_APDU [15:56:48]CAPDU: 80 0D 01 02 [15:56:48]Write to MH i2c: E2 08 00 F7 05 80 0D 01 02 00 00 00 00 75 [15:56:48]Write i2c OK [15:56:48]MH_I2C_Read... [15:56:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:48]Read from MH i2c: E2 [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: E2 03 00 [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: E2 03 00 F7 05 00 90 00 70 [15:56:48]RAPDU: 90 00 [15:56:48]wFMCommunicate OK [15:56:48]wFMCommunicate request_size=255 [15:56:48]MH_SAM_APDU [15:56: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 C0 33 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1D 41 01 00 35 04 06 00 3F [15:56:48]Write to MH i2c: E2 02 01 F8 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 C0 33 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1D 41 01 00 35 04 06 00 3F 00 00 9C [15:56:48]Write i2c OK [15:56:48]MH_I2C_Read... [15:56:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:49]Read from MH i2c: E2 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 03 00 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 03 00 F8 05 00 90 00 71 [15:56:49]RAPDU: 90 00 [15:56:49]wFMCommunicate OK [15:56:49]wFMCommunicate request_size=10 [15:56:49]MH_SAM_APDU [15:56:49]CAPDU: 80 0D 02 02 05 F7 73 80 00 12 [15:56:49]Write to MH i2c: E2 0D 00 F9 05 80 0D 02 02 05 00 F7 73 80 00 12 00 00 7E [15:56:49]Write i2c OK [15:56:49]MH_I2C_Read... [15:56:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:49]Read from MH i2c: E2 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 03 00 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 03 00 F9 05 00 90 00 72 [15:56:49]RAPDU: 90 00 [15:56:49]wFMCommunicate OK [15:56:49]wFMCommunicate request_size=4 [15:56:49]MH_SAM_APDU [15:56:49]CAPDU: 80 0D 03 02 [15:56:49]Write to MH i2c: E2 08 00 FA 05 80 0D 03 02 00 00 00 00 7A [15:56:49]Write i2c OK [15:56:49]MH_I2C_Read... [15:56:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:49]Read from MH i2c: E2 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 0B 00 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 0B 00 FA 05 00 86 FA B6 59 CD 3C C7 B3 90 00 8D [15:56:49]RAPDU: 86 FA B6 59 CD 3C C7 B3 90 00 [15:56:49]wFMCommunicate OK [15:56:49]SAM_PROTO_SignData done [15:56:49]FM_MakeSignedData done [15:56:49]CreateOFDProtocolMessage [15:56:49]wFMCommunicate request_size=4 [15:56:49]MH_SAM_APDU [15:56:49]CAPDU: 80 11 00 00 [15:56:49]Write to MH i2c: E2 08 00 FB 05 80 11 00 00 00 00 00 00 7A [15:56:49]Write i2c OK [15:56:49]MH_I2C_Read... [15:56:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:49]Read from MH i2c: E2 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 17 00 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 17 00 FB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 CC [15:56:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:56:49]wFMCommunicate OK [15:56:49]CreateOFDProtocolMessage done [15:56:49]OFDSenderStorePacket 82205 [15:56:49]StoreOFDPacket docnum=82205 [15:56:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 EF B2 07 01 E4 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 C0 33 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1D 41 01 00 35 04 06 00 3F F7 73 80 00 12 86 FA B6 59 CD 3C C7 B3 [15:56:49]CheckFolder [15:56:49]dirname=/storage/ofd_packets [15:56:49]CheckFolder done [15:56:49]ProducePacketName [15:56:49]name=ofd_packets/00082205 [15:56:49]NVStorageSaveData ofd_packets/00082205 [15:56:49]File name is /storage/ofd_packets/00082205 [15:56:49]Write 301 bytes [15:56:49]NVStorageSaveData done [15:56:49]OFDSenderStorePacket done [15:56:49]KKMCreateOFDPacket done [15:56:49]NVStorageSaveData kkm_last_timestamp [15:56:49]File name is /storage/kkm_last_timestamp [15:56:49]Write 4 bytes [15:56:49]NVStorageSaveData done [15:56:49]ExternCall_PrintAddStr [15:56:49]wPrintStart [15:56:49]Write to MH i2c: 01 00 00 FC 05 01 [15:56:49]Write i2c OK [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: 01 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: 01 07 00 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: 01 07 00 FC 05 00 00 00 00 00 FF 0F 16 [15:56:49]RasterBufferAndPrint [15:56:49]line Счет N : (1)918710 [15:56:49]line ИНН: 02508201610067 [15:56:49]line Контрольно-Кассовый Чек [15:56:49]line ПРОДАЖА [15:56:49]line ТРК (МРК, ГНК) : 22 [15:56:49]line Товар: 2710124130 [15:56:49]line Аи-92-К-4 [15:56:49]line 7.480 * 66.90 [15:56:49]line = 500.41 [15:56:49]line НДС 12% НСП 1% [15:56:49]line > о реализуемом товаре [15:56:49]line ОКРУГЛЕНИЕ: -0.41 [15:56:49]line ИТОГО: 500.00 [15:56:49]line Внесено: 500.00 [15:56:49]line СДАЧА: 0.00 [15:56:49]line НСП 1% : 4.43 [15:56:49]line НДС 12% : 53.14 [15:56:49]line Наличными: 500.00 [15:56:49]line Безнал.: 0.00 [15:56:49]line Место: АЗС № 114 "Партнер Нефть" [15:56:49]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [15:56:49]line СНО: Общий режим [15:56:49]line Чек 131 17.10.2024 15:56 [15:56:49]line Смена: 525 ФФД: 1.0 [15:56:49]line ЗНМ: 0300000086 [15:56:49]line РНМ: 0000000000091680 [15:56:49]line Версия ККМ: 001 [15:56:49]line ФМ: 0000000000871843 [15:56:49]line ФД: 82205 [15:56:49]line ФПД: 70332027240466 [15:56:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T155648&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82205&fm=70332027240466&tin=02508201610067®Number=0000000000091680&sum=50000 [15:56:49]written 0, free lines is 4095 [15:56:49]OFD Sender: Processing packet 82205 [packets to send 254, broken 253] [15:56:49]ProducePacketName [15:56:49]name=ofd_packets/00082205 [15:56:49]OFD Sender: To server: pG, [15:56:49]CommunicateWithHost lk.salyk.kg:30040 [15:56:49]ConnectInit lk.salyk.kg [15:56:49]Write to MH i2c: 01 00 00 27 06 2D [15:56:49]Write i2c OK [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: 01 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: 01 07 00 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: 01 07 00 27 06 00 00 00 00 00 DC 0C 1C [15:56:49]RasterBufferAndPrint [15:56:49]line [15:56:49]line [15:56:49]line [15:56:49]line [15:56:49]line [15:56:49]written 0, free lines is 3298 [15:56:49]MH_Cut [15:56:49]Write to MH i2c: D1 01 00 2E 06 01 06 [15:56:49]Write i2c OK [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: D1 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: D1 01 00 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: D1 01 00 2E 06 00 05 [15:56:49]Write to MH i2c: 01 00 00 2F 06 35 [15:56:49]Write i2c OK [15:56:49]MH_I2C_Read... [15:56:50]Connected sock=10 [15:56:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 EF B2 07 01 E4 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 C0 33 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1D 41 01 00 35 04 06 00 3F F7 73 80 00 12 86 FA B6 59 CD 3C C7 B3 [15:56:50]*** Cut start [15:56:50]*** Partial cut [15:56:50]*** CUTSNS_PIN = 1 [15:56:50]*** CUTSNS_PIN = 0 [15:56:50]*** Brake cut motor [15:56:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 17 19 47 00 6E 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1D 41 01 00 F4 03 04 00 FE D8 10 67 B6 04 01 00 00 F5 CC CF 15 C8 2A C8 34 [15:56:50]CommunicateWithHost err = 0 [15:56:50]CheckOFDResponse [15:56:50]1017 (14) - 77093643461234 [15:56:50]1041 (16) - 0000000000871843 [15:56:50]1040 (4) - 82205 [15:56:50]1012 (4) - 17.10.2024 09:29 [15:56:50]1206 (1) - 0 [15:56:50]OFD Sender: Remove packet 82205 [15:56:50]ProducePacketName [15:56:50]name=ofd_packets/00082205 [15:56:50]NVStorageDeleteData [15:56:51]Read from MH i2c: 01 [15:56:51]MH_I2C_Read... [15:56:51]*** Stop cut motor [15:56:51]*** Cut end [15:56:51]Read from MH i2c: 01 07 00 [15:56:51]MH_I2C_Read... [15:56:51]Read from MH i2c: 01 07 00 2F 06 00 00 00 00 00 FF 0F 4A [15:56:51]process_action close_receipt done [15:56:51]requested_data is exist [15:56:51]produce_requested_data [15:56:51]requested_item fm.sn is exist - process it [15:56:51]wFMCommunicate request_size=4 [15:56:51]MH_SAM_APDU [15:56:51]CAPDU: 80 11 00 00 [15:56:51]Write to MH i2c: E2 08 00 30 06 80 11 00 00 00 00 00 00 B0 [15:56:51]Write i2c OK [15:56:51]MH_I2C_Read... [15:56:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:51]Read from MH i2c: E2 [15:56:51]MH_I2C_Read... [15:56:51]Read from MH i2c: E2 17 00 [15:56:51]MH_I2C_Read... [15:56:51]Read from MH i2c: E2 17 00 30 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 02 [15:56:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:56:51]wFMCommunicate OK [15:56:51]requested_item fd.num is exist - process it [15:56:51]SAM_PROTO_GetFieldsCounters [15:56:51]wFMCommunicate request_size=4 [15:56:51]MH_SAM_APDU [15:56:51]CAPDU: 80 13 00 00 [15:56:51]Write to MH i2c: E2 08 00 31 06 80 13 00 00 00 00 00 00 B3 [15:56:51]Write i2c OK [15:56:51]MH_I2C_Read... [15:56:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:51]OFD Sender: No OFD packet to send [15:56:51]Read from MH i2c: E2 [15:56:51]MH_I2C_Read... [15:56:51]Read from MH i2c: E2 62 00 [15:56:51]MH_I2C_Read... [15:56:51]Read from MH i2c: E2 62 00 31 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 1D 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [15:56:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 1D 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:56:51]wFMCommunicate OK [15:56:51]SAM_PROTO_GetFieldsCounters done [15:56:51]requested_item shift.num is exist - process it [15:56:51]requested_item shift.opened is exist - process it [15:56:51]req_shift_opened [15:56:51]FM_GetShiftState [15:56:51]SAM_PROTO_GetShiftState [15:56:51]wFMCommunicate request_size=4 [15:56:51]MH_SAM_APDU [15:56:51]CAPDU: 80 13 01 00 [15:56:51]Write to MH i2c: E2 08 00 32 06 80 13 01 00 00 00 00 00 B5 [15:56:51]Write i2c OK [15:56:51]MH_I2C_Read... [15:56:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:51]Read from MH i2c: E2 [15:56:51]MH_I2C_Read... [15:56:51]Read from MH i2c: E2 0E 00 [15:56:51]MH_I2C_Read... [15:56:51]Read from MH i2c: E2 0E 00 32 06 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 BD [15:56:51]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [15:56:51]wFMCommunicate OK [15:56:51]SAM_PROTO_GetShiftState done [15:56:51]FM_GetShiftState done [15:56:51]req_shift_opened done [15:56:51]requested_item shift.open_date is exist - process it [15:56:51]req_shift_open_date [15:56:51]req_shift_open_date done [15:56:51]produce_requested_data done [15:56:51]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82205,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [15:56:51]process_action_free close_receipt [15:56:51]json_value_free [15:56:51]json_value_free done [15:56:51]process_json_proto returns [15:56:51]Send response to host [15:56:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82205,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [15:56:51]free response buf [15:56:51]execute_script done [15:56:51]execute_script returns [15:56:51]free content buf [15:56:51]Sock 9.Close socket [15:56:51]Sock 9.Thread stoped [15:56:56]OFD Sender: No OFD packet to send [15:57:01]OFD Sender: No OFD packet to send [15:57:06]OFD Sender: No OFD packet to send [15:57:11]OFD Sender: No OFD packet to send [15:57:16]OFD Sender: No OFD packet to send [15:57:21]OFD Sender: No OFD packet to send [15:57:25]accept exits with 7 [15:57:25]New connection [15:57:25]New thread 3066813796 created [15:57:25]Thread 3066957156 joined [15:57:25]Waiting for new connection... [15:57:25] Sock 7.Parse request [15:57:25]Sock 7.Check first char [15:57:25]Sock 7.First char is OK [15:57:25]request: POST /json_proto HTTP/1.0 [15:57:25]Method: POST [15:57:25]URL: /json_proto [15:57:25]Method is POST - this is cgi request [15:57:25]url: /json_proto [15:57:25]query_string will be loaded in cgi processing [15:57:25]execute_cgi json_proto POST (null) [15:57:25]execute_cgi path=json_proto method=POST [15:57:25]POST find Content-Length [15:57:25]Host: 172.17.44.67:8080 [15:57:25]Content-Length: 687 [15:57:25]Content-Type: application/json [15:57:25] [15:57:25]POST finish read [15:57:25]Found Content-Length = 687 [15:57:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:25]execute_script... [15:57:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:25]POST & json_proto [15:57:25]process_json_proto [15:57:25]json parsed OK: [15:57:25]protocol is kg_v1.0 [15:57:25]action value=close_receipt [15:57:25]process_action close_receipt [15:57:25]cmd_close_receipt [15:57:25]MH_GetDate [15:57:25]Write to MH i2c: F0 00 00 33 06 28 [15:57:25]Write i2c OK [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: F0 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: F0 09 00 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: F0 09 00 33 06 00 E6 33 11 67 F1 C7 6B 64 49 [15:57:25]GetLastDocTimeStamp 1729180608 [15:57:25]current date 1729180646 [15:57:25]FM_GetShiftState [15:57:25]SAM_PROTO_GetShiftState [15:57:25]wFMCommunicate request_size=4 [15:57:25]MH_SAM_APDU [15:57:25]CAPDU: 80 13 01 00 [15:57:25]Write to MH i2c: E2 08 00 34 06 80 13 01 00 00 00 00 00 B7 [15:57:25]Write i2c OK [15:57:25]MH_I2C_Read... [15:57:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:25]Read from MH i2c: E2 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: E2 0E 00 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: E2 0E 00 34 06 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 BF [15:57:25]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [15:57:25]wFMCommunicate OK [15:57:25]SAM_PROTO_GetShiftState done [15:57:25]FM_GetShiftState done [15:57:25]opened in 1729125927 [15:57:25]opened+sec_in_day 1729212327 [15:57:25]quantity*price = 100050 [15:57:25]sum+1 = 100052 [15:57:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 132 17.10.2024 15:57 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82206 ФПД: 137452982532883 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T155726&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82206&fm=137452982532883&tin=02508201610067®Number=0000000000091680&sum=100000 [15:57:26]StoreToDocumentArchive [15:57:26]shift 525 fd 82206 [15:57:26]save to /storage/0525/doc_00082206 [15:57:26]save last doc name /storage/0525/doc_00082206 to /storage/kkm_last_doc_name [15:57:26]save OK [15:57:26]Clear old archive folders... [15:57:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:57:26]tlvbuf is 01C07210 [15:57:26]SAM_PROTO_ClearQueue [15:57:26]wFMCommunicate request_size=4 [15:57:26]MH_SAM_APDU [15:57:26]CAPDU: 80 09 00 00 [15:57:26]Write to MH i2c: E2 08 00 41 06 80 09 00 00 00 00 00 00 B9 [15:57:26]Write i2c OK [15:57:26]MH_I2C_Read... [15:57:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:26]Read from MH i2c: E2 [15:57:26]MH_I2C_Read... [15:57:26]Read from MH i2c: E2 03 00 [15:57:26]MH_I2C_Read... [15:57:26]Read from MH i2c: E2 03 00 41 06 00 90 00 BB [15:57:26]RAPDU: 90 00 [15:57:26]wFMCommunicate OK [15:57:26]SAM_PROTO_ClearQueue done [15:57:26]KKMCreateOFDPacket [15:57:26]OFDProtocolAddRootSTLVToBuf [15:57:26]FM_MakeSignedData [15:57:26]FM_MakeSignedData [15:57:26]SAM_PROTO_SignData [15:57:26]wFMCommunicate request_size=4 [15:57:26]MH_SAM_APDU [15:57:26]CAPDU: 80 0D 01 02 [15:57:26]Write to MH i2c: E2 08 00 42 06 80 0D 01 02 00 00 00 00 C1 [15:57:26]Write i2c OK [15:57:26]MH_I2C_Read... [15:57:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:26]Read from MH i2c: E2 [15:57:26]MH_I2C_Read... [15:57:26]Read from MH i2c: E2 03 00 [15:57:26]MH_I2C_Read... [15:57:26]Read from MH i2c: E2 03 00 42 06 00 90 00 BC [15:57:26]RAPDU: 90 00 [15:57:26]wFMCommunicate OK [15:57:26]wFMCommunicate request_size=255 [15:57:26]MH_SAM_APDU [15:57:26]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 E6 33 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1E 41 01 00 35 04 06 00 [15:57:26]Write to MH i2c: E2 02 01 43 06 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 E6 33 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1E 41 01 00 35 04 06 00 00 00 B0 [15:57:26]Write i2c OK [15:57:26]MH_I2C_Read... [15:57:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:27]Read from MH i2c: E2 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 03 00 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 03 00 43 06 00 90 00 BD [15:57:27]RAPDU: 90 00 [15:57:27]wFMCommunicate OK [15:57:27]wFMCommunicate request_size=11 [15:57:27]MH_SAM_APDU [15:57:27]CAPDU: 80 0D 02 02 06 7D 03 44 32 7B 13 [15:57:27]Write to MH i2c: E2 0E 00 44 06 80 0D 02 02 06 00 7D 03 44 32 7B 13 00 00 54 [15:57:27]Write i2c OK [15:57:27]MH_I2C_Read... [15:57:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:27]Read from MH i2c: E2 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 03 00 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 03 00 44 06 00 90 00 BE [15:57:27]RAPDU: 90 00 [15:57:27]wFMCommunicate OK [15:57:27]wFMCommunicate request_size=4 [15:57:27]MH_SAM_APDU [15:57:27]CAPDU: 80 0D 03 02 [15:57:27]Write to MH i2c: E2 08 00 45 06 80 0D 03 02 00 00 00 00 C6 [15:57:27]Write i2c OK [15:57:27]MH_I2C_Read... [15:57:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:27]Read from MH i2c: E2 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 0B 00 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 0B 00 45 06 00 09 D6 A0 80 2A 2E AA 25 90 00 ED [15:57:27]RAPDU: 09 D6 A0 80 2A 2E AA 25 90 00 [15:57:27]wFMCommunicate OK [15:57:27]SAM_PROTO_SignData done [15:57:27]FM_MakeSignedData done [15:57:27]CreateOFDProtocolMessage [15:57:27]wFMCommunicate request_size=4 [15:57:27]MH_SAM_APDU [15:57:27]CAPDU: 80 11 00 00 [15:57:27]Write to MH i2c: E2 08 00 46 06 80 11 00 00 00 00 00 00 C6 [15:57:27]Write i2c OK [15:57:27]MH_I2C_Read... [15:57:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:27]Read from MH i2c: E2 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 17 00 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 17 00 46 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 18 [15:57:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:57:27]wFMCommunicate OK [15:57:27]CreateOFDProtocolMessage done [15:57:27]OFDSenderStorePacket 82206 [15:57:27]StoreOFDPacket docnum=82206 [15:57:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 FC 21 08 01 AC 06 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 E6 33 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1E 41 01 00 35 04 06 00 7D 03 44 32 7B 13 09 D6 A0 80 2A 2E AA 25 [15:57:27]CheckFolder [15:57:27]dirname=/storage/ofd_packets [15:57:27]CheckFolder done [15:57:27]ProducePacketName [15:57:27]name=ofd_packets/00082206 [15:57:27]NVStorageSaveData ofd_packets/00082206 [15:57:27]File name is /storage/ofd_packets/00082206 [15:57:27]Write 302 bytes [15:57:27]NVStorageSaveData done [15:57:27]OFDSenderStorePacket done [15:57:27]KKMCreateOFDPacket done [15:57:27]NVStorageSaveData kkm_last_timestamp [15:57:27]File name is /storage/kkm_last_timestamp [15:57:27]Write 4 bytes [15:57:27]NVStorageSaveData done [15:57:27]ExternCall_PrintAddStr [15:57:27]wPrintStart [15:57:27]Write to MH i2c: 01 00 00 47 06 4D [15:57:27]Write i2c OK [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: 01 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: 01 07 00 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: 01 07 00 47 06 00 00 00 00 00 FF 0F 62 [15:57:27]RasterBufferAndPrint [15:57:27]line Счет N : (1)918711 [15:57:27]line ИНН: 02508201610067 [15:57:27]line Контрольно-Кассовый Чек [15:57:27]line ПРОДАЖА [15:57:27]line ТРК (МРК, ГНК) : 31 [15:57:27]line Товар: 2710194210 [15:57:27]line ДТ(л)-К-5 [15:57:27]line 13.130 * 76.20 [15:57:27]line = 1000.51 [15:57:27]line НДС 12% НСП 1% [15:57:27]line > о реализуемом товаре [15:57:27]line ОКРУГЛЕНИЕ: -0.51 [15:57:27]line ИТОГО: 1000.00 [15:57:27]line Внесено: 1000.00 [15:57:27]line СДАЧА: 0.00 [15:57:27]line НСП 1% : 8.85 [15:57:27]line НДС 12% : 106.25 [15:57:27]line Наличными: 1000.00 [15:57:27]line Безнал.: 0.00 [15:57:27]line Место: АЗС № 114 "Партнер Нефть" [15:57:27]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [15:57:27]line СНО: Общий режим [15:57:27]line Чек 132 17.10.2024 15:57 [15:57:27]line Смена: 525 ФФД: 1.0 [15:57:27]line ЗНМ: 0300000086 [15:57:27]line РНМ: 0000000000091680 [15:57:27]line Версия ККМ: 001 [15:57:27]line ФМ: 0000000000871843 [15:57:27]line ФД: 82206 [15:57:27]line ФПД: 137452982532883 [15:57:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T155726&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82206&fm=137452982532883&tin=02508201610067®Number=0000000000091680&sum=100000 [15:57:27]written 0, free lines is 4095 [15:57:27]OFD Sender: Processing packet 82206 [packets to send 254, broken 253] [15:57:27]ProducePacketName [15:57:27]name=ofd_packets/00082206 [15:57:27]OFD Sender: To server: pG, [15:57:27]CommunicateWithHost lk.salyk.kg:30040 [15:57:27]ConnectInit lk.salyk.kg [15:57:27]Write to MH i2c: 01 00 00 72 06 78 [15:57:27]Write i2c OK [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: 01 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: 01 07 00 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: 01 07 00 72 06 00 00 00 00 00 DD 0C 68 [15:57:27]RasterBufferAndPrint [15:57:27]line [15:57:27]line [15:57:27]line [15:57:27]line [15:57:27]line [15:57:27]written 0, free lines is 3299 [15:57:27]MH_Cut [15:57:27]Write to MH i2c: D1 01 00 79 06 01 51 [15:57:27]Write i2c OK [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: D1 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: D1 01 00 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: D1 01 00 79 06 00 50 [15:57:27]Write to MH i2c: 01 00 00 7A 06 80 [15:57:27]Connected sock=10 [15:57:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 FC 21 08 01 AC 06 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 E6 33 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1E 41 01 00 35 04 06 00 7D 03 44 32 7B 13 09 D6 A0 80 2A 2E AA 25 [15:57:27]Write i2c OK [15:57:27]MH_I2C_Read... [15:57:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 1E 49 47 00 E1 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1E 41 01 00 F4 03 04 00 24 D9 10 67 B6 04 01 00 00 77 B3 6F D5 74 CD 04 94 [15:57:28]CommunicateWithHost err = 0 [15:57:28]CheckOFDResponse [15:57:28]1017 (14) - 77093643461234 [15:57:28]1041 (16) - 0000000000871843 [15:57:28]1040 (4) - 82206 [15:57:28]1012 (4) - 17.10.2024 09:30 [15:57:28]1206 (1) - 0 [15:57:28]OFD Sender: Remove packet 82206 [15:57:28]ProducePacketName [15:57:28]name=ofd_packets/00082206 [15:57:28]NVStorageDeleteData [15:57:28]*** Cut start [15:57:28]*** Partial cut [15:57:28]*** CUTSNS_PIN = 1 [15:57:28]*** CUTSNS_PIN = 0 [15:57:28]OFD Sender: No OFD packet to send [15:57:28]*** Brake cut motor [15:57:29]Read from MH i2c: 01 [15:57:29]MH_I2C_Read... [15:57:29]*** Stop cut motor [15:57:29]*** Cut end [15:57:29]Read from MH i2c: 01 07 00 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: 01 07 00 7A 06 00 00 00 00 00 FF 0F 95 [15:57:29]process_action close_receipt done [15:57:29]requested_data is exist [15:57:29]produce_requested_data [15:57:29]requested_item fm.sn is exist - process it [15:57:29]wFMCommunicate request_size=4 [15:57:29]MH_SAM_APDU [15:57:29]CAPDU: 80 11 00 00 [15:57:29]Write to MH i2c: E2 08 00 7B 06 80 11 00 00 00 00 00 00 FB [15:57:29]Write i2c OK [15:57:29]MH_I2C_Read... [15:57:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:29]Read from MH i2c: E2 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: E2 17 00 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: E2 17 00 7B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 4D [15:57:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:57:29]wFMCommunicate OK [15:57:29]requested_item fd.num is exist - process it [15:57:29]SAM_PROTO_GetFieldsCounters [15:57:29]wFMCommunicate request_size=4 [15:57:29]MH_SAM_APDU [15:57:29]CAPDU: 80 13 00 00 [15:57:29]Write to MH i2c: E2 08 00 7C 06 80 13 00 00 00 00 00 00 FE [15:57:29]Write i2c OK [15:57:29]MH_I2C_Read... [15:57:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:29]Read from MH i2c: E2 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: E2 62 00 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: E2 62 00 7C 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 1E 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [15:57:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 1E 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:57:29]wFMCommunicate OK [15:57:29]SAM_PROTO_GetFieldsCounters done [15:57:29]requested_item shift.num is exist - process it [15:57:29]requested_item shift.opened is exist - process it [15:57:29]req_shift_opened [15:57:29]FM_GetShiftState [15:57:29]SAM_PROTO_GetShiftState [15:57:29]wFMCommunicate request_size=4 [15:57:29]MH_SAM_APDU [15:57:29]CAPDU: 80 13 01 00 [15:57:29]Write to MH i2c: E2 08 00 7D 06 80 13 01 00 00 00 00 00 00 [15:57:29]Write i2c OK [15:57:29]MH_I2C_Read... [15:57:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:29]Read from MH i2c: E2 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: E2 0E 00 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: E2 0E 00 7D 06 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 08 [15:57:29]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [15:57:29]wFMCommunicate OK [15:57:29]SAM_PROTO_GetShiftState done [15:57:29]FM_GetShiftState done [15:57:29]req_shift_opened done [15:57:29]requested_item shift.open_date is exist - process it [15:57:29]req_shift_open_date [15:57:29]req_shift_open_date done [15:57:29]produce_requested_data done [15:57:29]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82206,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [15:57:29]process_action_free close_receipt [15:57:29]json_value_free [15:57:29]json_value_free done [15:57:29]process_json_proto returns [15:57:29]Send response to host [15:57:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82206,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [15:57:29]free response buf [15:57:29]execute_script done [15:57:29]execute_script returns [15:57:29]free content buf [15:57:29]Sock 7.Close socket [15:57:29]Sock 7.Thread stoped [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:32]accept exits with 9 [15:58:32]New connection [15:58:32]New thread 3066957156 created [15:58:32]Thread 3066813796 joined [15:58:32]Waiting for new connection... [15:58:32] Sock 9.Parse request [15:58:32]Sock 9.Check first char [15:58:32]Sock 9.First char is OK [15:58:32]request: POST /json_proto HTTP/1.0 [15:58:32]Method: POST [15:58:32]URL: /json_proto [15:58:32]Method is POST - this is cgi request [15:58:32]url: /json_proto [15:58:32]query_string will be loaded in cgi processing [15:58:32]execute_cgi json_proto POST (null) [15:58:32]execute_cgi path=json_proto method=POST [15:58:32]POST find Content-Length [15:58:32]Host: 172.17.44.67:8080 [15:58:32]Content-Length: 682 [15:58:32]Content-Type: application/json [15:58:32] [15:58:32]POST finish read [15:58:32]Found Content-Length = 682 [15:58:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:32]execute_script... [15:58:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:32]POST & json_proto [15:58:32]process_json_proto [15:58:32]json parsed OK: [15:58:32]protocol is kg_v1.0 [15:58:32]action value=close_receipt [15:58:32]process_action close_receipt [15:58:32]cmd_close_receipt [15:58:32]MH_GetDate [15:58:32]Write to MH i2c: F0 00 00 7E 06 73 [15:58:32]Write i2c OK [15:58:32]MH_I2C_Read... [15:58:32]Read from MH i2c: F0 [15:58:32]MH_I2C_Read... [15:58:32]Read from MH i2c: F0 09 00 [15:58:32]MH_I2C_Read... [15:58:32]Read from MH i2c: F0 09 00 7E 06 00 29 34 11 67 F1 C7 6B 64 D8 [15:58:32]GetLastDocTimeStamp 1729180646 [15:58:32]current date 1729180713 [15:58:32]FM_GetShiftState [15:58:32]SAM_PROTO_GetShiftState [15:58:32]wFMCommunicate request_size=4 [15:58:32]MH_SAM_APDU [15:58:32]CAPDU: 80 13 01 00 [15:58:32]Write to MH i2c: E2 08 00 7F 06 80 13 01 00 00 00 00 00 02 [15:58:32]Write i2c OK [15:58:32]MH_I2C_Read... [15:58:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:32]Read from MH i2c: E2 [15:58:32]MH_I2C_Read... [15:58:32]Read from MH i2c: E2 0E 00 [15:58:32]MH_I2C_Read... [15:58:32]Read from MH i2c: E2 0E 00 7F 06 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 0A [15:58:32]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [15:58:32]wFMCommunicate OK [15:58:32]SAM_PROTO_GetShiftState done [15:58:32]FM_GetShiftState done [15:58:32]opened in 1729125927 [15:58:32]opened+sec_in_day 1729212327 [15:58:32]quantity*price = 100015 [15:58:32]sum+1 = 100017 [15:58:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 133 17.10.2024 15:58 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82207 ФПД: 104374387304310 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T155833&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82207&fm=104374387304310&tin=02508201610067®Number=0000000000091680&sum=100000 [15:58:33]StoreToDocumentArchive [15:58:33]shift 525 fd 82207 [15:58:33]save to /storage/0525/doc_00082207 [15:58:33]save last doc name /storage/0525/doc_00082207 to /storage/kkm_last_doc_name [15:58:33]save OK [15:58:33]Clear old archive folders... [15:58:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:58:33]tlvbuf is 01C14B60 [15:58:33]SAM_PROTO_ClearQueue [15:58:33]wFMCommunicate request_size=4 [15:58:33]MH_SAM_APDU [15:58:33]CAPDU: 80 09 00 00 [15:58:33]Write to MH i2c: E2 08 00 8C 06 80 09 00 00 00 00 00 00 04 [15:58:33]Write i2c OK [15:58:33]MH_I2C_Read... [15:58:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:58:33]Read from MH i2c: E2 [15:58:33]MH_I2C_Read... [15:58:33]Read from MH i2c: E2 03 00 [15:58:33]MH_I2C_Read... [15:58:33]Read from MH i2c: E2 03 00 8C 06 00 90 00 06 [15:58:33]RAPDU: 90 00 [15:58:33]wFMCommunicate OK [15:58:33]SAM_PROTO_ClearQueue done [15:58:33]KKMCreateOFDPacket [15:58:33]OFDProtocolAddRootSTLVToBuf [15:58:33]FM_MakeSignedData [15:58:33]FM_MakeSignedData [15:58:33]SAM_PROTO_SignData [15:58:33]wFMCommunicate request_size=4 [15:58:33]MH_SAM_APDU [15:58:33]CAPDU: 80 0D 01 02 [15:58:33]Write to MH i2c: E2 08 00 8D 06 80 0D 01 02 00 00 00 00 0C [15:58:33]Write i2c OK [15:58:33]MH_I2C_Read... [15:58:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:58:33]Read from MH i2c: E2 [15:58:33]MH_I2C_Read... [15:58:33]Read from MH i2c: E2 03 00 [15:58:33]MH_I2C_Read... [15:58:33]Read from MH i2c: E2 03 00 8D 06 00 90 00 07 [15:58:33]RAPDU: 90 00 [15:58:33]wFMCommunicate OK [15:58:33]wFMCommunicate request_size=255 [15:58:33]MH_SAM_APDU [15:58:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 29 34 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1F 41 01 00 35 04 06 00 5E [15:58:33]Write to MH i2c: E2 02 01 8E 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 29 34 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1F 41 01 00 35 04 06 00 5E 00 00 BA [15:58:33]Write i2c OK [15:58:33]MH_I2C_Read... [15:58:33]OFD Sender: No OFD packet to send [15:58:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:34]Read from MH i2c: E2 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: E2 03 00 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: E2 03 00 8E 06 00 90 00 08 [15:58:34]RAPDU: 90 00 [15:58:34]wFMCommunicate OK [15:58:34]wFMCommunicate request_size=10 [15:58:34]MH_SAM_APDU [15:58:34]CAPDU: 80 0D 02 02 05 ED 8E 47 67 76 [15:58:34]Write to MH i2c: E2 0D 00 8F 06 80 0D 02 02 05 00 ED 8E 47 67 76 00 00 B8 [15:58:34]Write i2c OK [15:58:34]MH_I2C_Read... [15:58:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:34]Read from MH i2c: E2 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: E2 03 00 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: E2 03 00 8F 06 00 90 00 09 [15:58:34]RAPDU: 90 00 [15:58:34]wFMCommunicate OK [15:58:34]wFMCommunicate request_size=4 [15:58:34]MH_SAM_APDU [15:58:34]CAPDU: 80 0D 03 02 [15:58:34]Write to MH i2c: E2 08 00 90 06 80 0D 03 02 00 00 00 00 11 [15:58:34]Write i2c OK [15:58:34]MH_I2C_Read... [15:58:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:58:34]Read from MH i2c: E2 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: E2 0B 00 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: E2 0B 00 90 06 00 AC 0D 17 9F 3D 98 4A AD 90 00 4D [15:58:34]RAPDU: AC 0D 17 9F 3D 98 4A AD 90 00 [15:58:34]wFMCommunicate OK [15:58:34]SAM_PROTO_SignData done [15:58:34]FM_MakeSignedData done [15:58:34]CreateOFDProtocolMessage [15:58:34]wFMCommunicate request_size=4 [15:58:34]MH_SAM_APDU [15:58:34]CAPDU: 80 11 00 00 [15:58:34]Write to MH i2c: E2 08 00 91 06 80 11 00 00 00 00 00 00 11 [15:58:34]Write i2c OK [15:58:34]MH_I2C_Read... [15:58:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:34]Read from MH i2c: E2 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: E2 17 00 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: E2 17 00 91 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 63 [15:58:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:58:34]wFMCommunicate OK [15:58:34]CreateOFDProtocolMessage done [15:58:34]OFDSenderStorePacket 82207 [15:58:34]StoreOFDPacket docnum=82207 [15:58:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 26 7B 07 01 08 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 29 34 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1F 41 01 00 35 04 06 00 5E ED 8E 47 67 76 AC 0D 17 9F 3D 98 4A AD [15:58:34]CheckFolder [15:58:34]dirname=/storage/ofd_packets [15:58:34]CheckFolder done [15:58:34]ProducePacketName [15:58:34]name=ofd_packets/00082207 [15:58:34]NVStorageSaveData ofd_packets/00082207 [15:58:34]File name is /storage/ofd_packets/00082207 [15:58:34]Write 301 bytes [15:58:34]NVStorageSaveData done [15:58:34]OFDSenderStorePacket done [15:58:34]KKMCreateOFDPacket done [15:58:34]NVStorageSaveData kkm_last_timestamp [15:58:34]File name is /storage/kkm_last_timestamp [15:58:34]Write 4 bytes [15:58:34]NVStorageSaveData done [15:58:34]ExternCall_PrintAddStr [15:58:34]wPrintStart [15:58:34]Write to MH i2c: 01 00 00 92 06 98 [15:58:34]Write i2c OK [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: 01 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: 01 07 00 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: 01 07 00 92 06 00 00 00 00 00 FF 0F AD [15:58:34]RasterBufferAndPrint [15:58:34]line Счет N : (1)918712 [15:58:34]line ИНН: 02508201610067 [15:58:34]line Контрольно-Кассовый Чек [15:58:34]line ПРОДАЖА [15:58:34]line ТРК (МРК, ГНК) : 22 [15:58:34]line Товар: 2710124130 [15:58:34]line Аи-92-К-4 [15:58:34]line 14.950 * 66.90 [15:58:34]line = 1000.16 [15:58:34]line НДС 12% НСП 1% [15:58:34]line > о реализуемом товаре [15:58:34]line ОКРУГЛЕНИЕ: -0.16 [15:58:34]line ИТОГО: 1000.00 [15:58:34]line Внесено: 1000.00 [15:58:34]line СДАЧА: 0.00 [15:58:34]line НСП 1% : 8.85 [15:58:34]line НДС 12% : 106.21 [15:58:34]line Наличными: 1000.00 [15:58:34]line Безнал.: 0.00 [15:58:34]line Место: АЗС № 114 "Партнер Нефть" [15:58:34]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [15:58:34]line СНО: Общий режим [15:58:34]line Чек 133 17.10.2024 15:58 [15:58:34]line Смена: 525 ФФД: 1.0 [15:58:34]line ЗНМ: 0300000086 [15:58:34]line РНМ: 0000000000091680 [15:58:34]line Версия ККМ: 001 [15:58:34]line ФМ: 0000000000871843 [15:58:34]line ФД: 82207 [15:58:34]line ФПД: 104374387304310 [15:58:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T155833&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82207&fm=104374387304310&tin=02508201610067®Number=0000000000091680&sum=100000 [15:58:34]written 0, free lines is 4095 [15:58:34]OFD Sender: Processing packet 82207 [packets to send 254, broken 253] [15:58:34]ProducePacketName [15:58:34]name=ofd_packets/00082207 [15:58:34]OFD Sender: To server: pG, [15:58:34]CommunicateWithHost lk.salyk.kg:30040 [15:58:34]ConnectInit lk.salyk.kg [15:58:34]Write to MH i2c: 01 00 00 BD 06 C3 [15:58:34]Write i2c OK [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: 01 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: 01 07 00 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: 01 07 00 BD 06 00 00 00 00 00 E4 0C BA [15:58:34]RasterBufferAndPrint [15:58:34]line [15:58:34]line [15:58:34]line [15:58:34]line [15:58:34]line [15:58:34]written 0, free lines is 3306 [15:58:34]MH_Cut [15:58:34]Write to MH i2c: D1 01 00 C4 06 01 9C [15:58:34]Write i2c OK [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: D1 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: D1 01 00 [15:58:34]MH_I2C_Read... [15:58:34]Read from MH i2c: D1 01 00 C4 06 00 9B [15:58:34]Write to MH i2c: 01 00 00 C5 06 CB [15:58:34]Write i2c OK [15:58:34]MH_I2C_Read... [15:58:35]Connected sock=10 [15:58:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 26 7B 07 01 08 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 29 34 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1F 41 01 00 35 04 06 00 5E ED 8E 47 67 76 AC 0D 17 9F 3D 98 4A AD [15:58:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 47 3D 47 00 8A 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1F 41 01 00 F4 03 04 00 67 D9 10 67 B6 04 01 00 00 15 FE 64 01 FE 30 AD 08 [15:58:35]CommunicateWithHost err = 0 [15:58:35]CheckOFDResponse [15:58:35]1017 (14) - 77093643461234 [15:58:35]1041 (16) - 0000000000871843 [15:58:35]1040 (4) - 82207 [15:58:35]1012 (4) - 17.10.2024 09:31 [15:58:35]1206 (1) - 0 [15:58:35]OFD Sender: Remove packet 82207 [15:58:35]ProducePacketName [15:58:35]name=ofd_packets/00082207 [15:58:35]NVStorageDeleteData [15:58:35]*** Cut start [15:58:35]*** Partial cut [15:58:35]*** CUTSNS_PIN = 1 [15:58:35]*** CUTSNS_PIN = 0 [15:58:35]*** Brake cut motor [15:58:35]OFD Sender: No OFD packet to send [15:58:36]Read from MH i2c: 01 [15:58:36]MH_I2C_Read... [15:58:36]*** Stop cut motor [15:58:36]*** Cut end [15:58:36]Read from MH i2c: 01 07 00 [15:58:36]MH_I2C_Read... [15:58:36]Read from MH i2c: 01 07 00 C5 06 00 00 00 00 00 FF 0F E0 [15:58:36]process_action close_receipt done [15:58:36]requested_data is exist [15:58:36]produce_requested_data [15:58:36]requested_item fm.sn is exist - process it [15:58:36]wFMCommunicate request_size=4 [15:58:36]MH_SAM_APDU [15:58:36]CAPDU: 80 11 00 00 [15:58:36]Write to MH i2c: E2 08 00 C6 06 80 11 00 00 00 00 00 00 46 [15:58:36]Write i2c OK [15:58:36]MH_I2C_Read... [15:58:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:36]Read from MH i2c: E2 [15:58:36]MH_I2C_Read... [15:58:36]Read from MH i2c: E2 17 00 [15:58:36]MH_I2C_Read... [15:58:36]Read from MH i2c: E2 17 00 C6 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 98 [15:58:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:58:36]wFMCommunicate OK [15:58:36]requested_item fd.num is exist - process it [15:58:36]SAM_PROTO_GetFieldsCounters [15:58:36]wFMCommunicate request_size=4 [15:58:36]MH_SAM_APDU [15:58:36]CAPDU: 80 13 00 00 [15:58:36]Write to MH i2c: E2 08 00 C7 06 80 13 00 00 00 00 00 00 49 [15:58:36]Write i2c OK [15:58:36]MH_I2C_Read... [15:58:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:36]Read from MH i2c: E2 [15:58:36]MH_I2C_Read... [15:58:36]Read from MH i2c: E2 62 00 [15:58:36]MH_I2C_Read... [15:58:36]Read from MH i2c: E2 62 00 C7 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 1F 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [15:58:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 1F 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:58:36]wFMCommunicate OK [15:58:36]SAM_PROTO_GetFieldsCounters done [15:58:36]requested_item shift.num is exist - process it [15:58:36]requested_item shift.opened is exist - process it [15:58:36]req_shift_opened [15:58:36]FM_GetShiftState [15:58:36]SAM_PROTO_GetShiftState [15:58:36]wFMCommunicate request_size=4 [15:58:36]MH_SAM_APDU [15:58:36]CAPDU: 80 13 01 00 [15:58:36]Write to MH i2c: E2 08 00 C8 06 80 13 01 00 00 00 00 00 4B [15:58:36]Write i2c OK [15:58:36]MH_I2C_Read... [15:58:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:36]Read from MH i2c: E2 [15:58:36]MH_I2C_Read... [15:58:36]Read from MH i2c: E2 0E 00 [15:58:36]MH_I2C_Read... [15:58:36]Read from MH i2c: E2 0E 00 C8 06 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 53 [15:58:36]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [15:58:36]wFMCommunicate OK [15:58:36]SAM_PROTO_GetShiftState done [15:58:36]FM_GetShiftState done [15:58:36]req_shift_opened done [15:58:36]requested_item shift.open_date is exist - process it [15:58:36]req_shift_open_date [15:58:36]req_shift_open_date done [15:58:36]produce_requested_data done [15:58:36]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82207,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [15:58:36]process_action_free close_receipt [15:58:36]json_value_free [15:58:36]json_value_free done [15:58:36]process_json_proto returns [15:58:36]Send response to host [15:58:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82207,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [15:58:36]free response buf [15:58:36]execute_script done [15:58:36]execute_script returns [15:58:36]free content buf [15:58:36]Sock 9.Close socket [15:58:36]Sock 9.Thread stoped [15:58:40]OFD Sender: No OFD packet to send [15:58:45]OFD Sender: No OFD packet to send [15:58:51]OFD Sender: No OFD packet to send [15:58:56]OFD Sender: No OFD packet to send [15:59:01]OFD Sender: No OFD packet to send [15:59:06]OFD Sender: No OFD packet to send [15:59:11]OFD Sender: No OFD packet to send [15:59:16]OFD Sender: No OFD packet to send [15:59:21]OFD Sender: No OFD packet to send [15:59:26]OFD Sender: No OFD packet to send [15:59:31]OFD Sender: No OFD packet to send [15:59:36]OFD Sender: No OFD packet to send [15:59:41]OFD Sender: No OFD packet to send [15:59:46]OFD Sender: No OFD packet to send [15:59:51]OFD Sender: No OFD packet to send [15:59:56]OFD Sender: No OFD packet to send [16:00:01]OFD Sender: No OFD packet to send [16:00:06]OFD Sender: No OFD packet to send [16:00:11]OFD Sender: No OFD packet to send [16:00:16]OFD Sender: No OFD packet to send [16:00:21]OFD Sender: No OFD packet to send [16:00:26]OFD Sender: No OFD packet to send [16:00:31]OFD Sender: No OFD packet to send [16:00:36]OFD Sender: No OFD packet to send [16:00:41]OFD Sender: No OFD packet to send [16:00:46]OFD Sender: No OFD packet to send [16:00:51]OFD Sender: No OFD packet to send [16:00:56]OFD Sender: No OFD packet to send [16:01:01]OFD Sender: No OFD packet to send [16:01:06]OFD Sender: No OFD packet to send [16:01:11]OFD Sender: No OFD packet to send [16:01:16]OFD Sender: No OFD packet to send [16:01:21]OFD Sender: No OFD packet to send [16:01:26]OFD Sender: No OFD packet to send [16:01:31]OFD Sender: No OFD packet to send [16:01:36]OFD Sender: No OFD packet to send [16:01:41]OFD Sender: No OFD packet to send [16:01:46]OFD Sender: No OFD packet to send [16:01:51]OFD Sender: No OFD packet to send [16:01:56]OFD Sender: No OFD packet to send [16:02:01]OFD Sender: No OFD packet to send [16:02:06]OFD Sender: No OFD packet to send [16:02:11]OFD Sender: No OFD packet to send [16:02:16]OFD Sender: No OFD packet to send [16:02:21]OFD Sender: No OFD packet to send [16:02:26]OFD Sender: No OFD packet to send [16:02:31]OFD Sender: No OFD packet to send [16:02:36]OFD Sender: No OFD packet to send [16:02:41]OFD Sender: No OFD packet to send [16:02:46]OFD Sender: No OFD packet to send [16:02:51]OFD Sender: No OFD packet to send [16:02:56]OFD Sender: No OFD packet to send [16:03:01]OFD Sender: No OFD packet to send [16:03:06]OFD Sender: No OFD packet to send [16:03:11]OFD Sender: No OFD packet to send [16:03:16]OFD Sender: No OFD packet to send [16:03:21]OFD Sender: No OFD packet to send [16:03:26]OFD Sender: No OFD packet to send [16:03:31]OFD Sender: No OFD packet to send [16:03:36]OFD Sender: No OFD packet to send [16:03:41]OFD Sender: No OFD packet to send [16:03:46]OFD Sender: No OFD packet to send [16:03:51]OFD Sender: No OFD packet to send [16:03:56]OFD Sender: No OFD packet to send [16:04:01]OFD Sender: No OFD packet to send [16:04:06]OFD Sender: No OFD packet to send [16:04:11]OFD Sender: No OFD packet to send [16:04:16]OFD Sender: No OFD packet to send [16:04:21]OFD Sender: No OFD packet to send [16:04:26]OFD Sender: No OFD packet to send [16:04:31]OFD Sender: No OFD packet to send [16:04:36]OFD Sender: No OFD packet to send [16:04:41]OFD Sender: No OFD packet to send [16:04:46]OFD Sender: No OFD packet to send [16:04:51]OFD Sender: No OFD packet to send [16:04:56]OFD Sender: No OFD packet to send [16:05:01]OFD Sender: No OFD packet to send [16:05:06]OFD Sender: No OFD packet to send [16:05:11]OFD Sender: No OFD packet to send [16:05:16]OFD Sender: No OFD packet to send [16:05:21]OFD Sender: No OFD packet to send [16:05:26]OFD Sender: No OFD packet to send [16:05:31]OFD Sender: No OFD packet to send [16:05:36]OFD Sender: No OFD packet to send [16:05:41]OFD Sender: No OFD packet to send [16:05:46]OFD Sender: No OFD packet to send [16:05:51]OFD Sender: No OFD packet to send [16:05:56]OFD Sender: No OFD packet to send [16:06:01]OFD Sender: No OFD packet to send [16:06:06]OFD Sender: No OFD packet to send [16:06:11]OFD Sender: No OFD packet to send [16:06:16]OFD Sender: No OFD packet to send [16:06:21]OFD Sender: No OFD packet to send [16:06:26]OFD Sender: No OFD packet to send [16:06:31]OFD Sender: No OFD packet to send [16:06:36]OFD Sender: No OFD packet to send [16:06:41]OFD Sender: No OFD packet to send [16:06:46]OFD Sender: No OFD packet to send [16:06:51]OFD Sender: No OFD packet to send [16:06:56]OFD Sender: No OFD packet to send [16:07:01]OFD Sender: No OFD packet to send [16:07:06]OFD Sender: No OFD packet to send [16:07:11]OFD Sender: No OFD packet to send [16:07:16]OFD Sender: No OFD packet to send [16:07:21]OFD Sender: No OFD packet to send [16:07:26]OFD Sender: No OFD packet to send [16:07:31]OFD Sender: No OFD packet to send [16:07:36]OFD Sender: No OFD packet to send [16:07:41]OFD Sender: No OFD packet to send [16:07:46]OFD Sender: No OFD packet to send [16:07:51]OFD Sender: No OFD packet to send [16:07:56]OFD Sender: No OFD packet to send [16:08:01]OFD Sender: No OFD packet to send [16:08:06]OFD Sender: No OFD packet to send [16:08:11]OFD Sender: No OFD packet to send [16:08:16]OFD Sender: No OFD packet to send [16:08:21]OFD Sender: No OFD packet to send [16:08:26]OFD Sender: No OFD packet to send [16:08:31]OFD Sender: No OFD packet to send [16:08:36]OFD Sender: No OFD packet to send [16:08:41]OFD Sender: No OFD packet to send [16:08:46]OFD Sender: No OFD packet to send [16:08:51]OFD Sender: No OFD packet to send [16:08:56]OFD Sender: No OFD packet to send [16:09:01]OFD Sender: No OFD packet to send [16:09:06]OFD Sender: No OFD packet to send [16:09:11]OFD Sender: No OFD packet to send [16:09:16]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:02]OFD Sender: No OFD packet to send [16:13:07]OFD Sender: No OFD packet to send [16:13:12]OFD Sender: No OFD packet to send [16:13:17]OFD Sender: No OFD packet to send [16:13:22]OFD Sender: No OFD packet to send [16:13:27]OFD Sender: No OFD packet to send [16:13:32]OFD Sender: No OFD packet to send [16:13:37]OFD Sender: No OFD packet to send [16:13:42]OFD Sender: No OFD packet to send [16:13:47]OFD Sender: No OFD packet to send [16:13:52]OFD Sender: No OFD packet to send [16:13:57]OFD Sender: No OFD packet to send [16:14:02]OFD Sender: No OFD packet to send [16:14:07]OFD Sender: No OFD packet to send [16:14:12]OFD Sender: No OFD packet to send [16:14:17]OFD Sender: No OFD packet to send [16:14:22]OFD Sender: No OFD packet to send [16:14:27]OFD Sender: No OFD packet to send [16:14:32]OFD Sender: No OFD packet to send [16:14:37]OFD Sender: No OFD packet to send [16:14:42]OFD Sender: No OFD packet to send [16:14:47]OFD Sender: No OFD packet to send [16:14:52]OFD Sender: No OFD packet to send [16:14:57]OFD Sender: No OFD packet to send [16:15:02]OFD Sender: No OFD packet to send [16:15:07]OFD Sender: No OFD packet to send [16:15:12]OFD Sender: No OFD packet to send [16:15:17]OFD Sender: No OFD packet to send [16:15:19]accept exits with 7 [16:15:19]New connection [16:15:19]New thread 3066813796 created [16:15:19]Thread 3066957156 joined [16:15:19]Waiting for new connection... [16:15:19] Sock 7.Parse request [16:15:19]Sock 7.Check first char [16:15:19]Sock 7.First char is OK [16:15:19]request: POST /json_proto HTTP/1.0 [16:15:19]Method: POST [16:15:19]URL: /json_proto [16:15:19]Method is POST - this is cgi request [16:15:19]url: /json_proto [16:15:19]query_string will be loaded in cgi processing [16:15:19]execute_cgi json_proto POST (null) [16:15:19]execute_cgi path=json_proto method=POST [16:15:19]POST find Content-Length [16:15:19]Host: 172.17.44.67:8080 [16:15:19]Content-Length: 682 [16:15:19]Content-Type: application/json [16:15:19] [16:15:19]POST finish read [16:15:19]Found Content-Length = 682 [16:15:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:19]execute_script... [16:15:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:19]POST & json_proto [16:15:19]process_json_proto [16:15:19]json parsed OK: [16:15:19]protocol is kg_v1.0 [16:15:19]action value=close_receipt [16:15:19]process_action close_receipt [16:15:19]cmd_close_receipt [16:15:19]MH_GetDate [16:15:19]Write to MH i2c: F0 00 00 C9 06 BE [16:15:19]Write i2c OK [16:15:19]MH_I2C_Read... [16:15:19]Read from MH i2c: F0 [16:15:19]MH_I2C_Read... [16:15:19]Read from MH i2c: F0 09 00 [16:15:19]MH_I2C_Read... [16:15:19]Read from MH i2c: F0 09 00 C9 06 00 18 38 11 67 F1 C7 6B 64 16 [16:15:19]GetLastDocTimeStamp 1729180713 [16:15:19]current date 1729181720 [16:15:19]FM_GetShiftState [16:15:19]SAM_PROTO_GetShiftState [16:15:19]wFMCommunicate request_size=4 [16:15:19]MH_SAM_APDU [16:15:19]CAPDU: 80 13 01 00 [16:15:19]Write to MH i2c: E2 08 00 CA 06 80 13 01 00 00 00 00 00 4D [16:15:19]Write i2c OK [16:15:19]MH_I2C_Read... [16:15:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:19]Read from MH i2c: E2 [16:15:19]MH_I2C_Read... [16:15:19]Read from MH i2c: E2 0E 00 [16:15:19]MH_I2C_Read... [16:15:19]Read from MH i2c: E2 0E 00 CA 06 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 55 [16:15:19]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [16:15:19]wFMCommunicate OK [16:15:19]SAM_PROTO_GetShiftState done [16:15:19]FM_GetShiftState done [16:15:19]opened in 1729125927 [16:15:19]opened+sec_in_day 1729212327 [16:15:19]quantity*price = 100015 [16:15:19]sum+1 = 100017 [16:15:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 134 17.10.2024 16:15 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82208 ФПД: 185722952480258 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T161520&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82208&fm=185722952480258&tin=02508201610067®Number=0000000000091680&sum=100000 [16:15:20]StoreToDocumentArchive [16:15:20]shift 525 fd 82208 [16:15:20]save to /storage/0525/doc_00082208 [16:15:20]save last doc name /storage/0525/doc_00082208 to /storage/kkm_last_doc_name [16:15:20]save OK [16:15:20]Clear old archive folders... [16:15:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:15:20]tlvbuf is 01BFBE30 [16:15:20]SAM_PROTO_ClearQueue [16:15:20]wFMCommunicate request_size=4 [16:15:20]MH_SAM_APDU [16:15:20]CAPDU: 80 09 00 00 [16:15:20]Write to MH i2c: E2 08 00 D7 06 80 09 00 00 00 00 00 00 4F [16:15:20]Write i2c OK [16:15:20]MH_I2C_Read... [16:15:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:15:20]Read from MH i2c: E2 [16:15:20]MH_I2C_Read... [16:15:20]Read from MH i2c: E2 03 00 [16:15:20]MH_I2C_Read... [16:15:20]Read from MH i2c: E2 03 00 D7 06 00 90 00 51 [16:15:20]RAPDU: 90 00 [16:15:20]wFMCommunicate OK [16:15:20]SAM_PROTO_ClearQueue done [16:15:20]KKMCreateOFDPacket [16:15:20]OFDProtocolAddRootSTLVToBuf [16:15:20]FM_MakeSignedData [16:15:20]FM_MakeSignedData [16:15:20]SAM_PROTO_SignData [16:15:20]wFMCommunicate request_size=4 [16:15:20]MH_SAM_APDU [16:15:20]CAPDU: 80 0D 01 02 [16:15:20]Write to MH i2c: E2 08 00 D8 06 80 0D 01 02 00 00 00 00 57 [16:15:20]Write i2c OK [16:15:20]MH_I2C_Read... [16:15:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:15:20]Read from MH i2c: E2 [16:15:20]MH_I2C_Read... [16:15:20]Read from MH i2c: E2 03 00 [16:15:20]MH_I2C_Read... [16:15:20]Read from MH i2c: E2 03 00 D8 06 00 90 00 52 [16:15:20]RAPDU: 90 00 [16:15:20]wFMCommunicate OK [16:15:20]wFMCommunicate request_size=255 [16:15:20]MH_SAM_APDU [16:15:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 18 38 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 20 41 01 00 35 04 06 00 A8 [16:15:20]Write to MH i2c: E2 02 01 D9 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 18 38 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 20 41 01 00 35 04 06 00 A8 00 00 44 [16:15:21]Write i2c OK [16:15:21]MH_I2C_Read... [16:15:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:21]Read from MH i2c: E2 [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: E2 03 00 [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: E2 03 00 D9 06 00 90 00 53 [16:15:21]RAPDU: 90 00 [16:15:21]wFMCommunicate OK [16:15:21]wFMCommunicate request_size=10 [16:15:21]MH_SAM_APDU [16:15:21]CAPDU: 80 0D 02 02 05 E9 FE 9B F6 02 [16:15:21]Write to MH i2c: E2 0D 00 DA 06 80 0D 02 02 05 00 E9 FE 9B F6 02 00 00 DE [16:15:21]Write i2c OK [16:15:21]MH_I2C_Read... [16:15:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:21]Read from MH i2c: E2 [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: E2 03 00 [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: E2 03 00 DA 06 00 90 00 54 [16:15:21]RAPDU: 90 00 [16:15:21]wFMCommunicate OK [16:15:21]wFMCommunicate request_size=4 [16:15:21]MH_SAM_APDU [16:15:21]CAPDU: 80 0D 03 02 [16:15:21]Write to MH i2c: E2 08 00 DB 06 80 0D 03 02 00 00 00 00 5C [16:15:21]Write i2c OK [16:15:21]MH_I2C_Read... [16:15:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:15:21]Read from MH i2c: E2 [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: E2 0B 00 [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: E2 0B 00 DB 06 00 62 6B 09 AF 1E 17 4D E2 90 00 46 [16:15:21]RAPDU: 62 6B 09 AF 1E 17 4D E2 90 00 [16:15:21]wFMCommunicate OK [16:15:21]SAM_PROTO_SignData done [16:15:21]FM_MakeSignedData done [16:15:21]CreateOFDProtocolMessage [16:15:21]wFMCommunicate request_size=4 [16:15:21]MH_SAM_APDU [16:15:21]CAPDU: 80 11 00 00 [16:15:21]Write to MH i2c: E2 08 00 DC 06 80 11 00 00 00 00 00 00 5C [16:15:21]Write i2c OK [16:15:21]MH_I2C_Read... [16:15:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:21]Read from MH i2c: E2 [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: E2 17 00 [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: E2 17 00 DC 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 AE [16:15:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:15:21]wFMCommunicate OK [16:15:21]CreateOFDProtocolMessage done [16:15:21]OFDSenderStorePacket 82208 [16:15:21]StoreOFDPacket docnum=82208 [16:15:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 9F FE 07 01 4F 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 18 38 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 20 41 01 00 35 04 06 00 A8 E9 FE 9B F6 02 62 6B 09 AF 1E 17 4D E2 [16:15:21]CheckFolder [16:15:21]dirname=/storage/ofd_packets [16:15:21]CheckFolder done [16:15:21]ProducePacketName [16:15:21]name=ofd_packets/00082208 [16:15:21]NVStorageSaveData ofd_packets/00082208 [16:15:21]File name is /storage/ofd_packets/00082208 [16:15:21]Write 301 bytes [16:15:21]NVStorageSaveData done [16:15:21]OFDSenderStorePacket done [16:15:21]KKMCreateOFDPacket done [16:15:21]NVStorageSaveData kkm_last_timestamp [16:15:21]File name is /storage/kkm_last_timestamp [16:15:21]Write 4 bytes [16:15:21]NVStorageSaveData done [16:15:21]ExternCall_PrintAddStr [16:15:21]wPrintStart [16:15:21]Write to MH i2c: 01 00 00 DD 06 E3 [16:15:21]Write i2c OK [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: 01 [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: 01 07 00 [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: 01 07 00 DD 06 00 00 00 00 00 FF 0F F8 [16:15:21]RasterBufferAndPrint [16:15:21]line Счет N : (1)918713 [16:15:21]line ИНН: 02508201610067 [16:15:21]line Контрольно-Кассовый Чек [16:15:21]line ПРОДАЖА [16:15:21]line ТРК (МРК, ГНК) : 22 [16:15:21]line Товар: 2710124130 [16:15:21]line Аи-92-К-4 [16:15:21]line 14.950 * 66.90 [16:15:21]line = 1000.16 [16:15:21]line НДС 12% НСП 1% [16:15:21]line > о реализуемом товаре [16:15:21]line ОКРУГЛЕНИЕ: -0.16 [16:15:21]line ИТОГО: 1000.00 [16:15:21]line Внесено: 1000.00 [16:15:21]line СДАЧА: 0.00 [16:15:21]line НСП 1% : 8.85 [16:15:21]line НДС 12% : 106.21 [16:15:21]line Наличными: 1000.00 [16:15:21]line Безнал.: 0.00 [16:15:21]line Место: АЗС № 114 "Партнер Нефть" [16:15:21]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [16:15:21]line СНО: Общий режим [16:15:21]line Чек 134 17.10.2024 16:15 [16:15:21]line Смена: 525 ФФД: 1.0 [16:15:21]line ЗНМ: 0300000086 [16:15:21]line РНМ: 0000000000091680 [16:15:21]line Версия ККМ: 001 [16:15:21]line ФМ: 0000000000871843 [16:15:21]line ФД: 82208 [16:15:21]line ФПД: 185722952480258 [16:15:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T161520&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82208&fm=185722952480258&tin=02508201610067®Number=0000000000091680&sum=100000 [16:15:21]written 0, free lines is 4095 [16:15:21]OFD Sender: Processing packet 82208 [packets to send 254, broken 253] [16:15:21]ProducePacketName [16:15:21]name=ofd_packets/00082208 [16:15:21]OFD Sender: To server: pG, [16:15:21]CommunicateWithHost lk.salyk.kg:30040 [16:15:21]ConnectInit lk.salyk.kg [16:15:21]Write to MH i2c: 01 00 00 08 07 0F [16:15:21]Write i2c OK [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: 01 [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: 01 07 00 [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: 01 07 00 08 07 00 00 00 00 00 D8 0C FA [16:15:21]RasterBufferAndPrint [16:15:21]line [16:15:21]line [16:15:21]line [16:15:21]line [16:15:21]line [16:15:21]written 0, free lines is 3296 [16:15:21]MH_Cut [16:15:21]Write to MH i2c: D1 01 00 0F 07 01 E8 [16:15:21]Write i2c OK [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: D1 [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: D1 01 00 [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: D1 01 00 0F 07 00 E7 [16:15:21]Write to MH i2c: 01 00 00 10 07 17 [16:15:21]Write i2c OK [16:15:21]MH_I2C_Read... [16:15:22]Connected sock=10 [16:15:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 9F FE 07 01 4F 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 18 38 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 20 41 01 00 35 04 06 00 A8 E9 FE 9B F6 02 62 6B 09 AF 1E 17 4D E2 [16:15:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 47 25 47 00 BC 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 20 41 01 00 F4 03 04 00 56 DD 10 67 B6 04 01 00 00 8E 9C B7 06 7E B0 B5 72 [16:15:22]CommunicateWithHost err = 0 [16:15:22]CheckOFDResponse [16:15:22]1017 (14) - 77093643461234 [16:15:22]1041 (16) - 0000000000871843 [16:15:22]1040 (4) - 82208 [16:15:22]1012 (4) - 17.10.2024 09:48 [16:15:22]1206 (1) - 0 [16:15:22]OFD Sender: Remove packet 82208 [16:15:22]ProducePacketName [16:15:22]name=ofd_packets/00082208 [16:15:22]NVStorageDeleteData [16:15:22]*** Cut start [16:15:22]*** Partial cut [16:15:22]*** CUTSNS_PIN = 1 [16:15:22]*** CUTSNS_PIN = 0 [16:15:22]*** Brake cut motor [16:15:23]OFD Sender: No OFD packet to send [16:15:23]Read from MH i2c: 01 [16:15:23]MH_I2C_Read... [16:15:23]*** Stop cut motor [16:15:23]*** Cut end [16:15:23]Read from MH i2c: 01 07 00 [16:15:23]MH_I2C_Read... [16:15:23]Read from MH i2c: 01 07 00 10 07 00 00 00 00 00 FF 0F 2C [16:15:23]process_action close_receipt done [16:15:23]requested_data is exist [16:15:23]produce_requested_data [16:15:23]requested_item fm.sn is exist - process it [16:15:23]wFMCommunicate request_size=4 [16:15:23]MH_SAM_APDU [16:15:23]CAPDU: 80 11 00 00 [16:15:23]Write to MH i2c: E2 08 00 11 07 80 11 00 00 00 00 00 00 92 [16:15:23]Write i2c OK [16:15:23]MH_I2C_Read... [16:15:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:23]Read from MH i2c: E2 [16:15:23]MH_I2C_Read... [16:15:23]Read from MH i2c: E2 17 00 [16:15:23]MH_I2C_Read... [16:15:23]Read from MH i2c: E2 17 00 11 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 E4 [16:15:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:15:23]wFMCommunicate OK [16:15:23]requested_item fd.num is exist - process it [16:15:23]SAM_PROTO_GetFieldsCounters [16:15:23]wFMCommunicate request_size=4 [16:15:23]MH_SAM_APDU [16:15:23]CAPDU: 80 13 00 00 [16:15:23]Write to MH i2c: E2 08 00 12 07 80 13 00 00 00 00 00 00 95 [16:15:23]Write i2c OK [16:15:23]MH_I2C_Read... [16:15:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:15:23]Read from MH i2c: E2 [16:15:23]MH_I2C_Read... [16:15:23]Read from MH i2c: E2 62 00 [16:15:23]MH_I2C_Read... [16:15:23]Read from MH i2c: E2 62 00 12 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 20 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [16:15:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 20 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:15:23]wFMCommunicate OK [16:15:23]SAM_PROTO_GetFieldsCounters done [16:15:23]requested_item shift.num is exist - process it [16:15:23]requested_item shift.opened is exist - process it [16:15:23]req_shift_opened [16:15:23]FM_GetShiftState [16:15:23]SAM_PROTO_GetShiftState [16:15:23]wFMCommunicate request_size=4 [16:15:23]MH_SAM_APDU [16:15:23]CAPDU: 80 13 01 00 [16:15:23]Write to MH i2c: E2 08 00 13 07 80 13 01 00 00 00 00 00 97 [16:15:23]Write i2c OK [16:15:23]MH_I2C_Read... [16:15:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:23]Read from MH i2c: E2 [16:15:23]MH_I2C_Read... [16:15:23]Read from MH i2c: E2 0E 00 [16:15:23]MH_I2C_Read... [16:15:23]Read from MH i2c: E2 0E 00 13 07 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 9F [16:15:23]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [16:15:23]wFMCommunicate OK [16:15:23]SAM_PROTO_GetShiftState done [16:15:23]FM_GetShiftState done [16:15:23]req_shift_opened done [16:15:23]requested_item shift.open_date is exist - process it [16:15:23]req_shift_open_date [16:15:23]req_shift_open_date done [16:15:23]produce_requested_data done [16:15:23]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82208,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [16:15:23]process_action_free close_receipt [16:15:23]json_value_free [16:15:23]json_value_free done [16:15:23]process_json_proto returns [16:15:23]Send response to host [16:15:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82208,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [16:15:23]free response buf [16:15:23]execute_script done [16:15:23]execute_script returns [16:15:23]free content buf [16:15:23]Sock 7.Close socket [16:15:23]Sock 7.Thread stoped [16:15:28]OFD Sender: No OFD packet to send [16:15:33]OFD Sender: No OFD packet to send [16:15:38]OFD Sender: No OFD packet to send [16:15:43]OFD Sender: No OFD packet to send [16:15:48]OFD Sender: No OFD packet to send [16:15:53]OFD Sender: No OFD packet to send [16:15:57]accept exits with 9 [16:15:57]New connection [16:15:57]New thread 3066957156 created [16:15:57]Thread 3066813796 joined [16:15:57]Waiting for new connection... [16:15:57] Sock 9.Parse request [16:15:57]Sock 9.Check first char [16:15:57]Sock 9.First char is OK [16:15:57]request: POST /json_proto HTTP/1.0 [16:15:57]Method: POST [16:15:57]URL: /json_proto [16:15:57]Method is POST - this is cgi request [16:15:57]url: /json_proto [16:15:57]query_string will be loaded in cgi processing [16:15:57]execute_cgi json_proto POST (null) [16:15:57]execute_cgi path=json_proto method=POST [16:15:57]POST find Content-Length [16:15:57]Host: 172.17.44.67:8080 [16:15:57]Content-Length: 759 [16:15:57]Content-Type: application/json [16:15:57] [16:15:57]POST finish read [16:15:57]Found Content-Length = 759 [16:15:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 13.130, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100418", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:57]execute_script... [16:15: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)918714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 13.130, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100418", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:57]POST & json_proto [16:15:57]process_json_proto [16:15:57]json parsed OK: [16:15:57]protocol is kg_v1.0 [16:15:57]action value=close_receipt [16:15:57]process_action close_receipt [16:15:57]cmd_close_receipt [16:15:57]MH_GetDate [16:15:57]Write to MH i2c: F0 00 00 14 07 0A [16:15:57]Write i2c OK [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: F0 [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: F0 09 00 [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: F0 09 00 14 07 00 3E 38 11 67 F1 C7 6B 64 88 [16:15:57]GetLastDocTimeStamp 1729181720 [16:15:57]current date 1729181758 [16:15:57]FM_GetShiftState [16:15:57]SAM_PROTO_GetShiftState [16:15:57]wFMCommunicate request_size=4 [16:15:57]MH_SAM_APDU [16:15:57]CAPDU: 80 13 01 00 [16:15:57]Write to MH i2c: E2 08 00 15 07 80 13 01 00 00 00 00 00 99 [16:15:57]Write i2c OK [16:15:57]MH_I2C_Read... [16:15:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:57]Read from MH i2c: E2 [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: E2 0E 00 [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: E2 0E 00 15 07 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 A1 [16:15:57]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [16:15:57]wFMCommunicate OK [16:15:57]SAM_PROTO_GetShiftState done [16:15:57]FM_GetShiftState done [16:15:57]opened in 1729125927 [16:15:57]opened+sec_in_day 1729212327 [16:15:57]quantity*price = 0 [16:15:57]sum+1 = 1 [16:15:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 135 17.10.2024 16:15 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30100418 ФМ: 0000000000871843 ФД: 82209 ФПД: 80029794188256 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T161558&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82209&fm=80029794188256&tin=02508201610067®Number=0000000000091680&sum=0 [16:15:58]StoreToDocumentArchive [16:15:58]shift 525 fd 82209 [16:15:58]save to /storage/0525/doc_00082209 [16:15:58]save last doc name /storage/0525/doc_00082209 to /storage/kkm_last_doc_name [16:15:58]save OK [16:15:58]Clear old archive folders... [16:15:58]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:15:58]tlvbuf is 01C14720 [16:15:58]SAM_PROTO_ClearQueue [16:15:58]wFMCommunicate request_size=4 [16:15:58]MH_SAM_APDU [16:15:58]CAPDU: 80 09 00 00 [16:15:58]Write to MH i2c: E2 08 00 22 07 80 09 00 00 00 00 00 00 9B [16:15:58]Write i2c OK [16:15:58]MH_I2C_Read... [16:15:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:15:58]Read from MH i2c: E2 [16:15:58]MH_I2C_Read... [16:15:58]Read from MH i2c: E2 03 00 [16:15:58]MH_I2C_Read... [16:15:58]Read from MH i2c: E2 03 00 22 07 00 90 00 9D [16:15:58]RAPDU: 90 00 [16:15:58]wFMCommunicate OK [16:15:58]SAM_PROTO_ClearQueue done [16:15:58]KKMCreateOFDPacket [16:15:58]OFDProtocolAddRootSTLVToBuf [16:15:58]FM_MakeSignedData [16:15:58]FM_MakeSignedData [16:15:58]SAM_PROTO_SignData [16:15:58]wFMCommunicate request_size=4 [16:15:58]MH_SAM_APDU [16:15:58]CAPDU: 80 0D 01 02 [16:15:58]Write to MH i2c: E2 08 00 23 07 80 0D 01 02 00 00 00 00 A3 [16:15:58]Write i2c OK [16:15:58]MH_I2C_Read... [16:15:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:15:58]Read from MH i2c: E2 [16:15:58]MH_I2C_Read... [16:15:58]Read from MH i2c: E2 03 00 [16:15:58]MH_I2C_Read... [16:15:58]Read from MH i2c: E2 03 00 23 07 00 90 00 9E [16:15:58]RAPDU: 90 00 [16:15:58]wFMCommunicate OK [16:15:58]wFMCommunicate request_size=255 [16:15:58]MH_SAM_APDU [16:15:58]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 3E 38 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 21 41 01 00 35 04 06 00 [16:15:58]Write to MH i2c: E2 02 01 24 07 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 3E 38 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 21 41 01 00 35 04 06 00 00 00 4A [16:15:58]Write i2c OK [16:15:58]MH_I2C_Read... [16:15:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:59]Read from MH i2c: E2 [16:15:59]MH_I2C_Read... [16:15:59]Read from MH i2c: E2 03 00 [16:15:59]MH_I2C_Read... [16:15:59]Read from MH i2c: E2 03 00 24 07 00 90 00 9F [16:15:59]RAPDU: 90 00 [16:15:59]wFMCommunicate OK [16:15:59]wFMCommunicate request_size=11 [16:15:59]MH_SAM_APDU [16:15:59]CAPDU: 80 0D 02 02 06 48 C9 63 74 3B E0 [16:15:59]Write to MH i2c: E2 0E 00 25 07 80 0D 02 02 06 00 48 C9 63 74 3B E0 00 00 B5 [16:15:59]Write i2c OK [16:15:59]MH_I2C_Read... [16:15:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:59]Read from MH i2c: E2 [16:15:59]MH_I2C_Read... [16:15:59]Read from MH i2c: E2 03 00 [16:15:59]MH_I2C_Read... [16:15:59]Read from MH i2c: E2 03 00 25 07 00 90 00 A0 [16:15:59]RAPDU: 90 00 [16:15:59]wFMCommunicate OK [16:15:59]wFMCommunicate request_size=4 [16:15:59]MH_SAM_APDU [16:15:59]CAPDU: 80 0D 03 02 [16:15:59]Write to MH i2c: E2 08 00 26 07 80 0D 03 02 00 00 00 00 A8 [16:15:59]Write i2c OK [16:15:59]MH_I2C_Read... [16:15:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:15:59]Read from MH i2c: E2 [16:15:59]MH_I2C_Read... [16:15:59]Read from MH i2c: E2 0B 00 [16:15:59]MH_I2C_Read... [16:15:59]Read from MH i2c: E2 0B 00 26 07 00 63 68 13 C0 10 7A 19 80 90 00 6A [16:15:59]RAPDU: 63 68 13 C0 10 7A 19 80 90 00 [16:15:59]wFMCommunicate OK [16:15:59]SAM_PROTO_SignData done [16:15:59]FM_MakeSignedData done [16:15:59]CreateOFDProtocolMessage [16:15:59]wFMCommunicate request_size=4 [16:15:59]MH_SAM_APDU [16:15:59]CAPDU: 80 11 00 00 [16:15:59]Write to MH i2c: E2 08 00 27 07 80 11 00 00 00 00 00 00 A8 [16:15:59]Write i2c OK [16:15:59]MH_I2C_Read... [16:15:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:59]Read from MH i2c: E2 [16:15:59]MH_I2C_Read... [16:15:59]Read from MH i2c: E2 17 00 [16:15:59]MH_I2C_Read... [16:15:59]Read from MH i2c: E2 17 00 27 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 FA [16:15:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:15:59]wFMCommunicate OK [16:15:59]CreateOFDProtocolMessage done [16:15:59]OFDSenderStorePacket 82209 [16:15:59]StoreOFDPacket docnum=82209 [16:15:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 A9 30 08 01 A6 BF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 3E 38 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 21 41 01 00 35 04 06 00 48 C9 63 74 3B E0 63 68 13 C0 10 7A 19 80 [16:15:59]CheckFolder [16:15:59]dirname=/storage/ofd_packets [16:15:59]CheckFolder done [16:15:59]ProducePacketName [16:15:59]name=ofd_packets/00082209 [16:15:59]NVStorageSaveData ofd_packets/00082209 [16:15:59]File name is /storage/ofd_packets/00082209 [16:15:59]Write 302 bytes [16:15:59]NVStorageSaveData done [16:15:59]OFDSenderStorePacket done [16:15:59]KKMCreateOFDPacket done [16:15:59]NVStorageSaveData kkm_last_timestamp [16:15:59]File name is /storage/kkm_last_timestamp [16:15:59]Write 4 bytes [16:15:59]NVStorageSaveData done [16:15:59]ExternCall_PrintAddStr [16:15:59]wPrintStart [16:15:59]Write to MH i2c: 01 00 00 28 07 2F [16:15:59]Write i2c OK [16:15:59]MH_I2C_Read... [16:15:59]Read from MH i2c: 01 [16:15:59]MH_I2C_Read... [16:15:59]Read from MH i2c: 01 07 00 [16:15:59]MH_I2C_Read... [16:15:59]Read from MH i2c: 01 07 00 28 07 00 00 00 00 00 FF 0F 44 [16:15:59]RasterBufferAndPrint [16:15:59]line Счет N : (1)918714 [16:15:59]line ИНН: 02508201610067 [16:15:59]line Контрольно-Кассовый Чек [16:15:59]line ПРОДАЖА [16:15:59]line ТРК (МРК, ГНК) : 31 [16:15:59]line Товар: 2710194210 [16:15:59]line ДТ(л)-К-5 [16:15:59]line 13.130 * 0.00 [16:15:59]line = 0.00 [16:15:59]line НДС 12% НСП 1% [16:15:59]line > о реализуемом товаре [16:15:59]line ИТОГО: 0.00 [16:15:59]line НСП 1% : 0.00 [16:15:59]line НДС 12% : 0.00 [16:15:59]line Наличными: 0.00 [16:15:59]line Безнал.: 0.00 [16:15:59]line Место: АЗС № 114 "Партнер Нефть" [16:15:59]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [16:15:59]line СНО: Общий режим [16:15:59]line Чек 135 17.10.2024 16:15 [16:15:59]line Смена: 525 ФФД: 1.0 [16:15:59]line ЗНМ: 0300000086 [16:15:59]line РНМ: 0000000000091680 [16:15:59]line Версия ККМ: 001 [16:15:59]line Талоны: ТК ГПНА Online [16:15:59]line 30100418 [16:15:59]line ФМ: 0000000000871843 [16:15:59]line ФД: 82209 [16:15:59]line ФПД: 80029794188256 [16:15:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T161558&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82209&fm=80029794188256&tin=02508201610067®Number=0000000000091680&sum=0 [16:15:59]OFD Sender: Processing packet 82209 [packets to send 254, broken 253] [16:15:59]ProducePacketName [16:15:59]name=ofd_packets/00082209 [16:15:59]OFD Sender: To server: pG, [16:15:59]CommunicateWithHost lk.salyk.kg:30040 [16:15:59]ConnectInit lk.salyk.kg [16:15:59]written 0, free lines is 4095 [16:16:00]Write to MH i2c: 01 00 00 52 07 59 [16:16:00]Write i2c OK [16:16:00]MH_I2C_Read... [16:16:00]Read from MH i2c: 01 [16:16:00]MH_I2C_Read... [16:16:00]Read from MH i2c: 01 07 00 [16:16:00]MH_I2C_Read... [16:16:00]Read from MH i2c: 01 07 00 52 07 00 00 00 00 00 DE 0C 4A [16:16:00]RasterBufferAndPrint [16:16:00]line [16:16:00]line [16:16:00]line [16:16:00]line [16:16:00]line [16:16:00]written 0, free lines is 3300 [16:16:00]MH_Cut [16:16:00]Write to MH i2c: D1 01 00 59 07 01 32 [16:16:00]Write i2c OK [16:16:00]MH_I2C_Read... [16:16:00]Read from MH i2c: D1 [16:16:00]MH_I2C_Read... [16:16:00]Read from MH i2c: D1 01 00 [16:16:00]MH_I2C_Read... [16:16:00]Read from MH i2c: D1 01 00 59 07 00 31 [16:16:00]Write to MH i2c: 01 00 00 5A 07 61 [16:16:00]Write i2c OK [16:16:00]MH_I2C_Read... [16:16:00]Connected sock=11 [16:16:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 A9 30 08 01 A6 BF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 3E 38 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 21 41 01 00 35 04 06 00 48 C9 63 74 3B E0 63 68 13 C0 10 7A 19 80 [16:16:00]*** Cut start [16:16:00]*** Partial cut [16:16:00]*** CUTSNS_PIN = 1 [16:16:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 E4 2C 47 00 D9 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 21 41 01 00 F4 03 04 00 7C DD 10 67 B6 04 01 00 00 BC 10 03 04 38 58 3A 61 [16:16:00]CommunicateWithHost err = 0 [16:16:00]CheckOFDResponse [16:16:00]1017 (14) - 77093643461234 [16:16:00]1041 (16) - 0000000000871843 [16:16:00]1040 (4) - 82209 [16:16:00]1012 (4) - 17.10.2024 09:48 [16:16:00]1206 (1) - 0 [16:16:00]OFD Sender: Remove packet 82209 [16:16:00]ProducePacketName [16:16:00]name=ofd_packets/00082209 [16:16:00]NVStorageDeleteData [16:16:01]*** CUTSNS_PIN = 0 [16:16:01]*** Brake cut motor [16:16:01]OFD Sender: No OFD packet to send [16:16:01]Read from MH i2c: 01 [16:16:01]MH_I2C_Read... [16:16:01]*** Stop cut motor [16:16:01]*** Cut end [16:16:01]Read from MH i2c: 01 07 00 [16:16:01]MH_I2C_Read... [16:16:01]Read from MH i2c: 01 07 00 5A 07 00 00 00 00 00 FF 0F 76 [16:16:01]process_action close_receipt done [16:16:01]requested_data is exist [16:16:01]produce_requested_data [16:16:01]requested_item fm.sn is exist - process it [16:16:01]wFMCommunicate request_size=4 [16:16:01]MH_SAM_APDU [16:16:01]CAPDU: 80 11 00 00 [16:16:01]Write to MH i2c: E2 08 00 5B 07 80 11 00 00 00 00 00 00 DC [16:16:01]Write i2c OK [16:16:01]MH_I2C_Read... [16:16:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:01]Read from MH i2c: E2 [16:16:01]MH_I2C_Read... [16:16:01]Read from MH i2c: E2 17 00 [16:16:01]MH_I2C_Read... [16:16:01]Read from MH i2c: E2 17 00 5B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 2E [16:16:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:16:01]wFMCommunicate OK [16:16:01]requested_item fd.num is exist - process it [16:16:01]SAM_PROTO_GetFieldsCounters [16:16:01]wFMCommunicate request_size=4 [16:16:01]MH_SAM_APDU [16:16:01]CAPDU: 80 13 00 00 [16:16:01]Write to MH i2c: E2 08 00 5C 07 80 13 00 00 00 00 00 00 DF [16:16:01]Write i2c OK [16:16:01]MH_I2C_Read... [16:16:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:01]Read from MH i2c: E2 [16:16:01]MH_I2C_Read... [16:16:01]Read from MH i2c: E2 62 00 [16:16:01]MH_I2C_Read... [16:16:01]Read from MH i2c: E2 62 00 5C 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 21 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [16:16:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 21 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:16:01]wFMCommunicate OK [16:16:01]SAM_PROTO_GetFieldsCounters done [16:16:01]requested_item shift.num is exist - process it [16:16:01]requested_item shift.opened is exist - process it [16:16:01]req_shift_opened [16:16:01]FM_GetShiftState [16:16:01]SAM_PROTO_GetShiftState [16:16:01]wFMCommunicate request_size=4 [16:16:01]MH_SAM_APDU [16:16:01]CAPDU: 80 13 01 00 [16:16:01]Write to MH i2c: E2 08 00 5D 07 80 13 01 00 00 00 00 00 E1 [16:16:01]Write i2c OK [16:16:01]MH_I2C_Read... [16:16:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:01]Read from MH i2c: E2 [16:16:01]MH_I2C_Read... [16:16:01]Read from MH i2c: E2 0E 00 [16:16:01]MH_I2C_Read... [16:16:01]Read from MH i2c: E2 0E 00 5D 07 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 E9 [16:16:01]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [16:16:01]wFMCommunicate OK [16:16:01]SAM_PROTO_GetShiftState done [16:16:01]FM_GetShiftState done [16:16:01]req_shift_opened done [16:16:01]requested_item shift.open_date is exist - process it [16:16:01]req_shift_open_date [16:16:01]req_shift_open_date done [16:16:01]produce_requested_data done [16:16:01]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82209,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [16:16:01]process_action_free close_receipt [16:16:01]json_value_free [16:16:01]json_value_free done [16:16:01]process_json_proto returns [16:16:01]Send response to host [16:16:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82209,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [16:16:01]free response buf [16:16:01]execute_script done [16:16:01]execute_script returns [16:16:01]free content buf [16:16:01]Sock 9.Close socket [16:16:01]Sock 9.Thread stoped [16:16:06]OFD Sender: No OFD packet to send [16:16:11]OFD Sender: No OFD packet to send [16:16:16]OFD Sender: No OFD packet to send [16:16:20]recv_with_timeout no data received [16:16:21]OFD Sender: No OFD packet to send [16:16:26]OFD Sender: No OFD packet to send [16:16:31]OFD Sender: No OFD packet to send [16:16:36]OFD Sender: No OFD packet to send [16:16:41]OFD Sender: No OFD packet to send [16:16:46]OFD Sender: No OFD packet to send [16:16:51]OFD Sender: No OFD packet to send [16:16:56]OFD Sender: No OFD packet to send [16:17:01]OFD Sender: No OFD packet to send [16:17:06]OFD Sender: No OFD packet to send [16:17:11]OFD Sender: No OFD packet to send [16:17:16]OFD Sender: No OFD packet to send [16:17:21]OFD Sender: No OFD packet to send [16:17:26]OFD Sender: No OFD packet to send [16:17:31]OFD Sender: No OFD packet to send [16:17:36]OFD Sender: No OFD packet to send [16:17:41]OFD Sender: No OFD packet to send [16:17:46]OFD Sender: No OFD packet to send [16:17:51]OFD Sender: No OFD packet to send [16:17:56]OFD Sender: No OFD packet to send [16:18:01]OFD Sender: No OFD packet to send [16:18:06]OFD Sender: No OFD packet to send [16:18:11]OFD Sender: No OFD packet to send [16:18:16]OFD Sender: No OFD packet to send [16:18:21]OFD Sender: No OFD packet to send [16:18:26]OFD Sender: No OFD packet to send [16:18:31]OFD Sender: No OFD packet to send [16:18:36]OFD Sender: No OFD packet to send [16:18:41]OFD Sender: No OFD packet to send [16:18:46]OFD Sender: No OFD packet to send [16:18:51]OFD Sender: No OFD packet to send [16:18:56]OFD Sender: No OFD packet to send [16:19:01]OFD Sender: No OFD packet to send [16:19:06]OFD Sender: No OFD packet to send [16:19:11]OFD Sender: No OFD packet to send [16:19:16]OFD Sender: No OFD packet to send [16:19:21]OFD Sender: No OFD packet to send [16:19:26]OFD Sender: No OFD packet to send [16:19:31]OFD Sender: No OFD packet to send [16:19:36]OFD Sender: No OFD packet to send [16:19:41]OFD Sender: No OFD packet to send [16:19:46]OFD Sender: No OFD packet to send [16:19:51]OFD Sender: No OFD packet to send [16:19:56]OFD Sender: No OFD packet to send [16:20:01]OFD Sender: No OFD packet to send [16:20:06]OFD Sender: No OFD packet to send [16:20:11]OFD Sender: No OFD packet to send [16:20:16]OFD Sender: No OFD packet to send [16:20:21]OFD Sender: No OFD packet to send [16:20:26]OFD Sender: No OFD packet to send [16:20:31]OFD Sender: No OFD packet to send [16:20:36]OFD Sender: No OFD packet to send [16:20:41]OFD Sender: No OFD packet to send [16:20:46]OFD Sender: No OFD packet to send [16:20:51]OFD Sender: No OFD packet to send [16:20:56]OFD Sender: No OFD packet to send [16:21:01]OFD Sender: No OFD packet to send [16:21:06]OFD Sender: No OFD packet to send [16:21:11]OFD Sender: No OFD packet to send [16:21:17]OFD Sender: No OFD packet to send [16:21:22]OFD Sender: No OFD packet to send [16:21:27]OFD Sender: No OFD packet to send [16:21:32]OFD Sender: No OFD packet to send [16:21:37]OFD Sender: No OFD packet to send [16:21:42]OFD Sender: No OFD packet to send [16:21:47]OFD Sender: No OFD packet to send [16:21:52]OFD Sender: No OFD packet to send [16:21:57]OFD Sender: No OFD packet to send [16:22:02]OFD Sender: No OFD packet to send [16:22:07]OFD Sender: No OFD packet to send [16:22:12]OFD Sender: No OFD packet to send [16:22:17]OFD Sender: No OFD packet to send [16:22:22]OFD Sender: No OFD packet to send [16:22:27]OFD Sender: No OFD packet to send [16:22:32]OFD Sender: No OFD packet to send [16:22:37]OFD Sender: No OFD packet to send [16:22:42]OFD Sender: No OFD packet to send [16:22:47]OFD Sender: No OFD packet to send [16:22:52]OFD Sender: No OFD packet to send [16:22:57]OFD Sender: No OFD packet to send [16:23:02]OFD Sender: No OFD packet to send [16:23:07]OFD Sender: No OFD packet to send [16:23:12]OFD Sender: No OFD packet to send [16:23:17]OFD Sender: No OFD packet to send [16:23:22]OFD Sender: No OFD packet to send [16:23:27]OFD Sender: No OFD packet to send [16:23:32]OFD Sender: No OFD packet to send [16:23:37]OFD Sender: No OFD packet to send [16:23:42]OFD Sender: No OFD packet to send [16:23:47]OFD Sender: No OFD packet to send [16:23:52]OFD Sender: No OFD packet to send [16:23:57]OFD Sender: No OFD packet to send [16:24:02]OFD Sender: No OFD packet to send [16:24:07]OFD Sender: No OFD packet to send [16:24:12]OFD Sender: No OFD packet to send [16:24:17]OFD Sender: No OFD packet to send [16:24:22]OFD Sender: No OFD packet to send [16:24:27]OFD Sender: No OFD packet to send [16:24:32]OFD Sender: No OFD packet to send [16:24:37]OFD Sender: No OFD packet to send [16:24:42]OFD Sender: No OFD packet to send [16:24:47]OFD Sender: No OFD packet to send [16:24:52]OFD Sender: No OFD packet to send [16:24:57]OFD Sender: No OFD packet to send [16:25:02]OFD Sender: No OFD packet to send [16:25:07]OFD Sender: No OFD packet to send [16:25:12]OFD Sender: No OFD packet to send [16:25:17]OFD Sender: No OFD packet to send [16:25:22]OFD Sender: No OFD packet to send [16:25:27]OFD Sender: No OFD packet to send [16:25:32]OFD Sender: No OFD packet to send [16:25:37]OFD Sender: No OFD packet to send [16:25:42]OFD Sender: No OFD packet to send [16:25:47]OFD Sender: No OFD packet to send [16:25:52]OFD Sender: No OFD packet to send [16:25:57]OFD Sender: No OFD packet to send [16:26:02]OFD Sender: No OFD packet to send [16:26:07]OFD Sender: No OFD packet to send [16:26:12]OFD Sender: No OFD packet to send [16:26:17]OFD Sender: No OFD packet to send [16:26:22]OFD Sender: No OFD packet to send [16:26:27]OFD Sender: No OFD packet to send [16:26:32]OFD Sender: No OFD packet to send [16:26:37]OFD Sender: No OFD packet to send [16:26:42]OFD Sender: No OFD packet to send [16:26:47]OFD Sender: No OFD packet to send [16:26:52]OFD Sender: No OFD packet to send [16:26:57]OFD Sender: No OFD packet to send [16:27:02]OFD Sender: No OFD packet to send [16:27:07]OFD Sender: No OFD packet to send [16:27:12]OFD Sender: No OFD packet to send [16:27:17]OFD Sender: No OFD packet to send [16:27:22]OFD Sender: No OFD packet to send [16:27:27]OFD Sender: No OFD packet to send [16:27:32]OFD Sender: No OFD packet to send [16:27:37]OFD Sender: No OFD packet to send [16:27:42]OFD Sender: No OFD packet to send [16:27:47]OFD Sender: No OFD packet to send [16:27:52]OFD Sender: No OFD packet to send [16:27:57]OFD Sender: No OFD packet to send [16:28:02]OFD Sender: No OFD packet to send [16:28:07]OFD Sender: No OFD packet to send [16:28:12]OFD Sender: No OFD packet to send [16:28:17]OFD Sender: No OFD packet to send [16:28:22]OFD Sender: No OFD packet to send [16:28:27]OFD Sender: No OFD packet to send [16:28:32]OFD Sender: No OFD packet to send [16:28:37]OFD Sender: No OFD packet to send [16:28:42]OFD Sender: No OFD packet to send [16:28:47]OFD Sender: No OFD packet to send [16:28:52]OFD Sender: No OFD packet to send [16:28:57]OFD Sender: No OFD packet to send [16:29:02]OFD Sender: No OFD packet to send [16:29:07]OFD Sender: No OFD packet to send [16:29:12]OFD Sender: No OFD packet to send [16:29:17]OFD Sender: No OFD packet to send [16:29:22]OFD Sender: No OFD packet to send [16:29:27]OFD Sender: No OFD packet to send [16:29:32]OFD Sender: No OFD packet to send [16:29:37]OFD Sender: No OFD packet to send [16:29:42]OFD Sender: No OFD packet to send [16:29:47]OFD Sender: No OFD packet to send [16:29:52]OFD Sender: No OFD packet to send [16:29:57]OFD Sender: No OFD packet to send [16:30:02]OFD Sender: No OFD packet to send [16:30:07]OFD Sender: No OFD packet to send [16:30:12]OFD Sender: No OFD packet to send [16:30:17]OFD Sender: No OFD packet to send [16:30:22]OFD Sender: No OFD packet to send [16:30:27]OFD Sender: No OFD packet to send [16:30:32]OFD Sender: No OFD packet to send [16:30:37]OFD Sender: No OFD packet to send [16:30:42]OFD Sender: No OFD packet to send [16:30:47]OFD Sender: No OFD packet to send [16:30:51]accept exits with 7 [16:30:51]New connection [16:30:51]New thread 3066813796 created [16:30:51]Thread 3066957156 joined [16:30:51]Waiting for new connection... [16:30:51] Sock 7.Parse request [16:30:51]Sock 7.Check first char [16:30:51]Sock 7.First char is OK [16:30:51]request: POST /json_proto HTTP/1.0 [16:30:51]Method: POST [16:30:51]URL: /json_proto [16:30:51]Method is POST - this is cgi request [16:30:51]url: /json_proto [16:30:51]query_string will be loaded in cgi processing [16:30:51]execute_cgi json_proto POST (null) [16:30:51]execute_cgi path=json_proto method=POST [16:30:51]POST find Content-Length [16:30:51]Host: 172.17.44.67:8080 [16:30:51]Content-Length: 677 [16:30:51]Content-Type: application/json [16:30:51] [16:30:51]POST finish read [16:30:51]Found Content-Length = 677 [16:30:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:51]execute_script... [16:30: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)918715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:51]POST & json_proto [16:30:51]process_json_proto [16:30:51]json parsed OK: [16:30:51]protocol is kg_v1.0 [16:30:51]action value=close_receipt [16:30:51]process_action close_receipt [16:30:51]cmd_close_receipt [16:30:51]MH_GetDate [16:30:51]Write to MH i2c: F0 00 00 5E 07 54 [16:30:51]Write i2c OK [16:30:51]MH_I2C_Read... [16:30:51]Read from MH i2c: F0 [16:30:51]MH_I2C_Read... [16:30:51]Read from MH i2c: F0 09 00 [16:30:51]MH_I2C_Read... [16:30:51]Read from MH i2c: F0 09 00 5E 07 00 BC 3B 11 67 F1 C7 6B 64 53 [16:30:51]GetLastDocTimeStamp 1729181758 [16:30:51]current date 1729182652 [16:30:51]FM_GetShiftState [16:30:51]SAM_PROTO_GetShiftState [16:30:51]wFMCommunicate request_size=4 [16:30:51]MH_SAM_APDU [16:30:51]CAPDU: 80 13 01 00 [16:30:51]Write to MH i2c: E2 08 00 5F 07 80 13 01 00 00 00 00 00 E3 [16:30:51]Write i2c OK [16:30:51]MH_I2C_Read... [16:30:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:51]Read from MH i2c: E2 [16:30:51]MH_I2C_Read... [16:30:51]Read from MH i2c: E2 0E 00 [16:30:51]MH_I2C_Read... [16:30:51]Read from MH i2c: E2 0E 00 5F 07 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 EB [16:30:51]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [16:30:51]wFMCommunicate OK [16:30:51]SAM_PROTO_GetShiftState done [16:30:51]FM_GetShiftState done [16:30:51]opened in 1729125927 [16:30:51]opened+sec_in_day 1729212327 [16:30:51]quantity*price = 35055 [16:30:51]sum+1 = 35057 [16:30:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 136 17.10.2024 16:30 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82210 ФПД: 28143983737946 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T163052&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82210&fm=28143983737946&tin=02508201610067®Number=0000000000091680&sum=35000 [16:30:52]StoreToDocumentArchive [16:30:52]shift 525 fd 82210 [16:30:52]save to /storage/0525/doc_00082210 [16:30:52]save last doc name /storage/0525/doc_00082210 to /storage/kkm_last_doc_name [16:30:52]save OK [16:30:52]Clear old archive folders... [16:30:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:30:52]tlvbuf is 01C13A70 [16:30:52]SAM_PROTO_ClearQueue [16:30:52]wFMCommunicate request_size=4 [16:30:52]MH_SAM_APDU [16:30:52]CAPDU: 80 09 00 00 [16:30:52]Write to MH i2c: E2 08 00 6C 07 80 09 00 00 00 00 00 00 E5 [16:30:52]Write i2c OK [16:30:52]MH_I2C_Read... [16:30:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:30:52]Read from MH i2c: E2 [16:30:52]MH_I2C_Read... [16:30:52]Read from MH i2c: E2 03 00 [16:30:52]MH_I2C_Read... [16:30:52]Read from MH i2c: E2 03 00 6C 07 00 90 00 E7 [16:30:52]RAPDU: 90 00 [16:30:52]wFMCommunicate OK [16:30:52]SAM_PROTO_ClearQueue done [16:30:52]KKMCreateOFDPacket [16:30:52]OFDProtocolAddRootSTLVToBuf [16:30:52]FM_MakeSignedData [16:30:52]FM_MakeSignedData [16:30:52]SAM_PROTO_SignData [16:30:52]wFMCommunicate request_size=4 [16:30:52]MH_SAM_APDU [16:30:52]CAPDU: 80 0D 01 02 [16:30:52]Write to MH i2c: E2 08 00 6D 07 80 0D 01 02 00 00 00 00 ED [16:30:52]Write i2c OK [16:30:52]MH_I2C_Read... [16:30:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:30:52]Read from MH i2c: E2 [16:30:52]MH_I2C_Read... [16:30:52]Read from MH i2c: E2 03 00 [16:30:52]MH_I2C_Read... [16:30:52]Read from MH i2c: E2 03 00 6D 07 00 90 00 E8 [16:30:52]RAPDU: 90 00 [16:30:52]wFMCommunicate OK [16:30:52]wFMCommunicate request_size=255 [16:30:52]MH_SAM_APDU [16:30:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 BC 3B 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 22 41 01 00 35 04 06 00 19 [16:30:52]Write to MH i2c: E2 02 01 6E 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 BC 3B 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 22 41 01 00 35 04 06 00 19 00 00 07 [16:30:52]Write i2c OK [16:30:52]MH_I2C_Read... [16:30:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:52]Read from MH i2c: E2 [16:30:52]MH_I2C_Read... [16:30:52]Read from MH i2c: E2 03 00 [16:30:52]MH_I2C_Read... [16:30:52]Read from MH i2c: E2 03 00 6E 07 00 90 00 E9 [16:30:52]RAPDU: 90 00 [16:30:52]wFMCommunicate OK [16:30:52]wFMCommunicate request_size=10 [16:30:52]MH_SAM_APDU [16:30:52]CAPDU: 80 0D 02 02 05 98 C8 27 3C 5A [16:30:52]Write to MH i2c: E2 0D 00 6F 07 80 0D 02 02 05 00 98 C8 27 3C 5A 00 00 17 [16:30:52]Write i2c OK [16:30:52]MH_I2C_Read... [16:30:52]OFD Sender: No OFD packet to send [16:30:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:52]Read from MH i2c: E2 [16:30:52]MH_I2C_Read... [16:30:52]Read from MH i2c: E2 03 00 [16:30:52]MH_I2C_Read... [16:30:52]Read from MH i2c: E2 03 00 6F 07 00 90 00 EA [16:30:52]RAPDU: 90 00 [16:30:52]wFMCommunicate OK [16:30:52]wFMCommunicate request_size=4 [16:30:52]MH_SAM_APDU [16:30:52]CAPDU: 80 0D 03 02 [16:30:52]Write to MH i2c: E2 08 00 70 07 80 0D 03 02 00 00 00 00 F2 [16:30:52]Write i2c OK [16:30:52]MH_I2C_Read... [16:30:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:30:53]Read from MH i2c: E2 [16:30:53]MH_I2C_Read... [16:30:53]Read from MH i2c: E2 0B 00 [16:30:53]MH_I2C_Read... [16:30:53]Read from MH i2c: E2 0B 00 70 07 00 DD 58 59 25 7E 74 52 3C 90 00 26 [16:30:53]RAPDU: DD 58 59 25 7E 74 52 3C 90 00 [16:30:53]wFMCommunicate OK [16:30:53]SAM_PROTO_SignData done [16:30:53]FM_MakeSignedData done [16:30:53]CreateOFDProtocolMessage [16:30:53]wFMCommunicate request_size=4 [16:30:53]MH_SAM_APDU [16:30:53]CAPDU: 80 11 00 00 [16:30:53]Write to MH i2c: E2 08 00 71 07 80 11 00 00 00 00 00 00 F2 [16:30:53]Write i2c OK [16:30:53]MH_I2C_Read... [16:30:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:53]Read from MH i2c: E2 [16:30:53]MH_I2C_Read... [16:30:53]Read from MH i2c: E2 17 00 [16:30:53]MH_I2C_Read... [16:30:53]Read from MH i2c: E2 17 00 71 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 44 [16:30:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:30:53]wFMCommunicate OK [16:30:53]CreateOFDProtocolMessage done [16:30:53]OFDSenderStorePacket 82210 [16:30:53]StoreOFDPacket docnum=82210 [16:30:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 2D B3 07 01 F0 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 BC 3B 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 22 41 01 00 35 04 06 00 19 98 C8 27 3C 5A DD 58 59 25 7E 74 52 3C [16:30:53]CheckFolder [16:30:53]dirname=/storage/ofd_packets [16:30:53]CheckFolder done [16:30:53]ProducePacketName [16:30:53]name=ofd_packets/00082210 [16:30:53]NVStorageSaveData ofd_packets/00082210 [16:30:53]File name is /storage/ofd_packets/00082210 [16:30:53]Write 301 bytes [16:30:53]NVStorageSaveData done [16:30:53]OFDSenderStorePacket done [16:30:53]KKMCreateOFDPacket done [16:30:53]NVStorageSaveData kkm_last_timestamp [16:30:53]File name is /storage/kkm_last_timestamp [16:30:53]Write 4 bytes [16:30:53]NVStorageSaveData done [16:30:53]ExternCall_PrintAddStr [16:30:53]wPrintStart [16:30:53]Write to MH i2c: 01 00 00 72 07 79 [16:30:53]Write i2c OK [16:30:53]MH_I2C_Read... [16:30:53]Read from MH i2c: 01 [16:30:53]MH_I2C_Read... [16:30:53]Read from MH i2c: 01 07 00 [16:30:53]MH_I2C_Read... [16:30:53]Read from MH i2c: 01 07 00 72 07 00 00 00 00 00 FF 0F 8E [16:30:53]RasterBufferAndPrint [16:30:53]line Счет N : (1)918715 [16:30:53]line ИНН: 02508201610067 [16:30:53]line Контрольно-Кассовый Чек [16:30:53]line ПРОДАЖА [16:30:53]line ТРК (МРК, ГНК) : 11 [16:30:53]line Товар: 2710124130 [16:30:53]line Аи-92-К-4 [16:30:53]line 5.240 * 66.90 [16:30:53]line = 350.56 [16:30:53]line НДС 12% НСП 1% [16:30:53]line > о реализуемом товаре [16:30:53]line ОКРУГЛЕНИЕ: -0.56 [16:30:53]line ИТОГО: 350.00 [16:30:53]line Внесено: 350.00 [16:30:53]line СДАЧА: 0.00 [16:30:53]line НСП 1% : 3.10 [16:30:53]line НДС 12% : 37.23 [16:30:53]line Наличными: 350.00 [16:30:53]line Безнал.: 0.00 [16:30:53]line Место: АЗС № 114 "Партнер Нефть" [16:30:53]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [16:30:53]line СНО: Общий режим [16:30:53]line Чек 136 17.10.2024 16:30 [16:30:53]line Смена: 525 ФФД: 1.0 [16:30:53]line ЗНМ: 0300000086 [16:30:53]line РНМ: 0000000000091680 [16:30:53]line Версия ККМ: 001 [16:30:53]line ФМ: 0000000000871843 [16:30:53]line ФД: 82210 [16:30:53]line ФПД: 28143983737946 [16:30:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T163052&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82210&fm=28143983737946&tin=02508201610067®Number=0000000000091680&sum=35000 [16:30:53]OFD Sender: Processing packet 82210 [packets to send 254, broken 253] [16:30:53]ProducePacketName [16:30:53]name=ofd_packets/00082210 [16:30:53]OFD Sender: To server: pG, [16:30:53]CommunicateWithHost lk.salyk.kg:30040 [16:30:53]ConnectInit lk.salyk.kg [16:30:53]written 0, free lines is 4095 [16:30:53]Connected sock=9 [16:30:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 2D B3 07 01 F0 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 BC 3B 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 22 41 01 00 35 04 06 00 19 98 C8 27 3C 5A DD 58 59 25 7E 74 52 3C [16:30:53]Write to MH i2c: 01 00 00 9D 07 A4 [16:30:53]Write i2c OK [16:30:53]MH_I2C_Read... [16:30:53]Read from MH i2c: 01 [16:30:53]MH_I2C_Read... [16:30:53]Read from MH i2c: 01 07 00 [16:30:53]MH_I2C_Read... [16:30:53]Read from MH i2c: 01 07 00 9D 07 00 00 00 00 00 EB 0C A2 [16:30:53]RasterBufferAndPrint [16:30:53]line [16:30:53]line [16:30:53]line [16:30:53]line [16:30:53]line [16:30:53]written 0, free lines is 3313 [16:30:53]MH_Cut [16:30:53]Write to MH i2c: D1 01 00 A4 07 01 7D [16:30:53]Write i2c OK [16:30:53]MH_I2C_Read... [16:30:53]Read from MH i2c: D1 [16:30:53]MH_I2C_Read... [16:30:53]Read from MH i2c: D1 01 00 [16:30:53]MH_I2C_Read... [16:30:53]Read from MH i2c: D1 01 00 A4 07 00 7C [16:30:53]Write to MH i2c: 01 00 00 A5 07 AC [16:30:53]Write i2c OK [16:30:53]MH_I2C_Read... [16:30:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 AA 5D 47 00 51 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 22 41 01 00 F4 03 04 00 FA E0 10 67 B6 04 01 00 00 64 68 2B 0C 32 1F D7 DB [16:30:54]CommunicateWithHost err = 0 [16:30:54]CheckOFDResponse [16:30:54]1017 (14) - 77093643461234 [16:30:54]1041 (16) - 0000000000871843 [16:30:54]1040 (4) - 82210 [16:30:54]1012 (4) - 17.10.2024 10:03 [16:30:54]1206 (1) - 0 [16:30:54]OFD Sender: Remove packet 82210 [16:30:54]ProducePacketName [16:30:54]name=ofd_packets/00082210 [16:30:54]NVStorageDeleteData [16:30:54]*** Cut start [16:30:54]*** Partial cut [16:30:54]*** CUTSNS_PIN = 1 [16:30:54]OFD Sender: No OFD packet to send [16:30:54]*** CUTSNS_PIN = 0 [16:30:54]*** Brake cut motor [16:30:55]Read from MH i2c: 01 [16:30:55]MH_I2C_Read... [16:30:55]*** Stop cut motor [16:30:55]*** Cut end [16:30:55]Read from MH i2c: 01 07 00 [16:30:55]MH_I2C_Read... [16:30:55]Read from MH i2c: 01 07 00 A5 07 00 00 00 00 00 FF 0F C1 [16:30:55]process_action close_receipt done [16:30:55]requested_data is exist [16:30:55]produce_requested_data [16:30:55]requested_item fm.sn is exist - process it [16:30:55]wFMCommunicate request_size=4 [16:30:55]MH_SAM_APDU [16:30:55]CAPDU: 80 11 00 00 [16:30:55]Write to MH i2c: E2 08 00 A6 07 80 11 00 00 00 00 00 00 27 [16:30:55]Write i2c OK [16:30:55]MH_I2C_Read... [16:30:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:55]Read from MH i2c: E2 [16:30:55]MH_I2C_Read... [16:30:55]Read from MH i2c: E2 17 00 [16:30:55]MH_I2C_Read... [16:30:55]Read from MH i2c: E2 17 00 A6 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 79 [16:30:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:30:55]wFMCommunicate OK [16:30:55]requested_item fd.num is exist - process it [16:30:55]SAM_PROTO_GetFieldsCounters [16:30:55]wFMCommunicate request_size=4 [16:30:55]MH_SAM_APDU [16:30:55]CAPDU: 80 13 00 00 [16:30:55]Write to MH i2c: E2 08 00 A7 07 80 13 00 00 00 00 00 00 2A [16:30:55]Write i2c OK [16:30:55]MH_I2C_Read... [16:30:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:30:55]Read from MH i2c: E2 [16:30:55]MH_I2C_Read... [16:30:55]Read from MH i2c: E2 62 00 [16:30:55]MH_I2C_Read... [16:30:55]Read from MH i2c: E2 62 00 A7 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 22 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [16:30:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 22 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:30:55]wFMCommunicate OK [16:30:55]SAM_PROTO_GetFieldsCounters done [16:30:55]requested_item shift.num is exist - process it [16:30:55]requested_item shift.opened is exist - process it [16:30:55]req_shift_opened [16:30:55]FM_GetShiftState [16:30:55]SAM_PROTO_GetShiftState [16:30:55]wFMCommunicate request_size=4 [16:30:55]MH_SAM_APDU [16:30:55]CAPDU: 80 13 01 00 [16:30:55]Write to MH i2c: E2 08 00 A8 07 80 13 01 00 00 00 00 00 2C [16:30:55]Write i2c OK [16:30:55]MH_I2C_Read... [16:30:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:55]Read from MH i2c: E2 [16:30:55]MH_I2C_Read... [16:30:55]Read from MH i2c: E2 0E 00 [16:30:55]MH_I2C_Read... [16:30:55]Read from MH i2c: E2 0E 00 A8 07 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 34 [16:30:55]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [16:30:55]wFMCommunicate OK [16:30:55]SAM_PROTO_GetShiftState done [16:30:55]FM_GetShiftState done [16:30:55]req_shift_opened done [16:30:55]requested_item shift.open_date is exist - process it [16:30:55]req_shift_open_date [16:30:55]req_shift_open_date done [16:30:55]produce_requested_data done [16:30:55]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82210,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [16:30:55]process_action_free close_receipt [16:30:55]json_value_free [16:30:55]json_value_free done [16:30:55]process_json_proto returns [16:30:55]Send response to host [16:30:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82210,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [16:30:55]free response buf [16:30:55]execute_script done [16:30:55]execute_script returns [16:30:55]free content buf [16:30:55]Sock 7.Close socket [16:30:55]Sock 7.Thread stoped [16:30:59]OFD Sender: No OFD packet to send [16:31:04]OFD Sender: No OFD packet to send [16:31:09]OFD Sender: No OFD packet to send [16:31:14]OFD Sender: No OFD packet to send [16:31:17]recv_with_timeout no data received [16:31:19]OFD Sender: No OFD packet to send [16:31:24]OFD Sender: No OFD packet to send [16:31:29]OFD Sender: No OFD packet to send [16:31:34]OFD Sender: No OFD packet to send [16:31:39]OFD Sender: No OFD packet to send [16:31:44]OFD Sender: No OFD packet to send [16:31:49]OFD Sender: No OFD packet to send [16:31:54]OFD Sender: No OFD packet to send [16:31:59]OFD Sender: No OFD packet to send [16:32:04]OFD Sender: No OFD packet to send [16:32:09]OFD Sender: No OFD packet to send [16:32:14]OFD Sender: No OFD packet to send [16:32:19]OFD Sender: No OFD packet to send [16:32:24]OFD Sender: No OFD packet to send [16:32:29]OFD Sender: No OFD packet to send [16:32:34]OFD Sender: No OFD packet to send [16:32:39]OFD Sender: No OFD packet to send [16:32:44]OFD Sender: No OFD packet to send [16:32:49]OFD Sender: No OFD packet to send [16:32:54]OFD Sender: No OFD packet to send [16:32:59]OFD Sender: No OFD packet to send [16:33:04]OFD Sender: No OFD packet to send [16:33:09]OFD Sender: No OFD packet to send [16:33:14]OFD Sender: No OFD packet to send [16:33:19]OFD Sender: No OFD packet to send [16:33:24]OFD Sender: No OFD packet to send [16:33:29]OFD Sender: No OFD packet to send [16:33:34]OFD Sender: No OFD packet to send [16:33:39]OFD Sender: No OFD packet to send [16:33:44]OFD Sender: No OFD packet to send [16:33:49]OFD Sender: No OFD packet to send [16:33:54]OFD Sender: No OFD packet to send [16:33:59]OFD Sender: No OFD packet to send [16:34:04]OFD Sender: No OFD packet to send [16:34:09]OFD Sender: No OFD packet to send [16:34:15]OFD Sender: No OFD packet to send [16:34:20]OFD Sender: No OFD packet to send [16:34:25]OFD Sender: No OFD packet to send [16:34:30]OFD Sender: No OFD packet to send [16:34:35]OFD Sender: No OFD packet to send [16:34:36]recv_with_timeout no data received [16:34:40]OFD Sender: No OFD packet to send [16:34:45]OFD Sender: No OFD packet to send [16:34:50]OFD Sender: No OFD packet to send [16:34:55]OFD Sender: No OFD packet to send [16:35:00]OFD Sender: No OFD packet to send [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:30]OFD Sender: No OFD packet to send [16:42:35]OFD Sender: No OFD packet to send [16:42:40]OFD Sender: No OFD packet to send [16:42:45]OFD Sender: No OFD packet to send [16:42:50]OFD Sender: No OFD packet to send [16:42:55]OFD Sender: No OFD packet to send [16:43:00]OFD Sender: No OFD packet to send [16:43:05]OFD Sender: No OFD packet to send [16:43:10]OFD Sender: No OFD packet to send [16:43:15]OFD Sender: No OFD packet to send [16:43:20]OFD Sender: No OFD packet to send [16:43:25]OFD Sender: No OFD packet to send [16:43:30]OFD Sender: No OFD packet to send [16:43:35]OFD Sender: No OFD packet to send [16:43:40]OFD Sender: No OFD packet to send [16:43:45]OFD Sender: No OFD packet to send [16:43:50]OFD Sender: No OFD packet to send [16:43:55]OFD Sender: No OFD packet to send [16:44:00]OFD Sender: No OFD packet to send [16:44:05]OFD Sender: No OFD packet to send [16:44:10]OFD Sender: No OFD packet to send [16:44:15]OFD Sender: No OFD packet to send [16:44:20]OFD Sender: No OFD packet to send [16:44:25]OFD Sender: No OFD packet to send [16:44:30]OFD Sender: No OFD packet to send [16:44:35]OFD Sender: No OFD packet to send [16:44:36]accept exits with 10 [16:44:36]New connection [16:44:36]New thread 3066957156 created [16:44:36]Thread 3066813796 joined [16:44:36]Waiting for new connection... [16:44:36] Sock 10.Parse request [16:44:36]Sock 10.Check first char [16:44:36]Sock 10.First char is OK [16:44:36]request: POST /json_proto HTTP/1.0 [16:44:36]Method: POST [16:44:36]URL: /json_proto [16:44:36]Method is POST - this is cgi request [16:44:36]url: /json_proto [16:44:36]query_string will be loaded in cgi processing [16:44:36]execute_cgi json_proto POST (null) [16:44:36]execute_cgi path=json_proto method=POST [16:44:36]POST find Content-Length [16:44:36]Host: 172.17.44.67:8080 [16:44:36]Content-Length: 767 [16:44:36]Content-Type: application/json [16:44:36] [16:44:36]POST finish read [16:44:36]Found Content-Length = 767 [16:44:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:36]execute_script... [16:44:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:36]POST & json_proto [16:44:36]process_json_proto [16:44:36]json parsed OK: [16:44:36]protocol is kg_v1.0 [16:44:36]action value=close_receipt [16:44:36]process_action close_receipt [16:44:36]cmd_close_receipt [16:44:36]MH_GetDate [16:44:36]Write to MH i2c: F0 00 00 A9 07 9F [16:44:36]Write i2c OK [16:44:36]MH_I2C_Read... [16:44:36]Read from MH i2c: F0 [16:44:36]MH_I2C_Read... [16:44:36]Read from MH i2c: F0 09 00 [16:44:36]MH_I2C_Read... [16:44:36]Read from MH i2c: F0 09 00 A9 07 00 F5 3E 11 67 F1 C7 6B 64 DA [16:44:36]GetLastDocTimeStamp 1729182652 [16:44:36]current date 1729183477 [16:44:36]FM_GetShiftState [16:44:36]SAM_PROTO_GetShiftState [16:44:36]wFMCommunicate request_size=4 [16:44:36]MH_SAM_APDU [16:44:36]CAPDU: 80 13 01 00 [16:44:36]Write to MH i2c: E2 08 00 AA 07 80 13 01 00 00 00 00 00 2E [16:44:36]Write i2c OK [16:44:36]MH_I2C_Read... [16:44:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:36]Read from MH i2c: E2 [16:44:36]MH_I2C_Read... [16:44:36]Read from MH i2c: E2 0E 00 [16:44:36]MH_I2C_Read... [16:44:36]Read from MH i2c: E2 0E 00 AA 07 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 36 [16:44:36]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [16:44:36]wFMCommunicate OK [16:44:36]SAM_PROTO_GetShiftState done [16:44:36]FM_GetShiftState done [16:44:36]opened in 1729125927 [16:44:36]opened+sec_in_day 1729212327 [16:44:36]quantity*price = 70044 [16:44:36]sum+1 = 70045 [16:44:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 137 17.10.2024 16:44 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82211 ФПД: 56142121159067 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T164437&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82211&fm=56142121159067&tin=02508201610067®Number=0000000000091680&sum=70044 [16:44:37]StoreToDocumentArchive [16:44:37]shift 525 fd 82211 [16:44:37]save to /storage/0525/doc_00082211 [16:44:37]save last doc name /storage/0525/doc_00082211 to /storage/kkm_last_doc_name [16:44:37]save OK [16:44:37]Clear old archive folders... [16:44:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:44:37]tlvbuf is 01C00390 [16:44:37]SAM_PROTO_ClearQueue [16:44:37]wFMCommunicate request_size=4 [16:44:37]MH_SAM_APDU [16:44:37]CAPDU: 80 09 00 00 [16:44:37]Write to MH i2c: E2 08 00 B7 07 80 09 00 00 00 00 00 00 30 [16:44:37]Write i2c OK [16:44:37]MH_I2C_Read... [16:44:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:44:38]Read from MH i2c: E2 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: E2 03 00 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: E2 03 00 B7 07 00 90 00 32 [16:44:38]RAPDU: 90 00 [16:44:38]wFMCommunicate OK [16:44:38]SAM_PROTO_ClearQueue done [16:44:38]KKMCreateOFDPacket [16:44:38]OFDProtocolAddRootSTLVToBuf [16:44:38]FM_MakeSignedData [16:44:38]FM_MakeSignedData [16:44:38]SAM_PROTO_SignData [16:44:38]wFMCommunicate request_size=4 [16:44:38]MH_SAM_APDU [16:44:38]CAPDU: 80 0D 01 02 [16:44:38]Write to MH i2c: E2 08 00 B8 07 80 0D 01 02 00 00 00 00 38 [16:44:38]Write i2c OK [16:44:38]MH_I2C_Read... [16:44:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:44:38]Read from MH i2c: E2 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: E2 03 00 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: E2 03 00 B8 07 00 90 00 33 [16:44:38]RAPDU: 90 00 [16:44:38]wFMCommunicate OK [16:44:38]wFMCommunicate request_size=255 [16:44:38]MH_SAM_APDU [16:44:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 F5 3E 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 23 41 01 00 35 04 06 00 33 [16:44:38]Write to MH i2c: E2 02 01 B9 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 F5 3E 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 23 41 01 00 35 04 06 00 33 00 00 07 [16:44:38]Write i2c OK [16:44:38]MH_I2C_Read... [16:44:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:38]Read from MH i2c: E2 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: E2 03 00 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: E2 03 00 B9 07 00 90 00 34 [16:44:38]RAPDU: 90 00 [16:44:38]wFMCommunicate OK [16:44:38]wFMCommunicate request_size=10 [16:44:38]MH_SAM_APDU [16:44:38]CAPDU: 80 0D 02 02 05 0F 9B 30 49 9B [16:44:38]Write to MH i2c: E2 0D 00 BA 07 80 0D 02 02 05 00 0F 9B 30 49 9B 00 00 03 [16:44:38]Write i2c OK [16:44:38]MH_I2C_Read... [16:44:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:38]Read from MH i2c: E2 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: E2 03 00 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: E2 03 00 BA 07 00 90 00 35 [16:44:38]RAPDU: 90 00 [16:44:38]wFMCommunicate OK [16:44:38]wFMCommunicate request_size=4 [16:44:38]MH_SAM_APDU [16:44:38]CAPDU: 80 0D 03 02 [16:44:38]Write to MH i2c: E2 08 00 BB 07 80 0D 03 02 00 00 00 00 3D [16:44:38]Write i2c OK [16:44:38]MH_I2C_Read... [16:44:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:44:38]Read from MH i2c: E2 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: E2 0B 00 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: E2 0B 00 BB 07 00 58 A7 02 C2 AF 5F 11 19 90 00 39 [16:44:38]RAPDU: 58 A7 02 C2 AF 5F 11 19 90 00 [16:44:38]wFMCommunicate OK [16:44:38]SAM_PROTO_SignData done [16:44:38]FM_MakeSignedData done [16:44:38]CreateOFDProtocolMessage [16:44:38]wFMCommunicate request_size=4 [16:44:38]MH_SAM_APDU [16:44:38]CAPDU: 80 11 00 00 [16:44:38]Write to MH i2c: E2 08 00 BC 07 80 11 00 00 00 00 00 00 3D [16:44:38]Write i2c OK [16:44:38]MH_I2C_Read... [16:44:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:38]Read from MH i2c: E2 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: E2 17 00 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: E2 17 00 BC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 8F [16:44:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:44:38]wFMCommunicate OK [16:44:38]CreateOFDProtocolMessage done [16:44:38]OFDSenderStorePacket 82211 [16:44:38]StoreOFDPacket docnum=82211 [16:44:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 74 75 07 01 6C CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 F5 3E 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 23 41 01 00 35 04 06 00 33 0F 9B 30 49 9B 58 A7 02 C2 AF 5F 11 19 [16:44:38]CheckFolder [16:44:38]dirname=/storage/ofd_packets [16:44:38]CheckFolder done [16:44:38]ProducePacketName [16:44:38]name=ofd_packets/00082211 [16:44:38]NVStorageSaveData ofd_packets/00082211 [16:44:38]File name is /storage/ofd_packets/00082211 [16:44:38]Write 301 bytes [16:44:38]NVStorageSaveData done [16:44:38]OFDSenderStorePacket done [16:44:38]KKMCreateOFDPacket done [16:44:38]NVStorageSaveData kkm_last_timestamp [16:44:38]File name is /storage/kkm_last_timestamp [16:44:38]Write 4 bytes [16:44:38]NVStorageSaveData done [16:44:38]ExternCall_PrintAddStr [16:44:38]wPrintStart [16:44:38]Write to MH i2c: 01 00 00 BD 07 C4 [16:44:38]Write i2c OK [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: 01 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: 01 07 00 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: 01 07 00 BD 07 00 00 00 00 00 FF 0F D9 [16:44:38]RasterBufferAndPrint [16:44:38]line Счет N : (1)918716 [16:44:38]line ИНН: 02508201610067 [16:44:38]line Контрольно-Кассовый Чек [16:44:38]line ПРОДАЖА [16:44:38]line ТРК (МРК, ГНК) : 11 [16:44:38]line Товар: 2710124130 [16:44:38]line Аи-92-К-4 [16:44:38]line 10.470 * 66.90 [16:44:38]line = 700.44 [16:44:38]line НДС 12% НСП 1% [16:44:38]line > о реализуемом товаре [16:44:38]line ИТОГО: 700.44 [16:44:38]line НСП 1% : 6.20 [16:44:38]line НДС 12% : 74.38 [16:44:38]line Наличными: 0.00 [16:44:38]line Безнал.: 700.44 [16:44:38]line Место: АЗС № 114 "Партнер Нефть" [16:44:38]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [16:44:38]line СНО: Общий режим [16:44:38]line Чек 137 17.10.2024 16:44 [16:44:38]line Смена: 525 ФФД: 1.0 [16:44:38]line ЗНМ: 0300000086 [16:44:38]line РНМ: 0000000000091680 [16:44:38]line Версия ККМ: 001 [16:44:38]line Платежная система: Mbank [16:44:38]line ФМ: 0000000000871843 [16:44:38]line ФД: 82211 [16:44:38]line ФПД: 56142121159067 [16:44:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T164437&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82211&fm=56142121159067&tin=02508201610067®Number=0000000000091680&sum=70044 [16:44:38]written 0, free lines is 4095 [16:44:38]OFD Sender: Processing packet 82211 [packets to send 254, broken 253] [16:44:38]ProducePacketName [16:44:38]name=ofd_packets/00082211 [16:44:38]OFD Sender: To server: pG, [16:44:38]CommunicateWithHost lk.salyk.kg:30040 [16:44:38]ConnectInit lk.salyk.kg [16:44:39]Write to MH i2c: 01 00 00 E6 07 ED [16:44:39]Write i2c OK [16:44:39]MH_I2C_Read... [16:44:39]Read from MH i2c: 01 [16:44:39]MH_I2C_Read... [16:44:39]Read from MH i2c: 01 07 00 [16:44:39]MH_I2C_Read... [16:44:39]Read from MH i2c: 01 07 00 E6 07 00 00 00 00 00 F6 0C F6 [16:44:39]RasterBufferAndPrint [16:44:39]line [16:44:39]line [16:44:39]line [16:44:39]line [16:44:39]line [16:44:39]written 0, free lines is 3322 [16:44:39]MH_Cut [16:44:39]Write to MH i2c: D1 01 00 ED 07 01 C6 [16:44:39]Write i2c OK [16:44:39]MH_I2C_Read... [16:44:39]Read from MH i2c: D1 [16:44:39]MH_I2C_Read... [16:44:39]Read from MH i2c: D1 01 00 [16:44:39]MH_I2C_Read... [16:44:39]Read from MH i2c: D1 01 00 ED 07 00 C5 [16:44:39]Write to MH i2c: 01 00 00 EE 07 F5 [16:44:39]Write i2c OK [16:44:39]MH_I2C_Read... [16:44:39]Connected sock=11 [16:44:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 74 75 07 01 6C CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 F5 3E 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 23 41 01 00 35 04 06 00 33 0F 9B 30 49 9B 58 A7 02 C2 AF 5F 11 19 [16:44:40]*** Cut start [16:44:40]*** Partial cut [16:44:40]*** CUTSNS_PIN = 1 [16:44:40]*** CUTSNS_PIN = 0 [16:44:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 BC C0 47 00 81 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 23 41 01 00 F4 03 04 00 33 E4 10 67 B6 04 01 00 00 60 3A 9F E5 CA BC 90 47 [16:44:40]CommunicateWithHost err = 0 [16:44:40]CheckOFDResponse [16:44:40]1017 (14) - 77093643461234 [16:44:40]1041 (16) - 0000000000871843 [16:44:40]1040 (4) - 82211 [16:44:40]1012 (4) - 17.10.2024 10:17 [16:44:40]1206 (1) - 0 [16:44:40]OFD Sender: Remove packet 82211 [16:44:40]ProducePacketName [16:44:40]name=ofd_packets/00082211 [16:44:40]NVStorageDeleteData [16:44:40]*** Brake cut motor [16:44:40]Read from MH i2c: 01 [16:44:40]MH_I2C_Read... [16:44:40]*** Stop cut motor [16:44:40]*** Cut end [16:44:40]Read from MH i2c: 01 07 00 [16:44:40]MH_I2C_Read... [16:44:40]Read from MH i2c: 01 07 00 EE 07 00 00 00 00 00 FF 0F 0A [16:44:40]process_action close_receipt done [16:44:40]requested_data is exist [16:44:40]produce_requested_data [16:44:40]requested_item fm.sn is exist - process it [16:44:40]wFMCommunicate request_size=4 [16:44:40]MH_SAM_APDU [16:44:40]CAPDU: 80 11 00 00 [16:44:40]Write to MH i2c: E2 08 00 EF 07 80 11 00 00 00 00 00 00 70 [16:44:40]Write i2c OK [16:44:40]MH_I2C_Read... [16:44:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:40]Read from MH i2c: E2 [16:44:40]MH_I2C_Read... [16:44:40]Read from MH i2c: E2 17 00 [16:44:40]MH_I2C_Read... [16:44:40]Read from MH i2c: E2 17 00 EF 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C2 [16:44:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:44:40]wFMCommunicate OK [16:44:40]requested_item fd.num is exist - process it [16:44:40]SAM_PROTO_GetFieldsCounters [16:44:40]wFMCommunicate request_size=4 [16:44:40]MH_SAM_APDU [16:44:40]CAPDU: 80 13 00 00 [16:44:40]Write to MH i2c: E2 08 00 F0 07 80 13 00 00 00 00 00 00 73 [16:44:40]Write i2c OK [16:44:40]MH_I2C_Read... [16:44:40]OFD Sender: No OFD packet to send [16:44:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:40]Read from MH i2c: E2 [16:44:40]MH_I2C_Read... [16:44:40]Read from MH i2c: E2 62 00 [16:44:40]MH_I2C_Read... [16:44:40]Read from MH i2c: E2 62 00 F0 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 23 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [16:44:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 23 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:44:40]wFMCommunicate OK [16:44:40]SAM_PROTO_GetFieldsCounters done [16:44:40]requested_item shift.num is exist - process it [16:44:40]requested_item shift.opened is exist - process it [16:44:40]req_shift_opened [16:44:40]FM_GetShiftState [16:44:40]SAM_PROTO_GetShiftState [16:44:40]wFMCommunicate request_size=4 [16:44:40]MH_SAM_APDU [16:44:40]CAPDU: 80 13 01 00 [16:44:40]Write to MH i2c: E2 08 00 F1 07 80 13 01 00 00 00 00 00 75 [16:44:40]Write i2c OK [16:44:40]MH_I2C_Read... [16:44:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:40]Read from MH i2c: E2 [16:44:40]MH_I2C_Read... [16:44:40]Read from MH i2c: E2 0E 00 [16:44:40]MH_I2C_Read... [16:44:40]Read from MH i2c: E2 0E 00 F1 07 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 7D [16:44:40]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [16:44:40]wFMCommunicate OK [16:44:40]SAM_PROTO_GetShiftState done [16:44:40]FM_GetShiftState done [16:44:40]req_shift_opened done [16:44:40]requested_item shift.open_date is exist - process it [16:44:40]req_shift_open_date [16:44:40]req_shift_open_date done [16:44:40]produce_requested_data done [16:44:40]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82211,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [16:44:40]process_action_free close_receipt [16:44:40]json_value_free [16:44:40]json_value_free done [16:44:40]process_json_proto returns [16:44:40]Send response to host [16:44:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82211,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [16:44:40]free response buf [16:44:40]execute_script done [16:44:40]execute_script returns [16:44:40]free content buf [16:44:40]Sock 10.Close socket [16:44:40]Sock 10.Thread stoped [16:44:45]OFD Sender: No OFD packet to send [16:44:50]OFD Sender: No OFD packet to send [16:44:55]OFD Sender: No OFD packet to send [16:45:00]recv_with_timeout no data received [16:45:00]OFD Sender: No OFD packet to send [16:45:05]OFD Sender: No OFD packet to send [16:45:10]OFD Sender: No OFD packet to send [16:45:12]accept exits with 7 [16:45:12]New connection [16:45:12]New thread 3066813796 created [16:45:12]Thread 3066957156 joined [16:45:12]Waiting for new connection... [16:45:12] Sock 7.Parse request [16:45:12]Sock 7.Check first char [16:45:12]Sock 7.First char is OK [16:45:12]request: POST /json_proto HTTP/1.0 [16:45:12]Method: POST [16:45:12]URL: /json_proto [16:45:12]Method is POST - this is cgi request [16:45:12]url: /json_proto [16:45:12]query_string will be loaded in cgi processing [16:45:12]execute_cgi json_proto POST (null) [16:45:12]execute_cgi path=json_proto method=POST [16:45:12]POST find Content-Length [16:45:12]Host: 172.17.44.67:8080 [16:45:12]Content-Length: 678 [16:45:12]Content-Type: application/json [16:45:12] [16:45:12]POST finish read [16:45:12]Found Content-Length = 678 [16:45:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:12]execute_script... [16:45:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:12]POST & json_proto [16:45:12]process_json_proto [16:45:12]json parsed OK: [16:45:12]protocol is kg_v1.0 [16:45:12]action value=close_receipt [16:45:12]process_action close_receipt [16:45:12]cmd_close_receipt [16:45:12]MH_GetDate [16:45:12]Write to MH i2c: F0 00 00 F2 07 E8 [16:45:12]Write i2c OK [16:45:12]MH_I2C_Read... [16:45:12]Read from MH i2c: F0 [16:45:12]MH_I2C_Read... [16:45:12]Read from MH i2c: F0 09 00 [16:45:12]MH_I2C_Read... [16:45:12]Read from MH i2c: F0 09 00 F2 07 00 19 3F 11 67 F1 C7 6B 64 48 [16:45:12]GetLastDocTimeStamp 1729183477 [16:45:12]current date 1729183513 [16:45:12]FM_GetShiftState [16:45:12]SAM_PROTO_GetShiftState [16:45:12]wFMCommunicate request_size=4 [16:45:12]MH_SAM_APDU [16:45:12]CAPDU: 80 13 01 00 [16:45:12]Write to MH i2c: E2 08 00 F3 07 80 13 01 00 00 00 00 00 77 [16:45:12]Write i2c OK [16:45:12]MH_I2C_Read... [16:45:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:12]Read from MH i2c: E2 [16:45:12]MH_I2C_Read... [16:45:12]Read from MH i2c: E2 0E 00 [16:45:12]MH_I2C_Read... [16:45:12]Read from MH i2c: E2 0E 00 F3 07 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 7F [16:45:12]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [16:45:12]wFMCommunicate OK [16:45:12]SAM_PROTO_GetShiftState done [16:45:12]FM_GetShiftState done [16:45:12]opened in 1729125927 [16:45:12]opened+sec_in_day 1729212327 [16:45:12]quantity*price = 70044 [16:45:12]sum+1 = 70045 [16:45:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 138 17.10.2024 16:45 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82212 ФПД: 233641660414874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T164513&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82212&fm=233641660414874&tin=02508201610067®Number=0000000000091680&sum=70000 [16:45:13]StoreToDocumentArchive [16:45:13]shift 525 fd 82212 [16:45:13]save to /storage/0525/doc_00082212 [16:45:13]save last doc name /storage/0525/doc_00082212 to /storage/kkm_last_doc_name [16:45:13]save OK [16:45:13]Clear old archive folders... [16:45:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:45:13]tlvbuf is 01B59C70 [16:45:13]SAM_PROTO_ClearQueue [16:45:13]wFMCommunicate request_size=4 [16:45:13]MH_SAM_APDU [16:45:13]CAPDU: 80 09 00 00 [16:45:13]Write to MH i2c: E2 08 00 00 08 80 09 00 00 00 00 00 00 7A [16:45:13]Write i2c OK [16:45:13]MH_I2C_Read... [16:45:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:45:13]Read from MH i2c: E2 [16:45:13]MH_I2C_Read... [16:45:13]Read from MH i2c: E2 03 00 [16:45:13]MH_I2C_Read... [16:45:13]Read from MH i2c: E2 03 00 00 08 00 90 00 7C [16:45:13]RAPDU: 90 00 [16:45:13]wFMCommunicate OK [16:45:13]SAM_PROTO_ClearQueue done [16:45:13]KKMCreateOFDPacket [16:45:13]OFDProtocolAddRootSTLVToBuf [16:45:13]FM_MakeSignedData [16:45:13]FM_MakeSignedData [16:45:13]SAM_PROTO_SignData [16:45:13]wFMCommunicate request_size=4 [16:45:13]MH_SAM_APDU [16:45:13]CAPDU: 80 0D 01 02 [16:45:13]Write to MH i2c: E2 08 00 01 08 80 0D 01 02 00 00 00 00 82 [16:45:13]Write i2c OK [16:45:13]MH_I2C_Read... [16:45:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:45:13]Read from MH i2c: E2 [16:45:13]MH_I2C_Read... [16:45:13]Read from MH i2c: E2 03 00 [16:45:13]MH_I2C_Read... [16:45:13]Read from MH i2c: E2 03 00 01 08 00 90 00 7D [16:45:13]RAPDU: 90 00 [16:45:13]wFMCommunicate OK [16:45:13]wFMCommunicate request_size=255 [16:45:13]MH_SAM_APDU [16:45:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 19 3F 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 24 41 01 00 35 04 06 00 D4 [16:45:13]Write to MH i2c: E2 02 01 02 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 19 3F 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 24 41 01 00 35 04 06 00 D4 00 00 C1 [16:45:13]Write i2c OK [16:45:13]MH_I2C_Read... [16:45:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:13]Read from MH i2c: E2 [16:45:13]MH_I2C_Read... [16:45:13]Read from MH i2c: E2 03 00 [16:45:13]MH_I2C_Read... [16:45:13]Read from MH i2c: E2 03 00 02 08 00 90 00 7E [16:45:13]RAPDU: 90 00 [16:45:13]wFMCommunicate OK [16:45:13]wFMCommunicate request_size=10 [16:45:13]MH_SAM_APDU [16:45:13]CAPDU: 80 0D 02 02 05 7E F0 2C 7B 9A [16:45:13]Write to MH i2c: E2 0D 00 03 08 80 0D 02 02 05 00 7E F0 2C 7B 9A 00 00 3E [16:45:13]Write i2c OK [16:45:13]MH_I2C_Read... [16:45:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:13]Read from MH i2c: E2 [16:45:13]MH_I2C_Read... [16:45:13]Read from MH i2c: E2 03 00 [16:45:13]MH_I2C_Read... [16:45:13]Read from MH i2c: E2 03 00 03 08 00 90 00 7F [16:45:13]RAPDU: 90 00 [16:45:13]wFMCommunicate OK [16:45:13]wFMCommunicate request_size=4 [16:45:13]MH_SAM_APDU [16:45:13]CAPDU: 80 0D 03 02 [16:45:13]Write to MH i2c: E2 08 00 04 08 80 0D 03 02 00 00 00 00 87 [16:45:13]Write i2c OK [16:45:13]MH_I2C_Read... [16:45:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:45:13]Read from MH i2c: E2 [16:45:13]MH_I2C_Read... [16:45:13]Read from MH i2c: E2 0B 00 [16:45:13]MH_I2C_Read... [16:45:13]Read from MH i2c: E2 0B 00 04 08 00 31 6C DC 13 95 51 F7 CD 90 00 BE [16:45:13]RAPDU: 31 6C DC 13 95 51 F7 CD 90 00 [16:45:13]wFMCommunicate OK [16:45:13]SAM_PROTO_SignData done [16:45:13]FM_MakeSignedData done [16:45:13]CreateOFDProtocolMessage [16:45:13]wFMCommunicate request_size=4 [16:45:13]MH_SAM_APDU [16:45:13]CAPDU: 80 11 00 00 [16:45:13]Write to MH i2c: E2 08 00 05 08 80 11 00 00 00 00 00 00 87 [16:45:13]Write i2c OK [16:45:13]MH_I2C_Read... [16:45:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:13]Read from MH i2c: E2 [16:45:13]MH_I2C_Read... [16:45:13]Read from MH i2c: E2 17 00 [16:45:13]MH_I2C_Read... [16:45:13]Read from MH i2c: E2 17 00 05 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D9 [16:45:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:45:13]wFMCommunicate OK [16:45:13]CreateOFDProtocolMessage done [16:45:13]OFDSenderStorePacket 82212 [16:45:13]StoreOFDPacket docnum=82212 [16:45:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 02 F9 07 01 8D 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 19 3F 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 24 41 01 00 35 04 06 00 D4 7E F0 2C 7B 9A 31 6C DC 13 95 51 F7 CD [16:45:13]CheckFolder [16:45:13]dirname=/storage/ofd_packets [16:45:13]CheckFolder done [16:45:13]ProducePacketName [16:45:13]name=ofd_packets/00082212 [16:45:13]NVStorageSaveData ofd_packets/00082212 [16:45:13]File name is /storage/ofd_packets/00082212 [16:45:13]Write 301 bytes [16:45:13]NVStorageSaveData done [16:45:13]OFDSenderStorePacket done [16:45:13]KKMCreateOFDPacket done [16:45:13]NVStorageSaveData kkm_last_timestamp [16:45:13]File name is /storage/kkm_last_timestamp [16:45:13]Write 4 bytes [16:45:13]NVStorageSaveData done [16:45:13]ExternCall_PrintAddStr [16:45:13]wPrintStart [16:45:13]Write to MH i2c: 01 00 00 06 08 0E [16:45:13]Write i2c OK [16:45:13]MH_I2C_Read... [16:45:13]Read from MH i2c: 01 [16:45:13]MH_I2C_Read... [16:45:13]Read from MH i2c: 01 07 00 [16:45:13]MH_I2C_Read... [16:45:13]Read from MH i2c: 01 07 00 06 08 00 00 00 00 00 FF 0F 23 [16:45:13]RasterBufferAndPrint [16:45:13]line Счет N : (1)918717 [16:45:13]line ИНН: 02508201610067 [16:45:13]line Контрольно-Кассовый Чек [16:45:13]line ПРОДАЖА [16:45:13]line ТРК (МРК, ГНК) : 22 [16:45:13]line Товар: 2710124130 [16:45:13]line Аи-92-К-4 [16:45:13]line 10.470 * 66.90 [16:45:13]line = 700.44 [16:45:13]line НДС 12% НСП 1% [16:45:13]line > о реализуемом товаре [16:45:13]line ОКРУГЛЕНИЕ: -0.44 [16:45:13]line ИТОГО: 700.00 [16:45:13]line Внесено: 700.00 [16:45:13]line СДАЧА: 0.00 [16:45:13]line НСП 1% : 6.20 [16:45:13]line НДС 12% : 74.38 [16:45:13]line Наличными: 700.00 [16:45:13]line Безнал.: 0.00 [16:45:13]line Место: АЗС № 114 "Партнер Нефть" [16:45:13]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [16:45:13]line СНО: Общий режим [16:45:13]line Чек 138 17.10.2024 16:45 [16:45:13]line Смена: 525 ФФД: 1.0 [16:45:13]line ЗНМ: 0300000086 [16:45:13]line РНМ: 0000000000091680 [16:45:13]line Версия ККМ: 001 [16:45:13]line ФМ: 0000000000871843 [16:45:13]line ФД: 82212 [16:45:13]line ФПД: 233641660414874 [16:45:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T164513&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82212&fm=233641660414874&tin=02508201610067®Number=0000000000091680&sum=70000 [16:45:14]OFD Sender: Processing packet 82212 [packets to send 254, broken 253] [16:45:14]ProducePacketName [16:45:14]name=ofd_packets/00082212 [16:45:14]OFD Sender: To server: pG, [16:45:14]CommunicateWithHost lk.salyk.kg:30040 [16:45:14]ConnectInit lk.salyk.kg [16:45:14]written 0, free lines is 4095 [16:45:14]Write to MH i2c: 01 00 00 31 08 39 [16:45:14]Write i2c OK [16:45:14]MH_I2C_Read... [16:45:14]Read from MH i2c: 01 [16:45:14]MH_I2C_Read... [16:45:14]Read from MH i2c: 01 07 00 [16:45:14]MH_I2C_Read... [16:45:14]Read from MH i2c: 01 07 00 31 08 00 00 00 00 00 D7 0C 23 [16:45:14]RasterBufferAndPrint [16:45:14]line [16:45:14]line [16:45:14]line [16:45:14]line [16:45:14]line [16:45:14]written 0, free lines is 3294 [16:45:14]MH_Cut [16:45:14]Write to MH i2c: D1 01 00 38 08 01 12 [16:45:14]Write i2c OK [16:45:14]MH_I2C_Read... [16:45:14]Read from MH i2c: D1 [16:45:14]MH_I2C_Read... [16:45:14]Read from MH i2c: D1 01 00 [16:45:14]MH_I2C_Read... [16:45:14]Read from MH i2c: D1 01 00 38 08 00 11 [16:45:14]Write to MH i2c: 01 00 00 39 08 41 [16:45:14]Write i2c OK [16:45:14]MH_I2C_Read... [16:45:15]*** Cut start [16:45:15]*** Partial cut [16:45:15]*** CUTSNS_PIN = 1 [16:45:15]*** CUTSNS_PIN = 0 [16:45:15]*** Brake cut motor [16:45:16]Read from MH i2c: 01 [16:45:16]MH_I2C_Read... [16:45:16]*** Stop cut motor [16:45:16]*** Cut end [16:45:16]Read from MH i2c: 01 07 00 [16:45:16]MH_I2C_Read... [16:45:16]Read from MH i2c: 01 07 00 39 08 00 00 00 00 00 FF 0F 56 [16:45:16]process_action close_receipt done [16:45:16]requested_data is exist [16:45:16]produce_requested_data [16:45:16]requested_item fm.sn is exist - process it [16:45:16]wFMCommunicate request_size=4 [16:45:16]MH_SAM_APDU [16:45:16]CAPDU: 80 11 00 00 [16:45:16]Write to MH i2c: E2 08 00 3A 08 80 11 00 00 00 00 00 00 BC [16:45:16]Write i2c OK [16:45:16]MH_I2C_Read... [16:45:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:16]Read from MH i2c: E2 [16:45:16]MH_I2C_Read... [16:45:16]Read from MH i2c: E2 17 00 [16:45:16]MH_I2C_Read... [16:45:16]Read from MH i2c: E2 17 00 3A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 0E [16:45:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:45:16]wFMCommunicate OK [16:45:16]requested_item fd.num is exist - process it [16:45:16]SAM_PROTO_GetFieldsCounters [16:45:16]wFMCommunicate request_size=4 [16:45:16]MH_SAM_APDU [16:45:16]CAPDU: 80 13 00 00 [16:45:16]Write to MH i2c: E2 08 00 3B 08 80 13 00 00 00 00 00 00 BF [16:45:16]Write i2c OK [16:45:16]MH_I2C_Read... [16:45:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:45:16]Read from MH i2c: E2 [16:45:16]MH_I2C_Read... [16:45:16]Read from MH i2c: E2 62 00 [16:45:16]MH_I2C_Read... [16:45:16]Read from MH i2c: E2 62 00 3B 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 24 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [16:45:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 24 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:45:16]wFMCommunicate OK [16:45:16]SAM_PROTO_GetFieldsCounters done [16:45:16]requested_item shift.num is exist - process it [16:45:16]requested_item shift.opened is exist - process it [16:45:16]req_shift_opened [16:45:16]FM_GetShiftState [16:45:16]SAM_PROTO_GetShiftState [16:45:16]wFMCommunicate request_size=4 [16:45:16]MH_SAM_APDU [16:45:16]CAPDU: 80 13 01 00 [16:45:16]Write to MH i2c: E2 08 00 3C 08 80 13 01 00 00 00 00 00 C1 [16:45:16]Write i2c OK [16:45:16]MH_I2C_Read... [16:45:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:16]Read from MH i2c: E2 [16:45:16]MH_I2C_Read... [16:45:16]Read from MH i2c: E2 0E 00 [16:45:16]MH_I2C_Read... [16:45:16]Read from MH i2c: E2 0E 00 3C 08 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 C9 [16:45:16]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [16:45:16]wFMCommunicate OK [16:45:16]SAM_PROTO_GetShiftState done [16:45:16]FM_GetShiftState done [16:45:16]req_shift_opened done [16:45:16]requested_item shift.open_date is exist - process it [16:45:16]req_shift_open_date [16:45:16]req_shift_open_date done [16:45:16]produce_requested_data done [16:45:16]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82212,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [16:45:16]process_action_free close_receipt [16:45:16]json_value_free [16:45:16]json_value_free done [16:45:16]process_json_proto returns [16:45:16]Send response to host [16:45:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82212,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [16:45:16]free response buf [16:45:16]execute_script done [16:45:16]execute_script returns [16:45:16]free content buf [16:45:16]Sock 7.Close socket [16:45:16]Sock 7.Thread stoped [16:45:19]ConnectInit Can't take IP for lk.salyk.kg [16:45:19]CommunicateWithHost connect error [16:45:19]CommunicateWithHost err = -1 [16:45:19]OFD Sender: Server communicate error [16:45:24]OFD Sender: Processing packet 82212 [packets to send 254, broken 253] [16:45:24]ProducePacketName [16:45:24]name=ofd_packets/00082212 [16:45:24]OFD Sender: To server: pG, [16:45:24]CommunicateWithHost lk.salyk.kg:30040 [16:45:24]ConnectInit lk.salyk.kg [16:45:25]Connected sock=9 [16:45:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 02 F9 07 01 8D 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 19 3F 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 24 41 01 00 35 04 06 00 D4 7E F0 2C 7B 9A 31 6C DC 13 95 51 F7 CD [16:45:25]recv_with_timeout no data received [16:45:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 0F EC 47 00 64 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 24 41 01 00 F4 03 04 00 61 E4 10 67 B6 04 01 00 00 0A C9 1B B2 42 9B 83 D3 [16:45:26]CommunicateWithHost err = 0 [16:45:26]CheckOFDResponse [16:45:26]1017 (14) - 77093643461234 [16:45:26]1041 (16) - 0000000000871843 [16:45:26]1040 (4) - 82212 [16:45:26]1012 (4) - 17.10.2024 10:18 [16:45:26]1206 (1) - 0 [16:45:26]OFD Sender: Remove packet 82212 [16:45:26]ProducePacketName [16:45:26]name=ofd_packets/00082212 [16:45:26]NVStorageDeleteData [16:45:26]OFD Sender: No OFD packet to send [16:45:31]OFD Sender: No OFD packet to send [16:45:36]OFD Sender: No OFD packet to send [16:45:41]OFD Sender: No OFD packet to send [16:45:46]OFD Sender: No OFD packet to send [16:45:51]OFD Sender: No OFD packet to send [16:45:56]OFD Sender: No OFD packet to send [16:46:01]OFD Sender: No OFD packet to send [16:46:06]OFD Sender: No OFD packet to send [16:46:11]OFD Sender: No OFD packet to send [16:46:16]OFD Sender: No OFD packet to send [16:46:21]OFD Sender: No OFD packet to send [16:46:26]OFD Sender: No OFD packet to send [16:46:31]OFD Sender: No OFD packet to send [16:46:36]OFD Sender: No OFD packet to send [16:46:41]OFD Sender: No OFD packet to send [16:46:46]OFD Sender: No OFD packet to send [16:46:51]OFD Sender: No OFD packet to send [16:46:56]OFD Sender: No OFD packet to send [16:47:01]OFD Sender: No OFD packet to send [16:47:06]OFD Sender: No OFD packet to send [16:47:11]OFD Sender: No OFD packet to send [16:47:13]accept exits with 10 [16:47:13]New connection [16:47:13]New thread 3066957156 created [16:47:13]Thread 3066813796 joined [16:47:13]Waiting for new connection... [16:47:13] Sock 10.Parse request [16:47:13]Sock 10.Check first char [16:47:13]Sock 10.First char is OK [16:47:13]request: POST /json_proto HTTP/1.0 [16:47:13]Method: POST [16:47:13]URL: /json_proto [16:47:13]Method is POST - this is cgi request [16:47:13]url: /json_proto [16:47:13]query_string will be loaded in cgi processing [16:47:13]execute_cgi json_proto POST (null) [16:47:13]execute_cgi path=json_proto method=POST [16:47:13]POST find Content-Length [16:47:13]Host: 172.17.44.67:8080 [16:47:13]Content-Length: 677 [16:47:13]Content-Type: application/json [16:47:13] [16:47:13]POST finish read [16:47:13]Found Content-Length = 677 [16:47:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:13]execute_script... [16:47:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:13]POST & json_proto [16:47:13]process_json_proto [16:47:13]json parsed OK: [16:47:13]protocol is kg_v1.0 [16:47:13]action value=close_receipt [16:47:13]process_action close_receipt [16:47:13]cmd_close_receipt [16:47:13]MH_GetDate [16:47:13]Write to MH i2c: F0 00 00 3D 08 34 [16:47:13]Write i2c OK [16:47:13]MH_I2C_Read... [16:47:13]Read from MH i2c: F0 [16:47:13]MH_I2C_Read... [16:47:13]Read from MH i2c: F0 09 00 [16:47:13]MH_I2C_Read... [16:47:13]Read from MH i2c: F0 09 00 3D 08 00 92 3F 11 67 F1 C7 6B 64 0D [16:47:13]GetLastDocTimeStamp 1729183513 [16:47:13]current date 1729183634 [16:47:13]FM_GetShiftState [16:47:13]SAM_PROTO_GetShiftState [16:47:13]wFMCommunicate request_size=4 [16:47:13]MH_SAM_APDU [16:47:13]CAPDU: 80 13 01 00 [16:47:13]Write to MH i2c: E2 08 00 3E 08 80 13 01 00 00 00 00 00 C3 [16:47:13]Write i2c OK [16:47:13]MH_I2C_Read... [16:47:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:13]Read from MH i2c: E2 [16:47:13]MH_I2C_Read... [16:47:13]Read from MH i2c: E2 0E 00 [16:47:13]MH_I2C_Read... [16:47:13]Read from MH i2c: E2 0E 00 3E 08 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 CB [16:47:13]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [16:47:13]wFMCommunicate OK [16:47:13]SAM_PROTO_GetShiftState done [16:47:13]FM_GetShiftState done [16:47:13]opened in 1729125927 [16:47:13]opened+sec_in_day 1729212327 [16:47:13]quantity*price = 50041 [16:47:13]sum+1 = 50042 [16:47:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 139 17.10.2024 16:47 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82213 ФПД: 50687473836309 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T164714&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82213&fm=50687473836309&tin=02508201610067®Number=0000000000091680&sum=50000 [16:47:14]StoreToDocumentArchive [16:47:14]shift 525 fd 82213 [16:47:14]save to /storage/0525/doc_00082213 [16:47:14]save last doc name /storage/0525/doc_00082213 to /storage/kkm_last_doc_name [16:47:14]save OK [16:47:14]Clear old archive folders... [16:47:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:47:14]tlvbuf is 01C01260 [16:47:14]SAM_PROTO_ClearQueue [16:47:14]wFMCommunicate request_size=4 [16:47:14]MH_SAM_APDU [16:47:14]CAPDU: 80 09 00 00 [16:47:14]Write to MH i2c: E2 08 00 4B 08 80 09 00 00 00 00 00 00 C5 [16:47:14]Write i2c OK [16:47:14]MH_I2C_Read... [16:47:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:14]Read from MH i2c: E2 [16:47:14]MH_I2C_Read... [16:47:14]Read from MH i2c: E2 03 00 [16:47:14]MH_I2C_Read... [16:47:14]Read from MH i2c: E2 03 00 4B 08 00 90 00 C7 [16:47:14]RAPDU: 90 00 [16:47:14]wFMCommunicate OK [16:47:14]SAM_PROTO_ClearQueue done [16:47:14]KKMCreateOFDPacket [16:47:14]OFDProtocolAddRootSTLVToBuf [16:47:14]FM_MakeSignedData [16:47:14]FM_MakeSignedData [16:47:14]SAM_PROTO_SignData [16:47:14]wFMCommunicate request_size=4 [16:47:14]MH_SAM_APDU [16:47:14]CAPDU: 80 0D 01 02 [16:47:14]Write to MH i2c: E2 08 00 4C 08 80 0D 01 02 00 00 00 00 CD [16:47:14]Write i2c OK [16:47:14]MH_I2C_Read... [16:47:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:14]Read from MH i2c: E2 [16:47:14]MH_I2C_Read... [16:47:14]Read from MH i2c: E2 03 00 [16:47:14]MH_I2C_Read... [16:47:14]Read from MH i2c: E2 03 00 4C 08 00 90 00 C8 [16:47:14]RAPDU: 90 00 [16:47:14]wFMCommunicate OK [16:47:14]wFMCommunicate request_size=255 [16:47:14]MH_SAM_APDU [16:47:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 92 3F 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 25 41 01 00 35 04 06 00 2E [16:47:14]Write to MH i2c: E2 02 01 4D 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 92 3F 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 25 41 01 00 35 04 06 00 2E 00 00 D1 [16:47:14]Write i2c OK [16:47:14]MH_I2C_Read... [16:47:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:14]Read from MH i2c: E2 [16:47:14]MH_I2C_Read... [16:47:14]Read from MH i2c: E2 03 00 [16:47:14]MH_I2C_Read... [16:47:14]Read from MH i2c: E2 03 00 4D 08 00 90 00 C9 [16:47:14]RAPDU: 90 00 [16:47:14]wFMCommunicate OK [16:47:14]wFMCommunicate request_size=10 [16:47:14]MH_SAM_APDU [16:47:14]CAPDU: 80 0D 02 02 05 19 98 DF 61 15 [16:47:14]Write to MH i2c: E2 0D 00 4E 08 80 0D 02 02 05 00 19 98 DF 61 15 00 00 E0 [16:47:14]Write i2c OK [16:47:14]MH_I2C_Read... [16:47:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:14]Read from MH i2c: E2 [16:47:14]MH_I2C_Read... [16:47:14]Read from MH i2c: E2 03 00 [16:47:14]MH_I2C_Read... [16:47:14]Read from MH i2c: E2 03 00 4E 08 00 90 00 CA [16:47:14]RAPDU: 90 00 [16:47:14]wFMCommunicate OK [16:47:14]wFMCommunicate request_size=4 [16:47:14]MH_SAM_APDU [16:47:14]CAPDU: 80 0D 03 02 [16:47:14]Write to MH i2c: E2 08 00 4F 08 80 0D 03 02 00 00 00 00 D2 [16:47:14]Write i2c OK [16:47:14]MH_I2C_Read... [16:47:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:14]Read from MH i2c: E2 [16:47:14]MH_I2C_Read... [16:47:14]Read from MH i2c: E2 0B 00 [16:47:14]MH_I2C_Read... [16:47:14]Read from MH i2c: E2 0B 00 4F 08 00 70 98 0B 61 7B 43 4B F7 90 00 47 [16:47:14]RAPDU: 70 98 0B 61 7B 43 4B F7 90 00 [16:47:14]wFMCommunicate OK [16:47:14]SAM_PROTO_SignData done [16:47:14]FM_MakeSignedData done [16:47:14]CreateOFDProtocolMessage [16:47:14]wFMCommunicate request_size=4 [16:47:14]MH_SAM_APDU [16:47:14]CAPDU: 80 11 00 00 [16:47:14]Write to MH i2c: E2 08 00 50 08 80 11 00 00 00 00 00 00 D2 [16:47:14]Write i2c OK [16:47:14]MH_I2C_Read... [16:47:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:14]Read from MH i2c: E2 [16:47:14]MH_I2C_Read... [16:47:14]Read from MH i2c: E2 17 00 [16:47:14]MH_I2C_Read... [16:47:14]Read from MH i2c: E2 17 00 50 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 24 [16:47:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:47:14]wFMCommunicate OK [16:47:14]CreateOFDProtocolMessage done [16:47:14]OFDSenderStorePacket 82213 [16:47:14]StoreOFDPacket docnum=82213 [16:47:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 4E 9D 07 01 43 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 92 3F 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 25 41 01 00 35 04 06 00 2E 19 98 DF 61 15 70 98 0B 61 7B 43 4B F7 [16:47:14]CheckFolder [16:47:14]dirname=/storage/ofd_packets [16:47:14]CheckFolder done [16:47:14]ProducePacketName [16:47:14]name=ofd_packets/00082213 [16:47:14]NVStorageSaveData ofd_packets/00082213 [16:47:14]File name is /storage/ofd_packets/00082213 [16:47:14]Write 301 bytes [16:47:14]NVStorageSaveData done [16:47:14]OFDSenderStorePacket done [16:47:14]KKMCreateOFDPacket done [16:47:14]NVStorageSaveData kkm_last_timestamp [16:47:14]File name is /storage/kkm_last_timestamp [16:47:14]Write 4 bytes [16:47:14]NVStorageSaveData done [16:47:14]ExternCall_PrintAddStr [16:47:14]wPrintStart [16:47:14]Write to MH i2c: 01 00 00 51 08 59 [16:47:14]Write i2c OK [16:47:14]MH_I2C_Read... [16:47:14]Read from MH i2c: 01 [16:47:14]MH_I2C_Read... [16:47:14]Read from MH i2c: 01 07 00 [16:47:14]MH_I2C_Read... [16:47:14]Read from MH i2c: 01 07 00 51 08 00 00 00 00 00 FF 0F 6E [16:47:14]RasterBufferAndPrint [16:47:14]line Счет N : (1)918718 [16:47:14]line ИНН: 02508201610067 [16:47:14]line Контрольно-Кассовый Чек [16:47:14]line ПРОДАЖА [16:47:14]line ТРК (МРК, ГНК) : 22 [16:47:14]line Товар: 2710124130 [16:47:14]line Аи-92-К-4 [16:47:14]line 7.480 * 66.90 [16:47:14]line = 500.41 [16:47:14]line НДС 12% НСП 1% [16:47:14]line > о реализуемом товаре [16:47:14]line ОКРУГЛЕНИЕ: -0.41 [16:47:14]line ИТОГО: 500.00 [16:47:14]line Внесено: 500.00 [16:47:14]line СДАЧА: 0.00 [16:47:14]line НСП 1% : 4.43 [16:47:14]line НДС 12% : 53.14 [16:47:14]line Наличными: 500.00 [16:47:14]line Безнал.: 0.00 [16:47:14]line Место: АЗС № 114 "Партнер Нефть" [16:47:14]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [16:47:14]line СНО: Общий режим [16:47:14]line Чек 139 17.10.2024 16:47 [16:47:14]line Смена: 525 ФФД: 1.0 [16:47:14]line ЗНМ: 0300000086 [16:47:14]line РНМ: 0000000000091680 [16:47:14]line Версия ККМ: 001 [16:47:14]line ФМ: 0000000000871843 [16:47:14]line ФД: 82213 [16:47:14]line ФПД: 50687473836309 [16:47:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T164714&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82213&fm=50687473836309&tin=02508201610067®Number=0000000000091680&sum=50000 [16:47:14]written 0, free lines is 4095 [16:47:14]OFD Sender: Processing packet 82213 [packets to send 254, broken 253] [16:47:14]ProducePacketName [16:47:14]name=ofd_packets/00082213 [16:47:14]OFD Sender: To server: pG, [16:47:14]CommunicateWithHost lk.salyk.kg:30040 [16:47:15]ConnectInit lk.salyk.kg [16:47:15]Write to MH i2c: 01 00 00 7C 08 84 [16:47:15]Write i2c OK [16:47:15]MH_I2C_Read... [16:47:15]Read from MH i2c: 01 [16:47:15]MH_I2C_Read... [16:47:15]Read from MH i2c: 01 07 00 [16:47:15]MH_I2C_Read... [16:47:15]Read from MH i2c: 01 07 00 7C 08 00 00 00 00 00 D7 0C 6E [16:47:15]RasterBufferAndPrint [16:47:15]line [16:47:15]line [16:47:15]line [16:47:15]line [16:47:15]line [16:47:15]written 0, free lines is 3294 [16:47:15]MH_Cut [16:47:15]Write to MH i2c: D1 01 00 83 08 01 5D [16:47:15]Write i2c OK [16:47:15]MH_I2C_Read... [16:47:15]Read from MH i2c: D1 [16:47:15]MH_I2C_Read... [16:47:15]Read from MH i2c: D1 01 00 [16:47:15]MH_I2C_Read... [16:47:15]Read from MH i2c: D1 01 00 83 08 00 5C [16:47:15]Write to MH i2c: 01 00 00 84 08 8C [16:47:15]Write i2c OK [16:47:15]MH_I2C_Read... [16:47:16]*** Cut start [16:47:16]*** Partial cut [16:47:16]*** CUTSNS_PIN = 1 [16:47:16]Connected sock=9 [16:47:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 4E 9D 07 01 43 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 92 3F 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 25 41 01 00 35 04 06 00 2E 19 98 DF 61 15 70 98 0B 61 7B 43 4B F7 [16:47:16]*** CUTSNS_PIN = 0 [16:47:16]*** Brake cut motor [16:47:16]Read from MH i2c: 01 [16:47:16]MH_I2C_Read... [16:47:16]*** Stop cut motor [16:47:16]*** Cut end [16:47:16]Read from MH i2c: 01 07 00 [16:47:16]MH_I2C_Read... [16:47:16]Read from MH i2c: 01 07 00 84 08 00 00 00 00 00 FF 0F A1 [16:47:16]process_action close_receipt done [16:47:16]requested_data is exist [16:47:16]produce_requested_data [16:47:16]requested_item fm.sn is exist - process it [16:47:16]wFMCommunicate request_size=4 [16:47:16]MH_SAM_APDU [16:47:16]CAPDU: 80 11 00 00 [16:47:16]Write to MH i2c: E2 08 00 85 08 80 11 00 00 00 00 00 00 07 [16:47:16]Write i2c OK [16:47:16]MH_I2C_Read... [16:47:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:16]Read from MH i2c: E2 [16:47:16]MH_I2C_Read... [16:47:16]Read from MH i2c: E2 17 00 [16:47:16]MH_I2C_Read... [16:47:16]Read from MH i2c: E2 17 00 85 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 59 [16:47:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:47:16]wFMCommunicate OK [16:47:16]requested_item fd.num is exist - process it [16:47:16]SAM_PROTO_GetFieldsCounters [16:47:16]wFMCommunicate request_size=4 [16:47:16]MH_SAM_APDU [16:47:16]CAPDU: 80 13 00 00 [16:47:16]Write to MH i2c: E2 08 00 86 08 80 13 00 00 00 00 00 00 0A [16:47:16]Write i2c OK [16:47:16]MH_I2C_Read... [16:47:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:16]Read from MH i2c: E2 [16:47:16]MH_I2C_Read... [16:47:16]Read from MH i2c: E2 62 00 [16:47:16]MH_I2C_Read... [16:47:16]Read from MH i2c: E2 62 00 86 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 25 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [16:47:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 25 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:47:16]wFMCommunicate OK [16:47:16]SAM_PROTO_GetFieldsCounters done [16:47:16]requested_item shift.num is exist - process it [16:47:16]requested_item shift.opened is exist - process it [16:47:16]req_shift_opened [16:47:16]FM_GetShiftState [16:47:16]SAM_PROTO_GetShiftState [16:47:16]wFMCommunicate request_size=4 [16:47:16]MH_SAM_APDU [16:47:16]CAPDU: 80 13 01 00 [16:47:16]Write to MH i2c: E2 08 00 87 08 80 13 01 00 00 00 00 00 0C [16:47:16]Write i2c OK [16:47:16]MH_I2C_Read... [16:47:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:16]Read from MH i2c: E2 [16:47:16]MH_I2C_Read... [16:47:16]Read from MH i2c: E2 0E 00 [16:47:16]MH_I2C_Read... [16:47:16]Read from MH i2c: E2 0E 00 87 08 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 14 [16:47:16]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [16:47:16]wFMCommunicate OK [16:47:16]SAM_PROTO_GetShiftState done [16:47:16]FM_GetShiftState done [16:47:16]req_shift_opened done [16:47:16]requested_item shift.open_date is exist - process it [16:47:16]req_shift_open_date [16:47:16]req_shift_open_date done [16:47:16]produce_requested_data done [16:47:16]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82213,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [16:47:16]process_action_free close_receipt [16:47:16]json_value_free [16:47:16]json_value_free done [16:47:16]process_json_proto returns [16:47:16]Send response to host [16:47:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82213,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [16:47:16]free response buf [16:47:16]execute_script done [16:47:16]execute_script returns [16:47:16]free content buf [16:47:16]Sock 10.Close socket [16:47:16]Sock 10.Thread stoped [16:47:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 3A 46 47 00 4D CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 25 41 01 00 F4 03 04 00 D0 E4 10 67 B6 04 01 00 00 28 7B 12 36 BF B2 46 7D [16:47:16]CommunicateWithHost err = 0 [16:47:16]CheckOFDResponse [16:47:16]1017 (14) - 77093643461234 [16:47:16]1041 (16) - 0000000000871843 [16:47:16]1040 (4) - 82213 [16:47:16]1012 (4) - 17.10.2024 10:20 [16:47:16]1206 (1) - 0 [16:47:16]OFD Sender: Remove packet 82213 [16:47:16]ProducePacketName [16:47:16]name=ofd_packets/00082213 [16:47:16]NVStorageDeleteData [16:47:17]OFD Sender: No OFD packet to send [16:47:22]OFD Sender: No OFD packet to send [16:47:27]OFD Sender: No OFD packet to send [16:47:32]OFD Sender: No OFD packet to send [16:47:33]recv_with_timeout no data received [16:47:37]OFD Sender: No OFD packet to send [16:47:42]OFD Sender: No OFD packet to send [16:47:47]OFD Sender: No OFD packet to send [16:47:52]OFD Sender: No OFD packet to send [16:47:57]OFD Sender: No OFD packet to send [16:48:02]OFD Sender: No OFD packet to send [16:48:07]OFD Sender: No OFD packet to send [16:48:12]OFD Sender: No OFD packet to send [16:48:17]OFD Sender: No OFD packet to send [16:48:22]OFD Sender: No OFD packet to send [16:48:27]OFD Sender: No OFD packet to send [16:48:32]OFD Sender: No OFD packet to send [16:48:37]OFD Sender: No OFD packet to send [16:48:42]OFD Sender: No OFD packet to send [16:48:47]OFD Sender: No OFD packet to send [16:48:52]OFD Sender: No OFD packet to send [16:48:57]OFD Sender: No OFD packet to send [16:49:02]OFD Sender: No OFD packet to send [16:49:07]OFD Sender: No OFD packet to send [16:49:12]OFD Sender: No OFD packet to send [16:49:17]OFD Sender: No OFD packet to send [16:49:22]OFD Sender: No OFD packet to send [16:49:27]OFD Sender: No OFD packet to send [16:49:32]OFD Sender: No OFD packet to send [16:49:37]OFD Sender: No OFD packet to send [16:49:42]OFD Sender: No OFD packet to send [16:49:47]OFD Sender: No OFD packet to send [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:42]OFD Sender: No OFD packet to send [16:50:47]OFD Sender: No OFD packet to send [16:50:52]OFD Sender: No OFD packet to send [16:50:57]OFD Sender: No OFD packet to send [16:51:02]OFD Sender: No OFD packet to send [16:51:07]OFD Sender: No OFD packet to send [16:51:12]OFD Sender: No OFD packet to send [16:51:17]OFD Sender: No OFD packet to send [16:51:22]OFD Sender: No OFD packet to send [16:51:27]OFD Sender: No OFD packet to send [16:51:32]OFD Sender: No OFD packet to send [16:51:37]OFD Sender: No OFD packet to send [16:51:42]OFD Sender: No OFD packet to send [16:51:47]OFD Sender: No OFD packet to send [16:51:52]OFD Sender: No OFD packet to send [16:51:57]OFD Sender: No OFD packet to send [16:52:02]OFD Sender: No OFD packet to send [16:52:07]OFD Sender: No OFD packet to send [16:52:12]OFD Sender: No OFD packet to send [16:52:17]OFD Sender: No OFD packet to send [16:52:22]OFD Sender: No OFD packet to send [16:52:27]OFD Sender: No OFD packet to send [16:52:32]OFD Sender: No OFD packet to send [16:52:37]OFD Sender: No OFD packet to send [16:52:42]OFD Sender: No OFD packet to send [16:52:47]OFD Sender: No OFD packet to send [16:52: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:18]accept exits with 7 [16:55:18]New connection [16:55:18]New thread 3066813796 created [16:55:18]Thread 3066957156 joined [16:55:18]Waiting for new connection... [16:55:18] Sock 7.Parse request [16:55:18]Sock 7.Check first char [16:55:18]Sock 7.First char is OK [16:55:18]request: POST /json_proto HTTP/1.0 [16:55:18]Method: POST [16:55:18]URL: /json_proto [16:55:18]Method is POST - this is cgi request [16:55:18]url: /json_proto [16:55:18]query_string will be loaded in cgi processing [16:55:18]execute_cgi json_proto POST (null) [16:55:18]execute_cgi path=json_proto method=POST [16:55:18]POST find Content-Length [16:55:18]Host: 172.17.44.67:8080 [16:55:18]Content-Length: 754 [16:55:18]Content-Type: application/json [16:55:18] [16:55:18]POST finish read [16:55:18]Found Content-Length = 754 [16:55:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30096590", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:18]execute_script... [16:55:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30096590", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:18]POST & json_proto [16:55:18]process_json_proto [16:55:18]json parsed OK: [16:55:18]protocol is kg_v1.0 [16:55:18]action value=close_receipt [16:55:18]process_action close_receipt [16:55:18]cmd_close_receipt [16:55:18]MH_GetDate [16:55:18]Write to MH i2c: F0 00 00 88 08 7F [16:55:18]Write i2c OK [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: F0 [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: F0 09 00 [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: F0 09 00 88 08 00 77 41 11 67 F1 C7 6B 64 3F [16:55:18]GetLastDocTimeStamp 1729183634 [16:55:18]current date 1729184119 [16:55:18]FM_GetShiftState [16:55:18]SAM_PROTO_GetShiftState [16:55:18]wFMCommunicate request_size=4 [16:55:18]MH_SAM_APDU [16:55:18]CAPDU: 80 13 01 00 [16:55:18]Write to MH i2c: E2 08 00 89 08 80 13 01 00 00 00 00 00 0E [16:55:18]Write i2c OK [16:55:18]MH_I2C_Read... [16:55:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:18]Read from MH i2c: E2 [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: E2 0E 00 [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: E2 0E 00 89 08 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 16 [16:55:18]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [16:55:18]wFMCommunicate OK [16:55:18]SAM_PROTO_GetShiftState done [16:55:18]FM_GetShiftState done [16:55:18]opened in 1729125927 [16:55:18]opened+sec_in_day 1729212327 [16:55:18]quantity*price = 0 [16:55:18]sum+1 = 1 [16:55:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 140 17.10.2024 16:55 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30096590 ФМ: 0000000000871843 ФД: 82214 ФПД: 206585445907464 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T165520&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82214&fm=206585445907464&tin=02508201610067®Number=0000000000091680&sum=0 [16:55:20]StoreToDocumentArchive [16:55:20]shift 525 fd 82214 [16:55:20]save to /storage/0525/doc_00082214 [16:55:20]save last doc name /storage/0525/doc_00082214 to /storage/kkm_last_doc_name [16:55:20]save OK [16:55:20]Clear old archive folders... [16:55:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:55:20]tlvbuf is 01C07360 [16:55:20]SAM_PROTO_ClearQueue [16:55:20]wFMCommunicate request_size=4 [16:55:20]MH_SAM_APDU [16:55:20]CAPDU: 80 09 00 00 [16:55:20]Write to MH i2c: E2 08 00 96 08 80 09 00 00 00 00 00 00 10 [16:55:20]Write i2c OK [16:55:20]MH_I2C_Read... [16:55:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:20]Read from MH i2c: E2 [16:55:20]MH_I2C_Read... [16:55:20]Read from MH i2c: E2 03 00 [16:55:20]MH_I2C_Read... [16:55:20]Read from MH i2c: E2 03 00 96 08 00 90 00 12 [16:55:20]RAPDU: 90 00 [16:55:20]wFMCommunicate OK [16:55:20]SAM_PROTO_ClearQueue done [16:55:20]KKMCreateOFDPacket [16:55:20]OFDProtocolAddRootSTLVToBuf [16:55:20]FM_MakeSignedData [16:55:20]FM_MakeSignedData [16:55:20]SAM_PROTO_SignData [16:55:20]wFMCommunicate request_size=4 [16:55:20]MH_SAM_APDU [16:55:20]CAPDU: 80 0D 01 02 [16:55:20]Write to MH i2c: E2 08 00 97 08 80 0D 01 02 00 00 00 00 18 [16:55:20]Write i2c OK [16:55:20]MH_I2C_Read... [16:55:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:20]Read from MH i2c: E2 [16:55:20]MH_I2C_Read... [16:55:20]Read from MH i2c: E2 03 00 [16:55:20]MH_I2C_Read... [16:55:20]Read from MH i2c: E2 03 00 97 08 00 90 00 13 [16:55:20]RAPDU: 90 00 [16:55:20]wFMCommunicate OK [16:55:20]wFMCommunicate request_size=255 [16:55:20]MH_SAM_APDU [16:55:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 78 41 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 26 41 01 00 35 04 06 00 BB [16:55:20]Write to MH i2c: E2 02 01 98 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 78 41 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 26 41 01 00 35 04 06 00 BB 00 00 81 [16:55:20]Write i2c OK [16:55:20]MH_I2C_Read... [16:55:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:20]Read from MH i2c: E2 [16:55:20]MH_I2C_Read... [16:55:20]Read from MH i2c: E2 03 00 [16:55:20]MH_I2C_Read... [16:55:20]Read from MH i2c: E2 03 00 98 08 00 90 00 14 [16:55:20]RAPDU: 90 00 [16:55:20]wFMCommunicate OK [16:55:20]wFMCommunicate request_size=10 [16:55:20]MH_SAM_APDU [16:55:20]CAPDU: 80 0D 02 02 05 E3 6C 1E 7C 08 [16:55:20]Write to MH i2c: E2 0D 00 99 08 80 0D 02 02 05 00 E3 6C 1E 7C 08 00 00 16 [16:55:20]Write i2c OK [16:55:20]MH_I2C_Read... [16:55:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:20]Read from MH i2c: E2 [16:55:20]MH_I2C_Read... [16:55:20]Read from MH i2c: E2 03 00 [16:55:20]MH_I2C_Read... [16:55:20]Read from MH i2c: E2 03 00 99 08 00 90 00 15 [16:55:20]RAPDU: 90 00 [16:55:20]wFMCommunicate OK [16:55:20]wFMCommunicate request_size=4 [16:55:20]MH_SAM_APDU [16:55:20]CAPDU: 80 0D 03 02 [16:55:20]Write to MH i2c: E2 08 00 9A 08 80 0D 03 02 00 00 00 00 1D [16:55:20]Write i2c OK [16:55:20]MH_I2C_Read... [16:55:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:20]Read from MH i2c: E2 [16:55:20]MH_I2C_Read... [16:55:20]Read from MH i2c: E2 0B 00 [16:55:20]MH_I2C_Read... [16:55:20]Read from MH i2c: E2 0B 00 9A 08 00 7F 3A C1 EE DD C2 3B 9D 90 00 FD [16:55:20]RAPDU: 7F 3A C1 EE DD C2 3B 9D 90 00 [16:55:20]wFMCommunicate OK [16:55:20]SAM_PROTO_SignData done [16:55:20]FM_MakeSignedData done [16:55:20]CreateOFDProtocolMessage [16:55:20]wFMCommunicate request_size=4 [16:55:20]MH_SAM_APDU [16:55:20]CAPDU: 80 11 00 00 [16:55:20]Write to MH i2c: E2 08 00 9B 08 80 11 00 00 00 00 00 00 1D [16:55:20]Write i2c OK [16:55:20]MH_I2C_Read... [16:55:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:20]Read from MH i2c: E2 [16:55:20]MH_I2C_Read... [16:55:20]Read from MH i2c: E2 17 00 [16:55:20]MH_I2C_Read... [16:55:20]Read from MH i2c: E2 17 00 9B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 6F [16:55:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:55:20]wFMCommunicate OK [16:55:20]CreateOFDProtocolMessage done [16:55:20]OFDSenderStorePacket 82214 [16:55:20]StoreOFDPacket docnum=82214 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 53 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725AE (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 44399081+1684785137=1729184218 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 54 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 DB 41 11 67 F1 C7 6B 64 1A [16:56:59]Current date/time: 17.10.2024 16:56 [16:56:59]FM_Init [16:56:59]wFMConnect [16:56:59]MH_SAM_On [16:56:59]Write to MH i2c: E0 00 00 08 00 E7 [16:56:59]Write i2c OK [16:56:59]MH_I2C_Read... [16:56:59]*** iso7816_init finished! [16:56:59]*** atr: [16:56:59]*** 0F 3B D5 18 FF 81 91 FE [16:56:59]*** 1F C3 80 73 C8 21 10 0A [16:56:59]*** 00 00 00 00 00 00 00 00 [16:56:59]*** 00 00 00 00 00 00 00 00 [16:56:59]*** 00 00 00 00 00 00 00 00 [16:56:59]*** 00 00 00 00 00 00 00 00 [16:56:59]*** 00 00 00 00 00 00 00 00 [16:56:59]*** 00 00 00 00 00 00 00 00 [16:56:59]Read from MH i2c: E0 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: E0 10 00 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [16:56:59]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [16:56:59]wFMCommunicate request_size=10 [16:56:59]MH_SAM_APDU [16:56:59]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [16:56:59]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 53 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725AE (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 R 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 44399105+1684785137=1729184242 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 54 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 F3 41 11 67 F1 C7 6B 64 32 [16:57:23]Current date/time: 17.10.2024 16:57 [16:57:23]FM_Init [16:57:23]wFMConnect [16:57:23]MH_SAM_On [16:57:23]Write to MH i2c: E0 00 00 08 00 E7 [16:57:23]Write i2c OK [16:57:23]MH_I2C_Read... [16:57:23]*** iso7816_init finished! [16:57:23]*** atr: [16:57:23]*** 0F 3B D5 18 FF 81 91 FE [16:57:23]*** 1F C3 80 73 C8 21 10 0A [16:57:23]*** 00 00 00 00 00 00 00 00 [16:57:23]*** 00 00 00 00 00 00 00 00 [16:57:23]*** 00 00 00 00 00 00 00 00 [16:57:23]*** 00 00 00 00 00 00 00 00 [16:57:23]*** 00 00 00 00 00 00 00 00 [16:57:23]*** 00 00 00 00 00 00 00 00 [16:57:23]Read from MH i2c: E0 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: E0 10 00 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [16:57:23]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [16:57:23]wFMCommunicate request_size=10 [16:57:23]MH_SAM_APDU [16:57:23]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [16:57:23]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [16:57:23]Write i2c OK [16:57:23]MH_I2C_Read... [16:57:23]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [16:57:23]Read from MH i2c: E2 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: E2 03 00 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [16:57:23]RAPDU: 90 00 [16:57:23]wFMCommunicate OK [16:57:23]wFMCommunicate request_size=4 [16:57:23]MH_SAM_APDU [16:57:23]CAPDU: 80 11 00 00 [16:57:23]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [16:57:23]Write i2c OK [16:57:23]MH_I2C_Read... [16:57:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:23]Read from MH i2c: E2 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: E2 17 00 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D6 [16:57:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:57:23]wFMCommunicate OK [16:57:23]Detected FM SN is 0000000000871843 [16:57:23]Stored FM SN is 0000000000871843 [16:57:23]wFMCommunicate request_size=9 [16:57:23]MH_SAM_APDU [16:57:23]CAPDU: 80 16 00 00 04 C3 A3 00 00 [16:57:23]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 C3 A3 00 00 00 00 F8 [16:57:23]Write i2c OK [16:57:23]MH_I2C_Read... [16:57:23]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [16:57:23]Read from MH i2c: E2 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: E2 03 00 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [16:57:23]RAPDU: 90 00 [16:57:23]wFMCommunicate OK [16:57:23]FM PIN OK [16:57:23]wFMCommunicate request_size=8 [16:57:23]MH_SAM_APDU [16:57:23]CAPDU: 80 14 04 00 03 02 00 01 [16:57:23]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [16:57:23]Write i2c OK [16:57:23]MH_I2C_Read... [16:57:23]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [16:57:23]Read from MH i2c: E2 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: E2 03 00 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [16:57:23]RAPDU: 90 00 [16:57:23]wFMCommunicate OK [16:57:23]wFMCommunicate request_size=13 [16:57:23]MH_SAM_APDU [16:57:23]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [16:57:23]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [16:57:23]Write i2c OK [16:57:23]MH_I2C_Read... [16:57:23]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [16:57:23]Read from MH i2c: E2 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: E2 03 00 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [16:57:23]RAPDU: 90 00 [16:57:23]wFMCommunicate OK [16:57:23]wFMCommunicate request_size=4 [16:57:23]MH_SAM_APDU [16:57:23]CAPDU: 80 11 00 00 [16:57:23]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [16:57:23]Write i2c OK [16:57:23]MH_I2C_Read... [16:57:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:23]Read from MH i2c: E2 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: E2 17 00 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DA [16:57:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:57:23]wFMCommunicate OK [16:57:23]DocumentArchiveInit [16:57:23]Start Httpd... [16:57:23]Httpd thread 3066899812 created [16:57:23]Write to MH i2c: 01 00 00 0F 00 0F [16:57:23]Write i2c OK [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: 01 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: 01 07 00 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [16:57:23]MH Int Process started [16:57:23]Allocated Socket 7 [16:57:23]Bind OK [16:57:23]Listen OK [16:57:23]httpd running on port 8080 [16:57:23]Waiting for new connection... [16:57:23]OFD Sender: No OFD packet to send [16:57:24]accept exits with 8 [16:57:24]New connection [16:57:24]New thread 3066613092 created [16:57:24]Waiting for new connection... [16:57:24] Sock 8.Parse request [16:57:24]Sock 8.Check first char [16:57:24]Sock 8.First char is OK [16:57:24]request: POST /json_proto HTTP/1.0 [16:57:24]Method: POST [16:57:24]URL: /json_proto [16:57:24]Method is POST - this is cgi request [16:57:24]url: /json_proto [16:57:24]query_string will be loaded in cgi processing [16:57:24]execute_cgi json_proto POST (null) [16:57:24]execute_cgi path=json_proto method=POST [16:57:24]POST find Content-Length [16:57:24]Host: 172.17.44.67:8080 [16:57:24]Content-Length: 215 [16:57:24]Content-Type: application/json [16:57:24] [16:57:24]POST finish read [16:57:24]Found Content-Length = 215 [16:57: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" ] } } [16:57:24]execute_script... [16:57: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" ] } } [16:57:24]POST & json_proto [16:57:24]process_json_proto [16:57:24]json parsed OK: [16:57:24]protocol is kg_v1.0 [16:57:24]action value=get_value [16:57:24]process_action get_value [16:57:24]cmd_get_value [16:57:24]process_action get_value done [16:57:24]requested_data is exist [16:57:24]produce_requested_data [16:57:24]requested_item kkm.sn is exist - process it [16:57:24]requested_item kkm.ver is exist - process it [16:57:24]requested_item fm.sn is exist - process it [16:57:24]wFMCommunicate request_size=4 [16:57:24]MH_SAM_APDU [16:57:24]CAPDU: 80 11 00 00 [16:57:24]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [16:57:24]Write i2c OK [16:57:24]MH_I2C_Read... [16:57:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:24]Read from MH i2c: E2 [16:57:24]MH_I2C_Read... [16:57:24]Read from MH i2c: E2 17 00 [16:57:24]MH_I2C_Read... [16:57:24]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DC [16:57:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:57:24]wFMCommunicate OK [16:57:24]requested_item fd.num is exist - process it [16:57:24]SAM_PROTO_GetFieldsCounters [16:57:24]wFMCommunicate request_size=4 [16:57:24]MH_SAM_APDU [16:57:24]CAPDU: 80 13 00 00 [16:57:24]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [16:57:24]Write i2c OK [16:57:24]MH_I2C_Read... [16:57:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:57:24]Read from MH i2c: E2 [16:57:24]MH_I2C_Read... [16:57:24]Read from MH i2c: E2 62 00 [16:57:24]MH_I2C_Read... [16:57:24]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 26 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [16:57:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 26 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:57:24]wFMCommunicate OK [16:57:24]SAM_PROTO_GetFieldsCounters done [16:57:24]requested_item shift.num is exist - process it [16:57:24]requested_item shift.opened is exist - process it [16:57:24]req_shift_opened [16:57:24]FM_GetShiftState [16:57:24]SAM_PROTO_GetShiftState [16:57:24]wFMCommunicate request_size=4 [16:57:24]MH_SAM_APDU [16:57:24]CAPDU: 80 13 01 00 [16:57:24]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [16:57:24]Write i2c OK [16:57:24]MH_I2C_Read... [16:57:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:24]Read from MH i2c: E2 [16:57:24]MH_I2C_Read... [16:57:24]Read from MH i2c: E2 0E 00 [16:57:24]MH_I2C_Read... [16:57:24]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 97 [16:57:24]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [16:57:24]wFMCommunicate OK [16:57:24]SAM_PROTO_GetShiftState done [16:57:24]FM_GetShiftState done [16:57:24]req_shift_opened done [16:57:24]requested_item shift.open_date is exist - process it [16:57:24]req_shift_open_date [16:57:24]req_shift_open_date done [16:57:24]produce_requested_data done [16:57:24]produce_requested_data return {"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82214,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [16:57:24]process_action_free get_value [16:57:24]json_value_free [16:57:24]json_value_free done [16:57:24]process_json_proto returns [16:57:24]Send response to host [16:57:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82214,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [16:57:24]free response buf [16:57:24]execute_script done [16:57:24]execute_script returns [16:57:24]free content buf [16:57:24]Sock 8.Close socket [16:57:24]Sock 8.Thread stoped [16:57:24]accept exits with 9 [16:57:24]New connection [16:57:24]New thread 3066469732 created [16:57:24]Thread 3066613092 joined [16:57:24]Waiting for new connection... [16:57:24] Sock 9.Parse request [16:57:24]Sock 9.Check first char [16:57:24]Sock 9.First char is OK [16:57:24]request: POST /json_proto HTTP/1.0 [16:57:24]Method: POST [16:57:24]URL: /json_proto [16:57:24]Method is POST - this is cgi request [16:57:24]url: /json_proto [16:57:24]query_string will be loaded in cgi processing [16:57:24]execute_cgi json_proto POST (null) [16:57:24]execute_cgi path=json_proto method=POST [16:57:24]POST find Content-Length [16:57:24]Host: 172.17.44.67:8080 [16:57:24]Content-Length: 331 [16:57:24]Content-Type: application/json [16:57:24] [16:57:24]POST finish read [16:57:24]Found Content-Length = 331 [16:57:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:57:24]execute_script... [16:57:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:57:24]POST & json_proto [16:57:24]process_json_proto [16:57:24]json parsed OK: [16:57:24]protocol is kg_v1.0 [16:57:24]action value=get_value [16:57:24]process_action get_value [16:57:24]cmd_get_value [16:57:24]process_action get_value done [16:57:24]requested_data is exist [16:57:24]produce_requested_data [16:57:24]requested_item fm.sale.total is exist - process it [16:57:24]SAM_PROTO_GetFMData [16:57:24]wFMCommunicate request_size=4 [16:57:24]MH_SAM_APDU [16:57:24]CAPDU: 80 13 03 00 [16:57:24]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [16:57:24]Write i2c OK [16:57:24]MH_I2C_Read... [16:57:25]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:57:25]Read from MH i2c: E2 [16:57:25]MH_I2C_Read... [16:57:25]Read from MH i2c: E2 FD 00 [16:57:25]MH_I2C_Read... [16:57:25]Read from MH i2c: E2 FD 00 13 00 00 C7 04 85 04 C3 04 6E 04 04 00 0C 3D 01 00 69 04 A3 00 6F 04 04 00 75 3A 01 00 B1 04 05 00 1A 9E F6 7A 01 70 04 05 00 F4 21 E9 40 01 72 04 04 00 26 7C 0D 3A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 EF 41 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 A1 C0 5A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 97 02 00 00 B1 04 04 00 90 01 0B 13 70 04 04 00 28 BF 0A 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 33 BB 05 02 EF 90 00 15 [16:57:25]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 0C 3D 01 00 69 04 A3 00 6F 04 04 00 75 3A 01 00 B1 04 05 00 1A 9E F6 7A 01 70 04 05 00 F4 21 E9 40 01 72 04 04 00 26 7C 0D 3A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 EF 41 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 A1 C0 5A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 97 02 00 00 B1 04 04 00 90 01 0B 13 70 04 04 00 28 BF 0A 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 33 BB 05 02 EF 90 00 [16:57:25]wFMCommunicate OK [16:57:25]wFMCommunicate request_size=4 [16:57:25]MH_SAM_APDU [16:57:25]CAPDU: 80 17 00 00 [16:57:25]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [16:57:25]Write i2c OK [16:57:25]MH_I2C_Read... [16:57:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:57:25]Read from MH i2c: E2 [16:57:25]MH_I2C_Read... [16:57:25]Read from MH i2c: E2 FD 00 [16:57:25]MH_I2C_Read... [16:57:25]Read from MH i2c: E2 FD 00 14 00 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AB 24 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 90 00 9B [16:57:25]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AB 24 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 90 00 [16:57:25]wFMCommunicate OK [16:57:25]wFMCommunicate request_size=4 [16:57:25]MH_SAM_APDU [16:57:25]CAPDU: 80 17 00 00 [16:57:25]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [16:57:25]Write i2c OK [16:57:25]MH_I2C_Read... [16:57:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:57:25]Read from MH i2c: E2 [16:57:25]MH_I2C_Read... [16:57:25]Read from MH i2c: E2 FD 00 [16:57:25]MH_I2C_Read... [16:57:25]Read from MH i2c: E2 FD 00 15 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 6D [16:57:25]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [16:57:25]wFMCommunicate OK [16:57:25]wFMCommunicate request_size=4 [16:57:25]MH_SAM_APDU [16:57:25]CAPDU: 80 17 00 00 [16:57:25]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [16:57:25]Write i2c OK [16:57:25]MH_I2C_Read... [16:57:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:57:25]Read from MH i2c: E2 [16:57:25]MH_I2C_Read... [16:57:25]Read from MH i2c: E2 FD 00 [16:57:25]MH_I2C_Read... [16:57:25]Read from MH i2c: E2 FD 00 16 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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 11 [16:57:25]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [16:57:25]wFMCommunicate OK [16:57:25]wFMCommunicate request_size=4 [16:57:25]MH_SAM_APDU [16:57:25]CAPDU: 80 17 00 00 [16:57:25]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [16:57:25]Write i2c OK [16:57:25]MH_I2C_Read... [16:57:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [16:57:26]Read from MH i2c: E2 [16:57:26]MH_I2C_Read... [16:57:26]Read from MH i2c: E2 E4 00 [16:57:26]MH_I2C_Read... [16:57:26]Read from MH i2c: E2 E4 00 17 00 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 77 [16:57:26]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:57:26]wFMCommunicate OK [16:57:26]SAM_PROTO_GetFMData done [16:57:26]requested_item fm.sale_refund.total is exist - process it [16:57:26]requested_item fm.buy.total is exist - process it [16:57:26]requested_item shift.sale.total is exist - process it [16:57:26]SAM_PROTO_GetShiftData [16:57:26]wFMCommunicate request_size=4 [16:57:26]MH_SAM_APDU [16:57:26]CAPDU: 80 13 02 00 [16:57:26]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [16:57:26]Write i2c OK [16:57:26]MH_I2C_Read... [16:57:26]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:57:26]Read from MH i2c: E2 [16:57:26]MH_I2C_Read... [16:57:26]Read from MH i2c: E2 FD 00 [16:57:26]MH_I2C_Read... [16:57:26]Read from MH i2c: E2 FD 00 18 00 00 B8 04 AA 04 B4 04 6E 04 04 00 8C 00 00 00 69 04 9B 00 6F 04 04 00 8A 00 00 00 B1 04 03 00 01 05 6C 70 04 03 00 B8 52 54 72 04 03 00 49 B2 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 6F 79 0B 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 C7 F4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 A0 68 06 70 04 03 00 A0 68 06 72 04 00 00 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 43 AE EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 3D [16:57:26]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 8C 00 00 00 69 04 9B 00 6F 04 04 00 8A 00 00 00 B1 04 03 00 01 05 6C 70 04 03 00 B8 52 54 72 04 03 00 49 B2 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 6F 79 0B 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 C7 F4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 A0 68 06 70 04 03 00 A0 68 06 72 04 00 00 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 43 AE EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [16:57:26]wFMCommunicate OK [16:57:26]wFMCommunicate request_size=4 [16:57:26]MH_SAM_APDU [16:57:26]CAPDU: 80 17 00 00 [16:57:26]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [16:57:26]Write i2c OK [16:57:26]MH_I2C_Read... [16:57:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:57:26]Read from MH i2c: E2 [16:57:26]MH_I2C_Read... [16:57:26]Read from MH i2c: E2 FD 00 [16:57:26]MH_I2C_Read... [16:57:26]Read from MH i2c: E2 FD 00 19 00 00 0B 00 F6 03 01 00 01 F7 03 02 00 85 0E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 5D [16:57:26]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 85 0E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 [16:57:26]wFMCommunicate OK [16:57:26]wFMCommunicate request_size=4 [16:57:26]MH_SAM_APDU [16:57:26]CAPDU: 80 17 00 00 [16:57:26]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [16:57:26]Write i2c OK [16:57:26]MH_I2C_Read... [16:57:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:57:27]Read from MH i2c: E2 [16:57:27]MH_I2C_Read... [16:57:27]Read from MH i2c: E2 FD 00 [16:57:27]MH_I2C_Read... [16:57:27]Read from MH i2c: E2 FD 00 1A 00 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 3C [16:57:27]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [16:57:27]wFMCommunicate OK [16:57:27]wFMCommunicate request_size=4 [16:57:27]MH_SAM_APDU [16:57:27]CAPDU: 80 17 00 00 [16:57:27]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [16:57:27]Write i2c OK [16:57:27]MH_I2C_Read... [16:57:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:57:27]Read from MH i2c: E2 [16:57:27]MH_I2C_Read... [16:57:27]Read from MH i2c: E2 FD 00 [16:57:27]MH_I2C_Read... [16:57:27]Read from MH i2c: E2 FD 00 1B 00 00 03 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 90 00 24 [16:57:27]RAPDU: 03 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 90 00 [16:57:27]wFMCommunicate OK [16:57:27]wFMCommunicate request_size=4 [16:57:27]MH_SAM_APDU [16:57:27]CAPDU: 80 17 00 00 [16:57:27]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [16:57:27]Write i2c OK [16:57:27]MH_I2C_Read... [16:57:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [16:57:27]Read from MH i2c: E2 [16:57:27]MH_I2C_Read... [16:57:27]Read from MH i2c: E2 D5 00 [16:57:27]MH_I2C_Read... [16:57:27]Read from MH i2c: E2 D5 00 1C 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [16:57:27]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:57:27]wFMCommunicate OK [16:57:27]SAM_PROTO_GetShiftData done [16:57:27]requested_item shift.sale.total_cash is exist - process it [16:57:27]requested_item shift.sale_refund.total is exist - process it [16:57:27]requested_item shift.sale_refund.total_cash is exist - process it [16:57:27]requested_item shift.buy.total is exist - process it [16:57:27]requested_item shift.buy.total_cash is exist - process it [16:57:27]produce_requested_data done [16:57:27]produce_requested_data return {"fm.sale.total":63579499.78,"fm.sale_refund.total":3194884.00,"fm.buy.total":0.00,"shift.sale.total":70791.69,"shift.sale.total_cash":55262.00,"shift.sale_refund.total":4200.00,"shift.sale_refund.total_cash":4200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [16:57:27]process_action_free get_value [16:57:27]json_value_free [16:57:27]json_value_free done [16:57:27]process_json_proto returns [16:57:27]Send response to host [16:57:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":63579499.78,"fm.sale_refund.total":3194884.00,"fm.buy.total":0.00,"shift.sale.total":70791.69,"shift.sale.total_cash":55262.00,"shift.sale_refund.total":4200.00,"shift.sale_refund.total_cash":4200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [16:57:27]free response buf [16:57:27]execute_script done [16:57:27]execute_script returns [16:57:27]free content buf [16:57:27]Sock 9.Close socket [16:57:27]Sock 9.Thread stoped [16:57:28]accept exits with 8 [16:57:28]New connection [16:57:28]New thread 3066613092 created [16:57:28]Thread 3066469732 joined [16:57:28]Waiting for new connection... [16:57:28] Sock 8.Parse request [16:57:28]Sock 8.Check first char [16:57:28]Sock 8.First char is OK [16:57:28]request: POST /json_proto HTTP/1.0 [16:57:28]Method: POST [16:57:28]URL: /json_proto [16:57:28]Method is POST - this is cgi request [16:57:28]url: /json_proto [16:57:28]query_string will be loaded in cgi processing [16:57:28]execute_cgi json_proto POST (null) [16:57:28]execute_cgi path=json_proto method=POST [16:57:28]POST find Content-Length [16:57:28]Host: 172.17.44.67:8080 [16:57:28]Content-Length: 806 [16:57:28]Content-Type: application/json [16:57:28] [16:57:28]POST finish read [16:57:28]Found Content-Length = 806 [16:57:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2202662", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:28]execute_script... [16:57:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2202662", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:28]POST & json_proto [16:57:28]process_json_proto [16:57:28]json parsed OK: [16:57:28]protocol is kg_v1.0 [16:57:28]action value=close_receipt [16:57:28]process_action close_receipt [16:57:28]cmd_close_receipt [16:57:28]MH_GetDate [16:57:28]Write to MH i2c: F0 00 00 1D 00 0C [16:57:28]Write i2c OK [16:57:28]MH_I2C_Read... [16:57:28]Read from MH i2c: F0 [16:57:28]MH_I2C_Read... [16:57:28]Read from MH i2c: F0 09 00 [16:57:28]MH_I2C_Read... [16:57:28]Read from MH i2c: F0 09 00 1D 00 00 F8 41 11 67 F1 C7 6B 64 4D [16:57:28]GetLastDocTimeStamp 1729184120 [16:57:28]current date 1729184248 [16:57:28]FM_GetShiftState [16:57:28]SAM_PROTO_GetShiftState [16:57:28]wFMCommunicate request_size=4 [16:57:28]MH_SAM_APDU [16:57:28]CAPDU: 80 13 01 00 [16:57:28]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [16:57:28]Write i2c OK [16:57:28]MH_I2C_Read... [16:57:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:28]Read from MH i2c: E2 [16:57:28]MH_I2C_Read... [16:57:28]Read from MH i2c: E2 0E 00 [16:57:28]MH_I2C_Read... [16:57:28]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 A3 [16:57:28]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [16:57:28]wFMCommunicate OK [16:57:28]SAM_PROTO_GetShiftState done [16:57:28]FM_GetShiftState done [16:57:28]opened in 1729125927 [16:57:28]opened+sec_in_day 1729212327 [16:57:28]quantity*price = 0 [16:57:28]sum+1 = 1 [16:57:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 141 17.10.2024 16:57 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 2202662 ФМ: 0000000000871843 ФД: 82215 ФПД: 210931998871486 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T165728&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82215&fm=210931998871486&tin=02508201610067®Number=0000000000091680&sum=0 [16:57:29]StoreToDocumentArchive [16:57:29]shift 525 fd 82215 [16:57:29]save to /storage/0525/doc_00082215 [16:57:29]save last doc name /storage/0525/doc_00082215 to /storage/kkm_last_doc_name [16:57:29]save OK [16:57:29]Clear old archive folders... [16:57:29]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:57:29]tlvbuf is 011CED70 [16:57:29]SAM_PROTO_ClearQueue [16:57:29]wFMCommunicate request_size=4 [16:57:29]MH_SAM_APDU [16:57:29]CAPDU: 80 09 00 00 [16:57:29]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [16:57:29]Write i2c OK [16:57:29]MH_I2C_Read... [16:57:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:57:29]Read from MH i2c: E2 [16:57:29]MH_I2C_Read... [16:57:29]Read from MH i2c: E2 03 00 [16:57:29]MH_I2C_Read... [16:57:29]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [16:57:29]RAPDU: 90 00 [16:57:29]wFMCommunicate OK [16:57:29]SAM_PROTO_ClearQueue done [16:57:29]KKMCreateOFDPacket [16:57:29]OFDProtocolAddRootSTLVToBuf [16:57:29]FM_MakeSignedData [16:57:29]FM_MakeSignedData [16:57:29]SAM_PROTO_SignData [16:57:29]wFMCommunicate request_size=4 [16:57:29]MH_SAM_APDU [16:57:29]CAPDU: 80 0D 01 02 [16:57:29]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [16:57:29]Write i2c OK [16:57:29]MH_I2C_Read... [16:57:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:57:29]Read from MH i2c: E2 [16:57:29]MH_I2C_Read... [16:57:29]Read from MH i2c: E2 03 00 [16:57:29]MH_I2C_Read... [16:57:29]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [16:57:29]RAPDU: 90 00 [16:57:29]wFMCommunicate OK [16:57:29]wFMCommunicate request_size=255 [16:57:29]MH_SAM_APDU [16:57:29]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 F8 41 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 27 41 01 [16:57:29]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 F8 41 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 27 41 01 00 00 35 [16:57:30]Write i2c OK [16:57:30]MH_I2C_Read... [16:57:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:30]Read from MH i2c: E2 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: E2 03 00 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [16:57:30]RAPDU: 90 00 [16:57:30]wFMCommunicate OK [16:57:30]wFMCommunicate request_size=16 [16:57:30]MH_SAM_APDU [16:57:30]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 BF D7 6E DD 4F BE [16:57:30]Write to MH i2c: E2 13 00 2E 00 80 0D 02 02 0B 00 00 35 04 06 00 BF D7 6E DD 4F BE 00 00 EB [16:57:30]Write i2c OK [16:57:30]MH_I2C_Read... [16:57:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:30]Read from MH i2c: E2 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: E2 03 00 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [16:57:30]RAPDU: 90 00 [16:57:30]wFMCommunicate OK [16:57:30]wFMCommunicate request_size=4 [16:57:30]MH_SAM_APDU [16:57:30]CAPDU: 80 0D 03 02 [16:57:30]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [16:57:30]Write i2c OK [16:57:30]MH_I2C_Read... [16:57:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:57:30]Read from MH i2c: E2 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: E2 0B 00 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: E2 0B 00 2F 00 00 5E B4 A9 9E CD 25 65 D2 90 00 2D [16:57:30]RAPDU: 5E B4 A9 9E CD 25 65 D2 90 00 [16:57:30]wFMCommunicate OK [16:57:30]SAM_PROTO_SignData done [16:57:30]FM_MakeSignedData done [16:57:30]CreateOFDProtocolMessage [16:57:30]wFMCommunicate request_size=4 [16:57:30]MH_SAM_APDU [16:57:30]CAPDU: 80 11 00 00 [16:57:30]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [16:57:30]Write i2c OK [16:57:30]MH_I2C_Read... [16:57:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:30]Read from MH i2c: E2 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: E2 17 00 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 FC [16:57:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:57:30]wFMCommunicate OK [16:57:30]CreateOFDProtocolMessage done [16:57:30]OFDSenderStorePacket 82215 [16:57:30]StoreOFDPacket docnum=82215 [16:57:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 96 09 0D 01 DC D1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 F8 41 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 27 41 01 00 35 04 06 00 BF D7 6E DD 4F BE 5E B4 A9 9E CD 25 65 D2 [16:57:30]CheckFolder [16:57:30]dirname=/storage/ofd_packets [16:57:30]CheckFolder done [16:57:30]ProducePacketName [16:57:30]name=ofd_packets/00082215 [16:57:30]NVStorageSaveData ofd_packets/00082215 [16:57:30]File name is /storage/ofd_packets/00082215 [16:57:30]Write 307 bytes [16:57:30]NVStorageSaveData done [16:57:30]OFDSenderStorePacket done [16:57:30]KKMCreateOFDPacket done [16:57:30]NVStorageSaveData kkm_last_timestamp [16:57:30]File name is /storage/kkm_last_timestamp [16:57:30]Write 4 bytes [16:57:30]NVStorageSaveData done [16:57:30]ExternCall_PrintAddStr [16:57:30]wPrintStart [16:57:30]Write to MH i2c: 01 00 00 31 00 31 [16:57:30]Write i2c OK [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: 01 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: 01 07 00 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [16:57:30]RasterBufferAndPrint [16:57:30]line Счет N : (1)918720 [16:57:30]line ИНН: 02508201610067 [16:57:30]line Контрольно-Кассовый Чек [16:57:30]line ПРОДАЖА [16:57:30]line ТРК (МРК, ГНК) : 21 [16:57:30]line Товар: 2710194800 [16:57:30]line D-Energy ДТ-К-2 [16:57:30]line 30.000 * 0.00 [16:57:30]line = 0.00 [16:57:30]line НДС 12% НСП 1% [16:57:30]line > о реализуемом товаре [16:57:30]line ИТОГО: 0.00 [16:57:30]line НСП 1% : 0.00 [16:57:30]line НДС 12% : 0.00 [16:57:30]line Наличными: 0.00 [16:57:30]line Безнал.: 0.00 [16:57:30]line Место: АЗС № 114 "Партнер Нефть" [16:57:30]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [16:57:30]line СНО: Общий режим [16:57:30]line Чек 141 17.10.2024 16:57 [16:57:30]line Смена: 525 ФФД: 1.0 [16:57:30]line ЗНМ: 0300000086 [16:57:30]line РНМ: 0000000000091680 [16:57:30]line Версия ККМ: 001 [16:57:30]line Талоны: Топливные Талоны [16:57:30]line 2202662 [16:57:30]line ФМ: 0000000000871843 [16:57:30]line ФД: 82215 [16:57:30]line ФПД: 210931998871486 [16:57:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T165728&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82215&fm=210931998871486&tin=02508201610067®Number=0000000000091680&sum=0 [16:57:30]written 0, free lines is 4095 [16:57:30]OFD Sender: Processing packet 82215 [packets to send 254, broken 253] [16:57:30]ProducePacketName [16:57:30]name=ofd_packets/00082215 [16:57:30]OFD Sender: To server: pG, [16:57:30]CommunicateWithHost lk.salyk.kg:30040 [16:57:30]ConnectInit lk.salyk.kg [16:57:31]Write to MH i2c: 01 00 00 5B 00 5B [16:57:31]Write i2c OK [16:57:31]MH_I2C_Read... [16:57:31]Read from MH i2c: 01 [16:57:31]MH_I2C_Read... [16:57:31]Read from MH i2c: 01 07 00 [16:57:31]MH_I2C_Read... [16:57:31]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 FC 0C 6A [16:57:31]RasterBufferAndPrint [16:57:31]line [16:57:31]line [16:57:31]line [16:57:31]line [16:57:31]line [16:57:31]written 0, free lines is 3346 [16:57:31]MH_Cut [16:57:31]Write to MH i2c: D1 01 00 62 00 01 34 [16:57:31]Write i2c OK [16:57:31]MH_I2C_Read... [16:57:31]Read from MH i2c: D1 [16:57:31]MH_I2C_Read... [16:57:31]Read from MH i2c: D1 01 00 [16:57:31]MH_I2C_Read... [16:57:31]Read from MH i2c: D1 01 00 62 00 00 33 [16:57:31]Write to MH i2c: 01 00 00 63 00 63 [16:57:31]Write i2c OK [16:57:31]MH_I2C_Read... [16:57:31]*** Cut start [16:57:31]*** Partial cut [16:57:31]*** CUTSNS_PIN = 1 [16:57:31]*** CUTSNS_PIN = 0 [16:57:32]*** Brake cut motor [16:57:32]Read from MH i2c: *** Stop cut motor [16:57:32]01 *** Cut end [16:57:32] [16:57:32]MH_I2C_Read... [16:57:32]Read from MH i2c: 01 07 00 [16:57:32]MH_I2C_Read... [16:57:32]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [16:57:32]process_action close_receipt done [16:57:32]requested_data is exist [16:57:32]produce_requested_data [16:57:32]requested_item fm.sn is exist - process it [16:57:32]wFMCommunicate request_size=4 [16:57:32]MH_SAM_APDU [16:57:32]CAPDU: 80 11 00 00 [16:57:32]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [16:57:32]Write i2c OK [16:57:32]MH_I2C_Read... [16:57:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:32]Read from MH i2c: E2 [16:57:32]MH_I2C_Read... [16:57:32]Read from MH i2c: E2 17 00 [16:57:32]MH_I2C_Read... [16:57:32]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 30 [16:57:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:57:32]wFMCommunicate OK [16:57:32]requested_item fd.num is exist - process it [16:57:32]SAM_PROTO_GetFieldsCounters [16:57:32]wFMCommunicate request_size=4 [16:57:32]MH_SAM_APDU [16:57:32]CAPDU: 80 13 00 00 [16:57:32]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [16:57:32]Write i2c OK [16:57:32]MH_I2C_Read... [16:57:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:57:32]Read from MH i2c: E2 [16:57:32]MH_I2C_Read... [16:57:32]Read from MH i2c: E2 62 00 [16:57:32]MH_I2C_Read... [16:57:32]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 27 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [16:57:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 27 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:57:32]wFMCommunicate OK [16:57:32]SAM_PROTO_GetFieldsCounters done [16:57:32]requested_item shift.num is exist - process it [16:57:32]requested_item shift.opened is exist - process it [16:57:32]req_shift_opened [16:57:32]FM_GetShiftState [16:57:32]SAM_PROTO_GetShiftState [16:57:32]wFMCommunicate request_size=4 [16:57:32]MH_SAM_APDU [16:57:32]CAPDU: 80 13 01 00 [16:57:32]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [16:57:32]Write i2c OK [16:57:32]MH_I2C_Read... [16:57:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:32]Read from MH i2c: E2 [16:57:32]MH_I2C_Read... [16:57:32]Read from MH i2c: E2 0E 00 [16:57:32]MH_I2C_Read... [16:57:32]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 EB [16:57:32]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [16:57:32]wFMCommunicate OK [16:57:32]SAM_PROTO_GetShiftState done [16:57:32]FM_GetShiftState done [16:57:32]req_shift_opened done [16:57:32]requested_item shift.open_date is exist - process it [16:57:32]req_shift_open_date [16:57:32]req_shift_open_date done [16:57:32]produce_requested_data done [16:57:32]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82215,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [16:57:32]process_action_free close_receipt [16:57:32]json_value_free [16:57:32]json_value_free done [16:57:32]process_json_proto returns [16:57:32]Send response to host [16:57:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82215,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [16:57:32]free response buf [16:57:32]execute_script done [16:57:32]execute_script returns [16:57:32]free content buf [16:57:32]Sock 8.Close socket [16:57:32]Sock 8.Thread stoped [16:57:36]recv_with_timeout no data received [16:57:40]Connected sock=11 [16:57:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 96 09 0D 01 DC D1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 F8 41 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 27 41 01 00 35 04 06 00 BF D7 6E DD 4F BE 5E B4 A9 9E CD 25 65 D2 [16:57:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 7A 5F 47 00 1F EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 27 41 01 00 F4 03 04 00 3F E7 10 67 B6 04 01 00 00 7D 74 F9 F6 35 74 F3 DD [16:57:40]CommunicateWithHost err = 0 [16:57:40]CheckOFDResponse [16:57:40]1017 (14) - 77093643461234 [16:57:40]1041 (16) - 0000000000871843 [16:57:40]1040 (4) - 82215 [16:57:40]1012 (4) - 17.10.2024 10:30 [16:57:40]1206 (1) - 0 [16:57:40]OFD Sender: Remove packet 82215 [16:57:40]ProducePacketName [16:57:40]name=ofd_packets/00082215 [16:57:40]NVStorageDeleteData [16:57:41]OFD Sender: No OFD packet to send [16:57:46]OFD Sender: No OFD packet to send [16:57:51]OFD Sender: No OFD packet to send [16:57:53]accept exits with 9 [16:57:53]New connection [16:57:53]New thread 3066469732 created [16:57:53]Thread 3066613092 joined [16:57:53]Waiting for new connection... [16:57:53] Sock 9.Parse request [16:57:53]Sock 9.Check first char [16:57:53]Sock 9.First char is OK [16:57:53]request: POST /json_proto HTTP/1.0 [16:57:53]Method: POST [16:57:53]URL: /json_proto [16:57:53]Method is POST - this is cgi request [16:57:53]url: /json_proto [16:57:53]query_string will be loaded in cgi processing [16:57:53]execute_cgi json_proto POST (null) [16:57:53]execute_cgi path=json_proto method=POST [16:57:53]POST find Content-Length [16:57:53]Host: 172.17.44.67:8080 [16:57:53]Content-Length: 677 [16:57:53]Content-Type: application/json [16:57:53] [16:57:53]POST finish read [16:57:53]Found Content-Length = 677 [16:57:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:53]execute_script... [16:57:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:53]POST & json_proto [16:57:53]process_json_proto [16:57:53]json parsed OK: [16:57:53]protocol is kg_v1.0 [16:57:53]action value=close_receipt [16:57:53]process_action close_receipt [16:57:53]cmd_close_receipt [16:57:53]MH_GetDate [16:57:53]Write to MH i2c: F0 00 00 67 00 56 [16:57:53]Write i2c OK [16:57:53]MH_I2C_Read... [16:57:53]Read from MH i2c: F0 [16:57:53]MH_I2C_Read... [16:57:53]Read from MH i2c: F0 09 00 [16:57:53]MH_I2C_Read... [16:57:53]Read from MH i2c: F0 09 00 67 00 00 11 42 11 67 F1 C7 6B 64 B1 [16:57:53]GetLastDocTimeStamp 1729184248 [16:57:53]current date 1729184273 [16:57:53]FM_GetShiftState [16:57:53]SAM_PROTO_GetShiftState [16:57:53]wFMCommunicate request_size=4 [16:57:53]MH_SAM_APDU [16:57:53]CAPDU: 80 13 01 00 [16:57:53]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [16:57:53]Write i2c OK [16:57:53]MH_I2C_Read... [16:57:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:53]Read from MH i2c: E2 [16:57:53]MH_I2C_Read... [16:57:53]Read from MH i2c: E2 0E 00 [16:57:53]MH_I2C_Read... [16:57:53]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 ED [16:57:53]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [16:57:53]wFMCommunicate OK [16:57:53]SAM_PROTO_GetShiftState done [16:57:53]FM_GetShiftState done [16:57:53]opened in 1729125927 [16:57:53]opened+sec_in_day 1729212327 [16:57:53]quantity*price = 30038 [16:57:53]sum+1 = 30039 [16:57:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 142 17.10.2024 16:57 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82216 ФПД: 30249151510939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T165753&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82216&fm=30249151510939&tin=02508201610067®Number=0000000000091680&sum=30000 [16:57:54]StoreToDocumentArchive [16:57:54]shift 525 fd 82216 [16:57:54]save to /storage/0525/doc_00082216 [16:57:54]save last doc name /storage/0525/doc_00082216 to /storage/kkm_last_doc_name [16:57:54]save OK [16:57:54]Clear old archive folders... [16:57:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:57:54]tlvbuf is 011D23F0 [16:57:54]SAM_PROTO_ClearQueue [16:57:54]wFMCommunicate request_size=4 [16:57:54]MH_SAM_APDU [16:57:54]CAPDU: 80 09 00 00 [16:57:54]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [16:57:54]Write i2c OK [16:57:54]MH_I2C_Read... [16:57:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:57:54]Read from MH i2c: E2 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 03 00 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [16:57:54]RAPDU: 90 00 [16:57:54]wFMCommunicate OK [16:57:54]SAM_PROTO_ClearQueue done [16:57:54]KKMCreateOFDPacket [16:57:54]OFDProtocolAddRootSTLVToBuf [16:57:54]FM_MakeSignedData [16:57:54]FM_MakeSignedData [16:57:54]SAM_PROTO_SignData [16:57:54]wFMCommunicate request_size=4 [16:57:54]MH_SAM_APDU [16:57:54]CAPDU: 80 0D 01 02 [16:57:54]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [16:57:54]Write i2c OK [16:57:54]MH_I2C_Read... [16:57:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:57:54]Read from MH i2c: E2 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 03 00 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [16:57:54]RAPDU: 90 00 [16:57:54]wFMCommunicate OK [16:57:54]wFMCommunicate request_size=255 [16:57:54]MH_SAM_APDU [16:57:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 11 42 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 28 41 01 00 35 04 06 00 1B [16:57:54]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 11 42 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 28 41 01 00 35 04 06 00 1B 00 00 5C [16:57:54]Write i2c OK [16:57:54]MH_I2C_Read... [16:57:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:54]Read from MH i2c: E2 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 03 00 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [16:57:54]RAPDU: 90 00 [16:57:54]wFMCommunicate OK [16:57:54]wFMCommunicate request_size=10 [16:57:54]MH_SAM_APDU [16:57:54]CAPDU: 80 0D 02 02 05 82 ED EE 39 9B [16:57:54]Write to MH i2c: E2 0D 00 78 00 80 0D 02 02 05 00 82 ED EE 39 9B 00 00 2D [16:57:54]Write i2c OK [16:57:54]MH_I2C_Read... [16:57:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:54]Read from MH i2c: E2 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 03 00 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [16:57:54]RAPDU: 90 00 [16:57:54]wFMCommunicate OK [16:57:54]wFMCommunicate request_size=4 [16:57:54]MH_SAM_APDU [16:57:54]CAPDU: 80 0D 03 02 [16:57:54]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [16:57:54]Write i2c OK [16:57:54]MH_I2C_Read... [16:57:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:57:54]Read from MH i2c: E2 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 0B 00 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 0B 00 79 00 00 9E 6C CA 75 9B 23 9A 9B 90 00 31 [16:57:54]RAPDU: 9E 6C CA 75 9B 23 9A 9B 90 00 [16:57:54]wFMCommunicate OK [16:57:54]SAM_PROTO_SignData done [16:57:54]FM_MakeSignedData done [16:57:54]CreateOFDProtocolMessage [16:57:54]wFMCommunicate request_size=4 [16:57:54]MH_SAM_APDU [16:57:54]CAPDU: 80 11 00 00 [16:57:54]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [16:57:54]Write i2c OK [16:57:54]MH_I2C_Read... [16:57:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:54]Read from MH i2c: E2 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 17 00 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 46 [16:57:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:57:54]wFMCommunicate OK [16:57:54]CreateOFDProtocolMessage done [16:57:54]OFDSenderStorePacket 82216 [16:57:54]StoreOFDPacket docnum=82216 [16:57:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 5A 46 07 01 CC 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 11 42 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 28 41 01 00 35 04 06 00 1B 82 ED EE 39 9B 9E 6C CA 75 9B 23 9A 9B [16:57:54]CheckFolder [16:57:54]dirname=/storage/ofd_packets [16:57:54]CheckFolder done [16:57:54]ProducePacketName [16:57:54]name=ofd_packets/00082216 [16:57:54]NVStorageSaveData ofd_packets/00082216 [16:57:54]File name is /storage/ofd_packets/00082216 [16:57:54]Write 301 bytes [16:57:54]NVStorageSaveData done [16:57:54]OFDSenderStorePacket done [16:57:54]KKMCreateOFDPacket done [16:57:54]NVStorageSaveData kkm_last_timestamp [16:57:54]File name is /storage/kkm_last_timestamp [16:57:54]Write 4 bytes [16:57:54]NVStorageSaveData done [16:57:55]OFD Sender: Processing packet 82216 [packets to send 254, broken 253] [16:57:55]ProducePacketName [16:57:55]name=ofd_packets/00082216 [16:57:55]OFD Sender: To server: pG, [16:57:55]CommunicateWithHost lk.salyk.kg:30040 [16:57:55]ConnectInit lk.salyk.kg [16:57:55]ExternCall_PrintAddStr [16:57:55]wPrintStart [16:57:55]Write to MH i2c: 01 00 00 7B 00 7B [16:57:55]Write i2c OK [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: 01 [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: 01 07 00 [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [16:57:55]RasterBufferAndPrint [16:57:55]line Счет N : (1)918722 [16:57:55]line ИНН: 02508201610067 [16:57:55]line Контрольно-Кассовый Чек [16:57:55]line ПРОДАЖА [16:57:55]line ТРК (МРК, ГНК) : 11 [16:57:55]line Товар: 2710124130 [16:57:55]line Аи-92-К-4 [16:57:55]line 4.490 * 66.90 [16:57:55]line = 300.38 [16:57:55]line НДС 12% НСП 1% [16:57:55]line > о реализуемом товаре [16:57:55]line ОКРУГЛЕНИЕ: -0.38 [16:57:55]line ИТОГО: 300.00 [16:57:55]line Внесено: 300.00 [16:57:55]line СДАЧА: 0.00 [16:57:55]line НСП 1% : 2.66 [16:57:55]line НДС 12% : 31.90 [16:57:55]line Наличными: 300.00 [16:57:55]line Безнал.: 0.00 [16:57:55]line Место: АЗС № 114 "Партнер Нефть" [16:57:55]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [16:57:55]line СНО: Общий режим [16:57:55]line Чек 142 17.10.2024 16:57 [16:57:55]line Смена: 525 ФФД: 1.0 [16:57:55]line ЗНМ: 0300000086 [16:57:55]line РНМ: 0000000000091680 [16:57:55]line Версия ККМ: 001 [16:57:55]line ФМ: 0000000000871843 [16:57:55]line ФД: 82216 [16:57:55]line ФПД: 30249151510939 [16:57:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T165753&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82216&fm=30249151510939&tin=02508201610067®Number=0000000000091680&sum=30000 [16:57:55]written 0, free lines is 4095 [16:57:55]recv_with_timeout no data received [16:57:55]Write to MH i2c: 01 00 00 A6 00 A6 [16:57:55]Write i2c OK [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: 01 [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: 01 07 00 [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: 01 07 00 A6 00 00 00 00 00 00 D8 0C 91 [16:57:55]RasterBufferAndPrint [16:57:55]line [16:57:55]line [16:57:55]line [16:57:55]line [16:57:55]line [16:57:55]written 0, free lines is 3313 [16:57:55]MH_Cut [16:57:55]Write to MH i2c: D1 01 00 AD 00 01 7F [16:57:55]Write i2c OK [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: D1 [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: D1 01 00 [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: D1 01 00 AD 00 00 7E [16:57:55]Write to MH i2c: 01 00 00 AE 00 AE [16:57:55]Write i2c OK [16:57:55]MH_I2C_Read... [16:57:56]*** Cut start [16:57:56]*** Partial cut [16:57:56]*** CUTSNS_PIN = 1 [16:57:56]*** CUTSNS_PIN = 0 [16:57:56]Connected sock=12 [16:57:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 5A 46 07 01 CC 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 11 42 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 28 41 01 00 35 04 06 00 1B 82 ED EE 39 9B 9E 6C CA 75 9B 23 9A 9B [16:57:56]*** Brake cut motor [16:57:56]Read from MH i2c: 01 [16:57:56]MH_I2C_Read... [16:57:56]*** Stop cut motor [16:57:56]*** Cut end [16:57:56]Read from MH i2c: 01 07 00 [16:57:56]MH_I2C_Read... [16:57:56]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [16:57:56]process_action close_receipt done [16:57:56]requested_data is exist [16:57:56]produce_requested_data [16:57:56]requested_item fm.sn is exist - process it [16:57:56]wFMCommunicate request_size=4 [16:57:56]MH_SAM_APDU [16:57:56]CAPDU: 80 11 00 00 [16:57:56]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [16:57:56]Write i2c OK [16:57:56]MH_I2C_Read... [16:57:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:56]Read from MH i2c: E2 [16:57:56]MH_I2C_Read... [16:57:56]Read from MH i2c: E2 17 00 [16:57:56]MH_I2C_Read... [16:57:56]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 7B [16:57:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:57:57]wFMCommunicate OK [16:57:57]requested_item fd.num is exist - process it [16:57:57]SAM_PROTO_GetFieldsCounters [16:57:57]wFMCommunicate request_size=4 [16:57:57]MH_SAM_APDU [16:57:57]CAPDU: 80 13 00 00 [16:57:57]Write to MH i2c: E2 08 00 B0 00 80 13 00 00 00 00 00 00 2C [16:57:57]Write i2c OK [16:57:57]MH_I2C_Read... [16:57:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:57:57]Read from MH i2c: E2 [16:57:57]MH_I2C_Read... [16:57:57]Read from MH i2c: E2 62 00 [16:57:57]MH_I2C_Read... [16:57:57]Read from MH i2c: E2 62 00 B0 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 28 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [16:57:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 28 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:57:57]wFMCommunicate OK [16:57:57]SAM_PROTO_GetFieldsCounters done [16:57:57]requested_item shift.num is exist - process it [16:57:57]requested_item shift.opened is exist - process it [16:57:57]req_shift_opened [16:57:57]FM_GetShiftState [16:57:57]SAM_PROTO_GetShiftState [16:57:57]wFMCommunicate request_size=4 [16:57:57]MH_SAM_APDU [16:57:57]CAPDU: 80 13 01 00 [16:57:57]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [16:57:57]Write i2c OK [16:57:57]MH_I2C_Read... [16:57:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 D2 1F 47 00 74 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 Read from MH i2c: 04 E2 04 [16:57:57]00 MH_I2C_Read... [16:57:57]28 *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:57]41 Read from MH i2c: 01 E2 00 0E F4 00 03 [16:57:57]04 MH_I2C_Read... [16:57:57]00 4F E7 10 67 B6 04 01 00 00 FF 31 5A EE 5A 6A 45 FA [16:57:57]CommunicateWithHost err = 0 [16:57:57]CheckOFDResponse [16:57:57]1017 (14) - 77093643461234 [16:57:57]1041 (16) - 0000000000871843 [16:57:57]1040 (4) - 82216 [16:57:57]Read from MH i2c: 1012 (4) - 17.10.2024 10:30 [16:57:57]E2 1206 (1) - 0 [16:57:57]0E OFD Sender: Remove packet 82216 [16:57:57]00 ProducePacketName [16:57:57]B1 name=ofd_packets/00082216 [16:57:57]00 NVStorageDeleteData [16:57:57]00 09 00 01 27 5E 10 67 00 00 00 00 90 00 36 [16:57:57]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [16:57:57]wFMCommunicate OK [16:57:57]SAM_PROTO_GetShiftState done [16:57:57]FM_GetShiftState done [16:57:57]req_shift_opened done [16:57:57]requested_item shift.open_date is exist - process it [16:57:57]req_shift_open_date [16:57:57]req_shift_open_date done [16:57:57]produce_requested_data done [16:57:57]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82216,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [16:57:57]process_action_free close_receipt [16:57:57]json_value_free [16:57:57]json_value_free done [16:57:57]process_json_proto returns [16:57:57]Send response to host [16:57:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82216,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [16:57:57]free response buf [16:57:57]execute_script done [16:57:57]execute_script returns [16:57:57]free content buf [16:57:57]Sock 9.Close socket [16:57:57]Sock 9.Thread stoped [16:57:57]OFD Sender: No OFD packet to send [16:58:01]accept exits with 10 [16:58:01]New connection [16:58:01]New thread 3066613092 created [16:58:01]Thread 3066469732 joined [16:58:01]Waiting for new connection... [16:58:01] Sock 10.Parse request [16:58:01]Sock 10.Check first char [16:58:01]Sock 10.First char is OK [16:58:01]request: POST /json_proto HTTP/1.0 [16:58:01]Method: POST [16:58:01]URL: /json_proto [16:58:01]Method is POST - this is cgi request [16:58:01]url: /json_proto [16:58:01]query_string will be loaded in cgi processing [16:58:01]execute_cgi json_proto POST (null) [16:58:01]execute_cgi path=json_proto method=POST [16:58:01]POST find Content-Length [16:58:01]Host: 172.17.44.67:8080 [16:58:01]Content-Length: 683 [16:58:01]Content-Type: application/json [16:58:01] [16:58:01]POST finish read [16:58:01]Found Content-Length = 683 [16:58:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 2.600, "sum" : 200.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:01]execute_script... [16:58:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 2.600, "sum" : 200.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:01]POST & json_proto [16:58:01]process_json_proto [16:58:01]json parsed OK: [16:58:01]protocol is kg_v1.0 [16:58:01]action value=close_receipt [16:58:01]process_action close_receipt [16:58:01]cmd_close_receipt [16:58:01]MH_GetDate [16:58:01]Write to MH i2c: F0 00 00 B2 00 A1 [16:58:01]Write i2c OK [16:58:01]MH_I2C_Read... [16:58:01]Read from MH i2c: F0 [16:58:01]MH_I2C_Read... [16:58:01]Read from MH i2c: F0 09 00 [16:58:01]MH_I2C_Read... [16:58:01]Read from MH i2c: F0 09 00 B2 00 00 19 42 11 67 F1 C7 6B 64 04 [16:58:01]GetLastDocTimeStamp 1729184273 [16:58:01]current date 1729184281 [16:58:01]FM_GetShiftState [16:58:01]SAM_PROTO_GetShiftState [16:58:01]wFMCommunicate request_size=4 [16:58:01]MH_SAM_APDU [16:58:01]CAPDU: 80 13 01 00 [16:58:01]Write to MH i2c: E2 08 00 B3 00 80 13 01 00 00 00 00 00 30 [16:58:01]Write i2c OK [16:58:01]MH_I2C_Read... [16:58:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:01]Read from MH i2c: E2 [16:58:01]MH_I2C_Read... [16:58:01]Read from MH i2c: E2 0E 00 [16:58:01]MH_I2C_Read... [16:58:01]Read from MH i2c: E2 0E 00 B3 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 38 [16:58:01]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [16:58:01]wFMCommunicate OK [16:58:01]SAM_PROTO_GetShiftState done [16:58:01]FM_GetShiftState done [16:58:01]opened in 1729125927 [16:58:01]opened+sec_in_day 1729212327 [16:58:01]quantity*price = 20072 [16:58:01]sum+1 = 20073 [16:58:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.78 НДС 12% : 21.31 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 143 17.10.2024 16:58 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82217 ФПД: 1133323678303 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T165801&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82217&fm=1133323678303&tin=02508201610067®Number=0000000000091680&sum=20000 [16:58:02]StoreToDocumentArchive [16:58:02]shift 525 fd 82217 [16:58:02]save to /storage/0525/doc_00082217 [16:58:02]save last doc name /storage/0525/doc_00082217 to /storage/kkm_last_doc_name [16:58:02]save OK [16:58:02]Clear old archive folders... [16:58:02]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:58:02]tlvbuf is 011971A0 [16:58:02]SAM_PROTO_ClearQueue [16:58:02]wFMCommunicate request_size=4 [16:58:02]MH_SAM_APDU [16:58:02]CAPDU: 80 09 00 00 [16:58:02]Write to MH i2c: E2 08 00 C0 00 80 09 00 00 00 00 00 00 32 [16:58:02]Write i2c OK [16:58:02]MH_I2C_Read... [16:58:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:58:02]Read from MH i2c: E2 [16:58:02]MH_I2C_Read... [16:58:02]Read from MH i2c: E2 03 00 [16:58:02]MH_I2C_Read... [16:58:02]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [16:58:02]RAPDU: 90 00 [16:58:02]wFMCommunicate OK [16:58:02]SAM_PROTO_ClearQueue done [16:58:02]KKMCreateOFDPacket [16:58:02]OFDProtocolAddRootSTLVToBuf [16:58:02]FM_MakeSignedData [16:58:02]FM_MakeSignedData [16:58:02]SAM_PROTO_SignData [16:58:02]wFMCommunicate request_size=4 [16:58:02]MH_SAM_APDU [16:58:02]CAPDU: 80 0D 01 02 [16:58:02]Write to MH i2c: E2 08 00 C1 00 80 0D 01 02 00 00 00 00 3A [16:58:02]Write i2c OK [16:58:02]MH_I2C_Read... [16:58:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:58:02]Read from MH i2c: E2 [16:58:02]MH_I2C_Read... [16:58:02]Read from MH i2c: E2 03 00 [16:58:02]MH_I2C_Read... [16:58:02]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [16:58:02]RAPDU: 90 00 [16:58:02]wFMCommunicate OK [16:58:02]wFMCommunicate request_size=255 [16:58:02]MH_SAM_APDU [16:58:02]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 28 0A 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 68 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 B2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 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 8F 00 00 00 F4 03 04 00 19 42 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 29 41 01 [16:58:02]Write to MH i2c: E2 02 01 C2 00 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 28 0A 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 68 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 B2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 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 8F 00 00 00 F4 03 04 00 19 42 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 29 41 01 00 00 62 [16:58:02]Write i2c OK [16:58:02]MH_I2C_Read... [16:58:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:02]Read from MH i2c: E2 [16:58:02]MH_I2C_Read... [16:58:02]Read from MH i2c: E2 03 00 [16:58:02]MH_I2C_Read... [16:58:02]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [16:58:02]RAPDU: 90 00 [16:58:02]wFMCommunicate OK [16:58:02]wFMCommunicate request_size=16 [16:58:02]MH_SAM_APDU [16:58:02]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 01 07 DF 5A F2 5F [16:58:02]Write to MH i2c: E2 13 00 C3 00 80 0D 02 02 0B 00 00 35 04 06 00 01 07 DF 5A F2 5F 00 00 24 [16:58:02]Write i2c OK [16:58:02]MH_I2C_Read... [16:58:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:02]Read from MH i2c: E2 [16:58:02]MH_I2C_Read... [16:58:02]Read from MH i2c: E2 03 00 [16:58:02]MH_I2C_Read... [16:58:02]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [16:58:02]RAPDU: 90 00 [16:58:02]wFMCommunicate OK [16:58:02]wFMCommunicate request_size=4 [16:58:02]MH_SAM_APDU [16:58:02]CAPDU: 80 0D 03 02 [16:58:02]Write to MH i2c: E2 08 00 C4 00 80 0D 03 02 00 00 00 00 3F [16:58:02]Write i2c OK [16:58:02]MH_I2C_Read... [16:58:02]OFD Sender: No OFD packet to send [16:58:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:58:02]Read from MH i2c: E2 [16:58:02]MH_I2C_Read... [16:58:02]Read from MH i2c: E2 0B 00 [16:58:02]MH_I2C_Read... [16:58:02]Read from MH i2c: E2 0B 00 C4 00 00 C8 31 F4 35 DD B8 BF 15 90 00 CB [16:58:02]RAPDU: C8 31 F4 35 DD B8 BF 15 90 00 [16:58:02]wFMCommunicate OK [16:58:02]SAM_PROTO_SignData done [16:58:02]FM_MakeSignedData done [16:58:02]CreateOFDProtocolMessage [16:58:02]wFMCommunicate request_size=4 [16:58:02]MH_SAM_APDU [16:58:02]CAPDU: 80 11 00 00 [16:58:02]Write to MH i2c: E2 08 00 C5 00 80 11 00 00 00 00 00 00 3F [16:58:02]Write i2c OK [16:58:02]MH_I2C_Read... [16:58:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:03]Read from MH i2c: E2 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: E2 17 00 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: E2 17 00 C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 91 [16:58:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:58:03]wFMCommunicate OK [16:58:03]CreateOFDProtocolMessage done [16:58:03]OFDSenderStorePacket 82217 [16:58:03]StoreOFDPacket docnum=82217 [16:58:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 40 62 0D 01 67 73 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 28 0A 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 68 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 B2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 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 8F 00 00 00 F4 03 04 00 19 42 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 29 41 01 00 35 04 06 00 01 07 DF 5A F2 5F C8 31 F4 35 DD B8 BF 15 [16:58:03]CheckFolder [16:58:03]dirname=/storage/ofd_packets [16:58:03]CheckFolder done [16:58:03]ProducePacketName [16:58:03]name=ofd_packets/00082217 [16:58:03]NVStorageSaveData ofd_packets/00082217 [16:58:03]File name is /storage/ofd_packets/00082217 [16:58:03]Write 307 bytes [16:58:03]NVStorageSaveData done [16:58:03]OFDSenderStorePacket done [16:58:03]KKMCreateOFDPacket done [16:58:03]NVStorageSaveData kkm_last_timestamp [16:58:03]File name is /storage/kkm_last_timestamp [16:58:03]Write 4 bytes [16:58:03]NVStorageSaveData done [16:58:03]ExternCall_PrintAddStr [16:58:03]wPrintStart [16:58:03]Write to MH i2c: 01 00 00 C6 00 C6 [16:58:03]Write i2c OK [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: 01 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: 01 07 00 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: 01 07 00 C6 00 00 00 00 00 00 FF 0F DB [16:58:03]RasterBufferAndPrint [16:58:03]line Счет N : (1)918721 [16:58:03]line ИНН: 02508201610067 [16:58:03]line Контрольно-Кассовый Чек [16:58:03]line ПРОДАЖА [16:58:03]line ТРК (МРК, ГНК) : 21 [16:58:03]line Товар: 2710194800 [16:58:03]line D-Energy ДТ-К-2 [16:58:03]line 2.600 * 77.20 [16:58:03]line = 200.72 [16:58:03]line НДС 12% НСП 1% [16:58:03]line > о реализуемом товаре [16:58:03]line ОКРУГЛЕНИЕ: -0.72 [16:58:03]line ИТОГО: 200.00 [16:58:03]line Внесено: 200.00 [16:58:03]line СДАЧА: 0.00 [16:58:03]line НСП 1% : 1.78 [16:58:03]line НДС 12% : 21.31 [16:58:03]line Наличными: 200.00 [16:58:03]line Безнал.: 0.00 [16:58:03]line Место: АЗС № 114 "Партнер Нефть" [16:58:03]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [16:58:03]line СНО: Общий режим [16:58:03]line Чек 143 17.10.2024 16:58 [16:58:03]line Смена: 525 ФФД: 1.0 [16:58:03]line ЗНМ: 0300000086 [16:58:03]line РНМ: 0000000000091680 [16:58:03]line Версия ККМ: 001 [16:58:03]line ФМ: 0000000000871843 [16:58:03]line ФД: 82217 [16:58:03]line ФПД: 1133323678303 [16:58:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T165801&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82217&fm=1133323678303&tin=02508201610067®Number=0000000000091680&sum=20000 [16:58:03]written 0, free lines is 4095 [16:58:03]OFD Sender: Processing packet 82217 [packets to send 254, broken 253] [16:58:03]ProducePacketName [16:58:03]name=ofd_packets/00082217 [16:58:03]OFD Sender: To server: pG, [16:58:03]CommunicateWithHost lk.salyk.kg:30040 [16:58:03]ConnectInit lk.salyk.kg [16:58:03]Write to MH i2c: 01 00 00 F1 00 F1 [16:58:03]Write i2c OK [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: 01 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: 01 07 00 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: 01 07 00 F1 00 00 00 00 00 00 E7 0C EB [16:58:03]RasterBufferAndPrint [16:58:03]line [16:58:03]line [16:58:03]line [16:58:03]line [16:58:03]line [16:58:03]written 0, free lines is 3328 [16:58:03]MH_Cut [16:58:03]Write to MH i2c: D1 01 00 F8 00 01 CA [16:58:03]Write i2c OK [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: D1 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: D1 01 00 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: D1 01 00 F8 00 00 C9 [16:58:03]Write to MH i2c: 01 00 00 F9 00 F9 [16:58:03]Write i2c OK [16:58:03]MH_I2C_Read... [16:58:03]Connected sock=11 [16:58:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 40 62 0D 01 67 73 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 28 0A 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 68 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 B2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 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 8F 00 00 00 F4 03 04 00 19 42 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 29 41 01 00 35 04 06 00 01 07 DF 5A F2 5F C8 31 F4 35 DD B8 BF 15 [16:58:04]*** Cut start [16:58:04]*** Partial cut [16:58:04]*** CUTSNS_PIN = 1 [16:58:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 D9 BB 47 00 CA AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 29 41 01 00 F4 03 04 00 57 E7 10 67 B6 04 01 00 00 0A A8 51 56 75 A4 6C E4 [16:58:04]CommunicateWithHost err = 0 [16:58:04]CheckOFDResponse [16:58:04]*** CUTSNS_PIN = 0 [16:58:04]1017 (14) - 77093643461234 [16:58:04]1041 (16) - 0000000000871843 [16:58:04]1040 (4) - 82217 [16:58:04]1012 (4) - 17.10.2024 10:30 [16:58:04]1206 (1) - 0 [16:58:04]OFD Sender: Remove packet 82217 [16:58:04]ProducePacketName [16:58:04]name=ofd_packets/00082217 [16:58:04]NVStorageDeleteData [16:58:04]*** Brake cut motor [16:58:04]OFD Sender: No OFD packet to send [16:58:04]Read from MH i2c: 01 [16:58:04]MH_I2C_Read... [16:58:04]*** Stop cut motor [16:58:04]*** Cut end [16:58:04]Read from MH i2c: 01 07 00 [16:58:04]MH_I2C_Read... [16:58:04]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 FF 0F 0E [16:58:04]process_action close_receipt done [16:58:04]requested_data is exist [16:58:04]produce_requested_data [16:58:04]requested_item fm.sn is exist - process it [16:58:04]wFMCommunicate request_size=4 [16:58:04]MH_SAM_APDU [16:58:04]CAPDU: 80 11 00 00 [16:58:04]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [16:58:04]Write i2c OK [16:58:04]MH_I2C_Read... [16:58:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:05]Read from MH i2c: E2 [16:58:05]MH_I2C_Read... [16:58:05]Read from MH i2c: E2 17 00 [16:58:05]MH_I2C_Read... [16:58:05]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C6 [16:58:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:58:05]wFMCommunicate OK [16:58:05]requested_item fd.num is exist - process it [16:58:05]SAM_PROTO_GetFieldsCounters [16:58:05]wFMCommunicate request_size=4 [16:58:05]MH_SAM_APDU [16:58:05]CAPDU: 80 13 00 00 [16:58:05]Write to MH i2c: E2 08 00 FB 00 80 13 00 00 00 00 00 00 77 [16:58:05]Write i2c OK [16:58:05]MH_I2C_Read... [16:58:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:58:05]Read from MH i2c: E2 [16:58:05]MH_I2C_Read... [16:58:05]Read from MH i2c: E2 62 00 [16:58:05]MH_I2C_Read... [16:58:05]Read from MH i2c: E2 62 00 FB 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 29 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [16:58:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 29 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:58:05]wFMCommunicate OK [16:58:05]SAM_PROTO_GetFieldsCounters done [16:58:05]requested_item shift.num is exist - process it [16:58:05]requested_item shift.opened is exist - process it [16:58:05]req_shift_opened [16:58:05]FM_GetShiftState [16:58:05]SAM_PROTO_GetShiftState [16:58:05]wFMCommunicate request_size=4 [16:58:05]MH_SAM_APDU [16:58:05]CAPDU: 80 13 01 00 [16:58:05]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [16:58:05]Write i2c OK [16:58:05]MH_I2C_Read... [16:58:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:05]Read from MH i2c: E2 [16:58:05]MH_I2C_Read... [16:58:05]Read from MH i2c: E2 0E 00 [16:58:05]MH_I2C_Read... [16:58:05]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 81 [16:58:05]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [16:58:05]wFMCommunicate OK [16:58:05]SAM_PROTO_GetShiftState done [16:58:05]FM_GetShiftState done [16:58:05]req_shift_opened done [16:58:05]requested_item shift.open_date is exist - process it [16:58:05]req_shift_open_date [16:58:05]req_shift_open_date done [16:58:05]produce_requested_data done [16:58:05]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82217,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [16:58:05]process_action_free close_receipt [16:58:05]json_value_free [16:58:05]json_value_free done [16:58:05]process_json_proto returns [16:58:05]Send response to host [16:58:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82217,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [16:58:05]free response buf [16:58:05]execute_script done [16:58:05]execute_script returns [16:58:05]free content buf [16:58:05]Sock 10.Close socket [16:58:05]Sock 10.Thread stoped [16:58:09]OFD Sender: No OFD packet to send [16:58:14]OFD Sender: No OFD packet to send [16:58:16]accept exits with 9 [16:58:16]New connection [16:58:16]New thread 3066469732 created [16:58:16]Thread 3066613092 joined [16:58:16]Waiting for new connection... [16:58:16] Sock 9.Parse request [16:58:16]Sock 9.Check first char [16:58:16]Sock 9.First char is OK [16:58:16]request: POST /json_proto HTTP/1.0 [16:58:16]Method: POST [16:58:16]URL: /json_proto [16:58:16]Method is POST - this is cgi request [16:58:16]url: /json_proto [16:58:16]query_string will be loaded in cgi processing [16:58:16]execute_cgi json_proto POST (null) [16:58:16]execute_cgi path=json_proto method=POST [16:58:16]POST find Content-Length [16:58:16]Host: 172.17.44.67:8080 [16:58:16]Content-Length: 688 [16:58:16]Content-Type: application/json [16:58:16] [16:58:16]POST finish read [16:58:16]Found Content-Length = 688 [16:58:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:16]execute_script... [16:58:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:16]POST & json_proto [16:58:16]process_json_proto [16:58:16]json parsed OK: [16:58:16]protocol is kg_v1.0 [16:58:16]action value=close_receipt [16:58:16]process_action close_receipt [16:58:16]cmd_close_receipt [16:58:16]MH_GetDate [16:58:16]Write to MH i2c: F0 00 00 FD 00 EC [16:58:16]Write i2c OK [16:58:16]MH_I2C_Read... [16:58:16]Read from MH i2c: F0 [16:58:16]MH_I2C_Read... [16:58:16]Read from MH i2c: F0 09 00 [16:58:16]MH_I2C_Read... [16:58:16]Read from MH i2c: F0 09 00 FD 00 00 28 42 11 67 F1 C7 6B 64 5E [16:58:16]GetLastDocTimeStamp 1729184281 [16:58:16]current date 1729184296 [16:58:16]FM_GetShiftState [16:58:16]SAM_PROTO_GetShiftState [16:58:16]wFMCommunicate request_size=4 [16:58:16]MH_SAM_APDU [16:58:16]CAPDU: 80 13 01 00 [16:58:16]Write to MH i2c: E2 08 00 FE 00 80 13 01 00 00 00 00 00 7B [16:58:16]Write i2c OK [16:58:16]MH_I2C_Read... [16:58:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:16]Read from MH i2c: E2 [16:58:16]MH_I2C_Read... [16:58:16]Read from MH i2c: E2 0E 00 [16:58:16]MH_I2C_Read... [16:58:16]Read from MH i2c: E2 0E 00 FE 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 83 [16:58:16]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [16:58:16]wFMCommunicate OK [16:58:16]SAM_PROTO_GetShiftState done [16:58:16]FM_GetShiftState done [16:58:16]opened in 1729125927 [16:58:16]opened+sec_in_day 1729212327 [16:58:16]quantity*price = 300076 [16:58:16]sum+1 = 300077 [16:58:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 144 17.10.2024 16:58 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82218 ФПД: 96447204628420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T165817&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82218&fm=96447204628420&tin=02508201610067®Number=0000000000091680&sum=300000 [16:58:18]StoreToDocumentArchive [16:58:18]shift 525 fd 82218 [16:58:18]save to /storage/0525/doc_00082218 [16:58:18]save last doc name /storage/0525/doc_00082218 to /storage/kkm_last_doc_name [16:58:18]save OK [16:58:18]Clear old archive folders... [16:58:18]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:58:18]tlvbuf is 011EB7D0 [16:58:18]SAM_PROTO_ClearQueue [16:58:18]wFMCommunicate request_size=4 [16:58:18]MH_SAM_APDU [16:58:18]CAPDU: 80 09 00 00 [16:58:18]Write to MH i2c: E2 08 00 0B 01 80 09 00 00 00 00 00 00 7E [16:58:18]Write i2c OK [16:58:18]MH_I2C_Read... [16:58:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:58:18]Read from MH i2c: E2 [16:58:18]MH_I2C_Read... [16:58:18]Read from MH i2c: E2 03 00 [16:58:18]MH_I2C_Read... [16:58:18]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [16:58:18]RAPDU: 90 00 [16:58:18]wFMCommunicate OK [16:58:18]SAM_PROTO_ClearQueue done [16:58:18]KKMCreateOFDPacket [16:58:18]OFDProtocolAddRootSTLVToBuf [16:58:18]FM_MakeSignedData [16:58:18]FM_MakeSignedData [16:58:18]SAM_PROTO_SignData [16:58:18]wFMCommunicate request_size=4 [16:58:18]MH_SAM_APDU [16:58:18]CAPDU: 80 0D 01 02 [16:58:18]Write to MH i2c: E2 08 00 0C 01 80 0D 01 02 00 00 00 00 86 [16:58:18]Write i2c OK [16:58:18]MH_I2C_Read... [16:58:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:58:18]Read from MH i2c: E2 [16:58:18]MH_I2C_Read... [16:58:18]Read from MH i2c: E2 03 00 [16:58:18]MH_I2C_Read... [16:58:18]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [16:58:18]RAPDU: 90 00 [16:58:18]wFMCommunicate OK [16:58:18]wFMCommunicate request_size=255 [16:58:18]MH_SAM_APDU [16:58:18]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 29 42 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2A 41 01 [16:58:18]Write to MH i2c: E2 02 01 0D 01 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 29 42 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2A 41 01 00 00 6D [16:58:18]Write i2c OK [16:58:18]MH_I2C_Read... [16:58:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:18]Read from MH i2c: E2 [16:58:18]MH_I2C_Read... [16:58:18]Read from MH i2c: E2 03 00 [16:58:18]MH_I2C_Read... [16:58:18]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [16:58:18]RAPDU: 90 00 [16:58:18]wFMCommunicate OK [16:58:18]wFMCommunicate request_size=16 [16:58:18]MH_SAM_APDU [16:58:18]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 57 B7 DD 5F 17 C4 [16:58:18]Write to MH i2c: E2 13 00 0E 01 80 0D 02 02 0B 00 00 35 04 06 00 57 B7 DD 5F 17 C4 00 00 03 [16:58:18]Write i2c OK [16:58:18]MH_I2C_Read... [16:58:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:18]Read from MH i2c: E2 [16:58:18]MH_I2C_Read... [16:58:18]Read from MH i2c: E2 03 00 [16:58:18]MH_I2C_Read... [16:58:18]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [16:58:18]RAPDU: 90 00 [16:58:18]wFMCommunicate OK [16:58:18]wFMCommunicate request_size=4 [16:58:18]MH_SAM_APDU [16:58:18]CAPDU: 80 0D 03 02 [16:58:18]Write to MH i2c: E2 08 00 0F 01 80 0D 03 02 00 00 00 00 8B [16:58:18]Write i2c OK [16:58:18]MH_I2C_Read... [16:58:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:58:18]Read from MH i2c: E2 [16:58:18]MH_I2C_Read... [16:58:18]Read from MH i2c: E2 0B 00 [16:58:18]MH_I2C_Read... [16:58:18]Read from MH i2c: E2 0B 00 0F 01 00 AB 18 BA FA F9 62 30 D5 90 00 63 [16:58:18]RAPDU: AB 18 BA FA F9 62 30 D5 90 00 [16:58:18]wFMCommunicate OK [16:58:18]SAM_PROTO_SignData done [16:58:18]FM_MakeSignedData done [16:58:19]CreateOFDProtocolMessage [16:58:19]wFMCommunicate request_size=4 [16:58:19]MH_SAM_APDU [16:58:19]CAPDU: 80 11 00 00 [16:58:19]Write to MH i2c: E2 08 00 10 01 80 11 00 00 00 00 00 00 8B [16:58:19]Write i2c OK [16:58:19]MH_I2C_Read... [16:58:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:19]Read from MH i2c: E2 [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: E2 17 00 [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: E2 17 00 10 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DD [16:58:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:58:19]wFMCommunicate OK [16:58:19]CreateOFDProtocolMessage done [16:58:19]OFDSenderStorePacket 82218 [16:58:19]StoreOFDPacket docnum=82218 [16:58:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 1F 57 0D 01 E4 B9 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 29 42 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2A 41 01 00 35 04 06 00 57 B7 DD 5F 17 C4 AB 18 BA FA F9 62 30 D5 [16:58:19]CheckFolder [16:58:19]dirname=/storage/ofd_packets [16:58:19]CheckFolder done [16:58:19]ProducePacketName [16:58:19]name=ofd_packets/00082218 [16:58:19]NVStorageSaveData ofd_packets/00082218 [16:58:19]File name is /storage/ofd_packets/00082218 [16:58:19]Write 307 bytes [16:58:19]NVStorageSaveData done [16:58:19]OFDSenderStorePacket done [16:58:19]KKMCreateOFDPacket done [16:58:19]NVStorageSaveData kkm_last_timestamp [16:58:19]File name is /storage/kkm_last_timestamp [16:58:19]Write 4 bytes [16:58:19]NVStorageSaveData done [16:58:19]ExternCall_PrintAddStr [16:58:19]wPrintStart [16:58:19]Write to MH i2c: 01 00 00 11 01 12 [16:58:19]Write i2c OK [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: 01 [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: 01 07 00 [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: 01 07 00 11 01 00 00 00 00 00 FF 0F 27 [16:58:19]RasterBufferAndPrint [16:58:19]line Счет N : (1)918724 [16:58:19]line ИНН: 02508201610067 [16:58:19]line Контрольно-Кассовый Чек [16:58:19]line ПРОДАЖА [16:58:19]line ТРК (МРК, ГНК) : 21 [16:58:19]line Товар: 2710194800 [16:58:19]line D-Energy ДТ-К-2 [16:58:19]line 38.870 * 77.20 [16:58:19]line = 3000.76 [16:58:19]line НДС 12% НСП 1% [16:58:19]line > о реализуемом товаре [16:58:19]line ОКРУГЛЕНИЕ: -0.76 [16:58:19]line ИТОГО: 3000.00 [16:58:19]line Внесено: 3000.00 [16:58:19]line СДАЧА: 0.00 [16:58:19]line НСП 1% : 26.55 [16:58:19]line НДС 12% : 318.66 [16:58:19]line Наличными: 3000.00 [16:58:19]line Безнал.: 0.00 [16:58:19]line Место: АЗС № 114 "Партнер Нефть" [16:58:19]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [16:58:19]line СНО: Общий режим [16:58:19]line Чек 144 17.10.2024 16:58 [16:58:19]line Смена: 525 ФФД: 1.0 [16:58:19]line ЗНМ: 0300000086 [16:58:19]line РНМ: 0000000000091680 [16:58:19]line Версия ККМ: 001 [16:58:19]line ФМ: 0000000000871843 [16:58:19]line ФД: 82218 [16:58:19]line ФПД: 96447204628420 [16:58:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T165817&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82218&fm=96447204628420&tin=02508201610067®Number=0000000000091680&sum=300000 [16:58:19]written 0, free lines is 4095 [16:58:19]OFD Sender: Processing packet 82218 [packets to send 254, broken 253] [16:58:19]ProducePacketName [16:58:19]name=ofd_packets/00082218 [16:58:19]OFD Sender: To server: pG, [16:58:19]CommunicateWithHost lk.salyk.kg:30040 [16:58:19]ConnectInit lk.salyk.kg [16:58:19]Write to MH i2c: 01 00 00 3C 01 3D [16:58:19]Write i2c OK [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: 01 [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: 01 07 00 [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: 01 07 00 3C 01 00 00 00 00 00 F2 0C 42 [16:58:19]RasterBufferAndPrint [16:58:19]line [16:58:19]line [16:58:19]line [16:58:19]line [16:58:19]line [16:58:19]written 0, free lines is 3345 [16:58:19]MH_Cut [16:58:19]Write to MH i2c: D1 01 00 43 01 01 16 [16:58:19]Write i2c OK [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: D1 [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: D1 01 00 [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: D1 01 00 43 01 00 15 [16:58:19]Write to MH i2c: 01 00 00 44 01 45 [16:58:19]Write i2c OK [16:58:19]MH_I2C_Read... [16:58:20]*** Cut start [16:58:20]*** Partial cut [16:58:20]*** CUTSNS_PIN = 1 [16:58:20]*** CUTSNS_PIN = 0 [16:58:20]*** Brake cut motor [16:58:21]Read from MH i2c: 01 [16:58:21]MH_I2C_Read... [16:58:21]*** Stop cut motor [16:58:21]*** Cut end [16:58:21]Read from MH i2c: 01 07 00 [16:58:21]MH_I2C_Read... [16:58:21]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 FF 0F 5A [16:58:21]process_action close_receipt done [16:58:21]requested_data is exist [16:58:21]produce_requested_data [16:58:21]requested_item fm.sn is exist - process it [16:58:21]wFMCommunicate request_size=4 [16:58:21]MH_SAM_APDU [16:58:21]CAPDU: 80 11 00 00 [16:58:21]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [16:58:21]Write i2c OK [16:58:21]MH_I2C_Read... [16:58:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:21]Read from MH i2c: E2 [16:58:21]MH_I2C_Read... [16:58:21]Read from MH i2c: E2 17 00 [16:58:21]MH_I2C_Read... [16:58:21]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 12 [16:58:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:58:21]wFMCommunicate OK [16:58:21]requested_item fd.num is exist - process it [16:58:21]SAM_PROTO_GetFieldsCounters [16:58:21]wFMCommunicate request_size=4 [16:58:21]MH_SAM_APDU [16:58:21]CAPDU: 80 13 00 00 [16:58:21]Write to MH i2c: E2 08 00 46 01 80 13 00 00 00 00 00 00 C3 [16:58:21]Write i2c OK [16:58:21]MH_I2C_Read... [16:58:21]Connected sock=11 [16:58:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 1F 57 0D 01 E4 B9 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:58:21]37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 29 42 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2A 41 01 00 35 04 06 00 57 B7 DD 5F 17 C4 AB 18 BA FA F9 62 30 D5 [16:58:21]Read from MH i2c: E2 [16:58:21]MH_I2C_Read... [16:58:21]Read from MH i2c: E2 62 00 [16:58:21]MH_I2C_Read... [16:58:21]Read from MH i2c: E2 62 00 46 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 2A 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [16:58:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 2A 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:58:21]wFMCommunicate OK [16:58:21]SAM_PROTO_GetFieldsCounters done [16:58:21]requested_item shift.num is exist - process it [16:58:21]requested_item shift.opened is exist - process it [16:58:21]req_shift_opened [16:58:21]FM_GetShiftState [16:58:21]SAM_PROTO_GetShiftState [16:58:21]wFMCommunicate request_size=4 [16:58:21]MH_SAM_APDU [16:58:21]CAPDU: 80 13 01 00 [16:58:21]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [16:58:21]Write i2c OK [16:58:21]MH_I2C_Read... [16:58:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:21]Read from MH i2c: E2 [16:58:21]MH_I2C_Read... [16:58:21]Read from MH i2c: E2 0E 00 [16:58:21]MH_I2C_Read... [16:58:21]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 CD [16:58:21]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [16:58:21]wFMCommunicate OK [16:58:21]SAM_PROTO_GetShiftState done [16:58:21]FM_GetShiftState done [16:58:21]req_shift_opened done [16:58:21]requested_item shift.open_date is exist - process it [16:58:21]req_shift_open_date [16:58:21]req_shift_open_date done [16:58:21]produce_requested_data done [16:58:21]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82218,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [16:58:21]process_action_free close_receipt [16:58:21]json_value_free [16:58:21]json_value_free done [16:58:21]process_json_proto returns [16:58:21]Send response to host [16:58:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82218,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [16:58:21]free response buf [16:58:21]execute_script done [16:58:21]execute_script returns [16:58:21]free content buf [16:58:21]Sock 9.Close socket [16:58:21]Sock 9.Thread stoped [16:58:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 13 FC 47 00 43 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2A 41 01 00 F4 03 04 00 68 E7 10 67 B6 04 01 00 00 55 87 25 E8 BE 78 EE 62 [16:58:22]CommunicateWithHost err = 0 [16:58:22]CheckOFDResponse [16:58:22]1017 (14) - 77093643461234 [16:58:22]1041 (16) - 0000000000871843 [16:58:22]1040 (4) - 82218 [16:58:22]1012 (4) - 17.10.2024 10:31 [16:58:22]1206 (1) - 0 [16:58:22]OFD Sender: Remove packet 82218 [16:58:22]ProducePacketName [16:58:22]name=ofd_packets/00082218 [16:58:22]NVStorageDeleteData [16:58:22]OFD Sender: No OFD packet to send [16:58:23]accept exits with 8 [16:58:23]New connection [16:58:23]New thread 3066613092 created [16:58:23]Thread 3066469732 joined [16:58:23]Waiting for new connection... [16:58:23] Sock 8.Parse request [16:58:23]Sock 8.Check first char [16:58:23]Sock 8.First char is OK [16:58:23]request: POST /json_proto HTTP/1.0 [16:58:23]Method: POST [16:58:23]URL: /json_proto [16:58:23]Method is POST - this is cgi request [16:58:23]url: /json_proto [16:58:23]query_string will be loaded in cgi processing [16:58:23]execute_cgi json_proto POST (null) [16:58:23]execute_cgi path=json_proto method=POST [16:58:23]POST find Content-Length [16:58:23]Host: 172.17.44.67:8080 [16:58:23]Content-Length: 744 [16:58:23]Content-Type: application/json [16:58:23] [16:58:23]POST finish read [16:58:23]Found Content-Length = 744 [16:58:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 82218, "base_FM": "0000000000871843", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:23]execute_script... [16:58:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 82218, "base_FM": "0000000000871843", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:23]POST & json_proto [16:58:23]process_json_proto [16:58:23]json parsed OK: [16:58:23]protocol is kg_v1.0 [16:58:23]action value=close_receipt [16:58:23]process_action close_receipt [16:58:23]cmd_close_receipt [16:58:23]MH_GetDate [16:58:23]Write to MH i2c: F0 00 00 48 01 38 [16:58:23]Write i2c OK [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: F0 [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: F0 09 00 [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: F0 09 00 48 01 00 2F 42 11 67 F1 C7 6B 64 B1 [16:58:23]GetLastDocTimeStamp 1729184297 [16:58:23]current date 1729184303 [16:58:23]FM_GetShiftState [16:58:23]SAM_PROTO_GetShiftState [16:58:23]wFMCommunicate request_size=4 [16:58:23]MH_SAM_APDU [16:58:23]CAPDU: 80 13 01 00 [16:58:23]Write to MH i2c: E2 08 00 49 01 80 13 01 00 00 00 00 00 C7 [16:58:23]Write i2c OK [16:58:23]MH_I2C_Read... [16:58:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:23]Read from MH i2c: E2 [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: E2 0E 00 [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: E2 0E 00 49 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 CF [16:58:23]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [16:58:23]wFMCommunicate OK [16:58:23]SAM_PROTO_GetShiftState done [16:58:23]FM_GetShiftState done [16:58:23]opened in 1729125927 [16:58:23]opened+sec_in_day 1729212327 [16:58:23]quantity*price = 300076 [16:58:23]sum+1 = 300077 [16:58:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 145 17.10.2024 16:58 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФД осн.: 82218 ФМ осн.: 0000000000871843 ФМ: 0000000000871843 ФД: 82219 ФПД: 259150631564198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T165823&type=2&operation_type=1&fn_number=0000000000871843&fd_number=82219&fm=259150631564198&tin=02508201610067®Number=0000000000091680&sum=300000 [16:58:25]StoreToDocumentArchive [16:58:25]shift 525 fd 82219 [16:58:25]save to /storage/0525/doc_00082219 [16:58:25]save last doc name /storage/0525/doc_00082219 to /storage/kkm_last_doc_name [16:58:25]save OK [16:58:25]Clear old archive folders... [16:58:25]ProcessDocumentItem done err = 0, tmpTLVsize=285 [16:58:25]tlvbuf is 01201070 [16:58:25]SAM_PROTO_ClearQueue [16:58:25]wFMCommunicate request_size=4 [16:58:25]MH_SAM_APDU [16:58:25]CAPDU: 80 09 00 00 [16:58:25]Write to MH i2c: E2 08 00 58 01 80 09 00 00 00 00 00 00 CB [16:58:25]Write i2c OK [16:58:25]MH_I2C_Read... [16:58:25]Read from MH i2c: E2 [16:58:25]MH_I2C_Read... [16:58:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:58:25]Read from MH i2c: E2 03 00 [16:58:25]MH_I2C_Read... [16:58:25]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [16:58:25]RAPDU: 90 00 [16:58:25]wFMCommunicate OK [16:58:25]SAM_PROTO_ClearQueue done [16:58:25]KKMCreateOFDPacket [16:58:25]OFDProtocolAddRootSTLVToBuf [16:58:25]FM_MakeSignedData [16:58:25]FM_MakeSignedData [16:58:25]SAM_PROTO_SignData [16:58:25]wFMCommunicate request_size=4 [16:58:25]MH_SAM_APDU [16:58:25]CAPDU: 80 0D 01 02 [16:58:25]Write to MH i2c: E2 08 00 59 01 80 0D 01 02 00 00 00 00 D3 [16:58:25]Write i2c OK [16:58:25]MH_I2C_Read... [16:58:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:58:25]Read from MH i2c: E2 [16:58:25]MH_I2C_Read... [16:58:25]Read from MH i2c: E2 03 00 [16:58:25]MH_I2C_Read... [16:58:25]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [16:58:25]RAPDU: 90 00 [16:58:25]wFMCommunicate OK [16:58:25]wFMCommunicate request_size=255 [16:58:25]MH_SAM_APDU [16:58:25]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 02 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 2F 42 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 27 04 04 00 2A 41 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 [16:58:25]Write to MH i2c: E2 02 01 5A 01 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 02 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 2F 42 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 27 04 04 00 2A 41 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 00 00 D9 [16:58:25]Write i2c OK [16:58:25]MH_I2C_Read... [16:58:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:25]Read from MH i2c: E2 [16:58:25]MH_I2C_Read... [16:58:25]Read from MH i2c: E2 03 00 [16:58:25]MH_I2C_Read... [16:58:25]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [16:58:25]RAPDU: 90 00 [16:58:25]wFMCommunicate OK [16:58:25]wFMCommunicate request_size=44 [16:58:25]MH_SAM_APDU [16:58:25]CAPDU: 80 0D 02 02 27 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2B 41 01 00 35 04 06 00 EB B2 35 56 73 A6 [16:58:25]Write to MH i2c: E2 2F 00 5B 01 80 0D 02 02 27 00 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2B 41 01 00 35 04 06 00 EB B2 35 56 73 A6 00 00 A0 [16:58:25]Write i2c OK [16:58:25]MH_I2C_Read... [16:58:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:25]Read from MH i2c: E2 [16:58:25]MH_I2C_Read... [16:58:25]Read from MH i2c: E2 03 00 [16:58:25]MH_I2C_Read... [16:58:25]Read from MH i2c: E2 03 00 5B 01 00 90 00 D0 [16:58:25]RAPDU: 90 00 [16:58:25]wFMCommunicate OK [16:58:25]wFMCommunicate request_size=4 [16:58:25]MH_SAM_APDU [16:58:25]CAPDU: 80 0D 03 02 [16:58:25]Write to MH i2c: E2 08 00 5C 01 80 0D 03 02 00 00 00 00 D8 [16:58:25]Write i2c OK [16:58:25]MH_I2C_Read... [16:58:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:58:26]Read from MH i2c: E2 [16:58:26]MH_I2C_Read... [16:58:26]Read from MH i2c: E2 0B 00 [16:58:26]MH_I2C_Read... [16:58:26]Read from MH i2c: E2 0B 00 5C 01 00 5B A6 A8 57 F7 70 2A A3 90 00 0D [16:58:26]RAPDU: 5B A6 A8 57 F7 70 2A A3 90 00 [16:58:26]wFMCommunicate OK [16:58:26]SAM_PROTO_SignData done [16:58:26]FM_MakeSignedData done [16:58:26]CreateOFDProtocolMessage [16:58:26]wFMCommunicate request_size=4 [16:58:26]MH_SAM_APDU [16:58:26]CAPDU: 80 11 00 00 [16:58:26]Write to MH i2c: E2 08 00 5D 01 80 11 00 00 00 00 00 00 D8 [16:58:26]Write i2c OK [16:58:26]MH_I2C_Read... [16:58:26]Read from MH i2c: E2 [16:58:26]MH_I2C_Read... [16:58:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:26]Read from MH i2c: E2 17 00 [16:58:26]MH_I2C_Read... [16:58:26]Read from MH i2c: E2 17 00 5D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 2A [16:58:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:58:26]wFMCommunicate OK [16:58:26]CreateOFDProtocolMessage done [16:58:26]OFDSenderStorePacket 82219 [16:58:26]StoreOFDPacket docnum=82219 [16:58:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 31 01 00 00 53 36 29 01 37 31 5A 03 01 00 03 00 1D 01 1E 04 01 00 02 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 2F 42 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 27 04 04 00 2A 41 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2B 41 01 00 35 04 06 00 EB B2 35 56 73 A6 5B A6 A8 57 F7 70 2A A3 [16:58:26]CheckFolder [16:58:26]dirname=/storage/ofd_packets [16:58:26]CheckFolder done [16:58:26]ProducePacketName [16:58:26]name=ofd_packets/00082219 [16:58:26]NVStorageSaveData ofd_packets/00082219 [16:58:26]File name is /storage/ofd_packets/00082219 [16:58:26]Write 335 bytes [16:58:26]NVStorageSaveData done [16:58:26]OFDSenderStorePacket done [16:58:26]KKMCreateOFDPacket done [16:58:26]NVStorageSaveData kkm_last_timestamp [16:58:26]File name is /storage/kkm_last_timestamp [16:58:26]Write 4 bytes [16:58:26]NVStorageSaveData done [16:58:26]ExternCall_PrintAddStr [16:58:26]wPrintStart [16:58:26]Write to MH i2c: 01 00 00 5E 01 5F [16:58:26]Write i2c OK [16:58:26]MH_I2C_Read... [16:58:26]Read from MH i2c: 01 [16:58:26]MH_I2C_Read... [16:58:26]Read from MH i2c: 01 07 00 [16:58:26]MH_I2C_Read... [16:58:26]Read from MH i2c: 01 07 00 5E 01 00 00 00 00 00 FF 0F 74 [16:58:26]RasterBufferAndPrint [16:58:26]line Счет N : (1)918724 [16:58:26]line ИНН: 02508201610067 [16:58:26]line Контрольно-Кассовый Чек [16:58:26]line ВОЗВРАТ ПРОДАЖИ [16:58:26]line ТРК (МРК, ГНК) : 21 [16:58:26]line Товар: 2710194800 [16:58:26]line D-Energy ДТ-К-2 [16:58:26]line 38.870 * 77.20 [16:58:26]line = 3000.76 [16:58:26]line НДС 12% НСП 1% [16:58:26]line > о реализуемом товаре [16:58:26]line ОКРУГЛЕНИЕ: -0.76 [16:58:26]line ИТОГО: 3000.00 [16:58:26]line НСП 1% : 26.55 [16:58:26]line НДС 12% : 318.66 [16:58:26]line Наличными: 3000.00 [16:58:26]line Безнал.: 0.00 [16:58:26]line Место: АЗС № 114 "Партнер Нефть" [16:58:26]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [16:58:26]line СНО: Общий режим [16:58:26]line Чек 145 17.10.2024 16:58 [16:58:26]OFD Sender: Processing packet 82219 [packets to send 254, broken 253] [16:58:26]ProducePacketName [16:58:26]name=ofd_packets/00082219 [16:58:26]OFD Sender: To server: pG, [16:58:26]CommunicateWithHost lk.salyk.kg:30040 [16:58:26]ConnectInit lk.salyk.kg [16:58:26]line Смена: 525 ФФД: 1.0 [16:58:26]line ЗНМ: 0300000086 [16:58:26]line РНМ: 0000000000091680 [16:58:26]line Версия ККМ: 001 [16:58:26]line ФД осн.: 82218 [16:58:26]line ФМ осн.: 0000000000871843 [16:58:26]line ФМ: 0000000000871843 [16:58:26]line ФД: 82219 [16:58:26]line ФПД: 259150631564198 [16:58:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T165823&type=2&operation_type=1&fn_number=0000000000871843&fd_number=82219&fm=259150631564198&tin=02508201610067®Number=0000000000091680&sum=300000 [16:58:26]written 0, free lines is 4095 [16:58:26]Connected sock=10 [16:58:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 31 01 00 00 53 36 29 01 37 31 5A 03 01 00 03 00 1D 01 1E 04 01 00 02 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 2F 42 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 27 04 04 00 2A 41 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2B 41 01 00 35 04 06 00 EB B2 35 56 73 A6 5B A6 A8 57 F7 70 2A A3 [16:58:27]Write to MH i2c: 01 00 00 89 01 8A [16:58:27]Write i2c OK [16:58:27]MH_I2C_Read... [16:58:27]Read from MH i2c: 01 [16:58:27]MH_I2C_Read... [16:58:27]Read from MH i2c: 01 07 00 [16:58:27]MH_I2C_Read... [16:58:27]Read from MH i2c: 01 07 00 89 01 00 00 00 00 00 64 0E 03 [16:58:27]RasterBufferAndPrint [16:58:27]line [16:58:27]line [16:58:27]line [16:58:27]line [16:58:27]line [16:58:27]written 0, free lines is 3719 [16:58:27]MH_Cut [16:58:27]Write to MH i2c: D1 01 00 90 01 01 63 [16:58:27]Write i2c OK [16:58:27]MH_I2C_Read... [16:58:27]Read from MH i2c: D1 [16:58:27]MH_I2C_Read... [16:58:27]Read from MH i2c: D1 01 00 [16:58:27]MH_I2C_Read... [16:58:27]Read from MH i2c: D1 01 00 90 01 00 62 [16:58:27]Write to MH i2c: 01 00 00 91 01 92 [16:58:27]Write i2c OK [16:58:27]MH_I2C_Read... [16:58:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 0E 30 47 00 88 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2B 41 01 00 F4 03 04 00 6E E7 10 67 B6 04 01 00 00 EF 33 F4 B2 90 F6 70 8F [16:58:27]CommunicateWithHost err = 0 [16:58:27]CheckOFDResponse [16:58:27]1017 (14) - 77093643461234 [16:58:27]1041 (16) - 0000000000871843 [16:58:27]1040 (4) - 82219 [16:58:27]1012 (4) - 17.10.2024 10:31 [16:58:27]1206 (1) - 0 [16:58:27]OFD Sender: Remove packet 82219 [16:58:27]ProducePacketName [16:58:27]name=ofd_packets/00082219 [16:58:27]NVStorageDeleteData [16:58:27]*** Cut start [16:58:27]*** Partial cut [16:58:27]*** CUTSNS_PIN = 1 [16:58:27]*** CUTSNS_PIN = 0 [16:58:27]*** Brake cut motor [16:58:27]OFD Sender: No OFD packet to send [16:58:28]Read from MH i2c: 01 [16:58:28]MH_I2C_Read... [16:58:28]*** Stop cut motor [16:58:28]*** Cut end [16:58:28]Read from MH i2c: 01 07 00 [16:58:28]MH_I2C_Read... [16:58:28]Read from MH i2c: 01 07 00 91 01 00 00 00 00 00 FF 0F A7 [16:58:28]process_action close_receipt done [16:58:28]requested_data is exist [16:58:28]produce_requested_data [16:58:28]requested_item fm.sn is exist - process it [16:58:28]wFMCommunicate request_size=4 [16:58:28]MH_SAM_APDU [16:58:28]CAPDU: 80 11 00 00 [16:58:28]Write to MH i2c: E2 08 00 92 01 80 11 00 00 00 00 00 00 0D [16:58:28]Write i2c OK [16:58:28]MH_I2C_Read... [16:58:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:28]Read from MH i2c: E2 [16:58:28]MH_I2C_Read... [16:58:28]Read from MH i2c: E2 17 00 [16:58:28]MH_I2C_Read... [16:58:28]Read from MH i2c: E2 17 00 92 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 5F [16:58:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:58:28]wFMCommunicate OK [16:58:28]requested_item fd.num is exist - process it [16:58:28]SAM_PROTO_GetFieldsCounters [16:58:28]wFMCommunicate request_size=4 [16:58:28]MH_SAM_APDU [16:58:28]CAPDU: 80 13 00 00 [16:58:28]Write to MH i2c: E2 08 00 93 01 80 13 00 00 00 00 00 00 10 [16:58:28]Write i2c OK [16:58:28]MH_I2C_Read... [16:58:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:58:28]Read from MH i2c: E2 [16:58:28]MH_I2C_Read... [16:58:28]Read from MH i2c: E2 62 00 [16:58:28]MH_I2C_Read... [16:58:28]Read from MH i2c: E2 62 00 93 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 2B 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [16:58:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 2B 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:58:28]wFMCommunicate OK [16:58:28]SAM_PROTO_GetFieldsCounters done [16:58:28]requested_item shift.num is exist - process it [16:58:28]requested_item shift.opened is exist - process it [16:58:28]req_shift_opened [16:58:28]FM_GetShiftState [16:58:28]SAM_PROTO_GetShiftState [16:58:28]wFMCommunicate request_size=4 [16:58:28]MH_SAM_APDU [16:58:28]CAPDU: 80 13 01 00 [16:58:28]Write to MH i2c: E2 08 00 94 01 80 13 01 00 00 00 00 00 12 [16:58:28]Write i2c OK [16:58:28]MH_I2C_Read... [16:58:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:28]Read from MH i2c: E2 [16:58:28]MH_I2C_Read... [16:58:28]Read from MH i2c: E2 0E 00 [16:58:28]MH_I2C_Read... [16:58:28]Read from MH i2c: E2 0E 00 94 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 1A [16:58:28]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [16:58:28]wFMCommunicate OK [16:58:28]SAM_PROTO_GetShiftState done [16:58:28]FM_GetShiftState done [16:58:28]req_shift_opened done [16:58:28]requested_item shift.open_date is exist - process it [16:58:28]req_shift_open_date [16:58:28]req_shift_open_date done [16:58:28]produce_requested_data done [16:58:28]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82219,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [16:58:28]process_action_free close_receipt [16:58:28]json_value_free [16:58:28]json_value_free done [16:58:28]process_json_proto returns [16:58:28]Send response to host [16:58:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82219,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [16:58:28]free response buf [16:58:28]execute_script done [16:58:28]execute_script returns [16:58:28]free content buf [16:58:28]Sock 8.Close socket [16:58:28]Sock 8.Thread stoped [16:58:32]OFD Sender: No OFD packet to send [16:58:36]accept exits with 9 [16:58:36]New connection [16:58:36]New thread 3066469732 created [16:58:36]Thread 3066613092 joined [16:58:36]Waiting for new connection... [16:58:36] Sock 9.Parse request [16:58:36]Sock 9.Check first char [16:58:36]Sock 9.First char is OK [16:58:36]request: POST /json_proto HTTP/1.0 [16:58:36]Method: POST [16:58:36]URL: /json_proto [16:58:36]Method is POST - this is cgi request [16:58:36]url: /json_proto [16:58:36]query_string will be loaded in cgi processing [16:58:36]execute_cgi json_proto POST (null) [16:58:36]execute_cgi path=json_proto method=POST [16:58:36]POST find Content-Length [16:58:36]Host: 172.17.44.67:8080 [16:58:36]Content-Length: 677 [16:58:36]Content-Type: application/json [16:58:36] [16:58:36]POST finish read [16:58:36]Found Content-Length = 677 [16:58:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:36]execute_script... [16:58:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:36]POST & json_proto [16:58:36]process_json_proto [16:58:36]json parsed OK: [16:58:36]protocol is kg_v1.0 [16:58:36]action value=close_receipt [16:58:36]process_action close_receipt [16:58:36]cmd_close_receipt [16:58:36]MH_GetDate [16:58:36]Write to MH i2c: F0 00 00 95 01 85 [16:58:36]Write i2c OK [16:58:36]MH_I2C_Read... [16:58:36]Read from MH i2c: F0 [16:58:36]MH_I2C_Read... [16:58:36]Read from MH i2c: F0 09 00 [16:58:36]MH_I2C_Read... [16:58:36]Read from MH i2c: F0 09 00 95 01 00 3C 42 11 67 F1 C7 6B 64 0B [16:58:36]GetLastDocTimeStamp 1729184303 [16:58:36]current date 1729184316 [16:58:36]FM_GetShiftState [16:58:36]SAM_PROTO_GetShiftState [16:58:36]wFMCommunicate request_size=4 [16:58:36]MH_SAM_APDU [16:58:36]CAPDU: 80 13 01 00 [16:58:36]Write to MH i2c: E2 08 00 96 01 80 13 01 00 00 00 00 00 14 [16:58:36]Write i2c OK [16:58:36]MH_I2C_Read... [16:58:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:36]Read from MH i2c: E2 [16:58:36]MH_I2C_Read... [16:58:36]Read from MH i2c: E2 0E 00 [16:58:36]MH_I2C_Read... [16:58:36]Read from MH i2c: E2 0E 00 96 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 1C [16:58:36]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [16:58:36]wFMCommunicate OK [16:58:36]SAM_PROTO_GetShiftState done [16:58:36]FM_GetShiftState done [16:58:36]opened in 1729125927 [16:58:36]opened+sec_in_day 1729212327 [16:58:36]quantity*price = 30038 [16:58:36]sum+1 = 30039 [16:58:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 146 17.10.2024 16:58 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82220 ФПД: 3064356643486 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T165836&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82220&fm=3064356643486&tin=02508201610067®Number=0000000000091680&sum=30000 [16:58:37]StoreToDocumentArchive [16:58:37]shift 525 fd 82220 [16:58:37]save to /storage/0525/doc_00082220 [16:58:37]save last doc name /storage/0525/doc_00082220 to /storage/kkm_last_doc_name [16:58:37]save OK [16:58:37]Clear old archive folders... [16:58:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:58:37]tlvbuf is 011C74F0 [16:58:37]SAM_PROTO_ClearQueue [16:58:37]wFMCommunicate request_size=4 [16:58:37]MH_SAM_APDU [16:58:37]CAPDU: 80 09 00 00 [16:58:37]Write to MH i2c: E2 08 00 A3 01 80 09 00 00 00 00 00 00 16 [16:58:37]Write i2c OK [16:58:37]MH_I2C_Read... [16:58:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:58:37]Read from MH i2c: E2 [16:58:37]MH_I2C_Read... [16:58:37]Read from MH i2c: E2 03 00 [16:58:37]MH_I2C_Read... [16:58:37]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [16:58:37]RAPDU: 90 00 [16:58:37]wFMCommunicate OK [16:58:37]SAM_PROTO_ClearQueue done [16:58:37]KKMCreateOFDPacket [16:58:37]OFDProtocolAddRootSTLVToBuf [16:58:37]FM_MakeSignedData [16:58:37]FM_MakeSignedData [16:58:37]SAM_PROTO_SignData [16:58:37]wFMCommunicate request_size=4 [16:58:37]MH_SAM_APDU [16:58:37]CAPDU: 80 0D 01 02 [16:58:37]Write to MH i2c: E2 08 00 A4 01 80 0D 01 02 00 00 00 00 1E [16:58:37]Write i2c OK [16:58:37]MH_I2C_Read... [16:58:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:58:37]Read from MH i2c: E2 [16:58:37]MH_I2C_Read... [16:58:37]Read from MH i2c: E2 03 00 [16:58:37]MH_I2C_Read... [16:58:37]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [16:58:37]RAPDU: 90 00 [16:58:37]wFMCommunicate OK [16:58:37]wFMCommunicate request_size=255 [16:58:37]MH_SAM_APDU [16:58:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 3C 42 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2C 41 01 00 35 04 06 00 02 [16:58:38]Write to MH i2c: E2 02 01 A5 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 OFD Sender: No OFD packet to send [16:58:38]00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 3C 42 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2C 41 01 00 35 04 06 00 02 00 00 A5 [16:58:38]Write i2c OK [16:58:38]MH_I2C_Read... [16:58:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:38]Read from MH i2c: E2 [16:58:38]MH_I2C_Read... [16:58:38]Read from MH i2c: E2 03 00 [16:58:38]MH_I2C_Read... [16:58:38]Read from MH i2c: E2 03 00 A5 01 00 90 00 1A [16:58:38]RAPDU: 90 00 [16:58:38]wFMCommunicate OK [16:58:38]wFMCommunicate request_size=10 [16:58:38]MH_SAM_APDU [16:58:38]CAPDU: 80 0D 02 02 05 C9 79 E3 A2 9E [16:58:38]Write to MH i2c: E2 0D 00 A6 01 80 0D 02 02 05 00 C9 79 E3 A2 9E 00 00 90 [16:58:38]Write i2c OK [16:58:38]MH_I2C_Read... [16:58:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:38]Read from MH i2c: E2 [16:58:38]MH_I2C_Read... [16:58:38]Read from MH i2c: E2 03 00 [16:58:38]MH_I2C_Read... [16:58:38]Read from MH i2c: E2 03 00 A6 01 00 90 00 1B [16:58:38]RAPDU: 90 00 [16:58:38]wFMCommunicate OK [16:58:38]wFMCommunicate request_size=4 [16:58:38]MH_SAM_APDU [16:58:38]CAPDU: 80 0D 03 02 [16:58:38]Write to MH i2c: E2 08 00 A7 01 80 0D 03 02 00 00 00 00 23 [16:58:38]Write i2c OK [16:58:38]MH_I2C_Read... [16:58:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:58:38]Read from MH i2c: E2 [16:58:38]MH_I2C_Read... [16:58:38]Read from MH i2c: E2 0B 00 [16:58:38]MH_I2C_Read... [16:58:38]Read from MH i2c: E2 0B 00 A7 01 00 D2 17 A9 8E 92 4B 0D 1C 90 00 4A [16:58:38]RAPDU: D2 17 A9 8E 92 4B 0D 1C 90 00 [16:58:38]wFMCommunicate OK [16:58:38]SAM_PROTO_SignData done [16:58:38]FM_MakeSignedData done [16:58:38]CreateOFDProtocolMessage [16:58:38]wFMCommunicate request_size=4 [16:58:38]MH_SAM_APDU [16:58:38]CAPDU: 80 11 00 00 [16:58:38]Write to MH i2c: E2 08 00 A8 01 80 11 00 00 00 00 00 00 23 [16:58:38]Write i2c OK [16:58:38]MH_I2C_Read... [16:58:38]Read from MH i2c: E2 [16:58:38]MH_I2C_Read... [16:58:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:38]Read from MH i2c: E2 17 00 [16:58:38]MH_I2C_Read... [16:58:38]Read from MH i2c: E2 17 00 A8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 75 [16:58:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:58:38]wFMCommunicate OK [16:58:38]CreateOFDProtocolMessage done [16:58:38]OFDSenderStorePacket 82220 [16:58:38]StoreOFDPacket docnum=82220 [16:58:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 A3 02 07 01 64 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 3C 42 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2C 41 01 00 35 04 06 00 02 C9 79 E3 A2 9E D2 17 A9 8E 92 4B 0D 1C [16:58:38]CheckFolder [16:58:38]dirname=/storage/ofd_packets [16:58:38]CheckFolder done [16:58:38]ProducePacketName [16:58:38]name=ofd_packets/00082220 [16:58:38]NVStorageSaveData ofd_packets/00082220 [16:58:38]File name is /storage/ofd_packets/00082220 [16:58:38]Write 301 bytes [16:58:38]NVStorageSaveData done [16:58:38]OFDSenderStorePacket done [16:58:38]KKMCreateOFDPacket done [16:58:38]NVStorageSaveData kkm_last_timestamp [16:58:38]File name is /storage/kkm_last_timestamp [16:58:38]Write 4 bytes [16:58:38]NVStorageSaveData done [16:58:38]ExternCall_PrintAddStr [16:58:38]wPrintStart [16:58:38]Write to MH i2c: 01 00 00 A9 01 AA [16:58:38]Write i2c OK [16:58:38]MH_I2C_Read... [16:58:38]Read from MH i2c: 01 [16:58:38]MH_I2C_Read... [16:58:38]Read from MH i2c: 01 07 00 [16:58:38]MH_I2C_Read... [16:58:38]Read from MH i2c: 01 07 00 A9 01 00 00 00 00 00 FF 0F BF [16:58:38]RasterBufferAndPrint [16:58:38]line Счет N : (1)918723 [16:58:38]line ИНН: 02508201610067 [16:58:38]line Контрольно-Кассовый Чек [16:58:38]line ПРОДАЖА [16:58:38]OFD Sender: Processing packet 82220 [packets to send 254, broken 253] [16:58:38]ProducePacketName [16:58:38]name=ofd_packets/00082220 [16:58:38]OFD Sender: To server: pG, [16:58:38]CommunicateWithHost lk.salyk.kg:30040 [16:58:38]ConnectInit lk.salyk.kg [16:58:38]line ТРК (МРК, ГНК) : 22 [16:58:38]line Товар: 2710124130 [16:58:38]line Аи-92-К-4 [16:58:38]line 4.490 * 66.90 [16:58:38]line = 300.38 [16:58:38]line НДС 12% НСП 1% [16:58:38]line > о реализуемом товаре [16:58:38]line ОКРУГЛЕНИЕ: -0.38 [16:58:38]line ИТОГО: 300.00 [16:58:38]line Внесено: 300.00 [16:58:38]line СДАЧА: 0.00 [16:58:38]line НСП 1% : 2.66 [16:58:38]line НДС 12% : 31.90 [16:58:38]line Наличными: 300.00 [16:58:38]line Безнал.: 0.00 [16:58:38]line Место: АЗС № 114 "Партнер Нефть" [16:58:38]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [16:58:38]line СНО: Общий режим [16:58:38]line Чек 146 17.10.2024 16:58 [16:58:38]line Смена: 525 ФФД: 1.0 [16:58:38]line ЗНМ: 0300000086 [16:58:38]line РНМ: 0000000000091680 [16:58:38]line Версия ККМ: 001 [16:58:38]line ФМ: 0000000000871843 [16:58:38]line ФД: 82220 [16:58:38]line ФПД: 3064356643486 [16:58:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T165836&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82220&fm=3064356643486&tin=02508201610067®Number=0000000000091680&sum=30000 [16:58:38]written 0, free lines is 4095 [16:58:39]Connected sock=11 [16:58:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 A3 02 07 01 64 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 3C 42 11 67 Write to MH i2c: 0E 01 04 00 04 00 00 D4 0D 01 02 D5 00 [16:58:39]00 B9 Write i2c OK [16:58:39]04 MH_I2C_Read... [16:58:39]01 Read from MH i2c: 00 01 01 [16:58:39]0D MH_I2C_Read... [16:58:39]04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 Read from MH i2c: 36 01 38 07 30 00 11 [16:58:39]04 MH_I2C_Read... [16:58:39]10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 Read from MH i2c: 10 01 04 07 04 00 00 D4 2C 01 41 00 01 00 00 35 00 04 00 06 00 00 8A 02 0E C9 74 79 E3 A2 9E D2 17 A9 8E 92 4B 0D 1C [16:58:39] [16:58:39]RasterBufferAndPrint [16:58:39]line [16:58:39]line [16:58:39]line [16:58:39]line [16:58:39]line [16:58:39]written 0, free lines is 3824 [16:58:39]MH_Cut [16:58:39]Write to MH i2c: D1 01 00 DB 01 01 AE [16:58:39]Write i2c OK [16:58:39]MH_I2C_Read... [16:58:39]Read from MH i2c: D1 [16:58:39]MH_I2C_Read... [16:58:39]Read from MH i2c: D1 01 00 [16:58:39]MH_I2C_Read... [16:58:39]Read from MH i2c: D1 01 00 DB 01 00 AD [16:58:39]Write to MH i2c: 01 00 00 DC 01 DD [16:58:39]Write i2c OK [16:58:39]MH_I2C_Read... [16:58:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 A8 53 47 00 4F 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2C 41 01 00 *** Cut start [16:58:40]F4 *** Partial cut [16:58:40]03 04 00 7B E7 10 67 B6 04 01 00 00 D8 BA 07 B2 59 53 FE 03 [16:58:40]*** CUTSNS_PIN = 1 [16:58:40]CommunicateWithHost err = 0 [16:58:40]CheckOFDResponse [16:58:40]1017 (14) - 77093643461234 [16:58:40]1041 (16) - 0000000000871843 [16:58:40]1040 (4) - 82220 [16:58:40]*** CUTSNS_PIN = 0 [16:58:40]1012 (4) - 17.10.2024 10:31 [16:58:40]1206 (1) - 0 [16:58:40]OFD Sender: Remove packet 82220 [16:58:40]ProducePacketName [16:58:40]name=ofd_packets/00082220 [16:58:40]NVStorageDeleteData [16:58:40]*** Brake cut motor [16:58:40]Read from MH i2c: 01 [16:58:40]MH_I2C_Read... [16:58:40]OFD Sender: No OFD packet to send [16:58:40]Read from MH i2c: 01 07 00 [16:58:40]MH_I2C_Read... [16:58:40]*** Stop cut motor [16:58:40]*** Cut end [16:58:40]Read from MH i2c: 01 07 00 DC 01 00 00 00 00 00 FF 0F F2 [16:58:40]process_action close_receipt done [16:58:40]requested_data is exist [16:58:40]produce_requested_data [16:58:40]requested_item fm.sn is exist - process it [16:58:40]wFMCommunicate request_size=4 [16:58:40]MH_SAM_APDU [16:58:40]CAPDU: 80 11 00 00 [16:58:40]Write to MH i2c: E2 08 00 DD 01 80 11 00 00 00 00 00 00 58 [16:58:40]Write i2c OK [16:58:40]MH_I2C_Read... [16:58:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:40]Read from MH i2c: E2 [16:58:40]MH_I2C_Read... [16:58:40]Read from MH i2c: E2 17 00 [16:58:40]MH_I2C_Read... [16:58:40]Read from MH i2c: E2 17 00 DD 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 AA [16:58:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:58:40]wFMCommunicate OK [16:58:40]requested_item fd.num is exist - process it [16:58:40]SAM_PROTO_GetFieldsCounters [16:58:40]wFMCommunicate request_size=4 [16:58:40]MH_SAM_APDU [16:58:40]CAPDU: 80 13 00 00 [16:58:40]Write to MH i2c: E2 08 00 DE 01 80 13 00 00 00 00 00 00 5B [16:58:40]Write i2c OK [16:58:40]MH_I2C_Read... [16:58:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:58:41]Read from MH i2c: E2 [16:58:41]MH_I2C_Read... [16:58:41]Read from MH i2c: E2 62 00 [16:58:41]MH_I2C_Read... [16:58:41]Read from MH i2c: E2 62 00 DE 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 2C 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [16:58:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 2C 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:58:41]wFMCommunicate OK [16:58:41]SAM_PROTO_GetFieldsCounters done [16:58:41]requested_item shift.num is exist - process it [16:58:41]requested_item shift.opened is exist - process it [16:58:41]req_shift_opened [16:58:41]FM_GetShiftState [16:58:41]SAM_PROTO_GetShiftState [16:58:41]wFMCommunicate request_size=4 [16:58:41]MH_SAM_APDU [16:58:41]CAPDU: 80 13 01 00 [16:58:41]Write to MH i2c: E2 08 00 DF 01 80 13 01 00 00 00 00 00 5D [16:58:41]Write i2c OK [16:58:41]MH_I2C_Read... [16:58:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:41]Read from MH i2c: E2 [16:58:41]MH_I2C_Read... [16:58:41]Read from MH i2c: E2 0E 00 [16:58:41]MH_I2C_Read... [16:58:41]Read from MH i2c: E2 0E 00 DF 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 65 [16:58:41]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [16:58:41]wFMCommunicate OK [16:58:41]SAM_PROTO_GetShiftState done [16:58:41]FM_GetShiftState done [16:58:41]req_shift_opened done [16:58:41]requested_item shift.open_date is exist - process it [16:58:41]req_shift_open_date [16:58:41]req_shift_open_date done [16:58:41]produce_requested_data done [16:58:41]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82220,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [16:58:41]process_action_free close_receipt [16:58:41]json_value_free [16:58:41]json_value_free done [16:58:41]process_json_proto returns [16:58:41]Send response to host [16:58:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82220,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [16:58:41]free response buf [16:58:41]execute_script done [16:58:41]execute_script returns [16:58:41]free content buf [16:58:41]Sock 9.Close socket [16:58:41]Sock 9.Thread stoped [16:58:41]recv_with_timeout no data received [16:58:45]OFD Sender: No OFD packet to send [16:58:50]OFD Sender: No OFD packet to send [16:58:55]OFD Sender: No OFD packet to send [16:59:00]OFD Sender: No OFD packet to send [16:59:05]OFD Sender: No OFD packet to send [16:59:10]OFD Sender: No OFD packet to send [16:59:15]OFD Sender: No OFD packet to send [16:59:20]OFD Sender: No OFD packet to send [16:59:25]OFD Sender: No OFD packet to send [16:59:30]OFD Sender: No OFD packet to send [16:59:35]OFD Sender: No OFD packet to send [16:59:40]OFD Sender: No OFD packet to send [16:59:45]OFD Sender: No OFD packet to send [16:59:50]OFD Sender: No OFD packet to send [16:59:55]OFD Sender: No OFD packet to send [17:00:00]OFD Sender: No OFD packet to send [17:00:05]OFD Sender: No OFD packet to send [17:00:10]OFD Sender: No OFD packet to send [17:00:15]OFD Sender: No OFD packet to send [17:00:21]OFD Sender: No OFD packet to send [17:00:26]OFD Sender: No OFD packet to send [17:00:31]OFD Sender: No OFD packet to send [17:00:36]OFD Sender: No OFD packet to send [17:00:41]OFD Sender: No OFD packet to send [17:00:46]OFD Sender: No OFD packet to send [17:00:51]OFD Sender: No OFD packet to send [17:00:56]OFD Sender: No OFD packet to send [17:01:01]OFD Sender: No OFD packet to send [17:01:06]OFD Sender: No OFD packet to send [17:01:11]OFD Sender: No OFD packet to send [17:01:16]OFD Sender: No OFD packet to send [17:01:21]OFD Sender: No OFD packet to send [17:01:26]OFD Sender: No OFD packet to send [17:01:31]OFD Sender: No OFD packet to send [17:01:36]OFD Sender: No OFD packet to send [17:01:41]OFD Sender: No OFD packet to send [17:01:46]OFD Sender: No OFD packet to send [17:01:51]OFD Sender: No OFD packet to send [17:01:56]OFD Sender: No OFD packet to send [17:02:01]OFD Sender: No OFD packet to send [17:02:06]OFD Sender: No OFD packet to send [16:56:59]Write i2c OK [16:56:59]MH_I2C_Read... [16:56:59]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [16:56:59]Read from MH i2c: E2 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: E2 03 00 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [16:56:59]RAPDU: 90 00 [16:56:59]wFMCommunicate OK [16:56:59]wFMCommunicate request_size=4 [16:56:59]MH_SAM_APDU [16:56:59]CAPDU: 80 11 00 00 [16:56:59]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [16:56:59]Write i2c OK [16:56:59]MH_I2C_Read... [16:56:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:59]Read from MH i2c: E2 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: E2 17 00 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D6 [16:56:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:56:59]wFMCommunicate OK [16:56:59]Detected FM SN is 0000000000871843 [16:56:59]Stored FM SN is 0000000000871843 [16:56:59]wFMCommunicate request_size=9 [16:56:59]MH_SAM_APDU [16:56:59]CAPDU: 80 16 00 00 04 C3 A3 00 00 [16:56:59]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 C3 A3 00 00 00 00 F8 [16:56:59]Write i2c OK [16:56:59]MH_I2C_Read... [16:56:59]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [16:56:59]Read from MH i2c: E2 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: E2 03 00 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [16:56:59]RAPDU: 90 00 [16:56:59]wFMCommunicate OK [16:56:59]FM PIN OK [16:56:59]wFMCommunicate request_size=8 [16:56:59]MH_SAM_APDU [16:56:59]CAPDU: 80 14 04 00 03 02 00 01 [16:56:59]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [16:56:59]Write i2c OK [16:56:59]MH_I2C_Read... [16:56:59]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [16:56:59]Read from MH i2c: E2 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: E2 03 00 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [16:56:59]RAPDU: 90 00 [16:56:59]wFMCommunicate OK [16:56:59]wFMCommunicate request_size=13 [16:56:59]MH_SAM_APDU [16:56:59]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [16:56:59]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [16:56:59]Write i2c OK [16:56:59]MH_I2C_Read... [16:56:59]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [16:56:59]Read from MH i2c: E2 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: E2 [17:02:11]OFD Sender: No OFD packet to send [17:02:16]OFD Sender: No OFD packet to send [17:02:21]OFD Sender: No OFD packet to send [17:02:26]OFD Sender: No OFD packet to send [17:02:31]OFD Sender: No OFD packet to send [17:02:36]OFD Sender: No OFD packet to send [17:02:41]OFD Sender: No OFD packet to send [17:02:45]accept exits with 10 [17:02:45]New connection [17:02:45]New thread 3066613092 created [17:02:45]Thread 3066469732 joined [17:02:45]Waiting for new connection... [17:02:45] Sock 10.Parse request [17:02:45]Sock 10.Check first char [17:02:45]Sock 10.First char is OK [17:02:45]request: POST /json_proto HTTP/1.0 [17:02:45]Method: POST [17:02:45]URL: /json_proto [17:02:45]Method is POST - this is cgi request [17:02:45]url: /json_proto [17:02:45]query_string will be loaded in cgi processing [17:02:45]execute_cgi json_proto POST (null) [17:02:45]execute_cgi path=json_proto method=POST [17:02:45]POST find Content-Length [17:02:45]Host: 172.17.44.67:8080 [17:02:45]Content-Length: 682 [17:02:45]Content-Type: application/json [17:02:45] [17:02:45]POST finish read [17:02:45]Found Content-Length = 682 [17:02:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 5.390, "sum" : 410.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 410.00, "total" : 410.00, "payments": [ { "type": 0, "sum" : 410.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:45]execute_script... [17:02: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)918725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 5.390, "sum" : 410.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 410.00, "total" : 410.00, "payments": [ { "type": 0, "sum" : 410.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:45]POST & json_proto [17:02:45]process_json_proto [17:02:45]json parsed OK: [17:02:45]protocol is kg_v1.0 [17:02:45]action value=close_receipt [17:02:45]process_action close_receipt [17:02:45]cmd_close_receipt [17:02:45]MH_GetDate [17:02:45]Write to MH i2c: F0 00 00 E0 01 D0 [17:02:45]Write i2c OK [17:02:45]MH_I2C_Read... [17:02:45]Read from MH i2c: F0 [17:02:45]MH_I2C_Read... [17:02:45]Read from MH i2c: F0 09 00 [17:02:45]MH_I2C_Read... [17:02:45]Read from MH i2c: F0 09 00 E0 01 00 35 43 11 67 F1 C7 6B 64 50 [17:02:45]GetLastDocTimeStamp 1729184316 [17:02:45]current date 1729184565 [17:02:45]FM_GetShiftState [17:02:45]SAM_PROTO_GetShiftState [17:02:45]wFMCommunicate request_size=4 [17:02:45]MH_SAM_APDU [17:02:45]CAPDU: 80 13 01 00 [17:02:45]Write to MH i2c: E2 08 00 E1 01 80 13 01 00 00 00 00 00 5F [17:02:45]Write i2c OK [17:02:45]MH_I2C_Read... [17:02:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:45]Read from MH i2c: E2 [17:02:45]MH_I2C_Read... [17:02:45]Read from MH i2c: E2 0E 00 [17:02:45]MH_I2C_Read... [17:02:45]Read from MH i2c: E2 0E 00 E1 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 67 [17:02:45]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [17:02:45]wFMCommunicate OK [17:02:45]SAM_PROTO_GetShiftState done [17:02:45]FM_GetShiftState done [17:02:45]opened in 1729125927 [17:02:45]opened+sec_in_day 1729212327 [17:02:45]quantity*price = 41071 [17:02:45]sum+1 = 41073 [17:02:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 410.00 Внесено: 410.00 СДАЧА: 0.00 НСП 1% : 3.63 НДС 12% : 43.62 Наличными: 410.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 147 17.10.2024 17:02 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82221 ФПД: 86814468594479 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T170245&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82221&fm=86814468594479&tin=02508201610067®Number=0000000000091680&sum=41000 [17:02:46]StoreToDocumentArchive [17:02:46]shift 525 fd 82221 [17:02:46]save to /storage/0525/doc_00082221 [17:02:46]save last doc name /storage/0525/doc_00082221 to /storage/kkm_last_doc_name [17:02:46]save OK [17:02:46]Clear old archive folders... [17:02:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:02:46]tlvbuf is 011F4AB0 [17:02:46]SAM_PROTO_ClearQueue [17:02:46]wFMCommunicate request_size=4 [17:02:46]MH_SAM_APDU [17:02:46]CAPDU: 80 09 00 00 [17:02:46]Write to MH i2c: E2 08 00 EE 01 80 09 00 00 00 00 00 00 61 [17:02:46]Write i2c OK [17:02:46]MH_I2C_Read... [17:02:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:02:46]Read from MH i2c: E2 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: E2 03 00 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [17:02:46]RAPDU: 90 00 [17:02:46]wFMCommunicate OK [17:02:46]SAM_PROTO_ClearQueue done [17:02:46]KKMCreateOFDPacket [17:02:46]OFDProtocolAddRootSTLVToBuf [17:02:46]FM_MakeSignedData [17:02:46]FM_MakeSignedData [17:02:46]SAM_PROTO_SignData [17:02:46]wFMCommunicate request_size=4 [17:02:46]MH_SAM_APDU [17:02:46]CAPDU: 80 0D 01 02 [17:02:46]Write to MH i2c: E2 08 00 EF 01 80 0D 01 02 00 00 00 00 69 [17:02:46]Write i2c OK [17:02:46]MH_I2C_Read... [17:02:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:02:46]Read from MH i2c: E2 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: E2 03 00 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: E2 03 00 EF 01 00 90 00 64 [17:02:46]RAPDU: 90 00 [17:02:46]wFMCommunicate OK [17:02:46]wFMCommunicate request_size=255 [17:02:46]MH_SAM_APDU [17:02:46]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 0E 15 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 70 A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 35 43 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2D 41 01 00 35 04 06 00 [17:02:46]Write to MH i2c: E2 02 01 F0 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 0E 15 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 70 A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 35 43 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2D 41 01 00 35 04 06 00 00 00 D8 [17:02:46]Write i2c OK [17:02:46]MH_I2C_Read... [17:02:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:46]Read from MH i2c: E2 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: E2 03 00 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: E2 03 00 F0 01 00 90 00 65 [17:02:46]RAPDU: 90 00 [17:02:46]wFMCommunicate OK [17:02:46]wFMCommunicate request_size=11 [17:02:46]MH_SAM_APDU [17:02:46]CAPDU: 80 0D 02 02 06 4E F5 11 8F DB 2F [17:02:46]Write to MH i2c: E2 0E 00 F1 01 80 0D 02 02 06 00 4E F5 11 8F DB 2F 00 00 65 [17:02:46]Write i2c OK [17:02:46]MH_I2C_Read... [17:02:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:46]Read from MH i2c: E2 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: E2 03 00 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: E2 03 00 F1 01 00 90 00 66 [17:02:46]RAPDU: 90 00 [17:02:46]wFMCommunicate OK [17:02:46]wFMCommunicate request_size=4 [17:02:46]MH_SAM_APDU [17:02:46]CAPDU: 80 0D 03 02 [17:02:46]Write to MH i2c: E2 08 00 F2 01 80 0D 03 02 00 00 00 00 6E [17:02:46]Write i2c OK [17:02:46]MH_I2C_Read... [17:02:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:02:46]Read from MH i2c: E2 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: E2 0B 00 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: E2 0B 00 F2 01 00 7A B5 A0 17 2C 4E 3B A7 90 00 B1 [17:02:46]RAPDU: 7A B5 A0 17 2C 4E 3B A7 90 00 [17:02:46]wFMCommunicate OK [17:02:46]SAM_PROTO_SignData done [17:02:46]FM_MakeSignedData done [17:02:46]CreateOFDProtocolMessage [17:02:46]wFMCommunicate request_size=4 [17:02:46]MH_SAM_APDU [17:02:46]CAPDU: 80 11 00 00 [17:02:46]Write to MH i2c: E2 08 00 F3 01 80 11 00 00 00 00 00 00 6E [17:02:46]Write i2c OK [17:02:46]MH_I2C_Read... [17:02:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:46]Read from MH i2c: E2 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: E2 17 00 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: E2 17 00 F3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C0 [17:02:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:02:46]wFMCommunicate OK [17:02:46]CreateOFDProtocolMessage done [17:02:46]OFDSenderStorePacket 82221 [17:02:46]StoreOFDPacket docnum=82221 [17:02:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 5C F9 08 01 98 D6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 0E 15 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 70 A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 35 43 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2D 41 01 00 35 04 06 00 4E F5 11 8F DB 2F 7A B5 A0 17 2C 4E 3B A7 [17:02:46]CheckFolder [17:02:46]dirname=/storage/ofd_packets [17:02:46]CheckFolder done [17:02:46]ProducePacketName [17:02:46]name=ofd_packets/00082221 [17:02:46]NVStorageSaveData ofd_packets/00082221 [17:02:46]File name is /storage/ofd_packets/00082221 [17:02:46]Write 302 bytes [17:02:46]NVStorageSaveData done [17:02:46]OFDSenderStorePacket done [17:02:46]KKMCreateOFDPacket done [17:02:46]NVStorageSaveData kkm_last_timestamp [17:02:46]File name is /storage/kkm_last_timestamp [17:02:46]Write 4 bytes [17:02:46]NVStorageSaveData done [17:02:46]ExternCall_PrintAddStr [17:02:46]wPrintStart [17:02:46]Write to MH i2c: 01 00 00 F4 01 F5 [17:02:46]Write i2c OK [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: 01 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: 01 07 00 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: 01 07 00 F4 01 00 00 00 00 00 FF 0F 0A [17:02:46]RasterBufferAndPrint [17:02:46]line Счет N : (1)918725 [17:02:46]line ИНН: 02508201610067 [17:02:46]line Контрольно-Кассовый Чек [17:02:46]line ПРОДАЖА [17:02:46]line ТРК (МРК, ГНК) : 31 [17:02:46]line Товар: 2710194210 [17:02:46]line ДТ(л)-К-5 [17:02:46]line 5.390 * 76.20 [17:02:46]line = 410.72 [17:02:46]line НДС 12% НСП 1% [17:02:46]line > о реализуемом товаре [17:02:46]line ОКРУГЛЕНИЕ: -0.72 [17:02:46]line ИТОГО: 410.00 [17:02:46]line Внесено: 410.00 [17:02:46]line СДАЧА: 0.00 [17:02:46]line НСП 1% : 3.63 [17:02:46]line НДС 12% : 43.62 [17:02:46]line Наличными: 410.00 [17:02:46]line Безнал.: 0.00 [17:02:46]line Место: АЗС № 114 "Партнер Нефть" [17:02:46]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [17:02:46]line СНО: Общий режим [17:02:46]line Чек 147 17.10.2024 17:02 [17:02:46]line Смена: 525 ФФД: 1.0 [17:02:46]line ЗНМ: 0300000086 [17:02:46]line РНМ: 0000000000091680 [17:02:46]line Версия ККМ: 001 [17:02:46]line ФМ: 0000000000871843 [17:02:46]line ФД: 82221 [17:02:46]line ФПД: 86814468594479 [17:02:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T170245&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82221&fm=86814468594479&tin=02508201610067®Number=0000000000091680&sum=41000 [17:02:47]OFD Sender: Processing packet 82221 [packets to send 254, broken 253] [17:02:47]ProducePacketName [17:02:47]name=ofd_packets/00082221 [17:02:47]OFD Sender: To server: pG, [17:02:47]CommunicateWithHost lk.salyk.kg:30040 [17:02:47]ConnectInit lk.salyk.kg [17:02:47]written 0, free lines is 4095 [17:02:47]Write to MH i2c: 01 00 00 1F 02 21 [17:02:47]Write i2c OK [17:02:47]MH_I2C_Read... [17:02:47]Read from MH i2c: 01 [17:02:47]MH_I2C_Read... [17:02:47]Read from MH i2c: 01 07 00 [17:02:47]MH_I2C_Read... [17:02:47]Read from MH i2c: 01 07 00 1F 02 00 00 00 00 00 CD 0C 01 [17:02:47]RasterBufferAndPrint [17:02:47]line [17:02:47]line [17:02:47]line [17:02:47]line [17:02:47]line [17:02:47]written 0, free lines is 3280 [17:02:47]MH_Cut [17:02:47]Write to MH i2c: D1 01 00 26 02 01 FA [17:02:47]Write i2c OK [17:02:47]MH_I2C_Read... [17:02:47]Read from MH i2c: D1 [17:02:47]MH_I2C_Read... [17:02:47]Read from MH i2c: D1 01 00 [17:02:47]MH_I2C_Read... [17:02:47]Read from MH i2c: D1 01 00 26 02 00 F9 [17:02:47]Write to MH i2c: 01 00 00 27 02 29 [17:02:47]Write i2c OK [17:02:47]MH_I2C_Read... [17:02:48]*** Cut start [17:02:48]*** Partial cut [17:02:48]*** CUTSNS_PIN = 1 [17:02:48]*** CUTSNS_PIN = 0 [17:02:48]*** Brake cut motor [17:02:49]Connected sock=11 [17:02:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 5C F9 08 01 98 D6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 0E 15 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 70 A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 35 43 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2D 41 01 00 35 04 06 00 4E F5 11 8F DB 2F 7A B5 A0 17 2C 4E 3B A7 [17:02:49]Read from MH i2c: 01 [17:02:49]MH_I2C_Read... [17:02:49]*** Stop cut motor [17:02:49]*** Cut end [17:02:49]Read from MH i2c: 01 07 00 [17:02:49]MH_I2C_Read... [17:02:49]Read from MH i2c: 01 07 00 27 02 00 00 00 00 00 FF 0F 3E [17:02:49]process_action close_receipt done [17:02:49]requested_data is exist [17:02:49]produce_requested_data [17:02:49]requested_item fm.sn is exist - process it [17:02:49]wFMCommunicate request_size=4 [17:02:49]MH_SAM_APDU [17:02:49]CAPDU: 80 11 00 00 [17:02:49]Write to MH i2c: E2 08 00 28 02 80 11 00 00 00 00 00 00 A4 [17:02:49]Write i2c OK [17:02:49]MH_I2C_Read... [17:02:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:49]Read from MH i2c: E2 [17:02:49]MH_I2C_Read... [17:02:49]Read from MH i2c: E2 17 00 [17:02:49]MH_I2C_Read... [17:02:49]Read from MH i2c: E2 17 00 28 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 F6 [17:02:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:02:49]wFMCommunicate OK [17:02:49]requested_item fd.num is exist - process it [17:02:49]SAM_PROTO_GetFieldsCounters [17:02:49]wFMCommunicate request_size=4 [17:02:49]MH_SAM_APDU [17:02:49]CAPDU: 80 13 00 00 [17:02:49]Write to MH i2c: E2 08 00 29 02 80 13 00 00 00 00 00 00 A7 [17:02:49]Write i2c OK [17:02:49]MH_I2C_Read... [17:02:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:02:49]Read from MH i2c: E2 [17:02:49]MH_I2C_Read... [17:02:49]Read from MH i2c: E2 62 00 [17:02:49]MH_I2C_Read... [17:02:49]Read from MH i2c: E2 62 00 29 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 2D 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [17:02:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 2D 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:02:49]wFMCommunicate OK [17:02:49]SAM_PROTO_GetFieldsCounters done [17:02:49]requested_item shift.num is exist - process it [17:02:49]requested_item shift.opened is exist - process it [17:02:49]req_shift_opened [17:02:49]FM_GetShiftState [17:02:49]SAM_PROTO_GetShiftState [17:02:49]wFMCommunicate request_size=4 [17:02:49]MH_SAM_APDU [17:02:49]CAPDU: 80 13 01 00 [17:02:49]Write to MH i2c: E2 08 00 2A 02 80 13 01 00 00 00 00 00 A9 [17:02:49]Write i2c OK [17:02:49]MH_I2C_Read... [17:02:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:49]Read from MH i2c: E2 [17:02:49]MH_I2C_Read... [17:02:49]Read from MH i2c: E2 0E 00 [17:02:49]MH_I2C_Read... [17:02:49]Read from MH i2c: E2 0E 00 2A 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 B1 [17:02:49]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [17:02:49]wFMCommunicate OK [17:02:49]SAM_PROTO_GetShiftState done [17:02:49]FM_GetShiftState done [17:02:49]req_shift_opened done [17:02:49]requested_item shift.open_date is exist - process it [17:02:49]req_shift_open_date [17:02:49]req_shift_open_date done [17:02:49]produce_requested_data done [17:02:49]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82221,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [17:02:49]process_action_free close_receipt [17:02:49]json_value_free [17:02:49]json_value_free done [17:02:49]process_json_proto returns [17:02:49]Send response to host [17:02:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82221,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [17:02:49]free response buf [17:02:49]execute_script done [17:02:49]execute_script returns [17:02:49]free content buf [17:02:49]Sock 10.Close socket [17:02:49]Sock 10.Thread stoped [17:02:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 F6 D9 47 00 29 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2D 41 01 00 F4 03 04 00 74 E8 10 67 B6 04 01 00 00 FF EE 46 30 29 8C 76 F9 [17:02:49]CommunicateWithHost err = 0 [17:02:49]CheckOFDResponse [17:02:49]1017 (14) - 77093643461234 [17:02:49]1041 (16) - 0000000000871843 [17:02:49]1040 (4) - 82221 [17:02:49]1012 (4) - 17.10.2024 10:35 [17:02:49]1206 (1) - 0 [17:02:49]OFD Sender: Remove packet 82221 [17:02:49]ProducePacketName [17:02:49]name=ofd_packets/00082221 [17:02:49]NVStorageDeleteData [17:02:49]OFD Sender: No OFD packet to send [17:02:52]recv_with_timeout no data received [17:02:54]OFD Sender: No OFD packet to send [17:02:59]OFD Sender: No OFD packet to send [17:03:04]OFD Sender: No OFD packet to send [17:03:10]OFD Sender: No OFD packet to send [17:03:10]recv_with_timeout no data received [17:03:15]OFD Sender: No OFD packet to send [17:03:20]OFD Sender: No OFD packet to send [17:03:25]OFD Sender: No OFD packet to send [17:03:27]accept exits with 8 [17:03:27]New connection [17:03:27]New thread 3066469732 created [17:03:27]Thread 3066613092 joined [17:03:27]Waiting for new connection... [17:03:27] Sock 8.Parse request [17:03:27]Sock 8.Check first char [17:03:27]Sock 8.First char is OK [17:03:27]request: POST /json_proto HTTP/1.0 [17:03:27]Method: POST [17:03:27]URL: /json_proto [17:03:27]Method is POST - this is cgi request [17:03:27]url: /json_proto [17:03:27]query_string will be loaded in cgi processing [17:03:27]execute_cgi json_proto POST (null) [17:03:27]execute_cgi path=json_proto method=POST [17:03:27]POST find Content-Length [17:03:27]Host: 172.17.44.67:8080 [17:03:27]Content-Length: 806 [17:03:27]Content-Type: application/json [17:03:27] [17:03:27]POST finish read [17:03:27]Found Content-Length = 806 [17:03:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2226625", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:27]execute_script... [17:03:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2226625", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:27]POST & json_proto [17:03:27]process_json_proto [17:03:27]json parsed OK: [17:03:27]protocol is kg_v1.0 [17:03:27]action value=close_receipt [17:03:27]process_action close_receipt [17:03:27]cmd_close_receipt [17:03:27]MH_GetDate [17:03:27]Write to MH i2c: F0 00 00 2B 02 1C [17:03:27]Write i2c OK [17:03:27]MH_I2C_Read... [17:03:27]Read from MH i2c: F0 [17:03:27]MH_I2C_Read... [17:03:27]Read from MH i2c: F0 09 00 [17:03:27]MH_I2C_Read... [17:03:27]Read from MH i2c: F0 09 00 2B 02 00 60 43 11 67 F1 C7 6B 64 C7 [17:03:27]GetLastDocTimeStamp 1729184565 [17:03:27]current date 1729184608 [17:03:27]FM_GetShiftState [17:03:27]SAM_PROTO_GetShiftState [17:03:27]wFMCommunicate request_size=4 [17:03:27]MH_SAM_APDU [17:03:27]CAPDU: 80 13 01 00 [17:03:27]Write to MH i2c: E2 08 00 2C 02 80 13 01 00 00 00 00 00 AB [17:03:27]Write i2c OK [17:03:27]MH_I2C_Read... [17:03:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:28]Read from MH i2c: E2 [17:03:28]MH_I2C_Read... [17:03:28]Read from MH i2c: E2 0E 00 [17:03:28]MH_I2C_Read... [17:03:28]Read from MH i2c: E2 0E 00 2C 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 B3 [17:03:28]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [17:03:28]wFMCommunicate OK [17:03:28]SAM_PROTO_GetShiftState done [17:03:28]FM_GetShiftState done [17:03:28]opened in 1729125927 [17:03:28]opened+sec_in_day 1729212327 [17:03:28]quantity*price = 0 [17:03:28]sum+1 = 1 [17:03:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 148 17.10.2024 17:03 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 2226625 ФМ: 0000000000871843 ФД: 82222 ФПД: 18659239468288 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T170328&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82222&fm=18659239468288&tin=02508201610067®Number=0000000000091680&sum=0 [17:03:29]StoreToDocumentArchive [17:03:29]shift 525 fd 82222 [17:03:29]save to /storage/0525/doc_00082222 [17:03:29]save last doc name /storage/0525/doc_00082222 to /storage/kkm_last_doc_name [17:03:29]save OK [17:03:29]Clear old archive folders... [17:03:29]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:03:29]tlvbuf is B6E55820 [17:03:29]SAM_PROTO_ClearQueue [17:03:29]wFMCommunicate request_size=4 [17:03:29]MH_SAM_APDU [17:03:29]CAPDU: 80 09 00 00 [17:03:29]Write to MH i2c: E2 08 00 39 02 80 09 00 00 00 00 00 00 AD [17:03:29]Write i2c OK [17:03:29]MH_I2C_Read... [17:03:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:29]Read from MH i2c: E2 [17:03:29]MH_I2C_Read... [17:03:29]Read from MH i2c: E2 03 00 [17:03:29]MH_I2C_Read... [17:03:29]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [17:03:29]RAPDU: 90 00 [17:03:29]wFMCommunicate OK [17:03:29]SAM_PROTO_ClearQueue done [17:03:29]KKMCreateOFDPacket [17:03:29]OFDProtocolAddRootSTLVToBuf [17:03:29]FM_MakeSignedData [17:03:29]FM_MakeSignedData [17:03:29]SAM_PROTO_SignData [17:03:29]wFMCommunicate request_size=4 [17:03:29]MH_SAM_APDU [17:03:29]CAPDU: 80 0D 01 02 [17:03:29]Write to MH i2c: E2 08 00 3A 02 80 0D 01 02 00 00 00 00 B5 [17:03:29]Write i2c OK [17:03:29]MH_I2C_Read... [17:03:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:29]Read from MH i2c: E2 [17:03:29]MH_I2C_Read... [17:03:29]Read from MH i2c: E2 03 00 [17:03:29]MH_I2C_Read... [17:03:29]Read from MH i2c: E2 03 00 3A 02 00 90 00 B0 [17:03:29]RAPDU: 90 00 [17:03:29]wFMCommunicate OK [17:03:29]wFMCommunicate request_size=255 [17:03:29]MH_SAM_APDU [17:03:29]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 60 43 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2E 41 01 [17:03:29]Write to MH i2c: E2 02 01 3B 02 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 60 43 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2E 41 01 00 00 86 [17:03:29]Write i2c OK [17:03:29]MH_I2C_Read... [17:03:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:29]Read from MH i2c: E2 [17:03:29]MH_I2C_Read... [17:03:29]Read from MH i2c: E2 03 00 [17:03:29]MH_I2C_Read... [17:03:29]Read from MH i2c: E2 03 00 3B 02 00 90 00 B1 [17:03:29]RAPDU: 90 00 [17:03:29]wFMCommunicate OK [17:03:29]wFMCommunicate request_size=16 [17:03:29]MH_SAM_APDU [17:03:29]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 10 F8 71 57 1D 00 [17:03:29]Write to MH i2c: E2 13 00 3C 02 80 0D 02 02 0B 00 00 35 04 06 00 10 F8 71 57 1D 00 00 00 FA [17:03:29]Write i2c OK [17:03:29]MH_I2C_Read... [17:03:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:29]Read from MH i2c: E2 [17:03:29]MH_I2C_Read... [17:03:29]Read from MH i2c: E2 03 00 [17:03:29]MH_I2C_Read... [17:03:29]Read from MH i2c: E2 03 00 3C 02 00 90 00 B2 [17:03:29]RAPDU: 90 00 [17:03:29]wFMCommunicate OK [17:03:29]wFMCommunicate request_size=4 [17:03:29]MH_SAM_APDU [17:03:29]CAPDU: 80 0D 03 02 [17:03:29]Write to MH i2c: E2 08 00 3D 02 80 0D 03 02 00 00 00 00 BA [17:03:29]Write i2c OK [17:03:29]MH_I2C_Read... [17:03:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:29]Read from MH i2c: E2 [17:03:29]MH_I2C_Read... [17:03:29]Read from MH i2c: E2 0B 00 [17:03:29]MH_I2C_Read... [17:03:29]Read from MH i2c: E2 0B 00 3D 02 00 2B FA A7 B0 1A E3 2A 1C 90 00 7A [17:03:29]RAPDU: 2B FA A7 B0 1A E3 2A 1C 90 00 [17:03:29]wFMCommunicate OK [17:03:29]SAM_PROTO_SignData done [17:03:29]FM_MakeSignedData done [17:03:29]CreateOFDProtocolMessage [17:03:29]wFMCommunicate request_size=4 [17:03:29]MH_SAM_APDU [17:03:29]CAPDU: 80 11 00 00 [17:03:29]Write to MH i2c: E2 08 00 3E 02 80 11 00 00 00 00 00 00 BA [17:03:29]Write i2c OK [17:03:29]MH_I2C_Read... [17:03:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:29]Read from MH i2c: E2 [17:03:29]MH_I2C_Read... [17:03:29]Read from MH i2c: E2 17 00 [17:03:29]MH_I2C_Read... [17:03:29]Read from MH i2c: E2 17 00 3E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 0C [17:03:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:03:29]wFMCommunicate OK [17:03:29]CreateOFDProtocolMessage done [17:03:29]OFDSenderStorePacket 82222 [17:03:29]StoreOFDPacket docnum=82222 [17:03:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 3D FD 0D 01 07 16 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 60 43 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2E 41 01 00 35 04 06 00 10 F8 71 57 1D 00 2B FA A7 B0 1A E3 2A 1C [17:03:29]CheckFolder [17:03:29]dirname=/storage/ofd_packets [17:03:29]CheckFolder done [17:03:29]ProducePacketName [17:03:29]name=ofd_packets/00082222 [17:03:29]NVStorageSaveData ofd_packets/00082222 [17:03:29]File name is /storage/ofd_packets/00082222 [17:03:29]Write 307 bytes [17:03:29]NVStorageSaveData done [17:03:29]OFDSenderStorePacket done [17:03:29]KKMCreateOFDPacket done [17:03:29]NVStorageSaveData kkm_last_timestamp [17:03:29]File name is /storage/kkm_last_timestamp [17:03:29]Write 4 bytes [17:03:29]NVStorageSaveData done [17:03:29]ExternCall_PrintAddStr [17:03:29]wPrintStart [17:03:29]Write to MH i2c: 01 00 00 3F 02 41 [17:03:29]Write i2c OK [17:03:29]MH_I2C_Read... [17:03:29]Read from MH i2c: 01 [17:03:29]MH_I2C_Read... [17:03:29]Read from MH i2c: 01 07 00 [17:03:29]MH_I2C_Read... [17:03:29]Read from MH i2c: 01 07 00 3F 02 00 00 00 00 00 FF 0F 56 [17:03:29]RasterBufferAndPrint [17:03:29]line Счет N : (1)918726 [17:03:29]line ИНН: 02508201610067 [17:03:29]line Контрольно-Кассовый Чек [17:03:29]line ПРОДАЖА [17:03:29]line ТРК (МРК, ГНК) : 21 [17:03:29]line Товар: 2710194800 [17:03:29]line D-Energy ДТ-К-2 [17:03:29]line 20.000 * 0.00 [17:03:29]line = 0.00 [17:03:29]line НДС 12% НСП 1% [17:03:29]line > о реализуемом товаре [17:03:29]line ИТОГО: 0.00 [17:03:29]line НСП 1% : 0.00 [17:03:29]line НДС 12% : 0.00 [17:03:29]line Наличными: 0.00 [17:03:29]line Безнал.: 0.00 [17:03:29]line Место: АЗС № 114 "Партнер Нефть" [17:03:29]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [17:03:29]line СНО: Общий режим [17:03:29]line Чек 148 17.10.2024 17:03 [17:03:29]line Смена: 525 ФФД: 1.0 [17:03:29]line ЗНМ: 0300000086 [17:03:29]line РНМ: 0000000000091680 [17:03:29]line Версия ККМ: 001 [17:03:29]line Талоны: Топливные Талоны [17:03:29]line 2226625 [17:03:29]line ФМ: 0000000000871843 [17:03:29]line ФД: 82222 [17:03:29]line ФПД: 18659239468288 [17:03:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T170328&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82222&fm=18659239468288&tin=02508201610067®Number=0000000000091680&sum=0 [17:03:30]OFD Sender: Processing packet 82222 [packets to send 254, broken 253] [17:03:30]ProducePacketName [17:03:30]name=ofd_packets/00082222 [17:03:30]OFD Sender: To server: pG, [17:03:30]CommunicateWithHost lk.salyk.kg:30040 [17:03:30]ConnectInit lk.salyk.kg [17:03:30]written 0, free lines is 4095 [17:03:30]Write to MH i2c: 01 00 00 69 02 6B [17:03:30]Write i2c OK [17:03:30]MH_I2C_Read... [17:03:30]Read from MH i2c: 01 [17:03:30]MH_I2C_Read... [17:03:30]Read from MH i2c: 01 07 00 [17:03:30]MH_I2C_Read... [17:03:30]Read from MH i2c: 01 07 00 69 02 00 00 00 00 00 F5 0C 73 [17:03:30]RasterBufferAndPrint [17:03:30]line [17:03:30]line [17:03:30]line [17:03:30]line [17:03:30]line [17:03:30]written 0, free lines is 3323 [17:03:30]MH_Cut [17:03:30]Write to MH i2c: D1 01 00 70 02 01 44 [17:03:30]Write i2c OK [17:03:30]MH_I2C_Read... [17:03:30]Read from MH i2c: D1 [17:03:30]MH_I2C_Read... [17:03:30]Read from MH i2c: D1 01 00 [17:03:30]MH_I2C_Read... [17:03:30]Read from MH i2c: D1 01 00 70 02 00 43 [17:03:30]Write to MH i2c: 01 00 00 71 02 73 [17:03:30]Write i2c OK [17:03:30]MH_I2C_Read... [17:03:30]Connected sock=11 [17:03:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 3D FD 0D 01 07 16 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 60 43 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2E 41 01 00 35 04 06 00 10 F8 71 57 1D 00 2B FA A7 B0 1A E3 2A 1C [17:03:31]*** Cut start [17:03:31]*** Partial cut [17:03:31]*** CUTSNS_PIN = 1 [17:03:31]*** CUTSNS_PIN = 0 [17:03:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 29 03 47 00 D4 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2E 41 01 00 F4 03 04 00 9E E8 10 67 B6 04 01 00 00 2C 41 4E 41 6D D7 9A CF [17:03:31]CommunicateWithHost err = 0 [17:03:31]CheckOFDResponse [17:03:31]1017 (14) - 77093643461234 [17:03:31]1041 (16) - 0000000000871843 [17:03:31]1040 (4) - 82222 [17:03:31]1012 (4) - 17.10.2024 10:36 [17:03:31]1206 (1) - 0 [17:03:31]OFD Sender: Remove packet 82222 [17:03:31]ProducePacketName [17:03:31]name=ofd_packets/00082222 [17:03:31]NVStorageDeleteData [17:03:31]*** Brake cut motor [17:03:31]Read from MH i2c: 01 [17:03:31]MH_I2C_Read... [17:03:31]OFD Sender: No OFD packet to send [17:03:31]Read from MH i2c: 01 07 00 [17:03:31]MH_I2C_Read... [17:03:31]*** Stop cut motor [17:03:31]*** Cut end [17:03:31]Read from MH i2c: 01 07 00 71 02 00 00 00 00 00 FF 0F 88 [17:03:31]process_action close_receipt done [17:03:31]requested_data is exist [17:03:31]produce_requested_data [17:03:31]requested_item fm.sn is exist - process it [17:03:31]wFMCommunicate request_size=4 [17:03:31]MH_SAM_APDU [17:03:31]CAPDU: 80 11 00 00 [17:03:31]Write to MH i2c: E2 08 00 72 02 80 11 00 00 00 00 00 00 EE [17:03:31]Write i2c OK [17:03:31]MH_I2C_Read... [17:03:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:31]Read from MH i2c: E2 [17:03:31]MH_I2C_Read... [17:03:31]Read from MH i2c: E2 17 00 [17:03:31]MH_I2C_Read... [17:03:31]Read from MH i2c: E2 17 00 72 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 40 [17:03:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:03:31]wFMCommunicate OK [17:03:31]requested_item fd.num is exist - process it [17:03:31]SAM_PROTO_GetFieldsCounters [17:03:31]wFMCommunicate request_size=4 [17:03:31]MH_SAM_APDU [17:03:31]CAPDU: 80 13 00 00 [17:03:31]Write to MH i2c: E2 08 00 73 02 80 13 00 00 00 00 00 00 F1 [17:03:31]Write i2c OK [17:03:31]MH_I2C_Read... [17:03:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:32]Read from MH i2c: E2 [17:03:32]MH_I2C_Read... [17:03:32]Read from MH i2c: E2 62 00 [17:03:32]MH_I2C_Read... [17:03:32]Read from MH i2c: E2 62 00 73 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 2E 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [17:03:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 2E 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:03:32]wFMCommunicate OK [17:03:32]SAM_PROTO_GetFieldsCounters done [17:03:32]requested_item shift.num is exist - process it [17:03:32]requested_item shift.opened is exist - process it [17:03:32]req_shift_opened [17:03:32]FM_GetShiftState [17:03:32]SAM_PROTO_GetShiftState [17:03:32]wFMCommunicate request_size=4 [17:03:32]MH_SAM_APDU [17:03:32]CAPDU: 80 13 01 00 [17:03:32]Write to MH i2c: E2 08 00 74 02 80 13 01 00 00 00 00 00 F3 [17:03:32]Write i2c OK [17:03:32]MH_I2C_Read... [17:03:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:32]Read from MH i2c: E2 [17:03:32]MH_I2C_Read... [17:03:32]Read from MH i2c: E2 0E 00 [17:03:32]MH_I2C_Read... [17:03:32]Read from MH i2c: E2 0E 00 74 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 FB [17:03:32]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [17:03:32]wFMCommunicate OK [17:03:32]SAM_PROTO_GetShiftState done [17:03:32]FM_GetShiftState done [17:03:32]req_shift_opened done [17:03:32]requested_item shift.open_date is exist - process it [17:03:32]req_shift_open_date [17:03:32]req_shift_open_date done [17:03:32]produce_requested_data done [17:03:32]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82222,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [17:03:32]process_action_free close_receipt [17:03:32]json_value_free [17:03:32]json_value_free done [17:03:32]process_json_proto returns [17:03:32]Send response to host [17:03:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82222,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [17:03:32]free response buf [17:03:32]execute_script done [17:03:32]execute_script returns [17:03:32]free content buf [17:03:32]Sock 8.Close socket [17:03:32]Sock 8.Thread stoped [17:03:36]OFD Sender: No OFD packet to send [17:03:41]OFD Sender: No OFD packet to send [17:03:46]OFD Sender: No OFD packet to send [17:03:51]OFD Sender: No OFD packet to send [17:03:56]OFD Sender: No OFD packet to send [17:04:01]OFD Sender: No OFD packet to send [17:04:06]OFD Sender: No OFD packet to send [17:04:11]OFD Sender: No OFD packet to send [17:04:16]OFD Sender: No OFD packet to send [17:04:21]OFD Sender: No OFD packet to send [17:04:22]accept exits with 9 [17:04:22]New connection [17:04:22]New thread 3066613092 created [17:04:22]Thread 3066469732 joined [17:04:22]Waiting for new connection... [17:04:22] Sock 9.Parse request [17:04:22]Sock 9.Check first char [17:04:22]Sock 9.First char is OK [17:04:22]request: POST /json_proto HTTP/1.0 [17:04:22]Method: POST [17:04:22]URL: /json_proto [17:04:22]Method is POST - this is cgi request [17:04:22]url: /json_proto [17:04:22]query_string will be loaded in cgi processing [17:04:22]execute_cgi json_proto POST (null) [17:04:22]execute_cgi path=json_proto method=POST [17:04:22]POST find Content-Length [17:04:22]Host: 172.17.44.67:8080 [17:04:22]Content-Length: 806 [17:04:22]Content-Type: application/json [17:04:22] [17:04:22]POST finish read [17:04:22]Found Content-Length = 806 [17:04:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2203044", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:04:22]execute_script... [17:04:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2203044", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:04:22]POST & json_proto [17:04:22]process_json_proto [17:04:22]json parsed OK: [17:04:22]protocol is kg_v1.0 [17:04:22]action value=close_receipt [17:04:22]process_action close_receipt [17:04:22]cmd_close_receipt [17:04:22]MH_GetDate [17:04:22]Write to MH i2c: F0 00 00 75 02 66 [17:04:22]Write i2c OK [17:04:22]MH_I2C_Read... [17:04:22]Read from MH i2c: F0 [17:04:22]MH_I2C_Read... [17:04:22]Read from MH i2c: F0 09 00 [17:04:22]MH_I2C_Read... [17:04:22]Read from MH i2c: F0 09 00 75 02 00 96 43 11 67 F1 C7 6B 64 47 [17:04:22]GetLastDocTimeStamp 1729184608 [17:04:22]current date 1729184662 [17:04:22]FM_GetShiftState [17:04:22]SAM_PROTO_GetShiftState [17:04:22]wFMCommunicate request_size=4 [17:04:22]MH_SAM_APDU [17:04:22]CAPDU: 80 13 01 00 [17:04:22]Write to MH i2c: E2 08 00 76 02 80 13 01 00 00 00 00 00 F5 [17:04:22]Write i2c OK [17:04:22]MH_I2C_Read... [17:04:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:22]Read from MH i2c: E2 [17:04:22]MH_I2C_Read... [17:04:22]Read from MH i2c: E2 0E 00 [17:04:22]MH_I2C_Read... [17:04:22]Read from MH i2c: E2 0E 00 76 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 FD [17:04:22]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [17:04:22]wFMCommunicate OK [17:04:22]SAM_PROTO_GetShiftState done [17:04:22]FM_GetShiftState done [17:04:22]opened in 1729125927 [17:04:22]opened+sec_in_day 1729212327 [17:04:22]quantity*price = 0 [17:04:22]sum+1 = 1 [17:04:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 149 17.10.2024 17:04 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 2203044 ФМ: 0000000000871843 ФД: 82223 ФПД: 270160120775715 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T170422&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82223&fm=270160120775715&tin=02508201610067®Number=0000000000091680&sum=0 [17:04:23]StoreToDocumentArchive [17:04:23]shift 525 fd 82223 [17:04:23]save to /storage/0525/doc_00082223 [17:04:23]save last doc name /storage/0525/doc_00082223 to /storage/kkm_last_doc_name [17:04:23]save OK [17:04:23]Clear old archive folders... [17:04:23]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:04:23]tlvbuf is 011680B0 [17:04:23]SAM_PROTO_ClearQueue [17:04:23]wFMCommunicate request_size=4 [17:04:23]MH_SAM_APDU [17:04:23]CAPDU: 80 09 00 00 [17:04:23]Write to MH i2c: E2 08 00 83 02 80 09 00 00 00 00 00 00 F7 [17:04:23]Write i2c OK [17:04:23]MH_I2C_Read... [17:04:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:04:23]Read from MH i2c: E2 [17:04:23]MH_I2C_Read... [17:04:23]Read from MH i2c: E2 03 00 [17:04:23]MH_I2C_Read... [17:04:23]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [17:04:23]RAPDU: 90 00 [17:04:23]wFMCommunicate OK [17:04:23]SAM_PROTO_ClearQueue done [17:04:23]KKMCreateOFDPacket [17:04:23]OFDProtocolAddRootSTLVToBuf [17:04:23]FM_MakeSignedData [17:04:23]FM_MakeSignedData [17:04:23]SAM_PROTO_SignData [17:04:23]wFMCommunicate request_size=4 [17:04:23]MH_SAM_APDU [17:04:23]CAPDU: 80 0D 01 02 [17:04:23]Write to MH i2c: E2 08 00 84 02 80 0D 01 02 00 00 00 00 FF [17:04:23]Write i2c OK [17:04:23]MH_I2C_Read... [17:04:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:04:23]Read from MH i2c: E2 [17:04:23]MH_I2C_Read... [17:04:23]Read from MH i2c: E2 03 00 [17:04:23]MH_I2C_Read... [17:04:23]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [17:04:23]RAPDU: 90 00 [17:04:23]wFMCommunicate OK [17:04:23]wFMCommunicate request_size=255 [17:04:23]MH_SAM_APDU [17:04:23]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 96 43 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2F 41 01 [17:04:23]Write to MH i2c: E2 02 01 85 02 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 96 43 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2F 41 01 00 00 D1 [17:04:23]Write i2c OK [17:04:23]MH_I2C_Read... [17:04:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:24]Read from MH i2c: E2 [17:04:24]MH_I2C_Read... [17:04:24]Read from MH i2c: E2 03 00 [17:04:24]MH_I2C_Read... [17:04:24]Read from MH i2c: E2 03 00 85 02 00 90 00 FB [17:04:24]RAPDU: 90 00 [17:04:24]wFMCommunicate OK [17:04:24]wFMCommunicate request_size=16 [17:04:24]MH_SAM_APDU [17:04:24]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F5 B5 8E 08 04 23 [17:04:24]Write to MH i2c: E2 13 00 86 02 80 0D 02 02 0B 00 00 35 04 06 00 F5 B5 8E 08 04 23 00 00 BE [17:04:24]Write i2c OK [17:04:24]MH_I2C_Read... [17:04:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:24]Read from MH i2c: E2 [17:04:24]MH_I2C_Read... [17:04:24]Read from MH i2c: E2 03 00 [17:04:24]MH_I2C_Read... [17:04:24]Read from MH i2c: E2 03 00 86 02 00 90 00 FC [17:04:24]RAPDU: 90 00 [17:04:24]wFMCommunicate OK [17:04:24]wFMCommunicate request_size=4 [17:04:24]MH_SAM_APDU [17:04:24]CAPDU: 80 0D 03 02 [17:04:24]Write to MH i2c: E2 08 00 87 02 80 0D 03 02 00 00 00 00 04 [17:04:24]Write i2c OK [17:04:24]MH_I2C_Read... [17:04:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:04:24]Read from MH i2c: E2 [17:04:24]MH_I2C_Read... [17:04:24]Read from MH i2c: E2 0B 00 [17:04:24]MH_I2C_Read... [17:04:24]Read from MH i2c: E2 0B 00 87 02 00 7E DE 0A F4 16 EB 33 6E 90 00 01 [17:04:24]RAPDU: 7E DE 0A F4 16 EB 33 6E 90 00 [17:04:24]wFMCommunicate OK [17:04:24]SAM_PROTO_SignData done [17:04:24]FM_MakeSignedData done [17:04:24]CreateOFDProtocolMessage [17:04:24]wFMCommunicate request_size=4 [17:04:24]MH_SAM_APDU [17:04:24]CAPDU: 80 11 00 00 [17:04:24]Write to MH i2c: E2 08 00 88 02 80 11 00 00 00 00 00 00 04 [17:04:24]Write i2c OK [17:04:24]MH_I2C_Read... [17:04:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:24]Read from MH i2c: E2 [17:04:24]MH_I2C_Read... [17:04:24]Read from MH i2c: E2 17 00 [17:04:24]MH_I2C_Read... [17:04:24]Read from MH i2c: E2 17 00 88 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 56 [17:04:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:04:24]wFMCommunicate OK [17:04:24]CreateOFDProtocolMessage done [17:04:24]OFDSenderStorePacket 82223 [17:04:24]StoreOFDPacket docnum=82223 [17:04:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 8D A9 0D 01 47 66 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 96 43 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2F 41 01 00 35 04 06 00 F5 B5 8E 08 04 23 7E DE 0A F4 16 EB 33 6E [17:04:24]CheckFolder [17:04:24]dirname=/storage/ofd_packets [17:04:24]CheckFolder done [17:04:24]ProducePacketName [17:04:24]name=ofd_packets/00082223 [17:04:24]NVStorageSaveData ofd_packets/00082223 [17:04:24]File name is /storage/ofd_packets/00082223 [17:04:24]Write 307 bytes [17:04:24]NVStorageSaveData done [17:04:24]OFDSenderStorePacket done [17:04:24]KKMCreateOFDPacket done [17:04:24]NVStorageSaveData kkm_last_timestamp [17:04:24]File name is /storage/kkm_last_timestamp [17:04:24]Write 4 bytes [17:04:24]NVStorageSaveData done [17:04:24]ExternCall_PrintAddStr [17:04:24]wPrintStart [17:04:24]Write to MH i2c: 01 00 00 89 02 8B [17:04:24]Write i2c OK [17:04:24]MH_I2C_Read... [17:04:24]Read from MH i2c: 01 [17:04:24]MH_I2C_Read... [17:04:24]Read from MH i2c: 01 07 00 [17:04:24]MH_I2C_Read... [17:04:24]Read from MH i2c: 01 07 00 89 02 00 00 00 00 00 FF 0F A0 [17:04:24]RasterBufferAndPrint [17:04:24]line Счет N : (1)918727 [17:04:24]line ИНН: 02508201610067 [17:04:24]line Контрольно-Кассовый Чек [17:04:24]line ПРОДАЖА [17:04:24]line ТРК (МРК, ГНК) : 21 [17:04:24]line Товар: 2710194800 [17:04:24]line D-Energy ДТ-К-2 [17:04:24]line 10.000 * 0.00 [17:04:24]line = 0.00 [17:04:24]line НДС 12% НСП 1% [17:04:24]line > о реализуемом товаре [17:04:24]line ИТОГО: 0.00 [17:04:24]line НСП 1% : 0.00 [17:04:24]line НДС 12% : 0.00 [17:04:24]line Наличными: 0.00 [17:04:24]line Безнал.: 0.00 [17:04:24]line Место: АЗС № 114 "Партнер Нефть" [17:04:24]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [17:04:24]line СНО: Общий режим [17:04:24]line Чек 149 17.10.2024 17:04 [17:04:24]line Смена: 525 ФФД: 1.0 [17:04:24]line ЗНМ: 0300000086 [17:04:24]line РНМ: 0000000000091680 [17:04:24]line Версия ККМ: 001 [17:04:24]line Талоны: Топливные Талоны [17:04:24]line 2203044 [17:04:24]line ФМ: 0000000000871843 [17:04:24]line ФД: 82223 [17:04:24]line ФПД: 270160120775715 [17:04:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T170422&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82223&fm=270160120775715&tin=02508201610067®Number=0000000000091680&sum=0 [17:04:24]OFD Sender: Processing packet 82223 [packets to send 254, broken 253] [17:04:24]ProducePacketName [17:04:24]name=ofd_packets/00082223 [17:04:24]OFD Sender: To server: pG, [17:04:24]CommunicateWithHost lk.salyk.kg:30040 [17:04:24]ConnectInit lk.salyk.kg [17:04:24]written 0, free lines is 4095 [17:04:25]Write to MH i2c: 01 00 00 B3 02 B5 [17:04:25]Write i2c OK [17:04:25]MH_I2C_Read... [17:04:25]Read from MH i2c: 01 [17:04:25]MH_I2C_Read... [17:04:25]Read from MH i2c: 01 07 00 [17:04:25]MH_I2C_Read... [17:04:25]Read from MH i2c: 01 07 00 B3 02 00 00 00 00 00 EE 0C B6 [17:04:25]RasterBufferAndPrint [17:04:25]line [17:04:25]line [17:04:25]line [17:04:25]line [17:04:25]line [17:04:25]written 0, free lines is 3316 [17:04:25]MH_Cut [17:04:25]Write to MH i2c: D1 01 00 BA 02 01 8E [17:04:25]Write i2c OK [17:04:25]MH_I2C_Read... [17:04:25]Read from MH i2c: D1 [17:04:25]MH_I2C_Read... [17:04:25]Read from MH i2c: D1 01 00 [17:04:25]MH_I2C_Read... [17:04:25]Read from MH i2c: D1 01 00 BA 02 00 8D [17:04:25]Write to MH i2c: 01 00 00 BB 02 BD [17:04:25]Write i2c OK [17:04:25]MH_I2C_Read... [17:04:25]Connected sock=10 [17:04:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 8D A9 0D 01 47 66 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 96 43 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2F 41 01 00 35 04 06 00 F5 B5 8E 08 04 23 7E DE 0A F4 16 EB 33 6E [17:04:25]*** Cut start [17:04:25]*** Partial cut [17:04:25]*** CUTSNS_PIN = 1 [17:04:25]*** CUTSNS_PIN = 0 [17:04:26]*** Brake cut motor [17:04:26]Read from MH i2c: 01 [17:04:26]MH_I2C_Read... [17:04:26]*** Stop cut motor [17:04:26]*** Cut end [17:04:26]Read from MH i2c: 01 07 00 [17:04:26]MH_I2C_Read... [17:04:26]Read from MH i2c: 01 07 00 BB 02 00 00 00 00 00 FF 0F D2 [17:04:26]process_action close_receipt done [17:04:26]requested_data is exist [17:04:26]produce_requested_data [17:04:26]requested_item fm.sn is exist - process it [17:04:26]wFMCommunicate request_size=4 [17:04:26]MH_SAM_APDU [17:04:26]CAPDU: 80 11 00 00 [17:04:26]Write to MH i2c: E2 08 00 BC 02 80 11 00 00 00 00 00 00 38 [17:04:26]Write i2c OK [17:04:26]MH_I2C_Read... [17:04:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:26]Read from MH i2c: E2 [17:04:26]MH_I2C_Read... [17:04:26]Read from MH i2c: E2 17 00 [17:04:26]MH_I2C_Read... [17:04:26]Read from MH i2c: E2 17 00 BC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 8A [17:04:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:04:26]wFMCommunicate OK [17:04:26]requested_item fd.num is exist - process it [17:04:26]SAM_PROTO_GetFieldsCounters [17:04:26]wFMCommunicate request_size=4 [17:04:26]MH_SAM_APDU [17:04:26]CAPDU: 80 13 00 00 [17:04:26]Write to MH i2c: E2 08 00 BD 02 80 13 00 00 00 00 00 00 3B [17:04:26]Write i2c OK [17:04:26]MH_I2C_Read... [17:04:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:04:26]Read from MH i2c: E2 [17:04:26]MH_I2C_Read... [17:04:26]Read from MH i2c: E2 62 00 [17:04:26]MH_I2C_Read... [17:04:26]Read from MH i2c: E2 62 00 BD 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 2F 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [17:04:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 2F 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:04:26]wFMCommunicate OK [17:04:26]SAM_PROTO_GetFieldsCounters done [17:04:26]requested_item shift.num is exist - process it [17:04:26]requested_item shift.opened is exist - process it [17:04:26]req_shift_opened [17:04:26]FM_GetShiftState [17:04:26]SAM_PROTO_GetShiftState [17:04:26]wFMCommunicate request_size=4 [17:04:26]MH_SAM_APDU [17:04:26]CAPDU: 80 13 01 00 [17:04:26]Write to MH i2c: E2 08 00 BE 02 80 13 01 00 00 00 00 00 3D [17:04:26]Write i2c OK [17:04:26]MH_I2C_Read... [17:04:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:26]Read from MH i2c: E2 [17:04:26]MH_I2C_Read... [17:04:26]Read from MH i2c: E2 0E 00 [17:04:26]MH_I2C_Read... [17:04:26]Read from MH i2c: E2 0E 00 BE 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 45 [17:04:26]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [17:04:26]wFMCommunicate OK [17:04:26]SAM_PROTO_GetShiftState done [17:04:26]FM_GetShiftState done [17:04:26]req_shift_opened done [17:04:26]requested_item shift.open_date is exist - process it [17:04:26]req_shift_open_date [17:04:26]req_shift_open_date done [17:04:26]produce_requested_data done [17:04:26]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82223,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [17:04:26]process_action_free close_receipt [17:04:26]json_value_free [17:04:26]json_value_free done [17:04:26]process_json_proto returns [17:04:26]Send response to host [17:04:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82223,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [17:04:26]free response buf [17:04:26]execute_script done [17:04:26]execute_script returns [17:04:26]free content buf [17:04:26]Sock 9.Close socket [17:04:26]Sock 9.Thread stoped [17:04:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 0F CB 47 00 B4 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2F 41 01 00 F4 03 04 00 D5 E8 10 67 B6 04 01 00 00 41 CA 15 25 7C DF EB 5C [17:04:27]CommunicateWithHost err = 0 [17:04:27]CheckOFDResponse [17:04:27]1017 (14) - 77093643461234 [17:04:27]1041 (16) - 0000000000871843 [17:04:27]1040 (4) - 82223 [17:04:27]1012 (4) - 17.10.2024 10:37 [17:04:27]1206 (1) - 0 [17:04:27]OFD Sender: Remove packet 82223 [17:04:27]ProducePacketName [17:04:27]name=ofd_packets/00082223 [17:04:27]NVStorageDeleteData [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:18]accept exits with 8 [17:05:18]New connection [17:05:18]New thread 3066469732 created [17:05:18]Thread 3066613092 joined [17:05:18]Waiting for new connection... [17:05:18] Sock 8.Parse request [17:05:18]Sock 8.Check first char [17:05:18]Sock 8.First char is OK [17:05:18]request: POST /json_proto HTTP/1.0 [17:05:18]Method: POST [17:05:18]URL: /json_proto [17:05:18]Method is POST - this is cgi request [17:05:18]url: /json_proto [17:05:18]query_string will be loaded in cgi processing [17:05:18]execute_cgi json_proto POST (null) [17:05:18]execute_cgi path=json_proto method=POST [17:05:18]POST find Content-Length [17:05:18]Host: 172.17.44.67:8080 [17:05:18]Content-Length: 806 [17:05:18]Content-Type: application/json [17:05:18] [17:05:18]POST finish read [17:05:18]Found Content-Length = 806 [17:05:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2202665", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:05:18]execute_script... [17: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 : (1)918728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2202665", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:05:18]POST & json_proto [17:05:18]process_json_proto [17:05:18]json parsed OK: [17:05:18]protocol is kg_v1.0 [17:05:18]action value=close_receipt [17:05:18]process_action close_receipt [17:05:18]cmd_close_receipt [17:05:18]MH_GetDate [17:05:18]Write to MH i2c: F0 00 00 BF 02 B0 [17:05:18]Write i2c OK [17:05:18]MH_I2C_Read... [17:05:18]Read from MH i2c: F0 [17:05:18]MH_I2C_Read... [17:05:18]Read from MH i2c: F0 09 00 [17:05:18]MH_I2C_Read... [17:05:18]Read from MH i2c: F0 09 00 BF 02 00 CE 43 11 67 F1 C7 6B 64 C9 [17:05:18]GetLastDocTimeStamp 1729184662 [17:05:18]current date 1729184718 [17:05:18]FM_GetShiftState [17:05:18]SAM_PROTO_GetShiftState [17:05:18]wFMCommunicate request_size=4 [17:05:18]MH_SAM_APDU [17:05:18]CAPDU: 80 13 01 00 [17:05:18]Write to MH i2c: E2 08 00 C0 02 80 13 01 00 00 00 00 00 3F [17:05:18]Write i2c OK [17:05:18]MH_I2C_Read... [17:05:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:18]Read from MH i2c: E2 [17:05:18]MH_I2C_Read... [17:05:18]Read from MH i2c: E2 0E 00 [17:05:18]MH_I2C_Read... [17:05:18]Read from MH i2c: E2 0E 00 C0 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 47 [17:05:18]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [17:05:18]wFMCommunicate OK [17:05:18]SAM_PROTO_GetShiftState done [17:05:18]FM_GetShiftState done [17:05:18]opened in 1729125927 [17:05:18]opened+sec_in_day 1729212327 [17:05:18]quantity*price = 0 [17:05:18]sum+1 = 1 [17:05:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 150 17.10.2024 17:05 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 2202665 ФМ: 0000000000871843 ФД: 82224 ФПД: 126047132231567 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T170518&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82224&fm=126047132231567&tin=02508201610067®Number=0000000000091680&sum=0 [17:05:19]StoreToDocumentArchive [17:05:19]shift 525 fd 82224 [17:05:19]save to /storage/0525/doc_00082224 [17:05:19]save last doc name /storage/0525/doc_00082224 to /storage/kkm_last_doc_name [17:05:19]save OK [17:05:19]Clear old archive folders... [17:05:19]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:05:19]tlvbuf is 01164560 [17:05:19]SAM_PROTO_ClearQueue [17:05:19]wFMCommunicate request_size=4 [17:05:19]MH_SAM_APDU [17:05:19]CAPDU: 80 09 00 00 [17:05:19]Write to MH i2c: E2 08 00 CD 02 80 09 00 00 00 00 00 00 41 [17:05:19]Write i2c OK [17:05:19]MH_I2C_Read... [17:05:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:05:19]Read from MH i2c: E2 [17:05:19]MH_I2C_Read... [17:05:19]Read from MH i2c: E2 03 00 [17:05:19]MH_I2C_Read... [17:05:19]Read from MH i2c: E2 03 00 CD 02 00 90 00 43 [17:05:19]RAPDU: 90 00 [17:05:19]wFMCommunicate OK [17:05:19]SAM_PROTO_ClearQueue done [17:05:19]KKMCreateOFDPacket [17:05:19]OFDProtocolAddRootSTLVToBuf [17:05:19]FM_MakeSignedData [17:05:19]FM_MakeSignedData [17:05:19]SAM_PROTO_SignData [17:05:19]wFMCommunicate request_size=4 [17:05:19]MH_SAM_APDU [17:05:19]CAPDU: 80 0D 01 02 [17:05:19]Write to MH i2c: E2 08 00 CE 02 80 0D 01 02 00 00 00 00 49 [17:05:19]Write i2c OK [17:05:19]MH_I2C_Read... [17:05:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:05:19]Read from MH i2c: E2 [17:05:19]MH_I2C_Read... [17:05:19]Read from MH i2c: E2 03 00 [17:05:19]MH_I2C_Read... [17:05:19]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [17:05:19]RAPDU: 90 00 [17:05:19]wFMCommunicate OK [17:05:19]wFMCommunicate request_size=255 [17:05:19]MH_SAM_APDU [17:05:19]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 CE 43 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 30 41 01 [17:05:19]Write to MH i2c: E2 02 01 CF 02 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 CE 43 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 30 41 01 00 00 55 [17:05:19]Write i2c OK [17:05:19]MH_I2C_Read... [17:05:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:19]Read from MH i2c: E2 [17:05:19]MH_I2C_Read... [17:05:19]Read from MH i2c: E2 03 00 [17:05:19]MH_I2C_Read... [17:05:19]Read from MH i2c: E2 03 00 CF 02 00 90 00 45 [17:05:19]RAPDU: 90 00 [17:05:19]wFMCommunicate OK [17:05:19]wFMCommunicate request_size=16 [17:05:19]MH_SAM_APDU [17:05:19]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 72 A3 A2 8A A7 8F [17:05:19]Write to MH i2c: E2 13 00 D0 02 80 0D 02 02 0B 00 00 35 04 06 00 72 A3 A2 8A A7 8F 00 00 18 [17:05:19]Write i2c OK [17:05:19]MH_I2C_Read... [17:05:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:20]Read from MH i2c: E2 [17:05:20]MH_I2C_Read... [17:05:20]Read from MH i2c: E2 03 00 [17:05:20]MH_I2C_Read... [17:05:20]Read from MH i2c: E2 03 00 D0 02 00 90 00 46 [17:05:20]RAPDU: 90 00 [17:05:20]wFMCommunicate OK [17:05:20]wFMCommunicate request_size=4 [17:05:20]MH_SAM_APDU [17:05:20]CAPDU: 80 0D 03 02 [17:05:20]Write to MH i2c: E2 08 00 D1 02 80 0D 03 02 00 00 00 00 4E [17:05:20]Write i2c OK [17:05:20]MH_I2C_Read... [17:05:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:05:20]Read from MH i2c: E2 [17:05:20]MH_I2C_Read... [17:05:20]Read from MH i2c: E2 0B 00 [17:05:20]MH_I2C_Read... [17:05:20]Read from MH i2c: E2 0B 00 D1 02 00 57 4F B3 0E 57 AA 65 79 90 00 95 [17:05:20]RAPDU: 57 4F B3 0E 57 AA 65 79 90 00 [17:05:20]wFMCommunicate OK [17:05:20]SAM_PROTO_SignData done [17:05:20]FM_MakeSignedData done [17:05:20]CreateOFDProtocolMessage [17:05:20]wFMCommunicate request_size=4 [17:05:20]MH_SAM_APDU [17:05:20]CAPDU: 80 11 00 00 [17:05:20]Write to MH i2c: E2 08 00 D2 02 80 11 00 00 00 00 00 00 4E [17:05:20]Write i2c OK [17:05:20]MH_I2C_Read... [17:05:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:20]Read from MH i2c: E2 [17:05:20]MH_I2C_Read... [17:05:20]Read from MH i2c: E2 17 00 [17:05:20]MH_I2C_Read... [17:05:20]Read from MH i2c: E2 17 00 D2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 A0 [17:05:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:05:20]wFMCommunicate OK [17:05:20]CreateOFDProtocolMessage done [17:05:20]OFDSenderStorePacket 82224 [17:05:20]StoreOFDPacket docnum=82224 [17:05:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 4E 47 0D 01 A8 CF 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 CE 43 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 30 41 01 00 35 04 06 00 72 A3 A2 8A A7 8F 57 4F B3 0E 57 AA 65 79 [17:05:20]CheckFolder [17:05:20]dirname=/storage/ofd_packets [17:05:20]CheckFolder done [17:05:20]ProducePacketName [17:05:20]name=ofd_packets/00082224 [17:05:20]NVStorageSaveData ofd_packets/00082224 [17:05:20]File name is /storage/ofd_packets/00082224 [17:05:20]Write 307 bytes [17:05:20]NVStorageSaveData done [17:05:20]OFDSenderStorePacket done [17:05:20]KKMCreateOFDPacket done [17:05:20]NVStorageSaveData kkm_last_timestamp [17:05:20]File name is /storage/kkm_last_timestamp [17:05:20]Write 4 bytes [17:05:20]NVStorageSaveData done [17:05:20]ExternCall_PrintAddStr [17:05:20]wPrintStart [17:05:20]Write to MH i2c: 01 00 00 D3 02 D5 [17:05:20]Write i2c OK [17:05:20]MH_I2C_Read... [17:05:20]Read from MH i2c: 01 [17:05:20]MH_I2C_Read... [17:05:20]Read from MH i2c: 01 07 00 [17:05:20]MH_I2C_Read... [17:05:20]Read from MH i2c: 01 07 00 D3 02 00 00 00 00 00 FF 0F EA [17:05:20]RasterBufferAndPrint [17:05:20]line Счет N : (1)918728 [17:05:20]line ИНН: 02508201610067 [17:05:20]line Контрольно-Кассовый Чек [17:05:20]line ПРОДАЖА [17:05:20]line ТРК (МРК, ГНК) : 21 [17:05:20]line Товар: 2710194800 [17:05:20]line D-Energy ДТ-К-2 [17:05:20]line 10.000 * 0.00 [17:05:20]line = 0.00 [17:05:20]line НДС 12% НСП 1% [17:05:20]line > о реализуемом товаре [17:05:20]line ИТОГО: 0.00 [17:05:20]line НСП 1% : 0.00 [17:05:20]line НДС 12% : 0.00 [17:05:20]line Наличными: 0.00 [17:05:20]line Безнал.: 0.00 [17:05:20]line Место: АЗС № 114 "Партнер Нефть" [17:05:20]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [17:05:20]line СНО: Общий режим [17:05:20]line Чек 150 17.10.2024 17:05 [17:05:20]line Смена: 525 ФФД: 1.0 [17:05:20]line ЗНМ: 0300000086 [17:05:20]line РНМ: 0000000000091680 [17:05:20]line Версия ККМ: 001 [17:05:20]line Талоны: Топливные Талоны [17:05:20]line 2202665 [17:05:20]line ФМ: 0000000000871843 [17:05:20]line ФД: 82224 [17:05:20]line ФПД: 126047132231567 [17:05:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T170518&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82224&fm=126047132231567&tin=02508201610067®Number=0000000000091680&sum=0 [17:05:20]OFD Sender: Processing packet 82224 [packets to send 254, broken 253] [17:05:20]ProducePacketName [17:05:20]name=ofd_packets/00082224 [17:05:20]OFD Sender: To server: pG, [17:05:20]CommunicateWithHost lk.salyk.kg:30040 [17:05:20]ConnectInit lk.salyk.kg [17:05:20]written 0, free lines is 4095 [17:05:20]Write to MH i2c: 01 00 00 FD 02 FF [17:05:20]Write i2c OK [17:05:20]MH_I2C_Read... [17:05:20]Read from MH i2c: 01 [17:05:20]MH_I2C_Read... [17:05:20]Read from MH i2c: 01 07 00 [17:05:20]MH_I2C_Read... [17:05:20]Read from MH i2c: 01 07 00 FD 02 00 00 00 00 00 EF 0C 01 [17:05:20]RasterBufferAndPrint [17:05:20]line [17:05:20]line [17:05:20]line [17:05:20]line [17:05:20]line [17:05:20]written 0, free lines is 3317 [17:05:20]MH_Cut [17:05:20]Write to MH i2c: D1 01 00 04 03 01 D9 [17:05:20]Write i2c OK [17:05:20]MH_I2C_Read... [17:05:20]Read from MH i2c: D1 [17:05:20]MH_I2C_Read... [17:05:20]Read from MH i2c: D1 01 00 [17:05:20]MH_I2C_Read... [17:05:20]Read from MH i2c: D1 01 00 04 03 00 D8 [17:05:20]Write to MH i2c: 01 00 00 05 03 08 [17:05:20]Write i2c OK [17:05:20]MH_I2C_Read... [17:05:20]Connected sock=9 [17:05:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 4E 47 0D 01 A8 CF 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 CE 43 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 30 41 01 00 35 04 06 00 72 A3 A2 8A A7 8F 57 4F B3 0E 57 AA 65 79 [17:05:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 C7 77 47 00 C0 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 30 41 01 00 F4 03 04 00 0C E9 10 67 B6 04 01 00 00 8E 59 D0 E9 9A CF 54 2D [17:05:21]CommunicateWithHost err = 0 [17:05:21]CheckOFDResponse [17:05:21]1017 (14) - 77093643461234 [17:05:21]1041 (16) - 0000000000871843 [17:05:21]1040 (4) - 82224 [17:05:21]1012 (4) - 17.10.2024 10:38 [17:05:21]1206 (1) - 0 [17:05:21]OFD Sender: Remove packet 82224 [17:05:21]ProducePacketName [17:05:21]name=ofd_packets/00082224 [17:05:21]NVStorageDeleteData [17:05:21]*** Cut start [17:05:21]*** Partial cut [17:05:21]*** CUTSNS_PIN = 1 [17:05:21]*** CUTSNS_PIN = 0 [17:05:21]OFD Sender: No OFD packet to send [17:05:21]*** Brake cut motor [17:05:22]Read from MH i2c: 01 [17:05:22]MH_I2C_Read... [17:05:22]*** Stop cut motor [17:05:22]*** Cut end [17:05:22]Read from MH i2c: 01 07 00 [17:05:22]MH_I2C_Read... [17:05:22]Read from MH i2c: 01 07 00 05 03 00 00 00 00 00 FF 0F 1D [17:05:22]process_action close_receipt done [17:05:22]requested_data is exist [17:05:22]produce_requested_data [17:05:22]requested_item fm.sn is exist - process it [17:05:22]wFMCommunicate request_size=4 [17:05:22]MH_SAM_APDU [17:05:22]CAPDU: 80 11 00 00 [17:05:22]Write to MH i2c: E2 08 00 06 03 80 11 00 00 00 00 00 00 83 [17:05:22]Write i2c OK [17:05:22]MH_I2C_Read... [17:05:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:22]Read from MH i2c: E2 [17:05:22]MH_I2C_Read... [17:05:22]Read from MH i2c: E2 17 00 [17:05:22]MH_I2C_Read... [17:05:22]Read from MH i2c: E2 17 00 06 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D5 [17:05:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:05:22]wFMCommunicate OK [17:05:22]requested_item fd.num is exist - process it [17:05:22]SAM_PROTO_GetFieldsCounters [17:05:22]wFMCommunicate request_size=4 [17:05:22]MH_SAM_APDU [17:05:22]CAPDU: 80 13 00 00 [17:05:22]Write to MH i2c: E2 08 00 07 03 80 13 00 00 00 00 00 00 86 [17:05:22]Write i2c OK [17:05:22]MH_I2C_Read... [17:05:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:05:22]Read from MH i2c: E2 [17:05:22]MH_I2C_Read... [17:05:22]Read from MH i2c: E2 62 00 [17:05:22]MH_I2C_Read... [17:05:22]Read from MH i2c: E2 62 00 07 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 30 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [17:05:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 30 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:05:22]wFMCommunicate OK [17:05:22]SAM_PROTO_GetFieldsCounters done [17:05:22]requested_item shift.num is exist - process it [17:05:22]requested_item shift.opened is exist - process it [17:05:22]req_shift_opened [17:05:22]FM_GetShiftState [17:05:22]SAM_PROTO_GetShiftState [17:05:22]wFMCommunicate request_size=4 [17:05:22]MH_SAM_APDU [17:05:22]CAPDU: 80 13 01 00 [17:05:22]Write to MH i2c: E2 08 00 08 03 80 13 01 00 00 00 00 00 88 [17:05:22]Write i2c OK [17:05:22]MH_I2C_Read... [17:05:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:22]Read from MH i2c: E2 [17:05:22]MH_I2C_Read... [17:05:22]Read from MH i2c: E2 0E 00 [17:05:22]MH_I2C_Read... [17:05:22]Read from MH i2c: E2 0E 00 08 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 90 [17:05:22]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [17:05:22]wFMCommunicate OK [17:05:22]SAM_PROTO_GetShiftState done [17:05:22]FM_GetShiftState done [17:05:22]req_shift_opened done [17:05:22]requested_item shift.open_date is exist - process it [17:05:22]req_shift_open_date [17:05:22]req_shift_open_date done [17:05:22]produce_requested_data done [17:05:22]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82224,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [17:05:22]process_action_free close_receipt [17:05:22]json_value_free [17:05:22]json_value_free done [17:05:22]process_json_proto returns [17:05:22]Send response to host [17:05:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82224,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [17:05:22]free response buf [17:05:22]execute_script done [17:05:22]execute_script returns [17:05:22]free content buf [17:05:22]Sock 8.Close socket [17:05:22]Sock 8.Thread stoped [17:05:26]OFD Sender: No OFD packet to send [17:05:31]OFD Sender: No OFD packet to send [17:05:36]OFD Sender: No OFD packet to send [17:05:41]OFD Sender: No OFD packet to send [17:05:46]OFD Sender: No OFD packet to send [17:05:51]OFD Sender: No OFD packet to send [17:05:56]OFD Sender: No OFD packet to send [17:06:01]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 53 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725AE (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 44399664+1684785137=1729184801 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 54 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 22 44 11 67 F1 C7 6B 64 64 [17:06:42]Current date/time: 17.10.2024 17:06 [17:06:42]FM_Init [17:06:42]wFMConnect [17:06:42]MH_SAM_On [17:06:42]Write to MH i2c: E0 00 00 08 00 E7 [17:06:42]Write i2c OK [17:06:42]MH_I2C_Read... [17:06:42]*** iso7816_init finished! [17:06:42]*** atr: [17:06:42]*** 0F 3B D5 18 FF 81 91 FE [17:06:42]*** 1F C3 80 73 C8 21 10 0A [17:06:42]*** 00 00 00 00 00 00 00 00 [17:06:42]*** 00 00 00 00 00 00 00 00 [17:06:42]*** 00 00 00 00 00 00 00 00 [17:06:42]*** 00 00 00 00 00 00 00 00 [17:06:42]*** 00 00 00 00 00 00 00 00 [17:06:42]*** 00 00 00 00 00 00 00 00 [17:06:42]Read from MH i2c: E0 [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: E0 10 00 [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [17:06:42]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [17:06:42]wFMCommunicate request_size=10 [17:06:42]MH_SAM_APDU [17:06:42]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [17:06:42]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [17:06:42]Write i2c OK [17:06:42]MH_I2C_Read... [17:06:42]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [17:06:42]Read from MH i2c: E2 [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: E2 03 00 [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [17:06:42]RAPDU: 90 00 [17:06:42]wFMCommunicate OK [17:06:42]wFMCommunicate request_size=4 [17:06:42]MH_SAM_APDU [17:06:42]CAPDU: 80 11 00 00 [17:06:42]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [17:06:42]Write i2c OK [17:06:42]MH_I2C_Read... [17:06:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:42]Read from MH i2c: E2 [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: E2 17 00 [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D6 [17:06:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:06:42]wFMCommunicate OK [17:06:42]Detected FM SN is 0000000000871843 [17:06:42]Stored FM SN is 0000000000871843 [17:06:42]wFMCommunicate request_size=9 [17:06:42]MH_SAM_APDU [17:06:42]CAPDU: 80 16 00 00 04 C3 A3 00 00 [17:06:42]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 C3 A3 00 00 00 00 F8 [17:06:42]Write i2c OK [17:06:42]MH_I2C_Read... [17:06:42]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [17:06:42]Read from MH i2c: E2 [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: E2 03 00 [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [17:06:42]RAPDU: 90 00 [17:06:42]wFMCommunicate OK [17:06:42]FM PIN OK [17:06:42]wFMCommunicate request_size=8 [17:06:42]MH_SAM_APDU [17:06:42]CAPDU: 80 14 04 00 03 02 00 01 [17:06:42]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [17:06:42]Write i2c OK [17:06:42]MH_I2C_Read... [17:06:42]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [17:06:42]Read from MH i2c: E2 [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: E2 03 00 [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [17:06:42]RAPDU: 90 00 [17:06:42]wFMCommunicate OK [17:06:42]wFMCommunicate request_size=13 [17:06:42]MH_SAM_APDU [17:06:42]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [17:06:42]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [17:06:42]Write i2c OK [17:06:42]MH_I2C_Read... [17:06:42]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [17:06:42]Read from MH i2c: E2 [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: E2 03 00 [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [17:06:42]RAPDU: 90 00 [17:06:42]wFMCommunicate OK [17:06:42]wFMCommunicate request_size=4 [17:06:42]MH_SAM_APDU [17:06:42]CAPDU: 80 11 00 00 [17:06:42]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [17:06:42]Write i2c OK [17:06:42]MH_I2C_Read... [17:06:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:42]Read from MH i2c: E2 [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: E2 17 00 [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DA [17:06:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:06:42]wFMCommunicate OK [17:06:42]DocumentArchiveInit [17:06:42]Start Httpd... [17:06:42]Httpd thread 3067743588 created [17:06:42]Write to MH i2c: 01 00 00 0F 00 0F [17:06:42]Write i2c OK [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: 01 [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: 01 07 00 [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [17:06:42]MH Int Process started [17:06:42]Allocated Socket 6 [17:06:42]Bind OK [17:06:42]Listen OK [17:06:42]httpd running on port 8080 [17:06:42]Waiting for new connection... [17:06:42]OFD Sender: No OFD packet to send [17:06:47]OFD Sender: No OFD packet to send [17:06:51]int [17:06:51]Write to MH i2c: 01 00 00 10 00 10 [17:06:51]*** FLAG_PRN_KEY set [17:06:51]Write i2c OK [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: 01 [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: 01 07 00 [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: 01 07 00 10 00 00 08 00 00 00 FF 0F 2D [17:06:51]state=0 [17:06:51]Key pressed [17:06:51]Feed [17:06:51]Write to MH i2c: D8 00 00 11 00 E8 [17:06:51]Write i2c OK [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: D8 [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: D8 01 00 [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: D8 01 00 11 00 00 E9 [17:06:51]int [17:06:51]Write to MH i2c: 01 00 00 12 00 12 [17:06:51]Write i2c OK [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: 01 [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: 01 07 00 [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: 01 07 00 12 00 00 48 00 00 00 3D 00 9E [17:06:51]state=2 [17:06:51]Key pressed [17:06:51]recv_with_timeout no data received [17:06:52]int [17:06:52]Write to MH i2c: 01 00 00 13 00 13 [17:06:52]*** FLAG_PRN_KEY reset [17:06:52]Write i2c OK [17:06:52]MH_I2C_Read... [17:06:52]Read from MH i2c: 01 [17:06:52]MH_I2C_Read... [17:06:52]Read from MH i2c: 01 07 00 [17:06:52]MH_I2C_Read... [17:06:52]Read from MH i2c: 01 07 00 13 00 00 00 00 00 00 F6 0F 1F [17:06:52]state=2 [17:06:52]Stop feed [17:06:52]OFD Sender: No OFD packet to send [17:06:55]accept exits with 8 [17:06:55]New connection [17:06:55]New thread 3067456868 created [17:06:55]Waiting for new connection... [17:06:55] Sock 8.Parse request [17:06:55]Sock 8.Check first char [17:06:55]Sock 8.First char is OK [17:06:55]request: POST /json_proto HTTP/1.0 [17:06:55]Method: POST [17:06:55]URL: /json_proto [17:06:55]Method is POST - this is cgi request [17:06:55]url: /json_proto [17:06:55]query_string will be loaded in cgi processing [17:06:55]execute_cgi json_proto POST (null) [17:06:55]execute_cgi path=json_proto method=POST [17:06:55]POST find Content-Length [17:06:55]Host: 172.17.44.67:8080 [17:06:55]Content-Length: 215 [17:06:55]Content-Type: application/json [17:06:55] [17:06:55]POST finish read [17:06:55]Found Content-Length = 215 [17:06:55]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:06:55]execute_script... [17:06:55]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:06:55]POST & json_proto [17:06:55]process_json_proto [17:06:55]json parsed OK: [17:06:55]protocol is kg_v1.0 [17:06:55]action value=get_value [17:06:55]process_action get_value [17:06:55]cmd_get_value [17:06:55]process_action get_value done [17:06:55]requested_data is exist [17:06:55]produce_requested_data [17:06:55]requested_item kkm.sn is exist - process it [17:06:55]requested_item kkm.ver is exist - process it [17:06:55]requested_item fm.sn is exist - process it [17:06:55]wFMCommunicate request_size=4 [17:06:55]MH_SAM_APDU [17:06:55]CAPDU: 80 11 00 00 [17:06:55]Write to MH i2c: E2 08 00 14 00 80 11 00 00 00 00 00 00 8E [17:06:55]Write i2c OK [17:06:55]MH_I2C_Read... [17:06:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:55]Read from MH i2c: E2 [17:06:55]MH_I2C_Read... [17:06:55]Read from MH i2c: E2 17 00 [17:06:55]MH_I2C_Read... [17:06:55]Read from MH i2c: E2 17 00 14 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 E0 [17:06:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:06:55]wFMCommunicate OK [17:06:55]requested_item fd.num is exist - process it [17:06:55]SAM_PROTO_GetFieldsCounters [17:06:55]wFMCommunicate request_size=4 [17:06:55]MH_SAM_APDU [17:06:55]CAPDU: 80 13 00 00 [17:06:55]Write to MH i2c: E2 08 00 15 00 80 13 00 00 00 00 00 00 91 [17:06:55]Write i2c OK [17:06:55]MH_I2C_Read... [17:06:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:56]Read from MH i2c: E2 [17:06:56]MH_I2C_Read... [17:06:56]Read from MH i2c: E2 62 00 [17:06:56]MH_I2C_Read... [17:06:56]Read from MH i2c: E2 62 00 15 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 30 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [17:06:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 30 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:06:56]wFMCommunicate OK [17:06:56]SAM_PROTO_GetFieldsCounters done [17:06:56]requested_item shift.num is exist - process it [17:06:56]requested_item shift.opened is exist - process it [17:06:56]req_shift_opened [17:06:56]FM_GetShiftState [17:06:56]SAM_PROTO_GetShiftState [17:06:56]wFMCommunicate request_size=4 [17:06:56]MH_SAM_APDU [17:06:56]CAPDU: 80 13 01 00 [17:06:56]Write to MH i2c: E2 08 00 16 00 80 13 01 00 00 00 00 00 93 [17:06:56]Write i2c OK [17:06:56]MH_I2C_Read... [17:06:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:56]Read from MH i2c: E2 [17:06:56]MH_I2C_Read... [17:06:56]Read from MH i2c: E2 0E 00 [17:06:56]MH_I2C_Read... [17:06:56]Read from MH i2c: E2 0E 00 16 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 9B [17:06:56]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [17:06:56]wFMCommunicate OK [17:06:56]SAM_PROTO_GetShiftState done [17:06:56]FM_GetShiftState done [17:06:56]req_shift_opened done [17:06:56]requested_item shift.open_date is exist - process it [17:06:56]req_shift_open_date [17:06:56]req_shift_open_date done [17:06:56]produce_requested_data done [17:06:56]produce_requested_data return {"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82224,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [17:06:56]process_action_free get_value [17:06:56]json_value_free [17:06:56]json_value_free done [17:06:56]process_json_proto returns [17:06:56]Send response to host [17:06:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82224,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [17:06:56]free response buf [17:06:56]execute_script done [17:06:56]execute_script returns [17:06:56]free content buf [17:06:56]Sock 8.Close socket [17:06:56]Sock 8.Thread stoped [17:06:56]accept exits with 9 [17:06:56]New connection [17:06:56]New thread 3067313508 created [17:06:56]Thread 3067456868 joined [17:06:56]Waiting for new connection... [17:06:56] Sock 9.Parse request [17:06:56]Sock 9.Check first char [17:06:56]Sock 9.First char is OK [17:06:56]request: POST /json_proto HTTP/1.0 [17:06:56]Method: POST [17:06:56]URL: /json_proto [17:06:56]Method is POST - this is cgi request [17:06:56]url: /json_proto [17:06:56]query_string will be loaded in cgi processing [17:06:56]execute_cgi json_proto POST (null) [17:06:56]execute_cgi path=json_proto method=POST [17:06:56]POST find Content-Length [17:06:56]Host: 172.17.44.67:8080 [17:06:56]Content-Length: 331 [17:06:56]Content-Type: application/json [17:06:56] [17:06:56]POST finish read [17:06:56]Found Content-Length = 331 [17:06: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" ] } } [17:06:56]execute_script... [17:06: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" ] } } [17:06:56]POST & json_proto [17:06:56]process_json_proto [17:06:56]json parsed OK: [17:06:56]protocol is kg_v1.0 [17:06:56]action value=get_value [17:06:56]process_action get_value [17:06:56]cmd_get_value [17:06:56]process_action get_value done [17:06:56]requested_data is exist [17:06:56]produce_requested_data [17:06:56]requested_item fm.sale.total is exist - process it [17:06:56]SAM_PROTO_GetFMData [17:06:56]wFMCommunicate request_size=4 [17:06:56]MH_SAM_APDU [17:06:56]CAPDU: 80 13 03 00 [17:06:56]Write to MH i2c: E2 08 00 17 00 80 13 03 00 00 00 00 00 96 [17:06:56]Write i2c OK [17:06:56]MH_I2C_Read... [17:06:56]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:06:56]Read from MH i2c: E2 [17:06:56]MH_I2C_Read... [17:06:56]Read from MH i2c: E2 FD 00 [17:06:56]MH_I2C_Read... [17:06:56]Read from MH i2c: E2 FD 00 17 00 00 C7 04 85 04 C3 04 6E 04 04 00 16 3D 01 00 69 04 A3 00 6F 04 04 00 7E 3A 01 00 B1 04 05 00 A2 0A FD 7A 01 70 04 05 00 7C 8E EF 40 01 72 04 04 00 26 7C 0D 3A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DA 9D 42 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 31 CF 5A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 98 02 00 00 B1 04 04 00 70 95 0F 13 70 04 04 00 08 53 0F 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AD 37 06 02 EF 90 00 1C [17:06:56]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 16 3D 01 00 69 04 A3 00 6F 04 04 00 7E 3A 01 00 B1 04 05 00 A2 0A FD 7A 01 70 04 05 00 7C 8E EF 40 01 72 04 04 00 26 7C 0D 3A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DA 9D 42 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 31 CF 5A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 98 02 00 00 B1 04 04 00 70 95 0F 13 70 04 04 00 08 53 0F 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AD 37 06 02 EF 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 17 00 00 [17:06:56]Write to MH i2c: E2 08 00 18 00 80 17 00 00 00 00 00 00 98 [17:06:56]Write i2c OK [17:06:56]MH_I2C_Read... [17:06:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:06:57]Read from MH i2c: E2 [17:06:57]MH_I2C_Read... [17:06:57]Read from MH i2c: E2 FD 00 [17:06:57]MH_I2C_Read... [17:06:57]Read from MH i2c: E2 FD 00 18 00 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0A 2F 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 90 00 09 [17:06:57]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0A 2F 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 90 00 [17:06:57]wFMCommunicate OK [17:06:57]wFMCommunicate request_size=4 [17:06:57]MH_SAM_APDU [17:06:57]CAPDU: 80 17 00 00 [17:06:57]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [17:06:57]Write i2c OK [17:06:57]MH_I2C_Read... [17:06:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:06:57]Read from MH i2c: E2 [17:06:57]MH_I2C_Read... [17:06:57]Read from MH i2c: E2 FD 00 [17:06:57]MH_I2C_Read... [17:06:57]Read from MH i2c: E2 FD 00 19 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 71 [17:06:57]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [17:06:57]wFMCommunicate OK [17:06:57]wFMCommunicate request_size=4 [17:06:57]MH_SAM_APDU [17:06:57]CAPDU: 80 17 00 00 [17:06:57]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [17:06:57]Write i2c OK [17:06:57]MH_I2C_Read... [17:06:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:06:57]Read from MH i2c: E2 [17:06:57]MH_I2C_Read... [17:06:57]Read from MH i2c: E2 FD 00 [17:06:57]MH_I2C_Read... [17:06:57]Read from MH i2c: E2 FD 00 1A 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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 15 [17:06:57]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [17:06:57]wFMCommunicate OK [17:06:57]wFMCommunicate request_size=4 [17:06:57]MH_SAM_APDU [17:06:57]CAPDU: 80 17 00 00 [17:06:57]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [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]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [17:06:57]Read from MH i2c: E2 [17:06:57]MH_I2C_Read... [17:06:57]Read from MH i2c: E2 E4 00 [17:06:57]MH_I2C_Read... [17:06:57]Read from MH i2c: E2 E4 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7B [17:06:57]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:06:57]wFMCommunicate OK [17:06:57]SAM_PROTO_GetFMData done [17:06:57]requested_item fm.sale_refund.total is exist - process it [17:06:57]requested_item fm.buy.total is exist - process it [17:06:57]requested_item shift.sale.total is exist - process it [17:06:57]SAM_PROTO_GetShiftData [17:06:57]wFMCommunicate request_size=4 [17:06:57]MH_SAM_APDU [17:06:57]CAPDU: 80 13 02 00 [17:06:57]Write to MH i2c: E2 08 00 1C 00 80 13 02 00 00 00 00 00 9A [17:06:57]Write i2c OK [17:06:57]MH_I2C_Read... [17:06:58]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:06:58]Read from MH i2c: E2 [17:06:58]MH_I2C_Read... [17:06:58]Read from MH i2c: E2 FD 00 [17:06:58]MH_I2C_Read... [17:06:58]Read from MH i2c: E2 FD 00 1C 00 00 BA 04 AA 04 B6 04 6E 04 04 00 96 00 00 00 69 04 9C 00 6F 04 04 00 93 00 00 00 B1 04 03 00 89 71 72 70 04 03 00 40 BF 5A 72 04 03 00 49 B2 17 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 32 28 0C 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 57 03 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 FC 0A 70 04 03 00 80 FC 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BD 2A 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 5E [17:06:58]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 96 00 00 00 69 04 9C 00 6F 04 04 00 93 00 00 00 B1 04 03 00 89 71 72 70 04 03 00 40 BF 5A 72 04 03 00 49 B2 17 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 32 28 0C 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 57 03 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 FC 0A 70 04 03 00 80 FC 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BD 2A 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [17:06:58]wFMCommunicate OK [17:06:58]wFMCommunicate request_size=4 [17:06:58]MH_SAM_APDU [17:06:58]CAPDU: 80 17 00 00 [17:06:58]Write to MH i2c: E2 08 00 1D 00 80 17 00 00 00 00 00 00 9D [17:06:58]Write i2c OK [17:06:58]MH_I2C_Read... [17:06:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:06:58]Read from MH i2c: E2 [17:06:58]MH_I2C_Read... [17:06:58]Read from MH i2c: E2 FD 00 [17:06:58]MH_I2C_Read... [17:06:58]Read from MH i2c: E2 FD 00 1D 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 43 [17:06:58]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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:06:58]wFMCommunicate OK [17:06:58]wFMCommunicate request_size=4 [17:06:58]MH_SAM_APDU [17:06:58]CAPDU: 80 17 00 00 [17:06:58]Write to MH i2c: E2 08 00 1E 00 80 17 00 00 00 00 00 00 9E [17:06:58]Write i2c OK [17:06:58]MH_I2C_Read... [17:06:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:06:58]Read from MH i2c: E2 [17:06:58]MH_I2C_Read... [17:06:58]Read from MH i2c: E2 FD 00 [17:06:58]MH_I2C_Read... [17:06:58]Read from MH i2c: E2 FD 00 1E 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 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 CA [17:06:58]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:06:58]wFMCommunicate OK [17:06:58]wFMCommunicate request_size=4 [17:06:58]MH_SAM_APDU [17:06:58]CAPDU: 80 17 00 00 [17:06:58]Write to MH i2c: E2 08 00 1F 00 80 17 00 00 00 00 00 00 9F [17:06:58]Write i2c OK [17:06:58]MH_I2C_Read... [17:06:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:06:59]Read from MH i2c: E2 [17:06:59]MH_I2C_Read... [17:06:59]Read from MH i2c: E2 FD 00 [17:06:59]MH_I2C_Read... [17:06:59]Read from MH i2c: E2 FD 00 1F 00 00 00 EF 03 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 [17:06:59]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:06:59]wFMCommunicate OK [17:06:59]wFMCommunicate request_size=4 [17:06:59]MH_SAM_APDU [17:06:59]CAPDU: 80 17 00 00 [17:06:59]Write to MH i2c: E2 08 00 20 00 80 17 00 00 00 00 00 00 A0 [17:06:59]Write i2c OK [17:06:59]MH_I2C_Read... [17:06:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [17:06:59]Read from MH i2c: E2 [17:06:59]MH_I2C_Read... [17:06:59]Read from MH i2c: E2 D7 00 [17:06:59]MH_I2C_Read... [17:06:59]Read from MH i2c: E2 D7 00 20 00 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 83 [17:06:59]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:06:59]wFMCommunicate OK [17:06:59]SAM_PROTO_GetShiftData done [17:06:59]requested_item shift.sale.total_cash is exist - process it [17:06:59]requested_item shift.sale_refund.total is exist - process it [17:06:59]requested_item shift.sale_refund.total_cash is exist - process it [17:06:59]requested_item shift.buy.total is exist - process it [17:06:59]requested_item shift.buy.total_cash is exist - process it [17:06:59]produce_requested_data done [17:06:59]produce_requested_data return {"fm.sale.total":63583709.78,"fm.sale_refund.total":3197884.00,"fm.buy.total":0.00,"shift.sale.total":75001.69,"shift.sale.total_cash":59472.00,"shift.sale_refund.total":7200.00,"shift.sale_refund.total_cash":7200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [17:06:59]process_action_free get_value [17:06:59]json_value_free [17:06:59]json_value_free done [17:06:59]process_json_proto returns [17:06:59]Send response to host [17:06:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":63583709.78,"fm.sale_refund.total":3197884.00,"fm.buy.total":0.00,"shift.sale.total":75001.69,"shift.sale.total_cash":59472.00,"shift.sale_refund.total":7200.00,"shift.sale_refund.total_cash":7200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [17:06:59]free response buf [17:06:59]execute_script done [17:06:59]execute_script returns [17:06:59]free content buf [17:06:59]Sock 9.Close socket [17:06:59]Sock 9.Thread stoped [17:07:02]OFD Sender: No OFD packet to send [17:07:02]recv_with_timeout no data received [17:07:07]OFD Sender: No OFD packet to send [17:07:12]OFD Sender: No OFD packet to send [17:07:17]OFD Sender: No OFD packet to send [17:07:22]OFD Sender: No OFD packet to send [17:07:27]OFD Sender: No OFD packet to send [17:07:32]OFD Sender: No OFD packet to send [17:07:37]OFD Sender: No OFD packet to send [17:07:42]OFD Sender: No OFD packet to send [17:07:47]OFD Sender: No OFD packet to send [17:07:52]OFD Sender: No OFD packet to send [17:07:57]OFD Sender: No OFD packet to send [17:08:02]OFD Sender: No OFD packet to send [17:08:07]OFD Sender: No OFD packet to send [17:08: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:55]accept exits with 8 [17:08:55]New connection [17:08:55]New thread 3067456868 created [17:08:55]Thread 3067313508 joined [17:08:55]Waiting for new connection... [17:08:55] Sock 8.Parse request [17:08:55]Sock 8.Check first char [17:08:55]Sock 8.First char is OK [17:08:55]request: POST /json_proto HTTP/1.0 [17:08:55]Method: POST [17:08:55]URL: /json_proto [17:08:55]Method is POST - this is cgi request [17:08:55]url: /json_proto [17:08:55]query_string will be loaded in cgi processing [17:08:55]execute_cgi json_proto POST (null) [17:08:55]execute_cgi path=json_proto method=POST [17:08:55]POST find Content-Length [17:08:55]Host: 172.17.44.67:8080 [17:08:55]Content-Length: 215 [17:08:55]Content-Type: application/json [17:08:55] [17:08:55]POST finish read [17:08:55]Found Content-Length = 215 [17:08:55]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:08:55]execute_script... [17:08:55]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:08:55]POST & json_proto [17:08:55]process_json_proto [17:08:55]json parsed OK: [17:08:55]protocol is kg_v1.0 [17:08:55]action value=get_value [17:08:55]process_action get_value [17:08:55]cmd_get_value [17:08:55]process_action get_value done [17:08:55]requested_data is exist [17:08:55]produce_requested_data [17:08:55]requested_item kkm.sn is exist - process it [17:08:55]requested_item kkm.ver is exist - process it [17:08:55]requested_item fm.sn is exist - process it [17:08:55]wFMCommunicate request_size=4 [17:08:55]MH_SAM_APDU [17:08:55]CAPDU: 80 11 00 00 [17:08:55]Write to MH i2c: E2 08 00 21 00 80 11 00 00 00 00 00 00 9B [17:08:55]Write i2c OK [17:08:55]MH_I2C_Read... [17:08:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:55]Read from MH i2c: E2 [17:08:55]MH_I2C_Read... [17:08:55]Read from MH i2c: E2 17 00 [17:08:55]MH_I2C_Read... [17:08:55]Read from MH i2c: E2 17 00 21 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 ED [17:08:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:08:55]wFMCommunicate OK [17:08:55]requested_item fd.num is exist - process it [17:08:55]SAM_PROTO_GetFieldsCounters [17:08:55]wFMCommunicate request_size=4 [17:08:55]MH_SAM_APDU [17:08:55]CAPDU: 80 13 00 00 [17:08:55]Write to MH i2c: E2 08 00 22 00 80 13 00 00 00 00 00 00 9E [17:08:55]Write i2c OK [17:08:55]MH_I2C_Read... [17:08:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:08:55]Read from MH i2c: E2 [17:08:55]MH_I2C_Read... [17:08:55]Read from MH i2c: E2 62 00 [17:08:55]MH_I2C_Read... [17:08:55]Read from MH i2c: E2 62 00 22 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 30 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [17:08:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 30 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:08:55]wFMCommunicate OK [17:08:55]SAM_PROTO_GetFieldsCounters done [17:08:55]requested_item shift.num is exist - process it [17:08:55]requested_item shift.opened is exist - process it [17:08:55]req_shift_opened [17:08:55]FM_GetShiftState [17:08:55]SAM_PROTO_GetShiftState [17:08:55]wFMCommunicate request_size=4 [17:08:55]MH_SAM_APDU [17:08:55]CAPDU: 80 13 01 00 [17:08:55]Write to MH i2c: E2 08 00 23 00 80 13 01 00 00 00 00 00 A0 [17:08:55]Write i2c OK [17:08:55]MH_I2C_Read... [17:08:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:55]Read from MH i2c: E2 [17:08:55]MH_I2C_Read... [17:08:55]Read from MH i2c: E2 0E 00 [17:08:55]MH_I2C_Read... [17:08:55]Read from MH i2c: E2 0E 00 23 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 A8 [17:08:55]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [17:08:55]wFMCommunicate OK [17:08:55]SAM_PROTO_GetShiftState done [17:08:55]FM_GetShiftState done [17:08:55]req_shift_opened done [17:08:55]requested_item shift.open_date is exist - process it [17:08:55]req_shift_open_date [17:08:55]req_shift_open_date done [17:08:55]produce_requested_data done [17:08:55]produce_requested_data return {"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82224,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [17:08:55]process_action_free get_value [17:08:55]json_value_free [17:08:55]json_value_free done [17:08:55]process_json_proto returns [17:08:55]Send response to host [17:08:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82224,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [17:08:55]free response buf [17:08:55]execute_script done [17:08:55]execute_script returns [17:08:55]free content buf [17:08:55]Sock 8.Close socket [17:08:55]Sock 8.Thread stoped [17:08:55]accept exits with 9 [17:08:55]New connection [17:08:55]New thread 3067313508 created [17:08:55]Thread 3067456868 joined [17:08:55]Waiting for new connection... [17:08:55] Sock 9.Parse request [17:08:55]Sock 9.Check first char [17:08:55]Sock 9.First char is OK [17:08:55]request: POST /json_proto HTTP/1.0 [17:08:55]Method: POST [17:08:55]URL: /json_proto [17:08:55]Method is POST - this is cgi request [17:08:55]url: /json_proto [17:08:55]query_string will be loaded in cgi processing [17:08:55]execute_cgi json_proto POST (null) [17:08:55]execute_cgi path=json_proto method=POST [17:08:55]POST find Content-Length [17:08:55]Host: 172.17.44.67:8080 [17:08:55]Content-Length: 331 [17:08:55]Content-Type: application/json [17:08:55] [17:08:55]POST finish read [17:08:55]Found Content-Length = 331 [17:08: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" ] } } [17:08:55]execute_script... [17:08: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" ] } } [17:08:55]POST & json_proto [17:08:55]process_json_proto [17:08:55]json parsed OK: [17:08:55]protocol is kg_v1.0 [17:08:55]action value=get_value [17:08:55]process_action get_value [17:08:55]cmd_get_value [17:08:55]process_action get_value done [17:08:55]requested_data is exist [17:08:55]produce_requested_data [17:08:55]requested_item fm.sale.total is exist - process it [17:08:55]SAM_PROTO_GetFMData [17:08:55]wFMCommunicate request_size=4 [17:08:55]MH_SAM_APDU [17:08:55]CAPDU: 80 13 03 00 [17:08:55]Write to MH i2c: E2 08 00 24 00 80 13 03 00 00 00 00 00 A3 [17:08:55]Write i2c OK [17:08:55]MH_I2C_Read... [17:08:56]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:08:56]Read from MH i2c: E2 [17:08:56]MH_I2C_Read... [17:08:56]Read from MH i2c: E2 FD 00 [17:08:56]MH_I2C_Read... [17:08:56]Read from MH i2c: E2 FD 00 24 00 00 C7 04 85 04 C3 04 6E 04 04 00 16 3D 01 00 69 04 A3 00 6F 04 04 00 7E 3A 01 00 B1 04 05 00 A2 0A FD 7A 01 70 04 05 00 7C 8E EF 40 01 72 04 04 00 26 7C 0D 3A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DA 9D 42 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 31 CF 5A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 98 02 00 00 B1 04 04 00 70 95 0F 13 70 04 04 00 08 53 0F 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AD 37 06 02 EF 90 00 29 [17:08:56]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 16 3D 01 00 69 04 A3 00 6F 04 04 00 7E 3A 01 00 B1 04 05 00 A2 0A FD 7A 01 70 04 05 00 7C 8E EF 40 01 72 04 04 00 26 7C 0D 3A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DA 9D 42 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 31 CF 5A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 98 02 00 00 B1 04 04 00 70 95 0F 13 70 04 04 00 08 53 0F 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AD 37 06 02 EF 90 00 [17:08:56]wFMCommunicate OK [17:08:56]wFMCommunicate request_size=4 [17:08:56]MH_SAM_APDU [17:08:56]CAPDU: 80 17 00 00 [17:08:56]Write to MH i2c: E2 08 00 25 00 80 17 00 00 00 00 00 00 A5 [17:08:56]Write i2c OK [17:08:56]MH_I2C_Read... [17:08:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:08:56]Read from MH i2c: E2 [17:08:56]MH_I2C_Read... [17:08:56]Read from MH i2c: E2 FD 00 [17:08:56]MH_I2C_Read... [17:08:56]Read from MH i2c: E2 FD 00 25 00 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0A 2F 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 90 00 16 [17:08:56]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0A 2F 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 90 00 [17:08:56]wFMCommunicate OK [17:08:56]wFMCommunicate request_size=4 [17:08:56]MH_SAM_APDU [17:08:56]CAPDU: 80 17 00 00 [17:08:56]Write to MH i2c: E2 08 00 26 00 80 17 00 00 00 00 00 00 A6 [17:08:56]Write i2c OK [17:08:56]MH_I2C_Read... [17:08:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:08:56]Read from MH i2c: E2 [17:08:56]MH_I2C_Read... [17:08:56]Read from MH i2c: E2 FD 00 [17:08:56]MH_I2C_Read... [17:08:56]Read from MH i2c: E2 FD 00 26 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 7E [17:08:56]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [17:08:56]wFMCommunicate OK [17:08:56]wFMCommunicate request_size=4 [17:08:56]MH_SAM_APDU [17:08:56]CAPDU: 80 17 00 00 [17:08:56]Write to MH i2c: E2 08 00 27 00 80 17 00 00 00 00 00 00 A7 [17:08:56]Write i2c OK [17:08:56]MH_I2C_Read... [17:08:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:08:56]Read from MH i2c: E2 [17:08:56]MH_I2C_Read... [17:08:56]Read from MH i2c: E2 FD 00 [17:08:56]MH_I2C_Read... [17:08:56]Read from MH i2c: E2 FD 00 27 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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 22 [17:08:56]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [17:08:56]wFMCommunicate OK [17:08:56]wFMCommunicate request_size=4 [17:08:56]MH_SAM_APDU [17:08:56]CAPDU: 80 17 00 00 [17:08:56]Write to MH i2c: E2 08 00 28 00 80 17 00 00 00 00 00 00 A8 [17:08:56]Write i2c OK [17:08:56]MH_I2C_Read... [17:08:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [17:08:57]Read from MH i2c: E2 [17:08:57]MH_I2C_Read... [17:08:57]Read from MH i2c: E2 E4 00 [17:08:57]MH_I2C_Read... [17:08:57]Read from MH i2c: E2 E4 00 28 00 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 88 [17:08:57]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:08:57]wFMCommunicate OK [17:08:57]SAM_PROTO_GetFMData done [17:08:57]requested_item fm.sale_refund.total is exist - process it [17:08:57]requested_item fm.buy.total is exist - process it [17:08:57]requested_item shift.sale.total is exist - process it [17:08:57]SAM_PROTO_GetShiftData [17:08:57]wFMCommunicate request_size=4 [17:08:57]MH_SAM_APDU [17:08:57]CAPDU: 80 13 02 00 [17:08:57]Write to MH i2c: E2 08 00 29 00 80 13 02 00 00 00 00 00 A7 [17:08:57]Write i2c OK [17:08:57]MH_I2C_Read... [17:08:57]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:08:57]Read from MH i2c: E2 [17:08:57]MH_I2C_Read... [17:08:57]Read from MH i2c: E2 FD 00 [17:08:57]MH_I2C_Read... [17:08:57]Read from MH i2c: E2 FD 00 29 00 00 BA 04 AA 04 B6 04 6E 04 04 00 96 00 00 00 69 04 9C 00 6F 04 04 00 93 00 00 00 B1 04 03 00 89 71 72 70 04 03 00 40 BF 5A 72 04 03 00 49 B2 17 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 32 28 0C 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 57 03 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 FC 0A 70 04 03 00 80 FC 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BD 2A 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 6B [17:08:57]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 96 00 00 00 69 04 9C 00 6F 04 04 00 93 00 00 00 B1 04 03 00 89 71 72 70 04 03 00 40 BF 5A 72 04 03 00 49 B2 17 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 32 28 0C 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 57 03 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 FC 0A 70 04 03 00 80 FC 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BD 2A 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [17:08:57]wFMCommunicate OK [17:08:57]wFMCommunicate request_size=4 [17:08:57]MH_SAM_APDU [17:08:57]CAPDU: 80 17 00 00 [17:08:57]Write to MH i2c: E2 08 00 2A 00 80 17 00 00 00 00 00 00 AA [17:08:57]Write i2c OK [17:08:57]MH_I2C_Read... [17:08:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:08:57]Read from MH i2c: E2 [17:08:57]MH_I2C_Read... [17:08:57]Read from MH i2c: E2 FD 00 [17:08:57]MH_I2C_Read... [17:08:57]Read from MH i2c: E2 FD 00 2A 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 50 [17:08:57]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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:08:57]wFMCommunicate OK [17:08:57]wFMCommunicate request_size=4 [17:08:57]MH_SAM_APDU [17:08:57]CAPDU: 80 17 00 00 [17:08:57]Write to MH i2c: E2 08 00 2B 00 80 17 00 00 00 00 00 00 AB [17:08:57]Write i2c OK [17:08:57]MH_I2C_Read... [17:08:58]OFD Sender: No OFD packet to send [17:08:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:08:58]Read from MH i2c: E2 [17:08:58]MH_I2C_Read... [17:08:58]Read from MH i2c: E2 FD 00 [17:08:58]MH_I2C_Read... [17:08:58]Read from MH i2c: E2 FD 00 2B 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 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 D7 [17:08:58]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:08:58]wFMCommunicate OK [17:08:58]wFMCommunicate request_size=4 [17:08:58]MH_SAM_APDU [17:08:58]CAPDU: 80 17 00 00 [17:08:58]Write to MH i2c: E2 08 00 2C 00 80 17 00 00 00 00 00 00 AC [17:08:58]Write i2c OK [17:08:58]MH_I2C_Read... [17:08:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:08:58]Read from MH i2c: E2 [17:08:58]MH_I2C_Read... [17:08:58]Read from MH i2c: E2 FD 00 [17:08:58]MH_I2C_Read... [17:08:58]Read from MH i2c: E2 FD 00 2C 00 00 00 EF 03 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 24 [17:08:58]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:08:58]wFMCommunicate OK [17:08:58]wFMCommunicate request_size=4 [17:08:58]MH_SAM_APDU [17:08:58]CAPDU: 80 17 00 00 [17:08:58]Write to MH i2c: E2 08 00 2D 00 80 17 00 00 00 00 00 00 AD [17:08:58]Write i2c OK [17:08:58]MH_I2C_Read... [17:08:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [17:08:58]Read from MH i2c: E2 [17:08:58]MH_I2C_Read... [17:08:58]Read from MH i2c: E2 D7 00 [17:08:58]MH_I2C_Read... [17:08:58]Read from MH i2c: E2 D7 00 2D 00 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 90 [17:08:58]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:08:58]wFMCommunicate OK [17:08:58]SAM_PROTO_GetShiftData done [17:08:58]requested_item shift.sale.total_cash is exist - process it [17:08:58]requested_item shift.sale_refund.total is exist - process it [17:08:58]requested_item shift.sale_refund.total_cash is exist - process it [17:08:58]requested_item shift.buy.total is exist - process it [17:08:58]requested_item shift.buy.total_cash is exist - process it [17:08:58]produce_requested_data done [17:08:58]produce_requested_data return {"fm.sale.total":63583709.78,"fm.sale_refund.total":3197884.00,"fm.buy.total":0.00,"shift.sale.total":75001.69,"shift.sale.total_cash":59472.00,"shift.sale_refund.total":7200.00,"shift.sale_refund.total_cash":7200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [17:08:58]process_action_free get_value [17:08:58]json_value_free [17:08:58]json_value_free done [17:08:58]process_json_proto returns [17:08:58]Send response to host [17:08:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":63583709.78,"fm.sale_refund.total":3197884.00,"fm.buy.total":0.00,"shift.sale.total":75001.69,"shift.sale.total_cash":59472.00,"shift.sale_refund.total":7200.00,"shift.sale_refund.total_cash":7200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [17:08:58]free response buf [17:08:58]execute_script done [17:08:58]execute_script returns [17:08:58]free content buf [17:08:58]Sock 9.Close socket [17:08:58]Sock 9.Thread stoped [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:38]OFD Sender: No OFD packet to send [17:09:43]OFD Sender: No OFD packet to send [17:09:48]OFD Sender: No OFD packet to send [17:09:53]OFD Sender: No OFD packet to send [17:09:58]OFD Sender: No OFD packet to send [17:10:03]OFD Sender: No OFD packet to send [17:10:08]OFD Sender: No OFD packet to send [17:10:13]OFD Sender: No OFD packet to send [17:10:18]OFD Sender: No OFD packet to send [17:10:23]OFD Sender: No OFD packet to send [17:10:28]OFD Sender: No OFD packet to send [17:10:33]OFD Sender: No OFD packet to send [17:10:38]OFD Sender: No OFD packet to send [17:10:43]OFD Sender: No OFD packet to send [17:10:48]OFD Sender: No OFD packet to send [17:10:53]OFD Sender: No OFD packet to send [17:10:58]OFD Sender: No OFD packet to send [17:11:03]OFD Sender: No OFD packet to send [17:11:08]OFD Sender: No OFD packet to send [17:11:13]OFD Sender: No OFD packet to send [17:11:18]OFD Sender: No OFD packet to send [17:11:23]OFD Sender: No OFD packet to send [17:11:28]OFD Sender: No OFD packet to send [17:11:33]OFD Sender: No OFD packet to send [17:11:38]OFD Sender: No OFD packet to send [17:11:43]OFD Sender: No OFD packet to send [17:11:48]OFD Sender: No OFD packet to send [17:11:53]OFD Sender: No OFD packet to send [17:11:58]OFD Sender: No OFD packet to send [17:12:03]OFD Sender: No OFD packet to send [17:12:08]OFD Sender: No OFD packet to send [17:12:13]OFD Sender: No OFD packet to send [17:12:18]OFD Sender: No OFD packet to send [17:12:23]OFD Sender: No OFD packet to send [17:12:28]OFD Sender: No OFD packet to send [17:12:33]OFD Sender: No OFD packet to send [17:12:38]OFD Sender: No OFD packet to send [17:12:43]OFD Sender: No OFD packet to send [17:12:48]OFD Sender: No OFD packet to send [17:12:53]OFD Sender: No OFD packet to send [17:12:58]OFD Sender: No OFD packet to send [17:13:03]OFD Sender: No OFD packet to send [17:13:08]OFD Sender: No OFD packet to send [17:13:13]OFD Sender: No OFD packet to send [17:13:18]OFD Sender: No OFD packet to send [17:13:23]OFD Sender: No OFD packet to send [17:13:28]OFD Sender: No OFD packet to send [17:13:33]OFD Sender: No OFD packet to send [17:13:38]OFD Sender: No OFD packet to send [17:13:43]OFD Sender: No OFD packet to send [17:13:48]OFD Sender: No OFD packet to send [17:13:53]OFD Sender: No OFD packet to send [17:13:58]OFD Sender: No OFD packet to send [17:14:03]OFD Sender: No OFD packet to send [17:14:08]OFD Sender: No OFD packet to send [17:14:13]OFD Sender: No OFD packet to send [17:14:18]OFD Sender: No OFD packet to send [17:14:23]OFD Sender: No OFD packet to send [17:14:28]OFD Sender: No OFD packet to send [17:14:33]OFD Sender: No OFD packet to send [17:14:38]OFD Sender: No OFD packet to send [17:14:43]OFD Sender: No OFD packet to send [17:14:48]OFD Sender: No OFD packet to send [17:14:53]OFD Sender: No OFD packet to send [17:14:58]OFD Sender: No OFD packet to send [17:15:03]OFD Sender: No OFD packet to send [17:15:08]OFD Sender: No OFD packet to send [17:15:13]OFD Sender: No OFD packet to send [17:15:18]OFD Sender: No OFD packet to send [17:15:23]OFD Sender: No OFD packet to send [17:15:28]OFD Sender: No OFD packet to send [17:15:33]OFD Sender: No OFD packet to send [17:15:38]OFD Sender: No OFD packet to send [17:15:43]OFD Sender: No OFD packet to send [17:15:48]OFD Sender: No OFD packet to send [17:15:53]OFD Sender: No OFD packet to send [17:15:58]OFD Sender: No OFD packet to send [17:16:03]OFD Sender: No OFD packet to send [17:16:08]OFD Sender: No OFD packet to send [17:16:13]OFD Sender: No OFD packet to send [17:16:18]OFD Sender: No OFD packet to send [17:16:23]OFD Sender: No OFD packet to send [17:16:28]OFD Sender: No OFD packet to send [17:16:33]OFD Sender: No OFD packet to send [17:16:38]OFD Sender: No OFD packet to send [17:16:43]OFD Sender: No OFD packet to send [17:16:48]OFD Sender: No OFD packet to send [17:16:53]OFD Sender: No OFD packet to send [17:16:58]OFD Sender: No OFD packet to send [17:17:03]OFD Sender: No OFD packet to send [17:17:08]OFD Sender: No OFD packet to send [17:17:13]OFD Sender: No OFD packet to send [17:17:18]OFD Sender: No OFD packet to send [17:17:23]OFD Sender: No OFD packet to send [17:17:28]OFD Sender: No OFD packet to send [17:17:33]OFD Sender: No OFD packet to send [17:17:35]accept exits with 8 [17:17:35]New connection [17:17:35]New thread 3067456868 created [17:17:35]Thread 3067313508 joined [17:17:35]Waiting for new connection... [17:17:35] Sock 8.Parse request [17:17:35]Sock 8.Check first char [17:17:35]Sock 8.First char is OK [17:17:35]request: POST /json_proto HTTP/1.0 [17:17:35]Method: POST [17:17:35]URL: /json_proto [17:17:35]Method is POST - this is cgi request [17:17:35]url: /json_proto [17:17:35]query_string will be loaded in cgi processing [17:17:35]execute_cgi json_proto POST (null) [17:17:35]execute_cgi path=json_proto method=POST [17:17:35]POST find Content-Length [17:17:35]Host: 172.17.44.67:8080 [17:17:35]Content-Length: 683 [17:17:35]Content-Type: application/json [17:17:35] [17:17:35]POST finish read [17:17:35]Found Content-Length = 683 [17:17:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:35]execute_script... [17:17:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:35]POST & json_proto [17:17:35]process_json_proto [17:17:35]json parsed OK: [17:17:35]protocol is kg_v1.0 [17:17:35]action value=close_receipt [17:17:35]process_action close_receipt [17:17:35]cmd_close_receipt [17:17:35]MH_GetDate [17:17:35]Write to MH i2c: F0 00 00 2E 00 1D [17:17:35]Write i2c OK [17:17:35]MH_I2C_Read... [17:17:35]Read from MH i2c: F0 [17:17:35]MH_I2C_Read... [17:17:35]Read from MH i2c: F0 09 00 [17:17:35]MH_I2C_Read... [17:17:35]Read from MH i2c: F0 09 00 2E 00 00 AF 46 11 67 F1 C7 6B 64 1A [17:17:35]GetLastDocTimeStamp 1729184718 [17:17:35]current date 1729185455 [17:17:35]FM_GetShiftState [17:17:35]SAM_PROTO_GetShiftState [17:17:35]wFMCommunicate request_size=4 [17:17:35]MH_SAM_APDU [17:17:35]CAPDU: 80 13 01 00 [17:17:35]Write to MH i2c: E2 08 00 2F 00 80 13 01 00 00 00 00 00 AC [17:17:35]Write i2c OK [17:17:35]MH_I2C_Read... [17:17:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:35]Read from MH i2c: E2 [17:17:35]MH_I2C_Read... [17:17:35]Read from MH i2c: E2 0E 00 [17:17:35]MH_I2C_Read... [17:17:35]Read from MH i2c: E2 0E 00 2F 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 B4 [17:17:35]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [17:17:35]wFMCommunicate OK [17:17:35]SAM_PROTO_GetShiftState done [17:17:35]FM_GetShiftState done [17:17:35]opened in 1729125927 [17:17:35]opened+sec_in_day 1729212327 [17:17:35]quantity*price = 50025 [17:17:35]sum+1 = 50027 [17:17:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 151 17.10.2024 17:17 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82225 ФПД: 243167329287564 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T171735&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82225&fm=243167329287564&tin=02508201610067®Number=0000000000091680&sum=50000 [17:17:36]StoreToDocumentArchive [17:17:36]shift 525 fd 82225 [17:17:36]save to /storage/0525/doc_00082225 [17:17:36]save last doc name /storage/0525/doc_00082225 to /storage/kkm_last_doc_name [17:17:36]save OK [17:17:36]Clear old archive folders... [17:17:36]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:17:36]tlvbuf is 0105FAF0 [17:17:36]SAM_PROTO_ClearQueue [17:17:36]wFMCommunicate request_size=4 [17:17:36]MH_SAM_APDU [17:17:36]CAPDU: 80 09 00 00 [17:17:36]Write to MH i2c: E2 08 00 3C 00 80 09 00 00 00 00 00 00 AE [17:17:36]Write i2c OK [17:17:36]MH_I2C_Read... [17:17:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:17:36]Read from MH i2c: E2 [17:17:36]MH_I2C_Read... [17:17:36]Read from MH i2c: E2 03 00 [17:17:36]MH_I2C_Read... [17:17:36]Read from MH i2c: E2 03 00 3C 00 00 90 00 B0 [17:17:36]RAPDU: 90 00 [17:17:36]wFMCommunicate OK [17:17:36]SAM_PROTO_ClearQueue done [17:17:36]KKMCreateOFDPacket [17:17:36]OFDProtocolAddRootSTLVToBuf [17:17:36]FM_MakeSignedData [17:17:36]FM_MakeSignedData [17:17:36]SAM_PROTO_SignData [17:17:36]wFMCommunicate request_size=4 [17:17:36]MH_SAM_APDU [17:17:36]CAPDU: 80 0D 01 02 [17:17:36]Write to MH i2c: E2 08 00 3D 00 80 0D 01 02 00 00 00 00 B6 [17:17:36]Write i2c OK [17:17:36]MH_I2C_Read... [17:17:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:17:36]Read from MH i2c: E2 [17:17:36]MH_I2C_Read... [17:17:36]Read from MH i2c: E2 03 00 [17:17:36]MH_I2C_Read... [17:17:36]Read from MH i2c: E2 03 00 3D 00 00 90 00 B1 [17:17:36]RAPDU: 90 00 [17:17:36]wFMCommunicate OK [17:17:36]wFMCommunicate request_size=255 [17:17:36]MH_SAM_APDU [17:17:36]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 AF 46 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 31 41 01 [17:17:36]Write to MH i2c: E2 02 01 3E 00 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 AF 46 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 31 41 01 00 00 03 [17:17:36]Write i2c OK [17:17:36]MH_I2C_Read... [17:17:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:37]Read from MH i2c: E2 [17:17:37]MH_I2C_Read... [17:17:37]Read from MH i2c: E2 03 00 [17:17:37]MH_I2C_Read... [17:17:37]Read from MH i2c: E2 03 00 3E 00 00 90 00 B2 [17:17:37]RAPDU: 90 00 [17:17:37]wFMCommunicate OK [17:17:37]wFMCommunicate request_size=16 [17:17:37]MH_SAM_APDU [17:17:37]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 DD 28 CE 48 7D 8C [17:17:37]Write to MH i2c: E2 13 00 3F 00 80 0D 02 02 0B 00 00 35 04 06 00 DD 28 CE 48 7D 8C 00 00 32 [17:17:37]Write i2c OK [17:17:37]MH_I2C_Read... [17:17:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:37]Read from MH i2c: E2 [17:17:37]MH_I2C_Read... [17:17:37]Read from MH i2c: E2 03 00 [17:17:37]MH_I2C_Read... [17:17:37]Read from MH i2c: E2 03 00 3F 00 00 90 00 B3 [17:17:37]RAPDU: 90 00 [17:17:37]wFMCommunicate OK [17:17:37]wFMCommunicate request_size=4 [17:17:37]MH_SAM_APDU [17:17:37]CAPDU: 80 0D 03 02 [17:17:37]Write to MH i2c: E2 08 00 40 00 80 0D 03 02 00 00 00 00 BB [17:17:37]Write i2c OK [17:17:37]MH_I2C_Read... [17:17:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:17:37]Read from MH i2c: E2 [17:17:37]MH_I2C_Read... [17:17:37]Read from MH i2c: E2 0B 00 [17:17:37]MH_I2C_Read... [17:17:37]Read from MH i2c: E2 0B 00 40 00 00 78 AC 5D 37 76 FB A6 22 90 00 AD [17:17:37]RAPDU: 78 AC 5D 37 76 FB A6 22 90 00 [17:17:37]wFMCommunicate OK [17:17:37]SAM_PROTO_SignData done [17:17:37]FM_MakeSignedData done [17:17:37]CreateOFDProtocolMessage [17:17:37]wFMCommunicate request_size=4 [17:17:37]MH_SAM_APDU [17:17:37]CAPDU: 80 11 00 00 [17:17:37]Write to MH i2c: E2 08 00 41 00 80 11 00 00 00 00 00 00 BB [17:17:37]Write i2c OK [17:17:37]MH_I2C_Read... [17:17:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:37]Read from MH i2c: E2 [17:17:37]MH_I2C_Read... [17:17:37]Read from MH i2c: E2 17 00 [17:17:37]MH_I2C_Read... [17:17:37]Read from MH i2c: E2 17 00 41 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 0D [17:17:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:17:37]wFMCommunicate OK [17:17:37]CreateOFDProtocolMessage done [17:17:37]OFDSenderStorePacket 82225 [17:17:37]StoreOFDPacket docnum=82225 [17:17:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 32 29 0D 01 0B 9A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 AF 46 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 31 41 01 00 35 04 06 00 DD 28 CE 48 7D 8C 78 AC 5D 37 76 FB A6 22 [17:17:37]CheckFolder [17:17:37]dirname=/storage/ofd_packets [17:17:37]CheckFolder done [17:17:37]ProducePacketName [17:17:37]name=ofd_packets/00082225 [17:17:37]NVStorageSaveData ofd_packets/00082225 [17:17:37]File name is /storage/ofd_packets/00082225 [17:17:37]Write 307 bytes [17:17:37]NVStorageSaveData done [17:17:37]OFDSenderStorePacket done [17:17:37]KKMCreateOFDPacket done [17:17:37]NVStorageSaveData kkm_last_timestamp [17:17:37]File name is /storage/kkm_last_timestamp [17:17:37]Write 4 bytes [17:17:37]NVStorageSaveData done [17:17:37]ExternCall_PrintAddStr [17:17:37]wPrintStart [17:17:37]Write to MH i2c: 01 00 00 42 00 42 [17:17:37]Write i2c OK [17:17:37]MH_I2C_Read... [17:17:37]Read from MH i2c: 01 [17:17:37]MH_I2C_Read... [17:17:37]Read from MH i2c: 01 07 00 [17:17:37]MH_I2C_Read... [17:17:37]Read from MH i2c: 01 07 00 42 00 00 00 00 00 00 FF 0F 57 [17:17:37]RasterBufferAndPrint [17:17:37]line Счет N : (1)918729 [17:17:37]line ИНН: 02508201610067 [17:17:37]line Контрольно-Кассовый Чек [17:17:37]line ПРОДАЖА [17:17:37]line ТРК (МРК, ГНК) : 21 [17:17:37]line Товар: 2710194800 [17:17:37]line D-Energy ДТ-К-2 [17:17:37]line 6.480 * 77.20 [17:17:37]line = 500.26 [17:17:37]line НДС 12% НСП 1% [17:17:37]line > о реализуемом товаре [17:17:37]line ОКРУГЛЕНИЕ: -0.26 [17:17:37]line ИТОГО: 500.00 [17:17:37]line Внесено: 500.00 [17:17:37]line СДАЧА: 0.00 [17:17:37]line НСП 1% : 4.43 [17:17:37]line НДС 12% : 53.12 [17:17:37]line Наличными: 500.00 [17:17:37]line Безнал.: 0.00 [17:17:37]line Место: АЗС № 114 "Партнер Нефть" [17:17:37]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [17:17:37]line СНО: Общий режим [17:17:37]line Чек 151 17.10.2024 17:17 [17:17:37]line Смена: 525 ФФД: 1.0 [17:17:37]line ЗНМ: 0300000086 [17:17:37]line РНМ: 0000000000091680 [17:17:37]line Версия ККМ: 001 [17:17:37]line ФМ: 0000000000871843 [17:17:37]line ФД: 82225 [17:17:37]line ФПД: 243167329287564 [17:17:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T171735&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82225&fm=243167329287564&tin=02508201610067®Number=0000000000091680&sum=50000 [17:17:37]OFD Sender: Processing packet 82225 [packets to send 254, broken 253] [17:17:37]ProducePacketName [17:17:37]name=ofd_packets/00082225 [17:17:37]OFD Sender: To server: pG, [17:17:37]CommunicateWithHost lk.salyk.kg:30040 [17:17:37]ConnectInit lk.salyk.kg [17:17:37]written 0, free lines is 4095 [17:17:37]Write to MH i2c: 01 00 00 6D 00 6D [17:17:37]Write i2c OK [17:17:37]MH_I2C_Read... [17:17:37]Read from MH i2c: 01 [17:17:37]MH_I2C_Read... [17:17:37]Read from MH i2c: 01 07 00 [17:17:37]MH_I2C_Read... [17:17:37]Read from MH i2c: 01 07 00 6D 00 00 00 00 00 00 F1 0C 71 [17:17:37]RasterBufferAndPrint [17:17:37]line [17:17:37]line [17:17:37]line [17:17:37]line [17:17:37]line [17:17:37]written 0, free lines is 3319 [17:17:37]MH_Cut [17:17:37]Write to MH i2c: D1 01 00 74 00 01 46 [17:17:37]Write i2c OK [17:17:37]MH_I2C_Read... [17:17:37]Read from MH i2c: D1 [17:17:37]MH_I2C_Read... [17:17:37]Read from MH i2c: D1 01 00 [17:17:37]MH_I2C_Read... [17:17:37]Read from MH i2c: D1 01 00 74 00 00 45 [17:17:37]Write to MH i2c: 01 00 00 75 00 75 [17:17:37]Write i2c OK [17:17:37]MH_I2C_Read... [17:17:38]Connected sock=10 [17:17:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 32 29 0D 01 0B 9A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 AF 46 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 31 41 01 00 35 04 06 00 DD 28 CE 48 7D 8C 78 AC 5D 37 76 FB A6 22 [17:17:38]*** Cut start [17:17:38]*** Partial cut [17:17:38]*** CUTSNS_PIN = 1 [17:17:38]*** CUTSNS_PIN = 0 [17:17:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 9D F9 47 00 66 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 31 41 01 00 F4 03 04 00 ED EB 10 67 B6 04 01 00 00 58 79 85 FF 94 D6 B3 AD [17:17:38]CommunicateWithHost err = 0 [17:17:38]CheckOFDResponse [17:17:38]1017 (14) - 77093643461234 [17:17:38]1041 (16) - 0000000000871843 [17:17:38]1040 (4) - 82225 [17:17:38]1012 (4) - 17.10.2024 10:50 [17:17:38]1206 (1) - 0 [17:17:38]OFD Sender: Remove packet 82225 [17:17:38]ProducePacketName [17:17:38]name=ofd_packets/00082225 [17:17:38]NVStorageDeleteData [17:17:38]*** Brake cut motor [17:17:39]Read from MH i2c: 01 [17:17:39]MH_I2C_Read... [17:17:39]*** Stop cut motor [17:17:39]*** Cut end [17:17:39]Read from MH i2c: 01 07 00 [17:17:39]MH_I2C_Read... [17:17:39]Read from MH i2c: 01 07 00 75 00 00 00 00 00 00 FF 0F 8A [17:17:39]process_action close_receipt done [17:17:39]requested_data is exist [17:17:39]produce_requested_data [17:17:39]requested_item fm.sn is exist - process it [17:17:39]wFMCommunicate request_size=4 [17:17:39]MH_SAM_APDU [17:17:39]CAPDU: 80 11 00 00 [17:17:39]Write to MH i2c: E2 08 00 76 00 80 11 00 00 00 00 00 00 F0 [17:17:39]Write i2c OK [17:17:39]MH_I2C_Read... [17:17:39]OFD Sender: No OFD packet to send [17:17:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:39]Read from MH i2c: E2 [17:17:39]MH_I2C_Read... [17:17:39]Read from MH i2c: E2 17 00 [17:17:39]MH_I2C_Read... [17:17:39]Read from MH i2c: E2 17 00 76 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 42 [17:17:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:17:39]wFMCommunicate OK [17:17:39]requested_item fd.num is exist - process it [17:17:39]SAM_PROTO_GetFieldsCounters [17:17:39]wFMCommunicate request_size=4 [17:17:39]MH_SAM_APDU [17:17:39]CAPDU: 80 13 00 00 [17:17:39]Write to MH i2c: E2 08 00 77 00 80 13 00 00 00 00 00 00 F3 [17:17:39]Write i2c OK [17:17:39]MH_I2C_Read... [17:17:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:17:39]Read from MH i2c: E2 [17:17:39]MH_I2C_Read... [17:17:39]Read from MH i2c: E2 62 00 [17:17:39]MH_I2C_Read... [17:17:39]Read from MH i2c: E2 62 00 77 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 31 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [17:17:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 31 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:17:39]wFMCommunicate OK [17:17:39]SAM_PROTO_GetFieldsCounters done [17:17:39]requested_item shift.num is exist - process it [17:17:39]requested_item shift.opened is exist - process it [17:17:39]req_shift_opened [17:17:39]FM_GetShiftState [17:17:39]SAM_PROTO_GetShiftState [17:17:39]wFMCommunicate request_size=4 [17:17:39]MH_SAM_APDU [17:17:39]CAPDU: 80 13 01 00 [17:17:39]Write to MH i2c: E2 08 00 78 00 80 13 01 00 00 00 00 00 F5 [17:17:39]Write i2c OK [17:17:39]MH_I2C_Read... [17:17:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:39]Read from MH i2c: E2 [17:17:39]MH_I2C_Read... [17:17:39]Read from MH i2c: E2 0E 00 [17:17:39]MH_I2C_Read... [17:17:39]Read from MH i2c: E2 0E 00 78 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 FD [17:17:39]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [17:17:39]wFMCommunicate OK [17:17:39]SAM_PROTO_GetShiftState done [17:17:39]FM_GetShiftState done [17:17:39]req_shift_opened done [17:17:39]requested_item shift.open_date is exist - process it [17:17:39]req_shift_open_date [17:17:39]req_shift_open_date done [17:17:39]produce_requested_data done [17:17:39]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82225,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [17:17:39]process_action_free close_receipt [17:17:39]json_value_free [17:17:39]json_value_free done [17:17:39]process_json_proto returns [17:17:39]Send response to host [17:17:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82225,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [17:17:39]free response buf [17:17:39]execute_script done [17:17:39]execute_script returns [17:17:39]free content buf [17:17:39]Sock 8.Close socket [17:17:39]Sock 8.Thread stoped [17:17:44]OFD Sender: No OFD packet to send [17:17:49]OFD Sender: No OFD packet to send [17:17:52]recv_with_timeout no data received [17:17:54]OFD Sender: No OFD packet to send [17:17:59]OFD Sender: No OFD packet to send [17:18:04]OFD Sender: No OFD packet to send [17:18:09]OFD Sender: No OFD packet to send [17:18:14]OFD Sender: No OFD packet to send [17:18:19]OFD Sender: No OFD packet to send [17:18:24]OFD Sender: No OFD packet to send [17:18:29]OFD Sender: No OFD packet to send [17:18:34]OFD Sender: No OFD packet to send [17:18:39]OFD Sender: No OFD packet to send [17:18:44]OFD Sender: No OFD packet to send [17:18:48]accept exits with 9 [17:18:48]New connection [17:18:48]New thread 3067313508 created [17:18:48]Thread 3067456868 joined [17:18:48]Waiting for new connection... [17:18:48] Sock 9.Parse request [17:18:48]Sock 9.Check first char [17:18:48]Sock 9.First char is OK [17:18:48]request: POST /json_proto HTTP/1.0 [17:18:48]Method: POST [17:18:48]URL: /json_proto [17:18:48]Method is POST - this is cgi request [17:18:48]url: /json_proto [17:18:48]query_string will be loaded in cgi processing [17:18:48]execute_cgi json_proto POST (null) [17:18:48]execute_cgi path=json_proto method=POST [17:18:48]POST find Content-Length [17:18:48]Host: 172.17.44.67:8080 [17:18:48]Content-Length: 682 [17:18:48]Content-Type: application/json [17:18:48] [17:18:48]POST finish read [17:18:48]Found Content-Length = 682 [17:18:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:48]execute_script... [17:18:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:48]POST & json_proto [17:18:48]process_json_proto [17:18:48]json parsed OK: [17:18:48]protocol is kg_v1.0 [17:18:48]action value=close_receipt [17:18:48]process_action close_receipt [17:18:48]cmd_close_receipt [17:18:48]MH_GetDate [17:18:48]Write to MH i2c: F0 00 00 79 00 68 [17:18:48]Write i2c OK [17:18:48]MH_I2C_Read... [17:18:48]Read from MH i2c: F0 [17:18:48]MH_I2C_Read... [17:18:48]Read from MH i2c: F0 09 00 [17:18:48]MH_I2C_Read... [17:18:48]Read from MH i2c: F0 09 00 79 00 00 F8 46 11 67 F1 C7 6B 64 AE [17:18:48]GetLastDocTimeStamp 1729185455 [17:18:48]current date 1729185528 [17:18:48]FM_GetShiftState [17:18:48]SAM_PROTO_GetShiftState [17:18:48]wFMCommunicate request_size=4 [17:18:48]MH_SAM_APDU [17:18:48]CAPDU: 80 13 01 00 [17:18:48]Write to MH i2c: E2 08 00 7A 00 80 13 01 00 00 00 00 00 F7 [17:18:48]Write i2c OK [17:18:48]MH_I2C_Read... [17:18:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:48]Read from MH i2c: E2 [17:18:48]MH_I2C_Read... [17:18:48]Read from MH i2c: E2 0E 00 [17:18:48]MH_I2C_Read... [17:18:48]Read from MH i2c: E2 0E 00 7A 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 FF [17:18:48]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [17:18:48]wFMCommunicate OK [17:18:48]SAM_PROTO_GetShiftState done [17:18:48]FM_GetShiftState done [17:18:48]opened in 1729125927 [17:18:48]opened+sec_in_day 1729212327 [17:18:48]quantity*price = 100021 [17:18:48]sum+1 = 100023 [17:18:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 152 17.10.2024 17:18 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82226 ФПД: 28310898560104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T171848&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82226&fm=28310898560104&tin=02508201610067®Number=0000000000091680&sum=100000 [17:18:49]StoreToDocumentArchive [17:18:49]shift 525 fd 82226 [17:18:49]save to /storage/0525/doc_00082226 [17:18:49]save last doc name /storage/0525/doc_00082226 to /storage/kkm_last_doc_name [17:18:49]save OK [17:18:49]Clear old archive folders... [17:18:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:18:49]tlvbuf is 01050120 [17:18:49]SAM_PROTO_ClearQueue [17:18:49]wFMCommunicate request_size=4 [17:18:49]MH_SAM_APDU [17:18:49]CAPDU: 80 09 00 00 [17:18:49]Write to MH i2c: E2 08 00 87 00 80 09 00 00 00 00 00 00 F9 [17:18:49]Write i2c OK [17:18:49]MH_I2C_Read... [17:18:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:18:49]Read from MH i2c: E2 [17:18:49]MH_I2C_Read... [17:18:49]Read from MH i2c: E2 03 00 [17:18:49]MH_I2C_Read... [17:18:49]Read from MH i2c: E2 03 00 87 00 00 90 00 FB [17:18:49]RAPDU: 90 00 [17:18:49]wFMCommunicate OK [17:18:49]SAM_PROTO_ClearQueue done [17:18:49]KKMCreateOFDPacket [17:18:49]OFDProtocolAddRootSTLVToBuf [17:18:49]FM_MakeSignedData [17:18:49]FM_MakeSignedData [17:18:49]SAM_PROTO_SignData [17:18:49]wFMCommunicate request_size=4 [17:18:49]MH_SAM_APDU [17:18:49]CAPDU: 80 0D 01 02 [17:18:49]Write to MH i2c: E2 08 00 88 00 80 0D 01 02 00 00 00 00 01 [17:18:49]Write i2c OK [17:18:49]MH_I2C_Read... [17:18:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:18:49]Read from MH i2c: E2 [17:18:49]MH_I2C_Read... [17:18:49]Read from MH i2c: E2 03 00 [17:18:49]MH_I2C_Read... [17:18:49]Read from MH i2c: E2 03 00 88 00 00 90 00 FC [17:18:49]RAPDU: 90 00 [17:18:49]wFMCommunicate OK [17:18:49]wFMCommunicate request_size=255 [17:18:49]MH_SAM_APDU [17:18:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 F8 46 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 32 41 01 00 35 04 06 00 19 [17:18:49]Write to MH i2c: E2 02 01 89 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 F8 46 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 32 41 01 00 35 04 06 00 19 00 00 95 [17:18:49]Write i2c OK [17:18:49]MH_I2C_Read... [17:18:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:49]Read from MH i2c: E2 [17:18:49]MH_I2C_Read... [17:18:49]Read from MH i2c: E2 03 00 [17:18:49]MH_I2C_Read... [17:18:49]Read from MH i2c: E2 03 00 89 00 00 90 00 FD [17:18:49]RAPDU: 90 00 [17:18:49]wFMCommunicate OK [17:18:49]wFMCommunicate request_size=10 [17:18:49]MH_SAM_APDU [17:18:49]CAPDU: 80 0D 02 02 05 BF A5 0D 4C 68 [17:18:49]Write to MH i2c: E2 0D 00 8A 00 80 0D 02 02 05 00 BF A5 0D 4C 68 00 00 33 [17:18:49]Write i2c OK [17:18:49]MH_I2C_Read... [17:18:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:49]Read from MH i2c: E2 [17:18:49]MH_I2C_Read... [17:18:49]Read from MH i2c: E2 03 00 [17:18:49]MH_I2C_Read... [17:18:49]Read from MH i2c: E2 03 00 8A 00 00 90 00 FE [17:18:49]RAPDU: 90 00 [17:18:49]wFMCommunicate OK [17:18:49]wFMCommunicate request_size=4 [17:18:49]MH_SAM_APDU [17:18:49]CAPDU: 80 0D 03 02 [17:18:49]Write to MH i2c: E2 08 00 8B 00 80 0D 03 02 00 00 00 00 06 [17:18:49]Write i2c OK [17:18:49]MH_I2C_Read... [17:18:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:18:49]Read from MH i2c: E2 [17:18:49]MH_I2C_Read... [17:18:49]Read from MH i2c: E2 0B 00 [17:18:49]MH_I2C_Read... [17:18:49]Read from MH i2c: E2 0B 00 8B 00 00 18 85 49 FD F8 F7 9A 35 90 00 A8 [17:18:49]RAPDU: 18 85 49 FD F8 F7 9A 35 90 00 [17:18:49]wFMCommunicate OK [17:18:49]SAM_PROTO_SignData done [17:18:49]FM_MakeSignedData done [17:18:49]CreateOFDProtocolMessage [17:18:49]wFMCommunicate request_size=4 [17:18:49]MH_SAM_APDU [17:18:49]CAPDU: 80 11 00 00 [17:18:49]Write to MH i2c: E2 08 00 8C 00 80 11 00 00 00 00 00 00 06 [17:18:49]Write i2c OK [17:18:49]MH_I2C_Read... [17:18:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:50]Read from MH i2c: E2 [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: E2 17 00 [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: E2 17 00 8C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 58 [17:18:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:18:50]wFMCommunicate OK [17:18:50]CreateOFDProtocolMessage done [17:18:50]OFDSenderStorePacket 82226 [17:18:50]StoreOFDPacket docnum=82226 [17:18:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 FD F9 07 01 9B 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 F8 46 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 32 41 01 00 35 04 06 00 19 BF A5 0D 4C 68 18 85 49 FD F8 F7 9A 35 [17:18:50]CheckFolder [17:18:50]dirname=/storage/ofd_packets [17:18:50]CheckFolder done [17:18:50]ProducePacketName [17:18:50]name=ofd_packets/00082226 [17:18:50]NVStorageSaveData ofd_packets/00082226 [17:18:50]File name is /storage/ofd_packets/00082226 [17:18:50]Write 301 bytes [17:18:50]NVStorageSaveData done [17:18:50]OFDSenderStorePacket done [17:18:50]KKMCreateOFDPacket done [17:18:50]NVStorageSaveData kkm_last_timestamp [17:18:50]File name is /storage/kkm_last_timestamp [17:18:50]Write 4 bytes [17:18:50]NVStorageSaveData done [17:18:50]ExternCall_PrintAddStr [17:18:50]wPrintStart [17:18:50]Write to MH i2c: 01 00 00 8D 00 8D [17:18:50]Write i2c OK [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: 01 [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: 01 07 00 [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: 01 07 00 8D 00 00 00 00 00 00 FF 0F A2 [17:18:50]RasterBufferAndPrint [17:18:50]line Счет N : (1)918730 [17:18:50]line ИНН: 02508201610067 [17:18:50]line Контрольно-Кассовый Чек [17:18:50]line ПРОДАЖА [17:18:50]line ТРК (МРК, ГНК) : 12 [17:18:50]line Товар: 2710124500 [17:18:50]line Аи-95-К-5 [17:18:50]line 13.480 * 74.20 [17:18:50]line = 1000.22 [17:18:50]line НДС 12% НСП 1% [17:18:50]line > о реализуемом товаре [17:18:50]line ОКРУГЛЕНИЕ: -0.22 [17:18:50]line ИТОГО: 1000.00 [17:18:50]line Внесено: 1000.00 [17:18:50]line СДАЧА: 0.00 [17:18:50]line НСП 1% : 8.85 [17:18:50]line НДС 12% : 106.22 [17:18:50]line Наличными: 1000.00 [17:18:50]line Безнал.: 0.00 [17:18:50]line Место: АЗС № 114 "Партнер Нефть" [17:18:50]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [17:18:50]line СНО: Общий режим [17:18:50]line Чек 152 17.10.2024 17:18 [17:18:50]line Смена: 525 ФФД: 1.0 [17:18:50]line ЗНМ: 0300000086 [17:18:50]line РНМ: 0000000000091680 [17:18:50]line Версия ККМ: 001 [17:18:50]line ФМ: 0000000000871843 [17:18:50]line ФД: 82226 [17:18:50]line ФПД: 28310898560104 [17:18:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T171848&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82226&fm=28310898560104&tin=02508201610067®Number=0000000000091680&sum=100000 [17:18:50]OFD Sender: Processing packet 82226 [packets to send 254, broken 253] [17:18:50]ProducePacketName [17:18:50]name=ofd_packets/00082226 [17:18:50]OFD Sender: To server: pG, [17:18:50]CommunicateWithHost lk.salyk.kg:30040 [17:18:50]ConnectInit lk.salyk.kg [17:18:50]written 0, free lines is 4095 [17:18:50]Connected sock=11 [17:18:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 FD F9 07 01 9B 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 F8 46 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 32 41 01 00 35 04 06 00 19 BF A5 0D 4C 68 18 85 49 FD F8 F7 9A 35 [17:18:50]Write to MH i2c: 01 00 00 B8 00 B8 [17:18:50]Write i2c OK [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: 01 [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: 01 07 00 [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: 01 07 00 B8 00 00 00 00 00 00 E4 0C AF [17:18:50]RasterBufferAndPrint [17:18:50]line [17:18:50]line [17:18:50]line [17:18:50]line [17:18:50]line [17:18:50]written 0, free lines is 3306 [17:18:50]MH_Cut [17:18:50]Write to MH i2c: D1 01 00 BF 00 01 91 [17:18:50]Write i2c OK [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: D1 [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: D1 01 00 [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: D1 01 00 BF 00 00 90 [17:18:50]Write to MH i2c: 01 00 00 C0 00 C0 [17:18:50]Write i2c OK [17:18:50]MH_I2C_Read... [17:18:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 5E 99 47 00 42 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 32 41 01 00 F4 03 04 00 35 EC 10 67 B6 04 01 00 00 7B 2E A7 7D 40 74 FD 8D [17:18:51]CommunicateWithHost err = 0 [17:18:51]CheckOFDResponse [17:18:51]1017 (14) - 77093643461234 [17:18:51]1041 (16) - 0000000000871843 [17:18:51]1040 (4) - 82226 [17:18:51]1012 (4) - 17.10.2024 10:51 [17:18:51]1206 (1) - 0 [17:18:51]OFD Sender: Remove packet 82226 [17:18:51]ProducePacketName [17:18:51]name=ofd_packets/00082226 [17:18:51]NVStorageDeleteData [17:18:51]*** Cut start [17:18:51]*** Partial cut [17:18:51]*** CUTSNS_PIN = 1 [17:18:51]OFD Sender: No OFD packet to send [17:18:51]*** CUTSNS_PIN = 0 [17:18:51]*** Brake cut motor [17:18:52]Read from MH i2c: 01 [17:18:52]MH_I2C_Read... [17:18:52]*** Stop cut motor [17:18:52]*** Cut end [17:18:52]Read from MH i2c: 01 07 00 [17:18:52]MH_I2C_Read... [17:18:52]Read from MH i2c: 01 07 00 C0 00 00 00 00 00 00 FF 0F D5 [17:18:52]process_action close_receipt done [17:18:52]requested_data is exist [17:18:52]produce_requested_data [17:18:52]requested_item fm.sn is exist - process it [17:18:52]wFMCommunicate request_size=4 [17:18:52]MH_SAM_APDU [17:18:52]CAPDU: 80 11 00 00 [17:18:52]Write to MH i2c: E2 08 00 C1 00 80 11 00 00 00 00 00 00 3B [17:18:52]Write i2c OK [17:18:52]MH_I2C_Read... [17:18:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:52]Read from MH i2c: E2 [17:18:52]MH_I2C_Read... [17:18:52]Read from MH i2c: E2 17 00 [17:18:52]MH_I2C_Read... [17:18:52]Read from MH i2c: E2 17 00 C1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 8D [17:18:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:18:52]wFMCommunicate OK [17:18:52]requested_item fd.num is exist - process it [17:18:52]SAM_PROTO_GetFieldsCounters [17:18:52]wFMCommunicate request_size=4 [17:18:52]MH_SAM_APDU [17:18:52]CAPDU: 80 13 00 00 [17:18:52]Write to MH i2c: E2 08 00 C2 00 80 13 00 00 00 00 00 00 3E [17:18:52]Write i2c OK [17:18:52]MH_I2C_Read... [17:18:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:18:52]Read from MH i2c: E2 [17:18:52]MH_I2C_Read... [17:18:52]Read from MH i2c: E2 62 00 [17:18:52]MH_I2C_Read... [17:18:52]Read from MH i2c: E2 62 00 C2 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 32 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [17:18:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 32 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:18:52]wFMCommunicate OK [17:18:52]SAM_PROTO_GetFieldsCounters done [17:18:52]requested_item shift.num is exist - process it [17:18:52]requested_item shift.opened is exist - process it [17:18:52]req_shift_opened [17:18:52]FM_GetShiftState [17:18:52]SAM_PROTO_GetShiftState [17:18:52]wFMCommunicate request_size=4 [17:18:52]MH_SAM_APDU [17:18:52]CAPDU: 80 13 01 00 [17:18:52]Write to MH i2c: E2 08 00 C3 00 80 13 01 00 00 00 00 00 40 [17:18:52]Write i2c OK [17:18:52]MH_I2C_Read... [17:18:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:52]Read from MH i2c: E2 [17:18:52]MH_I2C_Read... [17:18:52]Read from MH i2c: E2 0E 00 [17:18:52]MH_I2C_Read... [17:18:52]Read from MH i2c: E2 0E 00 C3 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 48 [17:18:52]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [17:18:52]wFMCommunicate OK [17:18:52]SAM_PROTO_GetShiftState done [17:18:52]FM_GetShiftState done [17:18:52]req_shift_opened done [17:18:52]requested_item shift.open_date is exist - process it [17:18:52]req_shift_open_date [17:18:52]req_shift_open_date done [17:18:52]produce_requested_data done [17:18:52]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82226,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [17:18:52]process_action_free close_receipt [17:18:52]json_value_free [17:18:52]json_value_free done [17:18:52]process_json_proto returns [17:18:52]Send response to host [17:18:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82226,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [17:18:52]free response buf [17:18:52]execute_script done [17:18:52]execute_script returns [17:18:52]free content buf [17:18:52]Sock 9.Close socket [17:18:52]Sock 9.Thread stoped [17:18:56]OFD Sender: No OFD packet to send [17:19:01]OFD Sender: No OFD packet to send [17:19:06]OFD Sender: No OFD packet to send [17:19:11]OFD Sender: No OFD packet to send [17:19:16]OFD Sender: No OFD packet to send [17:19:17]recv_with_timeout no data received [17:19:21]OFD Sender: No OFD packet to send [17:19:26]OFD Sender: No OFD packet to send [17:19:31]OFD Sender: No OFD packet to send [17:19:36]OFD Sender: No OFD packet to send [17:19:41]OFD Sender: No OFD packet to send [17:19:46]OFD Sender: No OFD packet to send [17:19:51]OFD Sender: No OFD packet to send [17:19:56]OFD Sender: No OFD packet to send [17:20:01]OFD Sender: No OFD packet to send [17:20:06]OFD Sender: No OFD packet to send [17:20:11]OFD Sender: No OFD packet to send [17:20:16]OFD Sender: No OFD packet to send [17:20:21]OFD Sender: No OFD packet to send [17:20:26]OFD Sender: No OFD packet to send [17:20:31]OFD Sender: No OFD packet to send [17:20:36]OFD Sender: No OFD packet to send [17:20:38]accept exits with 8 [17:20:38]New connection [17:20:38]New thread 3067456868 created [17:20:38]Thread 3067313508 joined [17:20:38]Waiting for new connection... [17:20:38] Sock 8.Parse request [17:20:38]Sock 8.Check first char [17:20:38]Sock 8.First char is OK [17:20:38]request: POST /json_proto HTTP/1.0 [17:20:38]Method: POST [17:20:38]URL: /json_proto [17:20:38]Method is POST - this is cgi request [17:20:38]url: /json_proto [17:20:38]query_string will be loaded in cgi processing [17:20:38]execute_cgi json_proto POST (null) [17:20:38]execute_cgi path=json_proto method=POST [17:20:38]POST find Content-Length [17:20:38]Host: 172.17.44.67:8080 [17:20:38]Content-Length: 766 [17:20:38]Content-Type: application/json [17:20:38] [17:20:38]POST finish read [17:20:38]Found Content-Length = 766 [17:20:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:38]execute_script... [17:20:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:38]POST & json_proto [17:20:38]process_json_proto [17:20:38]json parsed OK: [17:20:38]protocol is kg_v1.0 [17:20:38]action value=close_receipt [17:20:38]process_action close_receipt [17:20:38]cmd_close_receipt [17:20:38]MH_GetDate [17:20:38]Write to MH i2c: F0 00 00 C4 00 B3 [17:20:38]Write i2c OK [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: F0 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: F0 09 00 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: F0 09 00 C4 00 00 67 47 11 67 F1 C7 6B 64 69 [17:20:38]GetLastDocTimeStamp 1729185528 [17:20:38]current date 1729185639 [17:20:38]FM_GetShiftState [17:20:38]SAM_PROTO_GetShiftState [17:20:38]wFMCommunicate request_size=4 [17:20:38]MH_SAM_APDU [17:20:38]CAPDU: 80 13 01 00 [17:20:38]Write to MH i2c: E2 08 00 C5 00 80 13 01 00 00 00 00 00 42 [17:20:38]Write i2c OK [17:20:38]MH_I2C_Read... [17:20:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:39]Read from MH i2c: E2 [17:20:39]MH_I2C_Read... [17:20:39]Read from MH i2c: E2 0E 00 [17:20:39]MH_I2C_Read... [17:20:39]Read from MH i2c: E2 0E 00 C5 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 4A [17:20:39]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [17:20:39]wFMCommunicate OK [17:20:39]SAM_PROTO_GetShiftState done [17:20:39]FM_GetShiftState done [17:20:39]opened in 1729125927 [17:20:39]opened+sec_in_day 1729212327 [17:20:39]quantity*price = 20003 [17:20:39]sum+1 = 20004 [17:20:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 153 17.10.2024 17:20 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82227 ФПД: 168006972934760 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T172039&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82227&fm=168006972934760&tin=02508201610067®Number=0000000000091680&sum=20003 [17:20:40]StoreToDocumentArchive [17:20:40]shift 525 fd 82227 [17:20:40]save to /storage/0525/doc_00082227 [17:20:40]save last doc name /storage/0525/doc_00082227 to /storage/kkm_last_doc_name [17:20:40]save OK [17:20:40]Clear old archive folders... [17:20:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:20:40]tlvbuf is 0104FCD0 [17:20:40]SAM_PROTO_ClearQueue [17:20:40]wFMCommunicate request_size=4 [17:20:40]MH_SAM_APDU [17:20:40]CAPDU: 80 09 00 00 [17:20:40]Write to MH i2c: E2 08 00 D2 00 80 09 00 00 00 00 00 00 44 [17:20:40]Write i2c OK [17:20:40]MH_I2C_Read... [17:20:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:20:40]Read from MH i2c: E2 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 03 00 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 03 00 D2 00 00 90 00 46 [17:20:40]RAPDU: 90 00 [17:20:40]wFMCommunicate OK [17:20:40]SAM_PROTO_ClearQueue done [17:20:40]KKMCreateOFDPacket [17:20:40]OFDProtocolAddRootSTLVToBuf [17:20:40]FM_MakeSignedData [17:20:40]FM_MakeSignedData [17:20:40]SAM_PROTO_SignData [17:20:40]wFMCommunicate request_size=4 [17:20:40]MH_SAM_APDU [17:20:40]CAPDU: 80 0D 01 02 [17:20:40]Write to MH i2c: E2 08 00 D3 00 80 0D 01 02 00 00 00 00 4C [17:20:40]Write i2c OK [17:20:40]MH_I2C_Read... [17:20:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:20:40]Read from MH i2c: E2 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 03 00 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 03 00 D3 00 00 90 00 47 [17:20:40]RAPDU: 90 00 [17:20:40]wFMCommunicate OK [17:20:40]wFMCommunicate request_size=255 [17:20:40]MH_SAM_APDU [17:20:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 67 47 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 33 41 01 00 35 04 06 00 98 [17:20:40]Write to MH i2c: E2 02 01 D4 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 67 47 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 33 41 01 00 35 04 06 00 98 00 00 7B [17:20:40]Write i2c OK [17:20:40]MH_I2C_Read... [17:20:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:40]Read from MH i2c: E2 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 03 00 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 03 00 D4 00 00 90 00 48 [17:20:40]RAPDU: 90 00 [17:20:40]wFMCommunicate OK [17:20:40]wFMCommunicate request_size=10 [17:20:40]MH_SAM_APDU [17:20:40]CAPDU: 80 0D 02 02 05 CD 2B F1 0A 68 [17:20:40]Write to MH i2c: E2 0D 00 D5 00 80 0D 02 02 05 00 CD 2B F1 0A 68 00 00 B4 [17:20:40]Write i2c OK [17:20:40]MH_I2C_Read... [17:20:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:40]Read from MH i2c: E2 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 03 00 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 03 00 D5 00 00 90 00 49 [17:20:40]RAPDU: 90 00 [17:20:40]wFMCommunicate OK [17:20:40]wFMCommunicate request_size=4 [17:20:40]MH_SAM_APDU [17:20:40]CAPDU: 80 0D 03 02 [17:20:40]Write to MH i2c: E2 08 00 D6 00 80 0D 03 02 00 00 00 00 51 [17:20:40]Write i2c OK [17:20:40]MH_I2C_Read... [17:20:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:20:40]Read from MH i2c: E2 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 0B 00 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 0B 00 D6 00 00 A7 96 E1 9E 66 0A E1 56 90 00 B5 [17:20:40]RAPDU: A7 96 E1 9E 66 0A E1 56 90 00 [17:20:40]wFMCommunicate OK [17:20:40]SAM_PROTO_SignData done [17:20:40]FM_MakeSignedData done [17:20:40]CreateOFDProtocolMessage [17:20:40]wFMCommunicate request_size=4 [17:20:40]MH_SAM_APDU [17:20:40]CAPDU: 80 11 00 00 [17:20:40]Write to MH i2c: E2 08 00 D7 00 80 11 00 00 00 00 00 00 51 [17:20:40]Write i2c OK [17:20:40]MH_I2C_Read... [17:20:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:40]Read from MH i2c: E2 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 17 00 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 17 00 D7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 A3 [17:20:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:20:40]wFMCommunicate OK [17:20:40]CreateOFDProtocolMessage done [17:20:40]OFDSenderStorePacket 82227 [17:20:40]StoreOFDPacket docnum=82227 [17:20:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 A0 25 07 01 88 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 67 47 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 33 41 01 00 35 04 06 00 98 CD 2B F1 0A 68 A7 96 E1 9E 66 0A E1 56 [17:20:40]CheckFolder [17:20:40]dirname=/storage/ofd_packets [17:20:40]CheckFolder done [17:20:40]ProducePacketName [17:20:40]name=ofd_packets/00082227 [17:20:40]NVStorageSaveData ofd_packets/00082227 [17:20:40]File name is /storage/ofd_packets/00082227 [17:20:40]Write 301 bytes [17:20:40]NVStorageSaveData done [17:20:40]OFDSenderStorePacket done [17:20:40]KKMCreateOFDPacket done [17:20:40]NVStorageSaveData kkm_last_timestamp [17:20:40]File name is /storage/kkm_last_timestamp [17:20:40]Write 4 bytes [17:20:40]NVStorageSaveData done [17:20:40]ExternCall_PrintAddStr [17:20:40]wPrintStart [17:20:40]Write to MH i2c: 01 00 00 D8 00 D8 [17:20:40]Write i2c OK [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: 01 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: 01 07 00 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: 01 07 00 D8 00 00 00 00 00 00 FF 0F ED [17:20:40]RasterBufferAndPrint [17:20:40]line Счет N : (1)918731 [17:20:40]line ИНН: 02508201610067 [17:20:40]line Контрольно-Кассовый Чек [17:20:40]line ПРОДАЖА [17:20:40]line ТРК (МРК, ГНК) : 22 [17:20:40]line Товар: 2710124130 [17:20:40]line Аи-92-К-4 [17:20:40]line 2.990 * 66.90 [17:20:40]line = 200.03 [17:20:40]line НДС 12% НСП 1% [17:20:40]line > о реализуемом товаре [17:20:40]line ИТОГО: 200.03 [17:20:40]line НСП 1% : 1.77 [17:20:40]line НДС 12% : 21.24 [17:20:40]line Наличными: 0.00 [17:20:40]line Безнал.: 200.03 [17:20:40]line Место: АЗС № 114 "Партнер Нефть" [17:20:40]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [17:20:40]line СНО: Общий режим [17:20:40]line Чек 153 17.10.2024 17:20 [17:20:40]line Смена: 525 ФФД: 1.0 [17:20:40]line ЗНМ: 0300000086 [17:20:40]line РНМ: 0000000000091680 [17:20:40]line Версия ККМ: 001 [17:20:40]line Платежная система: Mbank [17:20:40]line ФМ: 0000000000871843 [17:20:40]line ФД: 82227 [17:20:40]line ФПД: 168006972934760 [17:20:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T172039&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82227&fm=168006972934760&tin=02508201610067®Number=0000000000091680&sum=20003 [17:20:40]written 0, free lines is 4095 [17:20:40]OFD Sender: Processing packet 82227 [packets to send 254, broken 253] [17:20:40]ProducePacketName [17:20:40]name=ofd_packets/00082227 [17:20:40]OFD Sender: To server: pG, [17:20:40]CommunicateWithHost lk.salyk.kg:30040 [17:20:40]ConnectInit lk.salyk.kg [17:20:41]Write to MH i2c: 01 00 00 01 01 02 [17:20:41]Write i2c OK [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: 01 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: 01 07 00 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: 01 07 00 01 01 00 00 00 00 00 03 0D 19 [17:20:41]RasterBufferAndPrint [17:20:41]line [17:20:41]line [17:20:41]line [17:20:41]line [17:20:41]line [17:20:41]written 0, free lines is 3337 [17:20:41]MH_Cut [17:20:41]Write to MH i2c: D1 01 00 08 01 01 DB [17:20:41]Write i2c OK [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: D1 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: D1 01 00 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: D1 01 00 08 01 00 DA [17:20:41]Write to MH i2c: 01 00 00 09 01 0A [17:20:41]Write i2c OK [17:20:41]MH_I2C_Read... [17:20:41]Connected sock=11 [17:20:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 A0 25 07 01 88 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 67 47 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 33 41 01 00 35 04 06 00 98 CD 2B F1 0A 68 A7 96 E1 9E 66 0A E1 56 [17:20:41]*** Cut start [17:20:41]*** Partial cut [17:20:41]*** CUTSNS_PIN = 1 [17:20:41]*** CUTSNS_PIN = 0 [17:20:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 56 29 47 00 33 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 33 41 01 00 F4 03 04 00 A4 EC 10 67 B6 04 01 00 00 A8 B8 0D 0F 99 D0 D9 3A [17:20:42]CommunicateWithHost err = 0 [17:20:42]CheckOFDResponse [17:20:42]1017 (14) - 77093643461234 [17:20:42]1041 (16) - 0000000000871843 [17:20:42]1040 (4) - 82227 [17:20:42]1012 (4) - 17.10.2024 10:53 [17:20:42]1206 (1) - 0 [17:20:42]OFD Sender: Remove packet 82227 [17:20:42]ProducePacketName [17:20:42]name=ofd_packets/00082227 [17:20:42]NVStorageDeleteData [17:20:42]*** Brake cut motor [17:20:42]OFD Sender: No OFD packet to send [17:20:42]Read from MH i2c: 01 [17:20:42]MH_I2C_Read... [17:20:42]*** Stop cut motor [17:20:42]*** Cut end [17:20:42]Read from MH i2c: 01 07 00 [17:20:42]MH_I2C_Read... [17:20:42]Read from MH i2c: 01 07 00 09 01 00 00 00 00 00 FF 0F 1F [17:20:42]process_action close_receipt done [17:20:42]requested_data is exist [17:20:42]produce_requested_data [17:20:42]requested_item fm.sn is exist - process it [17:20:42]wFMCommunicate request_size=4 [17:20:42]MH_SAM_APDU [17:20:42]CAPDU: 80 11 00 00 [17:20:42]Write to MH i2c: E2 08 00 0A 01 80 11 00 00 00 00 00 00 85 [17:20:42]Write i2c OK [17:20:42]MH_I2C_Read... [17:20:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:42]Read from MH i2c: E2 [17:20:42]MH_I2C_Read... [17:20:42]Read from MH i2c: E2 17 00 [17:20:42]MH_I2C_Read... [17:20:42]Read from MH i2c: E2 17 00 0A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D7 [17:20:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:20:42]wFMCommunicate OK [17:20:42]requested_item fd.num is exist - process it [17:20:42]SAM_PROTO_GetFieldsCounters [17:20:42]wFMCommunicate request_size=4 [17:20:42]MH_SAM_APDU [17:20:42]CAPDU: 80 13 00 00 [17:20:42]Write to MH i2c: E2 08 00 0B 01 80 13 00 00 00 00 00 00 88 [17:20:42]Write i2c OK [17:20:42]MH_I2C_Read... [17:20:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:20:42]Read from MH i2c: E2 [17:20:42]MH_I2C_Read... [17:20:42]Read from MH i2c: E2 62 00 [17:20:42]MH_I2C_Read... [17:20:42]Read from MH i2c: E2 62 00 0B 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 33 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [17:20:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 33 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:20:42]wFMCommunicate OK [17:20:42]SAM_PROTO_GetFieldsCounters done [17:20:42]requested_item shift.num is exist - process it [17:20:42]requested_item shift.opened is exist - process it [17:20:42]req_shift_opened [17:20:42]FM_GetShiftState [17:20:42]SAM_PROTO_GetShiftState [17:20:42]wFMCommunicate request_size=4 [17:20:42]MH_SAM_APDU [17:20:42]CAPDU: 80 13 01 00 [17:20:42]Write to MH i2c: E2 08 00 0C 01 80 13 01 00 00 00 00 00 8A [17:20:42]Write i2c OK [17:20:42]MH_I2C_Read... [17:20:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:42]Read from MH i2c: E2 [17:20:42]MH_I2C_Read... [17:20:42]Read from MH i2c: E2 0E 00 [17:20:42]MH_I2C_Read... [17:20:42]Read from MH i2c: E2 0E 00 0C 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 92 [17:20:42]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [17:20:42]wFMCommunicate OK [17:20:42]SAM_PROTO_GetShiftState done [17:20:42]FM_GetShiftState done [17:20:42]req_shift_opened done [17:20:42]requested_item shift.open_date is exist - process it [17:20:42]req_shift_open_date [17:20:42]req_shift_open_date done [17:20:42]produce_requested_data done [17:20:42]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82227,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [17:20:42]process_action_free close_receipt [17:20:42]json_value_free [17:20:42]json_value_free done [17:20:42]process_json_proto returns [17:20:42]Send response to host [17:20:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82227,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [17:20:42]free response buf [17:20:42]execute_script done [17:20:42]execute_script returns [17:20:42]free content buf [17:20:42]Sock 8.Close socket [17:20:42]Sock 8.Thread stoped [17:20:47]OFD Sender: No OFD packet to send [17:20:52]OFD Sender: No OFD packet to send [17:20:53]recv_with_timeout no data received [17:20:57]OFD Sender: No OFD packet to send [17:21:02]OFD Sender: No OFD packet to send [17:21:04]recv_with_timeout no data received [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: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:07]OFD Sender: No OFD packet to send [17:22:12]OFD Sender: No OFD packet to send [17:22:17]OFD Sender: No OFD packet to send [17:22:22]OFD Sender: No OFD packet to send [17:22:27]OFD Sender: No OFD packet to send [17:22:32]OFD Sender: No OFD packet to send [17:22:37]OFD Sender: No OFD packet to send [17:22:42]OFD Sender: No OFD packet to send [17:22:47]OFD Sender: No OFD packet to send [17:22:52]OFD Sender: No OFD packet to send [17:22:57]OFD Sender: No OFD packet to send [17:23:02]OFD Sender: No OFD packet to send [17:23:07]OFD Sender: No OFD packet to send [17:23:12]OFD Sender: No OFD packet to send [17:23:17]OFD Sender: No OFD packet to send [17:23:22]OFD Sender: No OFD packet to send [17:23:27]OFD Sender: No OFD packet to send [17:23:32]OFD Sender: No OFD packet to send [17:23:37]OFD Sender: No OFD packet to send [17:23:42]OFD Sender: No OFD packet to send [17:23:47]OFD Sender: No OFD packet to send [17:23:52]OFD Sender: No OFD packet to send [17:23:57]OFD Sender: No OFD packet to send [17:24:02]OFD Sender: No OFD packet to send [17:24:07]OFD Sender: No OFD packet to send [17:24:12]OFD Sender: No OFD packet to send [17:24:17]OFD Sender: No OFD packet to send [17:24:22]OFD Sender: No OFD packet to send [17:24:27]OFD Sender: No OFD packet to send [17:24:32]OFD Sender: No OFD packet to send [17:24:37]OFD Sender: No OFD packet to send [17:24:42]OFD Sender: No OFD packet to send [17:24:47]OFD Sender: No OFD packet to send [17:24:52]OFD Sender: No OFD packet to send [17:24:57]OFD Sender: No OFD packet to send [17:25:02]OFD Sender: No OFD packet to send [17:25:07]OFD Sender: No OFD packet to send [17:25:12]OFD Sender: No OFD packet to send [17:25:17]OFD Sender: No OFD packet to send [17:25:22]OFD Sender: No OFD packet to send [17:25:27]OFD Sender: No OFD packet to send [17:25:32]OFD Sender: No OFD packet to send [17:25:37]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:59]OFD Sender: No OFD packet to send [17:36:04]OFD Sender: No OFD packet to send [17:36:09]OFD Sender: No OFD packet to send [17:36:14]OFD Sender: No OFD packet to send [17:36:19]OFD Sender: No OFD packet to send [17:36:24]OFD Sender: No OFD packet to send [17:36:29]OFD Sender: No OFD packet to send [17:36:34]OFD Sender: No OFD packet to send [17:36:39]OFD Sender: No OFD packet to send [17:36:44]OFD Sender: No OFD packet to send [17:36:49]OFD Sender: No OFD packet to send [17:36:54]OFD Sender: No OFD packet to send [17:36:59]OFD Sender: No OFD packet to send [17:37:04]OFD Sender: No OFD packet to send [17:37:09]OFD Sender: No OFD packet to send [17:37:14]OFD Sender: No OFD packet to send [17:37:19]OFD Sender: No OFD packet to send [17:37:24]OFD Sender: No OFD packet to send [17:37:29]OFD Sender: No OFD packet to send [17:37:34]OFD Sender: No OFD packet to send [17:37:39]OFD Sender: No OFD packet to send [17:37:44]OFD Sender: No OFD packet to send [17:37:49]OFD Sender: No OFD packet to send [17:37:54]OFD Sender: No OFD packet to send [17:37:59]OFD Sender: No OFD packet to send [17:38:04]OFD Sender: No OFD packet to send [17:38:09]OFD Sender: No OFD packet to send [17:38:14]OFD Sender: No OFD packet to send [17:38:19]OFD Sender: No OFD packet to send [17:38:24]OFD Sender: No OFD packet to send [17:38:29]OFD Sender: No OFD packet to send [17:38:34]OFD Sender: No OFD packet to send [17:38:39]OFD Sender: No OFD packet to send [17:38:44]OFD Sender: No OFD packet to send [17:38:49]OFD Sender: No OFD packet to send [17:38:54]OFD Sender: No OFD packet to send [17:38:59]OFD Sender: No OFD packet to send [17:39:04]OFD Sender: No OFD packet to send [17:39:09]OFD Sender: No OFD packet to send [17:39:14]OFD Sender: No OFD packet to send [17:39:19]OFD Sender: No OFD packet to send [17:39:24]OFD Sender: No OFD packet to send [17:39:29]OFD Sender: No OFD packet to send [17:39:34]OFD Sender: No OFD packet to send [17:39:39]OFD Sender: No OFD packet to send [17:39:44]OFD Sender: No OFD packet to send [17:39:49]OFD Sender: No OFD packet to send [17:39:54]OFD Sender: No OFD packet to send [17:39:59]OFD Sender: No OFD packet to send [17:40:04]OFD Sender: No OFD packet to send [17:40:09]OFD Sender: No OFD packet to send [17:40:14]OFD Sender: No OFD packet to send [17:40:19]OFD Sender: No OFD packet to send [17:40:24]OFD Sender: No OFD packet to send [17:40:29]OFD Sender: No OFD packet to send [17:40:34]OFD Sender: No OFD packet to send [17:40:39]OFD Sender: No OFD packet to send [17:40:44]OFD Sender: No OFD packet to send [17:40:49]OFD Sender: No OFD packet to send [17:40:54]OFD Sender: No OFD packet to send [17:40:59]OFD Sender: No OFD packet to send [17:41:04]OFD Sender: No OFD packet to send [17:41:09]OFD Sender: No OFD packet to send [17:41:14]OFD Sender: No OFD packet to send [17:41:19]OFD Sender: No OFD packet to send [17:41:24]OFD Sender: No OFD packet to send [17:41:29]OFD Sender: No OFD packet to send [17:41:34]OFD Sender: No OFD packet to send [17:41:39]OFD Sender: No OFD packet to send [17:41:44]OFD Sender: No OFD packet to send [17:41:49]OFD Sender: No OFD packet to send [17:41:54]OFD Sender: No OFD packet to send [17:41:59]OFD Sender: No OFD packet to send [17:42:04]OFD Sender: No OFD packet to send [17:42:09]OFD Sender: No OFD packet to send [17:42:14]OFD Sender: No OFD packet to send [17:42:19]OFD Sender: No OFD packet to send [17:42:24]OFD Sender: No OFD packet to send [17:42:29]OFD Sender: No OFD packet to send [17:42:34]OFD Sender: No OFD packet to send [17:42:39]OFD Sender: No OFD packet to send [17:42:44]OFD Sender: No OFD packet to send [17:42:49]OFD Sender: No OFD packet to send [17:42:54]OFD Sender: No OFD packet to send [17:42:59]OFD Sender: No OFD packet to send [17:43:04]OFD Sender: No OFD packet to send [17:43:09]OFD Sender: No OFD packet to send [17:43:14]OFD Sender: No OFD packet to send [17:43:19]OFD Sender: No OFD packet to send [17:43:24]OFD Sender: No OFD packet to send [17:43:29]OFD Sender: No OFD packet to send [17:43:34]OFD Sender: No OFD packet to send [17:43:39]OFD Sender: No OFD packet to send [17:43:44]OFD Sender: No OFD packet to send [17:43:49]OFD Sender: No OFD packet to send [17:43:54]OFD Sender: No OFD packet to send [17:43:59]OFD Sender: No OFD packet to send [17:44:04]OFD Sender: No OFD packet to send [17:44:09]OFD Sender: No OFD packet to send [17:44:14]OFD Sender: No OFD packet to send [17:44:19]OFD Sender: No OFD packet to send [17:44:24]OFD Sender: No OFD packet to send [17:44:29]OFD Sender: No OFD packet to send [17:44:34]OFD Sender: No OFD packet to send [17:44:39]OFD Sender: No OFD packet to send [17:44:44]OFD Sender: No OFD packet to send [17:44:49]OFD Sender: No OFD packet to send [17:44:54]OFD Sender: No OFD packet to send [17:44:59]OFD Sender: No OFD packet to send [17:45:04]OFD Sender: No OFD packet to send [17:45:09]OFD Sender: No OFD packet to send [17:45:14]OFD Sender: No OFD packet to send [17:45:19]OFD Sender: No OFD packet to send [17:45:24]OFD Sender: No OFD packet to send [17:45:29]OFD Sender: No OFD packet to send [17:45:34]OFD Sender: No OFD packet to send [17:45:39]OFD Sender: No OFD packet to send [17:45:44]OFD Sender: No OFD packet to send [17:45:49]OFD Sender: No OFD packet to send [17:45:54]OFD Sender: No OFD packet to send [17:45:59]OFD Sender: No OFD packet to send [17:46:04]OFD Sender: No OFD packet to send [17:46:10]OFD Sender: No OFD packet to send [17:46:15]OFD Sender: No OFD packet to send [17:46:20]OFD Sender: No OFD packet to send [17:46:25]OFD Sender: No OFD packet to send [17:46:30]OFD Sender: No OFD packet to send [17:46:35]OFD Sender: No OFD packet to send [17:46:40]OFD Sender: No OFD packet to send [17:46:45]OFD Sender: No OFD packet to send [17:46:50]OFD Sender: No OFD packet to send [17:46:55]OFD Sender: No OFD packet to send [17:47:00]OFD Sender: No OFD packet to send [17:47:05]OFD Sender: No OFD packet to send [17:47:10]OFD Sender: No OFD packet to send [17:47:15]OFD Sender: No OFD packet to send [17:47:20]OFD Sender: No OFD packet to send [17:47:25]OFD Sender: No OFD packet to send [17:47:27]recv_with_timeout no data received [17:47:30]OFD Sender: No OFD packet to send [17:47:35]OFD Sender: No OFD packet to send [17:47:38]accept exits with 9 [17:47:38]New connection [17:47:38]New thread 3067313508 created [17:47:38]Thread 3067456868 joined [17:47:38]Waiting for new connection... [17:47:38] Sock 9.Parse request [17:47:38]Sock 9.Check first char [17:47:38]Sock 9.First char is OK [17:47:38]request: POST /json_proto HTTP/1.0 [17:47:38]Method: POST [17:47:38]URL: /json_proto [17:47:38]Method is POST - this is cgi request [17:47:38]url: /json_proto [17:47:38]query_string will be loaded in cgi processing [17:47:38]execute_cgi json_proto POST (null) [17:47:38]execute_cgi path=json_proto method=POST [17:47:38]POST find Content-Length [17:47:38]Host: 172.17.44.67:8080 [17:47:38]Content-Length: 677 [17:47:38]Content-Type: application/json [17:47:38] [17:47:38]POST finish read [17:47:38]Found Content-Length = 677 [17:47:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 2.700, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:38]execute_script... [17:47:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 2.700, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:38]POST & json_proto [17:47:38]process_json_proto [17:47:38]json parsed OK: [17:47:38]protocol is kg_v1.0 [17:47:38]action value=close_receipt [17:47:38]process_action close_receipt [17:47:38]cmd_close_receipt [17:47:38]MH_GetDate [17:47:38]Write to MH i2c: F0 00 00 0D 01 FD [17:47:38]Write i2c OK [17:47:38]MH_I2C_Read... [17:47:38]Read from MH i2c: F0 [17:47:38]MH_I2C_Read... [17:47:38]Read from MH i2c: F0 09 00 [17:47:38]MH_I2C_Read... [17:47:38]Read from MH i2c: F0 09 00 0D 01 00 BA 4D 11 67 F1 C7 6B 64 0C [17:47:38]GetLastDocTimeStamp 1729185639 [17:47:38]current date 1729187258 [17:47:38]FM_GetShiftState [17:47:38]SAM_PROTO_GetShiftState [17:47:38]wFMCommunicate request_size=4 [17:47:38]MH_SAM_APDU [17:47:38]CAPDU: 80 13 01 00 [17:47:38]Write to MH i2c: E2 08 00 0E 01 80 13 01 00 00 00 00 00 8C [17:47:38]Write i2c OK [17:47:38]MH_I2C_Read... [17:47:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:38]Read from MH i2c: E2 [17:47:38]MH_I2C_Read... [17:47:38]Read from MH i2c: E2 0E 00 [17:47:38]MH_I2C_Read... [17:47:38]Read from MH i2c: E2 0E 00 0E 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 94 [17:47:38]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [17:47:38]wFMCommunicate OK [17:47:38]SAM_PROTO_GetShiftState done [17:47:38]FM_GetShiftState done [17:47:38]opened in 1729125927 [17:47:38]opened+sec_in_day 1729212327 [17:47:38]quantity*price = 20034 [17:47:38]sum+1 = 20035 [17:47:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 154 17.10.2024 17:47 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82228 ФПД: 85356133674282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T174738&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82228&fm=85356133674282&tin=02508201610067®Number=0000000000091680&sum=20000 [17:47:39]StoreToDocumentArchive [17:47:39]shift 525 fd 82228 [17:47:39]save to /storage/0525/doc_00082228 [17:47:39]save last doc name /storage/0525/doc_00082228 to /storage/kkm_last_doc_name [17:47:39]save OK [17:47:39]Clear old archive folders... [17:47:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:47:39]tlvbuf is 01052270 [17:47:39]SAM_PROTO_ClearQueue [17:47:39]wFMCommunicate request_size=4 [17:47:39]MH_SAM_APDU [17:47:39]CAPDU: 80 09 00 00 [17:47:39]Write to MH i2c: E2 08 00 1B 01 80 09 00 00 00 00 00 00 8E [17:47:39]Write i2c OK [17:47:39]MH_I2C_Read... [17:47:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:39]Read from MH i2c: E2 [17:47:39]MH_I2C_Read... [17:47:39]Read from MH i2c: E2 03 00 [17:47:39]MH_I2C_Read... [17:47:39]Read from MH i2c: E2 03 00 1B 01 00 90 00 90 [17:47:39]RAPDU: 90 00 [17:47:39]wFMCommunicate OK [17:47:39]SAM_PROTO_ClearQueue done [17:47:39]KKMCreateOFDPacket [17:47:39]OFDProtocolAddRootSTLVToBuf [17:47:39]FM_MakeSignedData [17:47:39]FM_MakeSignedData [17:47:39]SAM_PROTO_SignData [17:47:39]wFMCommunicate request_size=4 [17:47:39]MH_SAM_APDU [17:47:39]CAPDU: 80 0D 01 02 [17:47:39]Write to MH i2c: E2 08 00 1C 01 80 0D 01 02 00 00 00 00 96 [17:47:39]Write i2c OK [17:47:39]MH_I2C_Read... [17:47:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:39]Read from MH i2c: E2 [17:47:39]MH_I2C_Read... [17:47:39]Read from MH i2c: E2 03 00 [17:47:39]MH_I2C_Read... [17:47:39]Read from MH i2c: E2 03 00 1C 01 00 90 00 91 [17:47:39]RAPDU: 90 00 [17:47:39]wFMCommunicate OK [17:47:39]wFMCommunicate request_size=255 [17:47:39]MH_SAM_APDU [17:47:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 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 4F 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 9A 00 00 00 F4 03 04 00 BA 4D 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 34 41 01 00 35 04 06 00 4D [17:47:39]Write to MH i2c: E2 02 01 1D 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 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 4F 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 9A 00 00 00 F4 03 04 00 BA 4D 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 34 41 01 00 35 04 06 00 4D 00 00 AF [17:47:39]Write i2c OK [17:47:39]MH_I2C_Read... [17:47:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:40]Read from MH i2c: E2 [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: E2 03 00 [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: E2 03 00 1D 01 00 90 00 92 [17:47:40]RAPDU: 90 00 [17:47:40]wFMCommunicate OK [17:47:40]wFMCommunicate request_size=10 [17:47:40]MH_SAM_APDU [17:47:40]CAPDU: 80 0D 02 02 05 A1 86 06 ED 2A [17:47:40]Write to MH i2c: E2 0D 00 1E 01 80 0D 02 02 05 00 A1 86 06 ED 2A 00 00 E7 [17:47:40]Write i2c OK [17:47:40]MH_I2C_Read... [17:47:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:40]Read from MH i2c: E2 [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: E2 03 00 [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: E2 03 00 1E 01 00 90 00 93 [17:47:40]RAPDU: 90 00 [17:47:40]wFMCommunicate OK [17:47:40]wFMCommunicate request_size=4 [17:47:40]MH_SAM_APDU [17:47:40]CAPDU: 80 0D 03 02 [17:47:40]Write to MH i2c: E2 08 00 1F 01 80 0D 03 02 00 00 00 00 9B [17:47:40]Write i2c OK [17:47:40]MH_I2C_Read... [17:47:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:40]OFD Sender: No OFD packet to send [17:47:40]Read from MH i2c: E2 [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: E2 0B 00 [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: E2 0B 00 1F 01 00 AE 6B 3A B7 29 B4 90 BC 90 00 CF [17:47:40]RAPDU: AE 6B 3A B7 29 B4 90 BC 90 00 [17:47:40]wFMCommunicate OK [17:47:40]SAM_PROTO_SignData done [17:47:40]FM_MakeSignedData done [17:47:40]CreateOFDProtocolMessage [17:47:40]wFMCommunicate request_size=4 [17:47:40]MH_SAM_APDU [17:47:40]CAPDU: 80 11 00 00 [17:47:40]Write to MH i2c: E2 08 00 20 01 80 11 00 00 00 00 00 00 9B [17:47:40]Write i2c OK [17:47:40]MH_I2C_Read... [17:47:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:40]Read from MH i2c: E2 [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: E2 17 00 [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: E2 17 00 20 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 ED [17:47:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:47:40]wFMCommunicate OK [17:47:40]CreateOFDProtocolMessage done [17:47:40]OFDSenderStorePacket 82228 [17:47:40]StoreOFDPacket docnum=82228 [17:47:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 C0 F1 07 01 EF 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 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 4F 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 9A 00 00 00 F4 03 04 00 BA 4D 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 34 41 01 00 35 04 06 00 4D A1 86 06 ED 2A AE 6B 3A B7 29 B4 90 BC [17:47:40]CheckFolder [17:47:40]dirname=/storage/ofd_packets [17:47:40]CheckFolder done [17:47:40]ProducePacketName [17:47:40]name=ofd_packets/00082228 [17:47:40]NVStorageSaveData ofd_packets/00082228 [17:47:40]File name is /storage/ofd_packets/00082228 [17:47:40]Write 301 bytes [17:47:40]NVStorageSaveData done [17:47:40]OFDSenderStorePacket done [17:47:40]KKMCreateOFDPacket done [17:47:40]NVStorageSaveData kkm_last_timestamp [17:47:40]File name is /storage/kkm_last_timestamp [17:47:40]Write 4 bytes [17:47:40]NVStorageSaveData done [17:47:40]ExternCall_PrintAddStr [17:47:40]wPrintStart [17:47:40]Write to MH i2c: 01 00 00 21 01 22 [17:47:40]Write i2c OK [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: 01 [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: 01 07 00 [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: 01 07 00 21 01 00 00 00 00 00 FF 0F 37 [17:47:40]RasterBufferAndPrint [17:47:40]line Счет N : (1)918732 [17:47:40]line ИНН: 02508201610067 [17:47:40]line Контрольно-Кассовый Чек [17:47:40]line ПРОДАЖА [17:47:40]line ТРК (МРК, ГНК) : 12 [17:47:40]line Товар: 2710124500 [17:47:40]line Аи-95-К-5 [17:47:40]line 2.700 * 74.20 [17:47:40]line = 200.34 [17:47:40]line НДС 12% НСП 1% [17:47:40]line > о реализуемом товаре [17:47:40]line ОКРУГЛЕНИЕ: -0.34 [17:47:40]line ИТОГО: 200.00 [17:47:40]line Внесено: 200.00 [17:47:40]line СДАЧА: 0.00 [17:47:40]line НСП 1% : 1.77 [17:47:40]line НДС 12% : 21.27 [17:47:40]line Наличными: 200.00 [17:47:40]line Безнал.: 0.00 [17:47:40]line Место: АЗС № 114 "Партнер Нефть" [17:47:40]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [17:47:40]line СНО: Общий режим [17:47:40]line Чек 154 17.10.2024 17:47 [17:47:40]line Смена: 525 ФФД: 1.0 [17:47:40]line ЗНМ: 0300000086 [17:47:40]line РНМ: 0000000000091680 [17:47:40]line Версия ККМ: 001 [17:47:40]line ФМ: 0000000000871843 [17:47:40]line ФД: 82228 [17:47:40]line ФПД: 85356133674282 [17:47:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T174738&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82228&fm=85356133674282&tin=02508201610067®Number=0000000000091680&sum=20000 [17:47:40]OFD Sender: Processing packet 82228 [packets to send 254, broken 253] [17:47:40]ProducePacketName [17:47:40]name=ofd_packets/00082228 [17:47:40]OFD Sender: To server: pG, [17:47:40]CommunicateWithHost lk.salyk.kg:30040 [17:47:40]ConnectInit lk.salyk.kg [17:47:40]written 0, free lines is 4095 [17:47:41]Write to MH i2c: 01 00 00 4C 01 4D [17:47:41]Write i2c OK [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: 01 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: 01 07 00 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: 01 07 00 4C 01 00 00 00 00 00 D0 0C 30 [17:47:41]RasterBufferAndPrint [17:47:41]line [17:47:41]line [17:47:41]line [17:47:41]line [17:47:41]line [17:47:41]written 0, free lines is 3284 [17:47:41]MH_Cut [17:47:41]Write to MH i2c: D1 01 00 53 01 01 26 [17:47:41]Write i2c OK [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: D1 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: D1 01 00 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: D1 01 00 53 01 00 25 [17:47:41]Write to MH i2c: 01 00 00 54 01 55 [17:47:41]Write i2c OK [17:47:41]MH_I2C_Read... [17:47:41]*** Cut start [17:47:41]*** Partial cut [17:47:41]*** CUTSNS_PIN = 1 [17:47:41]*** CUTSNS_PIN = 0 [17:47:42]*** Brake cut motor [17:47:42]Connected sock=11 [17:47:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 C0 F1 07 01 EF 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 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 4F 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 9A 00 00 00 F4 03 04 00 BA 4D 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 34 41 01 00 35 04 06 00 4D A1 86 06 ED 2A AE 6B 3A B7 29 B4 90 BC [17:47:42]Read from MH i2c: 01 [17:47:42]MH_I2C_Read... [17:47:42]*** Stop cut motor [17:47:42]*** Cut end [17:47:42]Read from MH i2c: 01 07 00 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: 01 07 00 54 01 00 00 00 00 00 FF 0F 6A [17:47:42]process_action close_receipt done [17:47:42]requested_data is exist [17:47:42]produce_requested_data [17:47:42]requested_item fm.sn is exist - process it [17:47:42]wFMCommunicate request_size=4 [17:47:42]MH_SAM_APDU [17:47:42]CAPDU: 80 11 00 00 [17:47:42]Write to MH i2c: E2 08 00 55 01 80 11 00 00 00 00 00 00 D0 [17:47:42]Write i2c OK [17:47:42]MH_I2C_Read... [17:47:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:42]Read from MH i2c: E2 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 17 00 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 17 00 55 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 22 [17:47:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:47:42]wFMCommunicate OK [17:47:42]requested_item fd.num is exist - process it [17:47:42]SAM_PROTO_GetFieldsCounters [17:47:42]wFMCommunicate request_size=4 [17:47:42]MH_SAM_APDU [17:47:42]CAPDU: 80 13 00 00 [17:47:42]Write to MH i2c: E2 08 00 56 01 80 13 00 00 00 00 00 00 D3 [17:47:42]Write i2c OK [17:47:42]MH_I2C_Read... [17:47:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:42]Read from MH i2c: E2 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 62 00 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 62 00 56 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 34 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [17:47:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 34 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:47:42]wFMCommunicate OK [17:47:42]SAM_PROTO_GetFieldsCounters done [17:47:42]requested_item shift.num is exist - process it [17:47:42]requested_item shift.opened is exist - process it [17:47:42]req_shift_opened [17:47:42]FM_GetShiftState [17:47:42]SAM_PROTO_GetShiftState [17:47:42]wFMCommunicate request_size=4 [17:47:42]MH_SAM_APDU [17:47:42]CAPDU: 80 13 01 00 [17:47:42]Write to MH i2c: E2 08 00 57 01 80 13 01 00 00 00 00 00 D5 [17:47:42]Write i2c OK [17:47:42]MH_I2C_Read... [17:47:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:42]Read from MH i2c: E2 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 0E 00 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 0E 00 57 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 DD [17:47:42]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [17:47:42]wFMCommunicate OK [17:47:42]SAM_PROTO_GetShiftState done [17:47:42]FM_GetShiftState done [17:47:42]req_shift_opened done [17:47:42]requested_item shift.open_date is exist - process it [17:47:42]req_shift_open_date [17:47:42]req_shift_open_date done [17:47:42]produce_requested_data done [17:47:42]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82228,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [17:47:42]process_action_free close_receipt [17:47:42]json_value_free [17:47:42]json_value_free done [17:47:42]process_json_proto returns [17:47:42]Send response to host [17:47:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82228,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [17:47:42]free response buf [17:47:42]execute_script done [17:47:42]execute_script returns [17:47:42]free content buf [17:47:42]Sock 9.Close socket [17:47:42]Sock 9.Thread stoped [17:47:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 80 11 47 00 EC 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 34 41 01 00 F4 03 04 00 F9 F2 10 67 B6 04 01 00 00 A1 0B B7 04 5F B5 12 CA [17:47:43]CommunicateWithHost err = 0 [17:47:43]CheckOFDResponse [17:47:43]1017 (14) - 77093643461234 [17:47:43]1041 (16) - 0000000000871843 [17:47:43]1040 (4) - 82228 [17:47:43]1012 (4) - 17.10.2024 11:20 [17:47:43]1206 (1) - 0 [17:47:43]OFD Sender: Remove packet 82228 [17:47:43]ProducePacketName [17:47:43]name=ofd_packets/00082228 [17:47:43]NVStorageDeleteData [17:47:43]OFD Sender: No OFD packet to send [17:47:45]recv_with_timeout no data received [17:47:48]OFD Sender: No OFD packet to send [17:47:53]OFD Sender: No OFD packet to send [17:47:57]recv_with_timeout no data received [17:47:58]OFD Sender: No OFD packet to send [17:48:03]OFD Sender: No OFD packet to send [17:48:07]recv_with_timeout no data received [17:48:08]OFD Sender: No OFD packet to send [17:48:13]OFD Sender: No OFD packet to send [17:48:18]OFD Sender: No OFD packet to send [17:48:23]OFD Sender: No OFD packet to send [17:48:28]OFD Sender: No OFD packet to send [17:48:33]OFD Sender: No OFD packet to send [17:48:38]OFD Sender: No OFD packet to send [17:48:43]OFD Sender: No OFD packet to send [17:48:48]OFD Sender: No OFD packet to send [17:48:53]OFD Sender: No OFD packet to send [17:48:58]OFD Sender: No OFD packet to send [17:49:03]OFD Sender: No OFD packet to send [17:49:08]OFD Sender: No OFD packet to send [17:49:13]OFD Sender: No OFD packet to send [17:49:18]OFD Sender: No OFD packet to send [17:49:23]OFD Sender: No OFD packet to send [17:49:28]OFD Sender: No OFD packet to send [17:49:33]OFD Sender: No OFD packet to send [17:49:38]OFD Sender: No OFD packet to send [17:49:43]OFD Sender: No OFD packet to send [17:49:48]OFD Sender: No OFD packet to send [17:49:53]OFD Sender: No OFD packet to send [17:49:58]OFD Sender: No OFD packet to send [17:50:03]OFD Sender: No OFD packet to send [17:50:08]OFD Sender: No OFD packet to send [17:50:13]OFD Sender: No OFD packet to send [17:50:18]OFD Sender: No OFD packet to send [17:50:23]OFD Sender: No OFD packet to send [17:50:28]OFD Sender: No OFD packet to send [17:50:33]OFD Sender: No OFD packet to send [17:50:38]OFD Sender: No OFD packet to send [17:50:43]OFD Sender: No OFD packet to send [17:50:48]OFD Sender: No OFD packet to send [17:50:53]OFD Sender: No OFD packet to send [17:50:58]OFD Sender: No OFD packet to send [17:51:03]OFD Sender: No OFD packet to send [17:51:09]OFD Sender: No OFD packet to send [17:51:14]OFD Sender: No OFD packet to send [17:51:19]OFD Sender: No OFD packet to send [17:51:24]OFD Sender: No OFD packet to send [17:51:29]OFD Sender: No OFD packet to send [17:51:34]OFD Sender: No OFD packet to send [17:51:39]OFD Sender: No OFD packet to send [17:51:44]OFD Sender: No OFD packet to send [17:51:49]OFD Sender: No OFD packet to send [17:51:54]OFD Sender: No OFD packet to send [17:51:59]OFD Sender: No OFD packet to send [17:52:04]OFD Sender: No OFD packet to send [17:52:09]OFD Sender: No OFD packet to send [17:52:14]OFD Sender: No OFD packet to send [17:52:19]OFD Sender: No OFD packet to send [17:52:24]OFD Sender: No OFD packet to send [17:52:29]OFD Sender: No OFD packet to send [17:52:34]OFD Sender: No OFD packet to send [17:52:34]recv_with_timeout no data received [17:52:39]OFD Sender: No OFD packet to send [17:52:44]OFD Sender: No OFD packet to send [17:52:49]OFD Sender: No OFD packet to send [17:52:54]OFD Sender: No OFD packet to send [17:52:59]OFD Sender: No OFD packet to send [17:53:04]OFD Sender: No OFD packet to send [17:53:09]OFD Sender: No OFD packet to send [17:53:14]OFD Sender: No OFD packet to send [17:53:19]OFD Sender: No OFD packet to send [17:53:24]OFD Sender: No OFD packet to send [17:53:29]OFD Sender: No OFD packet to send [17:53:34]OFD Sender: No OFD packet to send [17:53:39]OFD Sender: No OFD packet to send [17:53:44]OFD Sender: No OFD packet to send [17:53:49]OFD Sender: No OFD packet to send [17:53:54]OFD Sender: No OFD packet to send [17:53:59]OFD Sender: No OFD packet to send [17:54:04]OFD Sender: No OFD packet to send [17:54:09]OFD Sender: No OFD packet to send [17:54:14]OFD Sender: No OFD packet to send [17:54:19]OFD Sender: No OFD packet to send [17:54:24]OFD Sender: No OFD packet to send [17:54:29]OFD Sender: No OFD packet to send [17:54:34]OFD Sender: No OFD packet to send [17:54:39]OFD Sender: No OFD packet to send [17:54:44]OFD Sender: No OFD packet to send [17:54:49]OFD Sender: No OFD packet to send [17:54:54]OFD Sender: No OFD packet to send [17:54:59]OFD Sender: No OFD packet to send [17:55:04]OFD Sender: No OFD packet to send [17:55:09]OFD Sender: No OFD packet to send [17:55:14]OFD Sender: No OFD packet to send [17:55:19]OFD Sender: No OFD packet to send [17:55:24]OFD Sender: No OFD packet to send [17:55:29]OFD Sender: No OFD packet to send [17:55:34]OFD Sender: No OFD packet to send [17:55:39]OFD Sender: No OFD packet to send [17:55:44]OFD Sender: No OFD packet to send [17:55:49]OFD Sender: No OFD packet to send [17:55:54]OFD Sender: No OFD packet to send [17:55:59]OFD Sender: No OFD packet to send [17:56:04]OFD Sender: No OFD packet to send [17:56:09]OFD Sender: No OFD packet to send [17:56:14]OFD Sender: No OFD packet to send [17:56:19]OFD Sender: No OFD packet to send [17:56:24]OFD Sender: No OFD packet to send [17:56:29]OFD Sender: No OFD packet to send [17:56:34]OFD Sender: No OFD packet to send [17:56:39]OFD Sender: No OFD packet to send [17:56:44]OFD Sender: No OFD packet to send [17:56:49]OFD Sender: No OFD packet to send [17:56:54]OFD Sender: No OFD packet to send [17:56:59]OFD Sender: No OFD packet to send [17:57:04]OFD Sender: No OFD packet to send [17:57:09]OFD Sender: No OFD packet to send [17:57:14]OFD Sender: No OFD packet to send [17:57:19]OFD Sender: No OFD packet to send [17:57:24]OFD Sender: No OFD packet to send [17:57:29]OFD Sender: No OFD packet to send [17:57:34]OFD Sender: No OFD packet to send [17:57:39]OFD Sender: No OFD packet to send [17:57:44]OFD Sender: No OFD packet to send [17:57:49]OFD Sender: No OFD packet to send [17:57:54]OFD Sender: No OFD packet to send [17:57:59]OFD Sender: No OFD packet to send [17:58:04]OFD Sender: No OFD packet to send [17:58:09]OFD Sender: No OFD packet to send [17:58:14]OFD Sender: No OFD packet to send [17:58:19]OFD Sender: No OFD packet to send [17:58:24]OFD Sender: No OFD packet to send [17:58:29]OFD Sender: No OFD packet to send [17:58:34]OFD Sender: No OFD packet to send [17:58:39]OFD Sender: No OFD packet to send [17:58:44]OFD Sender: No OFD packet to send [17:58:49]OFD Sender: No OFD packet to send [17:58:54]OFD Sender: No OFD packet to send [17:58:59]OFD Sender: No OFD packet to send [17:59:04]OFD Sender: No OFD packet to send [17:59:05]accept exits with 8 [17:59:05]New connection [17:59:05]New thread 3067456868 created [17:59:05]Thread 3067313508 joined [17:59:05]Waiting for new connection... [17:59:05] Sock 8.Parse request [17:59:05]Sock 8.Check first char [17:59:05]Sock 8.First char is OK [17:59:05]request: POST /json_proto HTTP/1.0 [17:59:05]Method: POST [17:59:05]URL: /json_proto [17:59:05]Method is POST - this is cgi request [17:59:05]url: /json_proto [17:59:05]query_string will be loaded in cgi processing [17:59:05]execute_cgi json_proto POST (null) [17:59:05]execute_cgi path=json_proto method=POST [17:59:05]POST find Content-Length [17:59:05]Host: 172.17.44.67:8080 [17:59:05]Content-Length: 621 [17:59:05]Content-Type: application/json [17:59:05] [17:59:05]POST finish read [17:59:05]Found Content-Length = 621 [17:59:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10590", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:05]execute_script... [17:59:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10590", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:05]POST & json_proto [17:59:05]process_json_proto [17:59:05]json parsed OK: [17:59:05]protocol is kg_v1.0 [17:59:05]action value=close_receipt [17:59:05]process_action close_receipt [17:59:05]cmd_close_receipt [17:59:05]MH_GetDate [17:59:05]Write to MH i2c: F0 00 00 58 01 48 [17:59:05]Write i2c OK [17:59:05]MH_I2C_Read... [17:59:05]Read from MH i2c: F0 [17:59:05]MH_I2C_Read... [17:59:05]Read from MH i2c: F0 09 00 [17:59:05]MH_I2C_Read... [17:59:05]Read from MH i2c: F0 09 00 58 01 00 6A 50 11 67 F1 C7 6B 64 0A [17:59:05]GetLastDocTimeStamp 1729187258 [17:59:05]current date 1729187946 [17:59:05]FM_GetShiftState [17:59:05]SAM_PROTO_GetShiftState [17:59:05]wFMCommunicate request_size=4 [17:59:05]MH_SAM_APDU [17:59:05]CAPDU: 80 13 01 00 [17:59:05]Write to MH i2c: E2 08 00 59 01 80 13 01 00 00 00 00 00 D7 [17:59:05]Write i2c OK [17:59:05]MH_I2C_Read... [17:59:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:05]Read from MH i2c: E2 [17:59:05]MH_I2C_Read... [17:59:05]Read from MH i2c: E2 0E 00 [17:59:05]MH_I2C_Read... [17:59:05]Read from MH i2c: E2 0E 00 59 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 DF [17:59:05]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [17:59:05]wFMCommunicate OK [17:59:05]SAM_PROTO_GetShiftState done [17:59:05]FM_GetShiftState done [17:59:05]opened in 1729125927 [17:59:05]opened+sec_in_day 1729212327 [17:59:05]quantity*price = 13800 [17:59:05]sum+1 = 13801 [17:59:05]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 156 17.10.2024 18:05 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82230 ФПД: 132452696945882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T180547&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82230&fm=132452696945882&tin=02508201610067®Number=0000000000091680&sum=100000 [18:05:48]StoreToDocumentArchive [18:05:48]shift 525 fd 82230 [18:05:48]save to /storage/0525/doc_00082230 [18:05:48]save last doc name /storage/0525/doc_00082230 to /storage/kkm_last_doc_name [18:05:48]save OK [18:05:48]Clear old archive folders... [18:05:48]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:05:48]tlvbuf is 01C33BF0 [18:05:48]SAM_PROTO_ClearQueue [18:05:48]wFMCommunicate request_size=4 [18:05:48]MH_SAM_APDU [18:05:48]CAPDU: 80 09 00 00 [18:05:48]Write to MH i2c: E2 08 00 38 00 80 09 00 00 00 00 00 00 AA [18:05:48]Write i2c OK [18:05:48]MH_I2C_Read... [18:05:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:05:48]Read from MH i2c: E2 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 03 00 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 03 00 38 00 00 90 00 AC [18:05:48]RAPDU: 90 00 [18:05:48]wFMCommunicate OK [18:05:48]SAM_PROTO_ClearQueue done [18:05:48]KKMCreateOFDPacket [18:05:48]OFDProtocolAddRootSTLVToBuf [18:05:48]FM_MakeSignedData [18:05:48]FM_MakeSignedData [18:05:48]SAM_PROTO_SignData [18:05:48]wFMCommunicate request_size=4 [18:05:48]MH_SAM_APDU [18:05:48]CAPDU: 80 0D 01 02 [18:05:48]Write to MH i2c: E2 08 00 39 00 80 0D 01 02 00 00 00 00 B2 [18:05:48]Write i2c OK [18:05:48]MH_I2C_Read... [18:05:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:05:48]Read from MH i2c: E2 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 03 00 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 03 00 39 00 00 90 00 AD [18:05:48]RAPDU: 90 00 [18:05:48]wFMCommunicate OK [18:05:48]wFMCommunicate request_size=255 [18:05:48]MH_SAM_APDU [18:05:48]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 FB 51 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 36 41 01 [18:05:48]Write to MH i2c: E2 02 01 3A 00 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 FB 51 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 36 41 01 00 00 B0 [18:05:48]Write i2c OK [18:05:48]MH_I2C_Read... [18:05:48]OFD Sender: No OFD packet to send [18:05:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:48]Read from MH i2c: E2 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 03 00 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 03 00 3A 00 00 90 00 AE [18:05:48]RAPDU: 90 00 [18:05:48]wFMCommunicate OK [18:05:48]wFMCommunicate request_size=16 [18:05:48]MH_SAM_APDU [18:05:48]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 78 77 0B F3 74 DA [18:05:48]Write to MH i2c: E2 13 00 3B 00 80 0D 02 02 0B 00 00 35 04 06 00 78 77 0B F3 74 DA 00 00 45 [18:05:48]Write i2c OK [18:05:48]MH_I2C_Read... [18:05:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:48]Read from MH i2c: E2 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 03 00 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 03 00 3B 00 00 90 00 AF [18:05:48]RAPDU: 90 00 [18:05:48]wFMCommunicate OK [18:05:48]wFMCommunicate request_size=4 [18:05:48]MH_SAM_APDU [18:05:48]CAPDU: 80 0D 03 02 [18:05:48]Write to MH i2c: E2 08 00 3C 00 80 0D 03 02 00 00 00 00 B7 [18:05:48]Write i2c OK [18:05:48]MH_I2C_Read... [18:05:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:05:48]Read from MH i2c: E2 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 0B 00 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 0B 00 3C 00 00 DF B1 66 C4 13 44 92 6D 90 00 C8 [18:05:48]RAPDU: DF B1 66 C4 13 44 92 6D 90 00 [18:05:48]wFMCommunicate OK [18:05:48]SAM_PROTO_SignData done [18:05:48]FM_MakeSignedData done [18:05:48]CreateOFDProtocolMessage [18:05:48]wFMCommunicate request_size=4 [18:05:48]MH_SAM_APDU [18:05:48]CAPDU: 80 11 00 00 [18:05:48]Write to MH i2c: E2 08 00 3D 00 80 11 00 00 00 00 00 00 B7 [18:05:48]Write i2c OK [18:05:48]MH_I2C_Read... [18:05:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:48]Read from MH i2c: E2 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 17 00 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 17 00 3D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 09 [18:05:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:05:48]wFMCommunicate OK [18:05:48]CreateOFDProtocolMessage done [18:05:48]OFDSenderStorePacket 82230 [18:05:48]StoreOFDPacket docnum=82230 [18:05:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 DD D2 0D 01 F9 D3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 FB 51 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 36 41 01 00 35 04 06 00 78 77 0B F3 74 DA DF B1 66 C4 13 44 92 6D [18:05:48]CheckFolder [18:05:48]dirname=/storage/ofd_packets [18:05:48]CheckFolder done [18:05:48]ProducePacketName [18:05:48]name=ofd_packets/00082230 [18:05:48]NVStorageSaveData ofd_packets/00082230 [18:05:48]File name is /storage/ofd_packets/00082230 [18:05:48]Write 307 bytes [18:05:48]NVStorageSaveData done [18:05:48]OFDSenderStorePacket done [18:05:48]KKMCreateOFDPacket done [18:05:48]NVStorageSaveData kkm_last_timestamp [18:05:48]File name is /storage/kkm_last_timestamp [18:05:48]Write 4 bytes [18:05:48]NVStorageSaveData done [18:05:48]ExternCall_PrintAddStr [18:05:48]wPrintStart [18:05:48]Write to MH i2c: 01 00 00 3E 00 3E [18:05:48]Write i2c OK [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: 01 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: 01 07 00 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: 01 07 00 3E 00 00 00 00 00 00 FF 0F 53 [18:05:48]RasterBufferAndPrint [18:05:48]line Счет N : (1)918733 [18:05:48]line ИНН: 02508201610067 [18:05:48]line Контрольно-Кассовый Чек [18:05:48]line ПРОДАЖА [18:05:48]line ТРК (МРК, ГНК) : 21 [18:05:48]line Товар: 2710194800 [18:05:48]line D-Energy ДТ-К-2 [18:05:48]line 12.960 * 77.20 [18:05:48]line = 1000.51 [18:05:48]line НДС 12% НСП 1% [18:05:48]line > о реализуемом товаре [18:05:48]line ОКРУГЛЕНИЕ: -0.51 [18:05:48]line ИТОГО: 1000.00 [18:05:48]line Внесено: 1000.00 [18:05:48]line СДАЧА: 0.00 [18:05:48]line НСП 1% : 8.85 [18:05:48]line НДС 12% : 106.25 [18:05:48]line Наличными: 1000.00 [18:05:48]line Безнал.: 0.00 [18:05:48]line Место: АЗС № 114 "Партнер Нефть" [18:05:48]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [18:05:48]line СНО: Общий режим [18:05:48]line Чек 156 17.10.2024 18:05 [18:05:48]line Смена: 525 ФФД: 1.0 [18:05:48]line ЗНМ: 0300000086 [18:05:48]line РНМ: 0000000000091680 [18:05:48]line Версия ККМ: 001 [18:05:48]line ФМ: 0000000000871843 [18:05:48]line ФД: 82230 [18:05:48]line ФПД: 132452696945882 [18:05:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T180547&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82230&fm=132452696945882&tin=02508201610067®Number=0000000000091680&sum=100000 [18:05:48]written 0, free lines is 4095 [18:05:48]OFD Sender: Processing packet 82230 [packets to send 254, broken 253] [18:05:48]ProducePacketName [18:05:48]name=ofd_packets/00082230 [18:05:48]OFD Sender: To server: pG, [18:05:48]CommunicateWithHost lk.salyk.kg:30040 [18:05:48]ConnectInit lk.salyk.kg [18:05:49]Write to MH i2c: 01 00 00 69 00 69 [18:05:49]Write i2c OK [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: 01 [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: 01 07 00 [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: 01 07 00 69 00 00 00 00 00 00 EC 0C 68 [18:05:49]RasterBufferAndPrint [18:05:49]line [18:05:49]line [18:05:49]line [18:05:49]line [18:05:49]line [18:05:49]written 0, free lines is 3315 [18:05:49]MH_Cut [18:05:49]Write to MH i2c: D1 01 00 70 00 01 42 [18:05:49]Write i2c OK [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: D1 [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: D1 01 00 [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: D1 01 00 70 00 00 41 [18:05:49]Write to MH i2c: 01 00 00 71 00 71 [18:05:49]Write i2c OK [18:05:49]MH_I2C_Read... [18:05:49]Connected sock=11 [18:05:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 DD D2 0D 01 F9 D3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 FB 51 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 36 41 01 00 35 04 06 00 78 77 0B F3 74 DA DF B1 66 C4 13 44 92 6D [18:05:50]*** Cut start [18:05:50]*** Partial cut [18:05:50]*** CUTSNS_PIN = 1 [18:05:50]*** CUTSNS_PIN = 0 [18:05:50]*** Brake cut motor [18:05:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 AB 53 47 00 8E 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 36 41 01 00 F4 03 04 00 38 F7 10 67 B6 04 01 00 00 F4 AD CB 07 43 6A DF 54 [18:05:50]CommunicateWithHost err = 0 [18:05:50]CheckOFDResponse [18:05:50]1017 (14) - 77093643461234 [18:05:50]1041 (16) - 0000000000871843 [18:05:50]1040 (4) - 82230 [18:05:50]1012 (4) - 17.10.2024 11:38 [18:05:50]1206 (1) - 0 [18:05:50]OFD Sender: Remove packet 82230 [18:05:50]ProducePacketName [18:05:50]name=ofd_packets/00082230 [18:05:50]NVStorageDeleteData [18:05:50]Read from MH i2c: 01 [18:05:50]MH_I2C_Read... [18:05:50]*** Stop cut motor [18:05:50]*** Cut end [18:05:50]Read from MH i2c: 01 07 00 [18:05:50]MH_I2C_Read... [18:05:50]Read from MH i2c: 01 07 00 71 00 00 00 00 00 00 FF 0F 86 [18:05:50]process_action close_receipt done [18:05:50]requested_data is exist [18:05:50]produce_requested_data [18:05:50]requested_item fm.sn is exist - process it [18:05:50]wFMCommunicate request_size=4 [18:05:50]MH_SAM_APDU [18:05:50]CAPDU: 80 11 00 00 [18:05:50]Write to MH i2c: E2 08 00 72 00 80 11 00 00 00 00 00 00 EC [18:05:50]Write i2c OK [18:05:50]MH_I2C_Read... [18:05:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:50]Read from MH i2c: E2 [18:05:50]MH_I2C_Read... [18:05:50]Read from MH i2c: E2 17 00 [18:05:50]MH_I2C_Read... [18:05:50]Read from MH i2c: E2 17 00 72 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 3E [18:05:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:05:50]wFMCommunicate OK [18:05:50]requested_item fd.num is exist - process it [18:05:50]SAM_PROTO_GetFieldsCounters [18:05:50]wFMCommunicate request_size=4 [18:05:50]MH_SAM_APDU [18:05:50]CAPDU: 80 13 00 00 [18:05:50]Write to MH i2c: E2 08 00 73 00 80 13 00 00 00 00 00 00 EF [18:05:50]Write i2c OK [18:05:50]MH_I2C_Read... [18:05:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:05:50]Read from MH i2c: E2 [18:05:50]MH_I2C_Read... [18:05:50]Read from MH i2c: E2 62 00 [18:05:50]MH_I2C_Read... [18:05:50]Read from MH i2c: E2 62 00 73 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 36 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [18:05:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 36 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:05:50]wFMCommunicate OK [18:05:50]SAM_PROTO_GetFieldsCounters done [18:05:50]requested_item shift.num is exist - process it [18:05:50]requested_item shift.opened is exist - process it [18:05:50]req_shift_opened [18:05:50]FM_GetShiftState [18:05:50]SAM_PROTO_GetShiftState [18:05:50]wFMCommunicate request_size=4 [18:05:50]MH_SAM_APDU [18:05:50]CAPDU: 80 13 01 00 [18:05:50]Write to MH i2c: E2 08 00 74 00 80 13 01 00 00 00 00 00 F1 [18:05:50]Write i2c OK [18:05:50]MH_I2C_Read... [18:05:50]OFD Sender: No OFD packet to send [18:05:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:50]Read from MH i2c: E2 [18:05:50]MH_I2C_Read... [18:05:50]Read from MH i2c: E2 0E 00 [18:05:50]MH_I2C_Read... [18:05:50]Read from MH i2c: E2 0E 00 74 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 F9 [18:05:50]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [18:05:50]wFMCommunicate OK [18:05:50]SAM_PROTO_GetShiftState done [18:05:50]FM_GetShiftState done [18:05:50]req_shift_opened done [18:05:50]requested_item shift.open_date is exist - process it [18:05:50]req_shift_open_date [18:05:50]req_shift_open_date done [18:05:50]produce_requested_data done [18:05:50]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82230,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [18:05:50]process_action_free close_receipt [18:05:50]json_value_free [18:05:50]json_value_free done [18:05:50]process_json_proto returns [18:05:50]Send response to host [18:05:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82230,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [18:05:50]free response buf [18:05:50]execute_script done [18:05:50]execute_script returns [18:05:50]free content buf [18:05:50]Sock 9.Close socket [18:05:50]Sock 9.Thread stoped [18:05:52]recv_with_timeout no data received [18:05:55]OFD Sender: No OFD packet to send [18:06:00]OFD Sender: No OFD packet to send [18:06:03]recv_with_timeout no data received [18:06:05]OFD Sender: No OFD packet to send [18:06:10]OFD Sender: No OFD packet to send [18:06:14]recv_with_timeout no data received [18:06:15]OFD Sender: No OFD packet to send [18:06:20]OFD Sender: No OFD packet to send [18:06:25]OFD Sender: No OFD packet to send [18:06:30]OFD Sender: No OFD packet to send [18:06:31]recv_with_timeout no data received [18:06:35]OFD Sender: No OFD packet to send [18:06:40]OFD Sender: No OFD packet to send [18:06:46]OFD Sender: No OFD packet to send [18:06:51]OFD Sender: No OFD packet to send [18:06:56]OFD Sender: No OFD packet to send [18:07:01]OFD Sender: No OFD packet to send [18:07:06]OFD Sender: No OFD packet to send [18:07:11]OFD Sender: No OFD packet to send [18:07:11]recv_with_timeout no data received [18:07:16]OFD Sender: No OFD packet to send [18:07:21]OFD Sender: No OFD packet to send [18:07:26]OFD Sender: No OFD packet to send [18:07:31]OFD Sender: No OFD packet to send [18:07:36]OFD Sender: No OFD packet to send [18:07:41]OFD Sender: No OFD packet to send [18:07:45]accept exits with 7 [18:07:45]New connection [18:07:45]New thread 3067403620 created [18:07:45]Thread 3067546980 joined [18:07:45]Waiting for new connection... [18:07:45] Sock 7.Parse request [18:07:45]Sock 7.Check first char [18:07:45]Sock 7.First char is OK [18:07:45]request: POST /json_proto HTTP/1.0 [18:07:45]Method: POST [18:07:45]URL: /json_proto [18:07:45]Method is POST - this is cgi request [18:07:45]url: /json_proto [18:07:45]query_string will be loaded in cgi processing [18:07:45]execute_cgi json_proto POST (null) [18:07:45]execute_cgi path=json_proto method=POST [18:07:45]POST find Content-Length [18:07:45]Host: 172.17.44.67:8080 [18:07:45]Content-Length: 758 [18:07:45]Content-Type: application/json [18:07:45] [18:07:45]POST finish read [18:07:45]Found Content-Length = 758 [18:07:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30087227", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:45]execute_script... [18: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)918734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30087227", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:45]POST & json_proto [18:07:45]process_json_proto [18:07:45]json parsed OK: [18:07:45]protocol is kg_v1.0 [18:07:45]action value=close_receipt [18:07:45]process_action close_receipt [18:07:45]cmd_close_receipt [18:07:45]MH_GetDate [18:07:45]Write to MH i2c: F0 00 00 75 00 64 [18:07:45]Write i2c OK [18:07:45]MH_I2C_Read... [18:07:45]Read from MH i2c: F0 [18:07:45]MH_I2C_Read... [18:07:45]Read from MH i2c: F0 09 00 [18:07:45]MH_I2C_Read... [18:07:45]Read from MH i2c: F0 09 00 75 00 00 71 52 11 67 F1 C7 6B 64 2F [18:07:45]GetLastDocTimeStamp 1729188347 [18:07:45]current date 1729188465 [18:07:45]FM_GetShiftState [18:07:45]SAM_PROTO_GetShiftState [18:07:45]wFMCommunicate request_size=4 [18:07:45]MH_SAM_APDU [18:07:45]CAPDU: 80 13 01 00 [18:07:45]Write to MH i2c: E2 08 00 76 00 80 13 01 00 00 00 00 00 F3 [18:07:45]Write i2c OK [18:07:45]MH_I2C_Read... [18:07:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:45]Read from MH i2c: E2 [18:07:45]MH_I2C_Read... [18:07:45]Read from MH i2c: E2 0E 00 [18:07:45]MH_I2C_Read... [18:07:45]Read from MH i2c: E2 0E 00 76 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 FB [18:07:45]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [18:07:45]wFMCommunicate OK [18:07:45]SAM_PROTO_GetShiftState done [18:07:45]FM_GetShiftState done [18:07:45]opened in 1729125927 [18:07:45]opened+sec_in_day 1729212327 [18:07:45]quantity*price = 0 [18:07:45]sum+1 = 1 [18:07:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 157 17.10.2024 18:07 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30087227 ФМ: 0000000000871843 ФД: 82231 ФПД: 194102499567716 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T180745&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82231&fm=194102499567716&tin=02508201610067®Number=0000000000091680&sum=0 [18:07:46]StoreToDocumentArchive [18:07:46]shift 525 fd 82231 [18:07:46]save to /storage/0525/doc_00082231 [18:07:46]save last doc name /storage/0525/doc_00082231 to /storage/kkm_last_doc_name [18:07:46]save OK [18:07:46]Clear old archive folders... [18:07:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:07:46]tlvbuf is 01C26800 [18:07:46]SAM_PROTO_ClearQueue [18:07:46]wFMCommunicate request_size=4 [18:07:46]MH_SAM_APDU [18:07:46]CAPDU: 80 09 00 00 [18:07:46]Write to MH i2c: E2 08 00 83 00 80 09 00 00 00 00 00 00 F5 [18:07:46]Write i2c OK [18:07:46]MH_I2C_Read... [18:07:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:46]Read from MH i2c: E2 [18:07:46]MH_I2C_Read... [18:07:46]Read from MH i2c: E2 03 00 [18:07:46]MH_I2C_Read... [18:07:46]Read from MH i2c: E2 03 00 83 00 00 90 00 F7 [18:07:46]RAPDU: 90 00 [18:07:46]wFMCommunicate OK [18:07:46]SAM_PROTO_ClearQueue done [18:07:46]KKMCreateOFDPacket [18:07:46]OFDProtocolAddRootSTLVToBuf [18:07:46]FM_MakeSignedData [18:07:46]FM_MakeSignedData [18:07:46]SAM_PROTO_SignData [18:07:46]wFMCommunicate request_size=4 [18:07:46]MH_SAM_APDU [18:07:46]CAPDU: 80 0D 01 02 [18:07:46]Write to MH i2c: E2 08 00 84 00 80 0D 01 02 00 00 00 00 FD [18:07:46]Write i2c OK [18:07:46]MH_I2C_Read... [18:07:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:46]Read from MH i2c: E2 [18:07:46]MH_I2C_Read... [18:07:46]Read from MH i2c: E2 03 00 [18:07:46]MH_I2C_Read... [18:07:46]Read from MH i2c: E2 03 00 84 00 00 90 00 F8 [18:07:46]RAPDU: 90 00 [18:07:46]wFMCommunicate OK [18:07:46]wFMCommunicate request_size=255 [18:07:46]MH_SAM_APDU [18:07:46]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 71 52 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 37 41 01 00 35 04 06 00 [18:07:46]Write to MH i2c: E2 02 01 85 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 71 52 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 37 41 01 00 35 04 06 00 00 00 3B [18:07:46]Write i2c OK [18:07:46]MH_I2C_Read... [18:07:46]Read from MH i2c: E2 [18:07:46]MH_I2C_Read... [18:07:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:46]Read from MH i2c: E2 03 00 [18:07:46]MH_I2C_Read... [18:07:46]Read from MH i2c: E2 03 00 85 00 00 90 00 F9 [18:07:46]RAPDU: 90 00 [18:07:46]wFMCommunicate OK [18:07:46]wFMCommunicate request_size=11 [18:07:46]MH_SAM_APDU [18:07:46]CAPDU: 80 0D 02 02 06 B0 89 02 89 68 64 [18:07:46]Write to MH i2c: E2 0E 00 86 00 80 0D 02 02 06 00 B0 89 02 89 68 64 00 00 9C [18:07:46]Write i2c OK [18:07:46]MH_I2C_Read... [18:07:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:46]Read from MH i2c: E2 [18:07:46]MH_I2C_Read... [18:07:46]Read from MH i2c: E2 03 00 [18:07:46]MH_I2C_Read... [18:07:46]Read from MH i2c: E2 03 00 86 00 00 90 00 FA [18:07:46]RAPDU: 90 00 [18:07:46]wFMCommunicate OK [18:07:46]wFMCommunicate request_size=4 [18:07:46]MH_SAM_APDU [18:07:46]CAPDU: 80 0D 03 02 [18:07:46]Write to MH i2c: E2 08 00 87 00 80 0D 03 02 00 00 00 00 02 [18:07:46]Write i2c OK [18:07:46]MH_I2C_Read... [18:07:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:07:46]Read from MH i2c: E2 [18:07:46]MH_I2C_Read... [18:07:46]Read from MH i2c: E2 0B 00 [18:07:46]MH_I2C_Read... [18:07:46]Read from MH i2c: E2 0B 00 87 00 00 CF 8E 87 1B BA DB 80 A3 90 00 BA [18:07:46]RAPDU: CF 8E 87 1B BA DB 80 A3 90 00 [18:07:46]wFMCommunicate OK [18:07:46]SAM_PROTO_SignData done [18:07:46]FM_MakeSignedData done [18:07:46]CreateOFDProtocolMessage [18:07:46]wFMCommunicate request_size=4 [18:07:46]MH_SAM_APDU [18:07:46]CAPDU: 80 11 00 00 [18:07:46]Write to MH i2c: E2 08 00 88 00 80 11 00 00 00 00 00 00 02 [18:07:46]Write i2c OK [18:07:46]MH_I2C_Read... [18:07:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:46]Read from MH i2c: E2 [18:07:46]MH_I2C_Read... [18:07:46]Read from MH i2c: E2 17 00 [18:07:46]MH_I2C_Read... [18:07:46]Read from MH i2c: E2 17 00 88 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 54 [18:07:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:07:46]wFMCommunicate OK [18:07:46]CreateOFDProtocolMessage done [18:07:46]OFDSenderStorePacket 82231 [18:07:46]StoreOFDPacket docnum=82231 [18:07:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 D0 A4 08 01 21 4D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 71 52 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 37 41 01 00 35 04 06 00 B0 89 02 89 68 64 CF 8E 87 1B BA DB 80 A3 [18:07:46]CheckFolder [18:07:46]dirname=/storage/ofd_packets [18:07:46]CheckFolder done [18:07:46]ProducePacketName [18:07:46]name=ofd_packets/00082231 [18:07:46]NVStorageSaveData ofd_packets/00082231 [18:07:46]File name is /storage/ofd_packets/00082231 [18:07:46]Write 302 bytes [18:07:46]NVStorageSaveData done [18:07:46]OFDSenderStorePacket done [18:07:46]KKMCreateOFDPacket done [18:07:46]NVStorageSaveData kkm_last_timestamp [18:07:46]File name is /storage/kkm_last_timestamp [18:07:46]Write 4 bytes [18:07:46]NVStorageSaveData done [18:07:46]ExternCall_PrintAddStr [18:07:46]wPrintStart [18:07:46]Write to MH i2c: 01 00 00 89 00 89 [18:07:46]Write i2c OK [18:07:46]MH_I2C_Read... [18:07:46]Read from MH i2c: 01 [18:07:46]MH_I2C_Read... [18:07:46]Read from MH i2c: 01 07 00 [18:07:46]MH_I2C_Read... [18:07:46]Read from MH i2c: 01 07 00 89 00 00 00 00 00 00 FF 0F 9E [18:07:46]RasterBufferAndPrint [18:07:46]line Счет N : (1)918734 [18:07:46]line ИНН: 02508201610067 [18:07:46]line Контрольно-Кассовый Чек [18:07:46]line ПРОДАЖА [18:07:46]line ТРК (МРК, ГНК) : 31 [18:07:46]line Товар: 2710194210 [18:07:46]line ДТ(л)-К-5 [18:07:46]line 5.000 * 0.00 [18:07:46]line = 0.00 [18:07:46]line НДС 12% НСП 1% [18:07:46]line > о реализуемом товаре [18:07:46]line ИТОГО: 0.00 [18:07:46]line НСП 1% : 0.00 [18:07:46]line НДС 12% : 0.00 [18:07:46]line Наличными: 0.00 [18:07:46]line Безнал.: 0.00 [18:07:46]line Место: АЗС № 114 "Партнер Нефть" [18:07:46]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [18:07:46]line СНО: Общий режим [18:07:46]line Чек 157 17.10.2024 18:07 [18:07:46]line Смена: 525 ФФД: 1.0 [18:07:46]line ЗНМ: 0300000086 [18:07:46]line РНМ: 0000000000091680 [18:07:46]line Версия ККМ: 001 [18:07:46]line Талоны: ТК ГПНА Online [18:07:46]line 30087227 [18:07:46]line ФМ: 0000000000871843 [18:07:46]line ФД: 82231 [18:07:46]line ФПД: 194102499567716 [18:07:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T180745&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82231&fm=194102499567716&tin=02508201610067®Number=0000000000091680&sum=0 [18:07:47]OFD Sender: Processing packet 82231 [packets to send 254, broken 253] [18:07:47]ProducePacketName [18:07:47]name=ofd_packets/00082231 [18:07:47]OFD Sender: To server: pG, [18:07:47]CommunicateWithHost lk.salyk.kg:30040 [18:07:47]ConnectInit lk.salyk.kg [18:07:47]written 0, free lines is 4095 [18:07:47]Write to MH i2c: 01 00 00 B3 00 B3 [18:07:47]Write i2c OK [18:07:47]MH_I2C_Read... [18:07:47]Read from MH i2c: 01 [18:07:47]MH_I2C_Read... [18:07:47]Read from MH i2c: 01 07 00 [18:07:47]MH_I2C_Read... [18:07:47]Read from MH i2c: 01 07 00 B3 00 00 00 00 00 00 D4 0C 9A [18:07:47]RasterBufferAndPrint [18:07:47]line [18:07:47]line [18:07:47]line [18:07:47]line [18:07:47]line [18:07:47]written 0, free lines is 3290 [18:07:47]MH_Cut [18:07:47]Write to MH i2c: D1 01 00 BA 00 01 8C [18:07:47]Write i2c OK [18:07:47]MH_I2C_Read... [18:07:47]Read from MH i2c: D1 [18:07:47]MH_I2C_Read... [18:07:47]Read from MH i2c: D1 01 00 [18:07:47]MH_I2C_Read... [18:07:47]Read from MH i2c: D1 01 00 BA 00 00 8B [18:07:47]Write to MH i2c: 01 00 00 BB 00 BB [18:07:47]Write i2c OK [18:07:47]MH_I2C_Read... [18:07:48]*** Cut start [18:07:48]*** Partial cut [18:07:48]*** CUTSNS_PIN = 1 [18:07:48]*** CUTSNS_PIN = 0 [18:07:48]*** Brake cut motor [18:07:48]Connected sock=11 [18:07:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 D0 A4 08 01 21 4D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 71 52 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 37 41 01 00 35 04 06 00 B0 89 02 89 68 64 CF 8E 87 1B BA DB 80 A3 [18:07:48]Read from MH i2c: 01 [18:07:48]MH_I2C_Read... [18:07:48]*** Stop cut motor [18:07:48]*** Cut end [18:07:48]Read from MH i2c: 01 07 00 [18:07:48]MH_I2C_Read... [18:07:48]Read from MH i2c: 01 07 00 BB 00 00 00 00 00 00 FF 0F D0 [18:07:48]process_action close_receipt done [18:07:48]requested_data is exist [18:07:48]produce_requested_data [18:07:48]requested_item fm.sn is exist - process it [18:07:48]wFMCommunicate request_size=4 [18:07:48]MH_SAM_APDU [18:07:48]CAPDU: 80 11 00 00 [18:07:48]Write to MH i2c: E2 08 00 BC 00 80 11 00 00 00 00 00 00 36 [18:07:48]Write i2c OK [18:07:48]MH_I2C_Read... [18:07:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:48]Read from MH i2c: E2 [18:07:48]MH_I2C_Read... [18:07:48]Read from MH i2c: E2 17 00 [18:07:48]MH_I2C_Read... [18:07:48]Read from MH i2c: E2 17 00 BC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 88 [18:07:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:07:48]wFMCommunicate OK [18:07:48]requested_item fd.num is exist - process it [18:07:48]SAM_PROTO_GetFieldsCounters [18:07:48]wFMCommunicate request_size=4 [18:07:48]MH_SAM_APDU [18:07:48]CAPDU: 80 13 00 00 [18:07:48]Write to MH i2c: E2 08 00 BD 00 80 13 00 00 00 00 00 00 39 [18:07:48]Write i2c OK [18:07:48]MH_I2C_Read... [18:07:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:07:49]Read from MH i2c: E2 [18:07:49]MH_I2C_Read... [18:07:49]Read from MH i2c: E2 62 00 [18:07:49]MH_I2C_Read... [18:07:49]Read from MH i2c: E2 62 00 BD 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 37 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [18:07:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 37 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:07:49]wFMCommunicate OK [18:07:49]SAM_PROTO_GetFieldsCounters done [18:07:49]requested_item shift.num is exist - process it [18:07:49]requested_item shift.opened is exist - process it [18:07:49]req_shift_opened [18:07:49]FM_GetShiftState [18:07:49]SAM_PROTO_GetShiftState [18:07:49]wFMCommunicate request_size=4 [18:07:49]MH_SAM_APDU [18:07:49]CAPDU: 80 13 01 00 [18:07:49]Write to MH i2c: E2 08 00 BE 00 80 13 01 00 00 00 00 00 3B [18:07:49]Write i2c OK [18:07:49]MH_I2C_Read... [18:07:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:49]Read from MH i2c: E2 [18:07:49]MH_I2C_Read... [18:07:49]Read from MH i2c: E2 0E 00 [18:07:49]MH_I2C_Read... [18:07:49]Read from MH i2c: E2 0E 00 BE 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 43 [18:07:49]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [18:07:49]wFMCommunicate OK [18:07:49]SAM_PROTO_GetShiftState done [18:07:49]FM_GetShiftState done [18:07:49]req_shift_opened done [18:07:49]requested_item shift.open_date is exist - process it [18:07:49]req_shift_open_date [18:07:49]req_shift_open_date done [18:07:49]produce_requested_data done [18:07:49]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82231,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [18:07:49]process_action_free close_receipt [18:07:49]json_value_free [18:07:49]json_value_free done [18:07:49]process_json_proto returns [18:07:49]Send response to host [18:07:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82231,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [18:07:49]free response buf [18:07:49]execute_script done [18:07:49]execute_script returns [18:07:49]free content buf [18:07:49]Sock 7.Close socket [18:07:49]Sock 7.Thread stoped [18:07:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 79 EE 47 00 87 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 37 41 01 00 F4 03 04 00 B0 F7 10 67 B6 04 01 00 00 DA B5 DC 5D 52 7B 05 4A [18:07:49]CommunicateWithHost err = 0 [18:07:49]CheckOFDResponse [18:07:49]1017 (14) - 77093643461234 [18:07:49]1041 (16) - 0000000000871843 [18:07:49]1040 (4) - 82231 [18:07:49]1012 (4) - 17.10.2024 11:40 [18:07:49]1206 (1) - 0 [18:07:49]OFD Sender: Remove packet 82231 [18:07:49]ProducePacketName [18:07:49]name=ofd_packets/00082231 [18:07:49]NVStorageDeleteData [18:07:50]OFD Sender: No OFD packet to send [18:07:51]recv_with_timeout no data received [18:07:55]OFD Sender: No OFD packet to send [18:08:00]OFD Sender: No OFD packet to send [18:08:02]recv_with_timeout no data received [18:08:05]OFD Sender: No OFD packet to send [18:08:10]OFD Sender: No OFD packet to send [18:08:15]OFD Sender: No OFD packet to send [18:08:20]OFD Sender: No OFD packet to send [18:08:25]OFD Sender: No OFD packet to send [18:08:30]OFD Sender: No OFD packet to send [18:08:35]OFD Sender: No OFD packet to send [18:08:40]OFD Sender: No OFD packet to send [18:08:45]OFD Sender: No OFD packet to send [18:08:50]OFD Sender: No OFD packet to send [18:08:55]OFD Sender: No OFD packet to send [18:09:00]OFD Sender: No OFD packet to send [18:09:05]OFD Sender: No OFD packet to send [18:09:10]OFD Sender: No OFD packet to send [18:09:15]OFD Sender: No OFD packet to send [18:09:20]OFD Sender: No OFD packet to send [18:09:25]OFD Sender: No OFD packet to send [18:09:30]OFD Sender: No OFD packet to send [18:09:35]OFD Sender: No OFD packet to send [18:09:40]OFD Sender: No OFD packet to send [18:09:45]OFD Sender: No OFD packet to send [18:09:50]OFD Sender: No OFD packet to send [18:09:55]OFD Sender: No OFD packet to send [18:10:00]OFD Sender: No OFD packet to send [18:10:04]accept exits with 9 [18:10:04]New connection [18:10:04]New thread 3067546980 created [18:10:04]Thread 3067403620 joined [18:10:04]Waiting for new connection... [18:10:04] Sock 9.Parse request [18:10:04]Sock 9.Check first char [18:10:04]Sock 9.First char is OK [18:10:04]request: POST /json_proto HTTP/1.0 [18:10:04]Method: POST [18:10:04]URL: /json_proto [18:10:04]Method is POST - this is cgi request [18:10:04]url: /json_proto [18:10:04]query_string will be loaded in cgi processing [18:10:04]execute_cgi json_proto POST (null) [18:10:04]execute_cgi path=json_proto method=POST [18:10:04]POST find Content-Length [18:10:04]Host: 172.17.44.67:8080 [18:10:04]Content-Length: 677 [18:10:04]Content-Type: application/json [18:10:04] [18:10:04]POST finish read [18:10:04]Found Content-Length = 677 [18:10:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:04]execute_script... [18:10:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:04]POST & json_proto [18:10:04]process_json_proto [18:10:04]json parsed OK: [18:10:04]protocol is kg_v1.0 [18:10:04]action value=close_receipt [18:10:04]process_action close_receipt [18:10:04]cmd_close_receipt [18:10:04]MH_GetDate [18:10:04]Write to MH i2c: F0 00 00 BF 00 AE [18:10:04]Write i2c OK [18:10:04]MH_I2C_Read... [18:10:04]Read from MH i2c: F0 [18:10:04]MH_I2C_Read... [18:10:04]Read from MH i2c: F0 09 00 [18:10:04]MH_I2C_Read... [18:10:04]Read from MH i2c: F0 09 00 BF 00 00 FD 52 11 67 F1 C7 6B 64 05 [18:10:04]GetLastDocTimeStamp 1729188465 [18:10:04]current date 1729188605 [18:10:04]FM_GetShiftState [18:10:04]SAM_PROTO_GetShiftState [18:10:04]wFMCommunicate request_size=4 [18:10:04]MH_SAM_APDU [18:10:04]CAPDU: 80 13 01 00 [18:10:04]Write to MH i2c: E2 08 00 C0 00 80 13 01 00 00 00 00 00 3D [18:10:04]Write i2c OK [18:10:04]MH_I2C_Read... [18:10:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:04]Read from MH i2c: E2 [18:10:04]MH_I2C_Read... [18:10:04]Read from MH i2c: E2 0E 00 [18:10:04]MH_I2C_Read... [18:10:04]Read from MH i2c: E2 0E 00 C0 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 45 [18:10:04]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [18:10:04]wFMCommunicate OK [18:10:04]SAM_PROTO_GetShiftState done [18:10:04]FM_GetShiftState done [18:10:04]opened in 1729125927 [18:10:04]opened+sec_in_day 1729212327 [18:10:04]quantity*price = 25020 [18:10:04]sum+1 = 25022 [18:10:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 158 17.10.2024 18:10 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82232 ФПД: 103689034642750 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T181005&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82232&fm=103689034642750&tin=02508201610067®Number=0000000000091680&sum=25000 [18:10:06]StoreToDocumentArchive [18:10:06]shift 525 fd 82232 [18:10:06]save to /storage/0525/doc_00082232 [18:10:06]save last doc name /storage/0525/doc_00082232 to /storage/kkm_last_doc_name [18:10:06]save OK [18:10:06]Clear old archive folders... [18:10:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:10:06]tlvbuf is 01C40B40 [18:10:06]SAM_PROTO_ClearQueue [18:10:06]wFMCommunicate request_size=4 [18:10:06]MH_SAM_APDU [18:10:06]CAPDU: 80 09 00 00 [18:10:06]Write to MH i2c: E2 08 00 CD 00 80 09 00 00 00 00 00 00 3F [18:10:06]Write i2c OK [18:10:06]MH_I2C_Read... [18:10:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:06]Read from MH i2c: E2 [18:10:06]MH_I2C_Read... [18:10:06]Read from MH i2c: E2 03 00 [18:10:06]MH_I2C_Read... [18:10:06]Read from MH i2c: E2 03 00 CD 00 00 90 00 41 [18:10:06]RAPDU: 90 00 [18:10:06]wFMCommunicate OK [18:10:06]SAM_PROTO_ClearQueue done [18:10:06]KKMCreateOFDPacket [18:10:06]OFDProtocolAddRootSTLVToBuf [18:10:06]FM_MakeSignedData [18:10:06]FM_MakeSignedData [18:10:06]SAM_PROTO_SignData [18:10:06]wFMCommunicate request_size=4 [18:10:06]MH_SAM_APDU [18:10:06]CAPDU: 80 0D 01 02 [18:10:06]Write to MH i2c: E2 08 00 CE 00 80 0D 01 02 00 00 00 00 47 [18:10:06]Write i2c OK [18:10:06]MH_I2C_Read... [18:10:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:06]Read from MH i2c: E2 [18:10:06]MH_I2C_Read... [18:10:06]Read from MH i2c: E2 03 00 [18:10:06]MH_I2C_Read... [18:10:06]Read from MH i2c: E2 03 00 CE 00 00 90 00 42 [18:10:06]RAPDU: 90 00 [18:10:06]wFMCommunicate OK [18:10:06]wFMCommunicate request_size=255 [18:10:06]MH_SAM_APDU [18:10:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 FD 52 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 38 41 01 00 35 04 06 00 5E [18:10:06]Write to MH i2c: E2 02 01 CF 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 FD 52 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 38 41 01 00 35 04 06 00 5E 00 00 F8 [18:10:06]Write i2c OK [18:10:06]MH_I2C_Read... [18:10:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:06]Read from MH i2c: E2 [18:10:06]MH_I2C_Read... [18:10:06]Read from MH i2c: E2 03 00 [18:10:06]MH_I2C_Read... [18:10:06]Read from MH i2c: E2 03 00 CF 00 00 90 00 43 [18:10:06]RAPDU: 90 00 [18:10:06]wFMCommunicate OK [18:10:06]wFMCommunicate request_size=10 [18:10:06]MH_SAM_APDU [18:10:06]CAPDU: 80 0D 02 02 05 4D FC 13 B5 3E [18:10:06]Write to MH i2c: E2 0D 00 D0 00 80 0D 02 02 05 00 4D FC 13 B5 3E 00 00 A3 [18:10:06]Write i2c OK [18:10:06]MH_I2C_Read... [18:10:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:06]Read from MH i2c: E2 [18:10:06]MH_I2C_Read... [18:10:06]Read from MH i2c: E2 03 00 [18:10:06]MH_I2C_Read... [18:10:06]Read from MH i2c: E2 03 00 D0 00 00 90 00 44 [18:10:06]RAPDU: 90 00 [18:10:06]wFMCommunicate OK [18:10:06]wFMCommunicate request_size=4 [18:10:06]MH_SAM_APDU [18:10:06]CAPDU: 80 0D 03 02 [18:10:06]Write to MH i2c: E2 08 00 D1 00 80 0D 03 02 00 00 00 00 4C [18:10:06]Write i2c OK [18:10:06]MH_I2C_Read... [18:10:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:06]Read from MH i2c: E2 [18:10:06]MH_I2C_Read... [18:10:06]Read from MH i2c: E2 0B 00 [18:10:06]MH_I2C_Read... [18:10:06]Read from MH i2c: E2 0B 00 D1 00 00 B8 DB EA 5F CE 07 7E 9F 90 00 1B [18:10:06]RAPDU: B8 DB EA 5F CE 07 7E 9F 90 00 [18:10:06]wFMCommunicate OK [18:10:06]SAM_PROTO_SignData done [18:10:06]FM_MakeSignedData done [18:10:06]CreateOFDProtocolMessage [18:10:06]wFMCommunicate request_size=4 [18:10:06]MH_SAM_APDU [18:10:06]CAPDU: 80 11 00 00 [18:10:06]Write to MH i2c: E2 08 00 D2 00 80 11 00 00 00 00 00 00 4C [18:10:06]Write i2c OK [18:10:06]MH_I2C_Read... [18:10:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:06]Read from MH i2c: E2 [18:10:06]MH_I2C_Read... [18:10:06]Read from MH i2c: E2 17 00 [18:10:06]MH_I2C_Read... [18:10:06]Read from MH i2c: E2 17 00 D2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 9E [18:10:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:10:06]wFMCommunicate OK [18:10:06]CreateOFDProtocolMessage done [18:10:06]OFDSenderStorePacket 82232 [18:10:06]StoreOFDPacket docnum=82232 [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]/dev/ttyS4 opened [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 53 [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725AE (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 44403781+1684785137=1729188918 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:10]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 54 [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 36 54 11 67 F1 C7 6B 64 88 [18:15:18]Current date/time: 17.10.2024 18:15 [18:15:18]FM_Init [18:15:18]wFMConnect [18:15:18]MH_SAM_On [18:15:18]Write to MH i2c: E0 00 00 08 00 E7 [18:15:18]Write i2c OK [18:15:18]MH_I2C_Read... [18:15:18]*** iso7816_init finished! [18:15:18]*** atr: [18:15:18]*** 0F 3B D5 18 FF 81 91 FE [18:15:18]*** 1F C3 80 73 C8 21 10 0A [18:15:18]*** 00 00 00 00 00 00 00 00 [18:15:18]*** 00 00 00 00 00 00 00 00 [18:15:18]*** 00 00 00 00 00 00 00 00 [18:15:18]*** 00 00 00 00 00 00 00 00 [18:15:18]*** 00 00 00 00 00 00 00 00 [18:15:18]*** 00 00 00 00 00 00 00 00 [18:15:18]Read from MH i2c: E0 [18:15:18]MH_I2C_Read... [18:15:18]Read from MH i2c: E0 10 00 [18:15:18]MH_I2C_Read... [18:15:18]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [18:15:18]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [18:15:18]wFMCommunicate request_size=10 [18:15:18]MH_SAM_APDU [18:15:18]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [18:15:18]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [18:15:18]Write i2c OK [18:15:18]MH_I2C_Read... [18:15:18]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [18:15:18]Read from MH i2c: E2 [18:15:18]MH_I2C_Read... [18:15:18]Read from MH i2c: E2 03 00 [18:15:18]MH_I2C_Read... [18:15:18]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [18:15:18]RAPDU: 90 00 [18:15:18]wFMCommunicate OK [18:15:18]wFMCommunicate request_size=4 [18:15:18]MH_SAM_APDU [18:15:18]CAPDU: 80 11 00 00 [18:15:18]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [18:15:18]Write i2c OK [18:15:18]MH_I2C_Read... [18:15:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:18]Read from MH i2c: E2 [18:15:18]MH_I2C_Read... [18:15:18]Read from MH i2c: E2 17 00 [18:15:18]MH_I2C_Read... [18:15:18]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D6 [18:15:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:15:18]wFMCommunicate OK [18:15:18]Detected FM SN is 0000000000871843 [18:15:18]Stored FM SN is 0000000000871843 [18:15:18]wFMCommunicate request_size=9 [18:15:18]MH_SAM_APDU [18:15:18]CAPDU: 80 16 00 00 04 C3 A3 00 00 [18:15:18]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 C3 A3 00 00 00 00 F8 [18:15:18]Write i2c OK [18:15:18]MH_I2C_Read... [18:15:18]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [18:15:18]Read from MH i2c: E2 [18:15:18]MH_I2C_Read... [18:15:18]Read from MH i2c: E2 03 00 [18:15:18]MH_I2C_Read... [18:15:18]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [18:15:18]RAPDU: 90 00 [18:15:18]wFMCommunicate OK [18:15:18]FM PIN OK [18:15:18]wFMCommunicate request_size=8 [18:15:18]MH_SAM_APDU [18:15:18]CAPDU: 80 14 04 00 03 02 00 01 [18:15:18]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [18:15:18]Write i2c OK [18:15:18]MH_I2C_Read... [18:15:18]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [18:15:18]Read from MH i2c: E2 [18:15:18]MH_I2C_Read... [18:15:18]Read from MH i2c: E2 03 00 [18:15:18]MH_I2C_Read... [18:15:18]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [18:15:18]RAPDU: 90 00 [18:15:18]wFMCommunicate OK [18:15:18]wFMCommunicate request_size=13 [18:15:18]MH_SAM_APDU [18:15:18]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [18:15:18]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [18:15:18]Write i2c OK [18:15:18]MH_I2C_Read... [18:15:18]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [18:15:18]Read from MH i2c: E2 [18:15:18]MH_I2C_Read... [18:15:18]Read from MH i2c: E2 03 00 [18:15:18]MH_I2C_Read... [18:15:18]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [18:15:18]RAPDU: 90 00 [18:15:18]wFMCommunicate OK [18:15:18]wFMCommunicate request_size=4 [18:15:18]MH_SAM_APDU [18:15:18]CAPDU: 80 11 00 00 [18:15:18]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [18:15:18]Write i2c OK [18:15:18]MH_I2C_Read... [18:15:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:18]Read from MH i2c: E2 [18:15:18]MH_I2C_Read... [18:15:18]Read from MH i2c: E2 17 00 [18:15:18]MH_I2C_Read... [18:15:18]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DA [18:15:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:15:18]wFMCommunicate OK [18:15:18]DocumentArchiveInit [18:15:18]Start Httpd... [18:15:18]Httpd thread 3067362660 created [18:15:18]Write to MH i2c: 01 00 00 0F 00 0F [18:15:18]Write i2c OK [18:15:18]MH_I2C_Read... [18:15:18]Read from MH i2c: 01 [18:15:18]MH_I2C_Read... [18:15:18]Read from MH i2c: 01 07 00 [18:15:18]MH_I2C_Read... [18:15:18]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [18:15:18]MH Int Process started [18:15:18]Allocated Socket 8 [18:15:18]Bind OK [18:15:18]Listen OK [18:15:18]httpd running on port 8080 [18:15:18]Waiting for new connection... [18:15:18]OFD Sender: Processing packet 82232 [packets to send 254, broken 253] [18:15:18]ProducePacketName [18:15:18]name=ofd_packets/00082232 [18:15:18]OFD Sender: To server: pG, [18:15:18]CommunicateWithHost lk.salyk.kg:30040 [18:15:18]ConnectInit lk.salyk.kg [18:15:19]Connected sock=7 [18:15:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 A9 C7 07 01 F2 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 FD 52 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 38 41 01 00 35 04 06 00 5E 4D FC 13 B5 3E B8 DB EA 5F CE 07 7E 9F [18:15:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 32 9A 47 00 B9 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 38 41 01 00 F4 03 04 00 73 F9 10 67 B6 04 01 00 00 AA 26 43 BD AC 1E 64 38 [18:15:19]CommunicateWithHost err = 0 [18:15:19]CheckOFDResponse [18:15:19]1017 (14) - 77093643461234 [18:15:19]1041 (16) - 0000000000871843 [18:15:19]1040 (4) - 82232 [18:15:19]1012 (4) - 17.10.2024 11:48 [18:15:19]1206 (1) - 0 [18:15:19]OFD Sender: Remove packet 82232 [18:15:19]ProducePacketName [18:15:19]name=ofd_packets/00082232 [18:15:19]NVStorageDeleteData [18:15:20]OFD Sender: No OFD packet to send [18:15:21]accept exits with 9 [18:15:21]New connection [18:15:21]New thread 3067075940 created [18:15:21]Waiting for new connection... [18:15:21] Sock 9.Parse request [18:15:21]Sock 9.Check first char [18:15:21]Sock 9.First char is OK [18:15:21]request: POST /json_proto HTTP/1.0 [18:15:21]Method: POST [18:15:21]URL: /json_proto [18:15:21]Method is POST - this is cgi request [18:15:21]url: /json_proto [18:15:21]query_string will be loaded in cgi processing [18:15:21]execute_cgi json_proto POST (null) [18:15:21]execute_cgi path=json_proto method=POST [18:15:21]POST find Content-Length [18:15:21]Host: 172.17.44.67:8080 [18:15:21]Content-Length: 215 [18:15:21]Content-Type: application/json [18:15:21] [18:15:21]POST finish read [18:15:21]Found Content-Length = 215 [18:15:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:21]execute_script... [18:15:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:21]POST & json_proto [18:15:21]process_json_proto [18:15:21]json parsed OK: [18:15:21]protocol is kg_v1.0 [18:15:21]action value=get_value [18:15:21]process_action get_value [18:15:21]cmd_get_value [18:15:21]process_action get_value done [18:15:21]requested_data is exist [18:15:21]produce_requested_data [18:15:21]requested_item kkm.sn is exist - process it [18:15:21]requested_item kkm.ver is exist - process it [18:15:21]requested_item fm.sn is exist - process it [18:15:21]wFMCommunicate request_size=4 [18:15:21]MH_SAM_APDU [18:15:21]CAPDU: 80 11 00 00 [18:15:21]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [18:15:21]Write i2c OK [18:15:21]MH_I2C_Read... [18:15:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:21]Read from MH i2c: E2 [18:15:21]MH_I2C_Read... [18:15:21]Read from MH i2c: E2 17 00 [18:15:21]MH_I2C_Read... [18:15:21]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DC [18:15:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:15:21]wFMCommunicate OK [18:15:21]requested_item fd.num is exist - process it [18:15:21]SAM_PROTO_GetFieldsCounters [18:15:21]wFMCommunicate request_size=4 [18:15:21]MH_SAM_APDU [18:15:21]CAPDU: 80 13 00 00 [18:15:21]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [18:15:21]Write i2c OK [18:15:21]MH_I2C_Read... [18:15:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:15:22]Read from MH i2c: E2 [18:15:22]MH_I2C_Read... [18:15:22]Read from MH i2c: E2 62 00 [18:15:22]MH_I2C_Read... [18:15:22]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 38 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [18:15:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 38 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:15:22]wFMCommunicate OK [18:15:22]SAM_PROTO_GetFieldsCounters done [18:15:22]requested_item shift.num is exist - process it [18:15:22]requested_item shift.opened is exist - process it [18:15:22]req_shift_opened [18:15:22]FM_GetShiftState [18:15:22]SAM_PROTO_GetShiftState [18:15:22]wFMCommunicate request_size=4 [18:15:22]MH_SAM_APDU [18:15:22]CAPDU: 80 13 01 00 [18:15:22]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [18:15:22]Write i2c OK [18:15:22]MH_I2C_Read... [00:00:08] *** EcrCore started. Build 196 *** [00:00:08]/dev/ttyS4 opened [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 53 [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:09]*** Serial: 3139303353513838 54000000005725AE (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 44403912+1684785137=1729189049 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x200ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:09]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 54 [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 B9 54 11 67 F1 C7 6B 64 0B [18:17:29]Current date/time: 17.10.2024 18:17 [18:17:29]FM_Init [18:17:29]wFMConnect [18:17:29]MH_SAM_On [18:17:29]Write to MH i2c: E0 00 00 08 00 E7 [18:17:29]Write i2c OK [18:17:29]MH_I2C_Read... [18:17:29]*** iso7816_init finished! [18:17:29]*** atr: [18:17:29]*** 0F 3B D5 18 FF 81 91 FE [18:17:29]*** 1F C3 80 73 C8 21 10 0A [18:17:29]*** 00 00 00 00 00 00 00 00 [18:17:29]*** 00 00 00 00 00 00 00 00 [18:17:29]*** 00 00 00 00 00 00 00 00 [18:17:29]*** 00 00 00 00 00 00 00 00 [18:17:29]*** 00 00 00 00 00 00 00 00 [18:17:29]*** 00 00 00 00 00 00 00 00 [18:17:29]Read from MH i2c: E0 [18:17:29]MH_I2C_Read... [18:17:29]Read from MH i2c: E0 10 00 [18:17:29]MH_I2C_Read... [18:17:29]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [18:17:29]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [18:17:29]wFMCommunicate request_size=10 [18:17:29]MH_SAM_APDU [18:17:29]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [18:17:29]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [18:17:29]Write i2c OK [18:17:29]MH_I2C_Read... [18:17:29]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [18:17:29]Read from MH i2c: E2 [18:17:29]MH_I2C_Read... [18:17:29]Read from MH i2c: E2 03 00 [18:17:29]MH_I2C_Read... [18:17:29]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [18:17:29]RAPDU: 90 00 [18:17:29]wFMCommunicate OK [18:17:29]wFMCommunicate request_size=4 [18:17:29]MH_SAM_APDU [18:17:29]CAPDU: 80 11 00 00 [18:17:29]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [18:17:29]Write i2c OK [18:17:29]MH_I2C_Read... [18:17:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:29]Read from MH i2c: E2 [18:17:29]MH_I2C_Read... [18:17:29]Read from MH i2c: E2 17 00 [18:17:29]MH_I2C_Read... [18:17:29]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D6 [18:17:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:17:29]wFMCommunicate OK [18:17:29]Detected FM SN is 0000000000871843 [18:17:29]Stored FM SN is 0000000000871843 [18:17:29]wFMCommunicate request_size=9 [18:17:29]MH_SAM_APDU [18:17:29]CAPDU: 80 16 00 00 04 C3 A3 00 00 [18:17:29]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 C3 A3 00 00 00 00 F8 [18:17:29]Write i2c OK [18:17:29]MH_I2C_Read... [18:17:29]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [18:17:29]Read from MH i2c: E2 [18:17:29]MH_I2C_Read... [18:17:29]Read from MH i2c: E2 03 00 [18:17:29]MH_I2C_Read... [18:17:29]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [18:17:29]RAPDU: 90 00 [18:17:29]wFMCommunicate OK [18:17:29]FM PIN OK [18:17:29]wFMCommunicate request_size=8 [18:17:29]MH_SAM_APDU [18:17:29]CAPDU: 80 14 04 00 03 02 00 01 [18:17:29]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [18:17:29]Write i2c OK [18:17:29]MH_I2C_Read... [18:17:29]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [18:17:29]Read from MH i2c: E2 [18:17:29]MH_I2C_Read... [18:17:29]Read from MH i2c: E2 03 00 [18:17:29]MH_I2C_Read... [18:17:29]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [18:17:29]RAPDU: 90 00 [18:17:29]wFMCommunicate OK [18:17:29]wFMCommunicate request_size=13 [18:17:29]MH_SAM_APDU [18:17:29]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [18:17:29]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [18:17:29]Write i2c OK [18:17:29]MH_I2C_Read... [18:17:29]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [18:17:29]Read from MH i2c: E2 [18:17:29]MH_I2C_Read... [18:17:29]Read from MH i2c: E2 03 00 [18:17:29]MH_I2C_Read... [18:17:29]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [18:17:29]RAPDU: 90 00 [18:17:29]wFMCommunicate OK [18:17:29]wFMCommunicate request_size=4 [18:17:29]MH_SAM_APDU [18:17:29]CAPDU: 80 11 00 00 [18:17:29]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [18:17:29]Write i2c OK [18:17:29]MH_I2C_Read... [18:17:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:29]Read from MH i2c: E2 [18:17:29]MH_I2C_Read... [18:17:29]Read from MH i2c: E2 17 00 [18:17:29]MH_I2C_Read... [18:17:29]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DA [18:17:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:17:29]wFMCommunicate OK [18:17:29]DocumentArchiveInit [18:17:29]Start Httpd... [18:17:29]Httpd thread 3067415908 created [18:17:29]Write to MH i2c: 01 00 00 0F 00 0F [18:17:29]Write i2c OK [18:17:29]MH_I2C_Read... [18:17:29]Read from MH i2c: 01 [18:17:29]MH_I2C_Read... [18:17:29]Read from MH i2c: 01 07 00 [18:17:29]MH_I2C_Read... [18:17:29]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [18:17:29]MH Int Process started [18:17:29]Allocated Socket 8 [18:17:29]Bind OK [18:17:29]Listen OK [18:17:29]httpd running on port 8080 [18:17:29]Waiting for new connection... [18:17:29]OFD Sender: Processing packet 82233 [packets to send 254, broken 253] [18:17:29]ProducePacketName [18:17:29]name=ofd_packets/00082233 [18:17:29]OFD Sender: To server: pG, [18:17:29]CommunicateWithHost lk.salyk.kg:30040 [18:17:29]ConnectInit lk.salyk.kg [18:17:30]Connected sock=6 [18:17:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 D0 A5 07 01 C5 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 3E 54 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 39 41 01 00 35 04 06 00 A5 C7 D2 9F C3 0E 1F E6 CC 15 E0 CF 16 23 [18:17:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 35 10 47 00 24 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 39 41 01 00 F4 03 04 00 F6 F9 10 67 B6 04 01 00 00 EF DF B9 30 93 8C D0 81 [18:17:30]CommunicateWithHost err = 0 [18:17:30]CheckOFDResponse [18:17:30]1017 (14) - 77093643461234 [18:17:30]1041 (16) - 0000000000871843 [18:17:30]1040 (4) - 82233 [18:17:30]1012 (4) - 17.10.2024 11:50 [18:17:30]1206 (1) - 0 [18:17:30]OFD Sender: Remove packet 82233 [18:17:30]ProducePacketName [18:17:30]name=ofd_packets/00082233 [18:17:30]NVStorageDeleteData [18:17:31]OFD Sender: No OFD packet to send [18:17:31]accept exits with 9 [18:17:31]New connection [18:17:31]New thread 3067129188 created [18:17:31]Waiting for new connection... [18:17:31] Sock 9.Parse request [18:17:31]Sock 9.Check first char [18:17:31]Sock 9.First char is OK [18:17:31]request: POST /json_proto HTTP/1.0 [18:17:31]Method: POST [18:17:31]URL: /json_proto [18:17:31]Method is POST - this is cgi request [18:17:31]url: /json_proto [18:17:31]query_string will be loaded in cgi processing [18:17:31]execute_cgi json_proto POST (null) [18:17:31]execute_cgi path=json_proto method=POST [18:17:31]POST find Content-Length [18:17:31]Host: 172.17.44.67:8080 [18:17:31]Content-Length: 215 [18:17:31]Content-Type: application/json [18:17:31] [18:17:31]POST finish read [18:17:31]Found Content-Length = 215 [18:17: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" ] } } [18:17:31]execute_script... [18:17: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" ] } } [18:17:31]POST & json_proto [18:17:31]process_json_proto [18:17:31]json parsed OK: [18:17:31]protocol is kg_v1.0 [18:17:31]action value=get_value [18:17:31]process_action get_value [18:17:31]cmd_get_value [18:17:31]process_action get_value done [18:17:31]requested_data is exist [18:17:31]produce_requested_data [18:17:31]requested_item kkm.sn is exist - process it [18:17:31]requested_item kkm.ver is exist - process it [18:17:31]requested_item fm.sn is exist - process it [18:17:31]wFMCommunicate request_size=4 [18:17:31]MH_SAM_APDU [18:17:31]CAPDU: 80 11 00 00 [18:17:31]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [18:17:31]Write i2c OK [18:17:31]MH_I2C_Read... [18:17:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:31]Read from MH i2c: E2 [18:17:31]MH_I2C_Read... [18:17:31]Read from MH i2c: E2 17 00 [18:17:31]MH_I2C_Read... [18:17:31]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DC [18:17:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:17:31]wFMCommunicate OK [18:17:31]requested_item fd.num is exist - process it [18:17:31]SAM_PROTO_GetFieldsCounters [18:17:31]wFMCommunicate request_size=4 [18:17:31]MH_SAM_APDU [18:17:31]CAPDU: 80 13 00 00 [18:17:31]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [18:17:31]Write i2c OK [18:17:31]MH_I2C_Read... [18:17:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:17:31]Read from MH i2c: E2 [18:17:31]MH_I2C_Read... [18:17:31]Read from MH i2c: E2 62 00 [18:17:31]MH_I2C_Read... [18:17:31]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 39 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [18:17:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 39 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:17:31]wFMCommunicate OK [18:17:31]SAM_PROTO_GetFieldsCounters done [18:17:31]requested_item shift.num is exist - process it [18:17:31]requested_item shift.opened is exist - process it [18:17:31]req_shift_opened [18:17:31]FM_GetShiftState [18:17:31]SAM_PROTO_GetShiftState [18:17:31]wFMCommunicate request_size=4 [18:17:31]MH_SAM_APDU [18:17:31]CAPDU: 80 13 01 00 [18:17:31]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [18:17:31]Write i2c OK [18:17:31]MH_I2C_Read... [18:17:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:31]Read from MH i2c: E2 [18:17:31]MH_I2C_Read... [18:17:31]Read from MH i2c: E2 0E 00 [18:17:31]MH_I2C_Read... [18:17:31]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 97 [18:17:31]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [18:17:31]wFMCommunicate OK [18:17:31]SAM_PROTO_GetShiftState done [18:17:31]FM_GetShiftState done [18:17:31]req_shift_opened done [18:17:31]requested_item shift.open_date is exist - process it [18:17:31]req_shift_open_date [18:17:31]req_shift_open_date done [18:17:31]produce_requested_data done [18:17:31]produce_requested_data return {"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82233,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [18:17:31]process_action_free get_value [18:17:31]json_value_free [18:17:31]json_value_free done [18:17:31]process_json_proto returns [18:17:31]Send response to host [18:17:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82233,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [18:17:31]free response buf [18:17:31]execute_script done [18:17:31]execute_script returns [18:17:31]free content buf [18:17:31]Sock 9.Close socket [18:17:31]Sock 9.Thread stoped [18:17:31]accept exits with 6 [18:17:31]New connection [18:17:31]New thread 3066985828 created [18:17:31]Thread 3067129188 joined [18:17:31]Waiting for new connection... [18:17:31] Sock 6.Parse request [18:17:31]Sock 6.Check first char [18:17:31]Sock 6.First char is OK [18:17:31]request: POST /json_proto HTTP/1.0 [18:17:31]Method: POST [18:17:31]URL: /json_proto [18:17:31]Method is POST - this is cgi request [18:17:31]url: /json_proto [18:17:31]query_string will be loaded in cgi processing [18:17:31]execute_cgi json_proto POST (null) [18:17:31]execute_cgi path=json_proto method=POST [18:17:31]POST find Content-Length [18:17:31]Host: 172.17.44.67:8080 [18:17:31]Content-Length: 331 [18:17:31]Content-Type: application/json [18:17:31] [18:17:31]POST finish read [18:17:31]Found Content-Length = 331 [18:17: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" ] } } [18:17:31]execute_script... [18:17:31]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" ] } } [18:17:31]POST & json_proto [18:17:31]process_json_proto [18:17:31]json parsed OK: [18:17:31]protocol is kg_v1.0 [18:17:31]action value=get_value [18:17:31]process_action get_value [18:17:31]cmd_get_value [18:17:31]process_action get_value done [18:17:31]requested_data is exist [18:17:31]produce_requested_data [18:17:31]requested_item fm.sale.total is exist - process it [18:17:31]SAM_PROTO_GetFMData [18:17:31]wFMCommunicate request_size=4 [18:17:31]MH_SAM_APDU [18:17:31]CAPDU: 80 13 03 00 [18:17:31]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [18:17:31]Write i2c OK [18:17:31]MH_I2C_Read... [18:17:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [18:17:32]Read from MH i2c: E2 [18:17:32]MH_I2C_Read... [18:17:32]Read from MH i2c: E2 FD 00 [18:17:32]MH_I2C_Read... [18:17:32]Read from MH i2c: E2 FD 00 13 00 00 C7 04 85 04 C3 04 6E 04 04 00 1F 3D 01 00 69 04 A3 00 6F 04 04 00 87 3A 01 00 B1 04 05 00 05 0F 02 7B 01 70 04 05 00 BC 44 F4 40 01 72 04 04 00 49 CA 0D 3A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 4E 26 43 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 8F DA 5A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 98 02 00 00 B1 04 04 00 70 95 0F 13 70 04 04 00 08 53 0F 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AD 37 06 02 EF 90 00 6B [18:17:32]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 1F 3D 01 00 69 04 A3 00 6F 04 04 00 87 3A 01 00 B1 04 05 00 05 0F 02 7B 01 70 04 05 00 BC 44 F4 40 01 72 04 04 00 49 CA 0D 3A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 4E 26 43 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 8F DA 5A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 98 02 00 00 B1 04 04 00 70 95 0F 13 70 04 04 00 08 53 0F 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AD 37 06 02 EF 90 00 [18:17:32]wFMCommunicate OK [18:17:32]wFMCommunicate request_size=4 [18:17:32]MH_SAM_APDU [18:17:32]CAPDU: 80 17 00 00 [18:17:32]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [18:17:32]Write i2c OK [18:17:32]MH_I2C_Read... [18:17:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:17:32]Read from MH i2c: E2 [18:17:32]MH_I2C_Read... [18:17:32]Read from MH i2c: E2 FD 00 [18:17:32]MH_I2C_Read... [18:17:32]Read from MH i2c: E2 FD 00 14 00 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0A 2F 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 90 00 05 [18:17:32]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0A 2F 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 90 00 [18:17:32]wFMCommunicate OK [18:17:32]wFMCommunicate request_size=4 [18:17:32]MH_SAM_APDU [18:17:32]CAPDU: 80 17 00 00 [18:17:32]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [18:17:32]Write i2c OK [18:17:32]MH_I2C_Read... [18:17:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:17:32]Read from MH i2c: E2 [18:17:32]MH_I2C_Read... [18:17:32]Read from MH i2c: E2 FD 00 [18:17:32]MH_I2C_Read... [18:17:32]Read from MH i2c: E2 FD 00 15 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 6D [18:17:32]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [18:17:32]wFMCommunicate OK [18:17:32]wFMCommunicate request_size=4 [18:17:32]MH_SAM_APDU [18:17:32]CAPDU: 80 17 00 00 [18:17:32]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [18:17:32]Write i2c OK [18:17:32]MH_I2C_Read... [18:17:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:17:32]Read from MH i2c: E2 [18:17:32]MH_I2C_Read... [18:17:32]Read from MH i2c: E2 FD 00 [18:17:32]MH_I2C_Read... [18:17:32]Read from MH i2c: E2 FD 00 16 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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 11 [18:17:32]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [18:17:33]wFMCommunicate OK [18:17:33]wFMCommunicate request_size=4 [18:17:33]MH_SAM_APDU [18:17:33]CAPDU: 80 17 00 00 [18:17:33]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [18:17:33]Write i2c OK [18:17:33]MH_I2C_Read... [18:17:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [18:17:33]Read from MH i2c: E2 [18:17:33]MH_I2C_Read... [18:17:33]Read from MH i2c: E2 E4 00 [18:17:33]MH_I2C_Read... [18:17:33]Read from MH i2c: E2 E4 00 17 00 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 77 [18:17:33]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [18:17:33]wFMCommunicate OK [18:17:33]SAM_PROTO_GetFMData done [18:17:33]requested_item fm.sale_refund.total is exist - process it [18:17:33]requested_item fm.buy.total is exist - process it [18:17:33]requested_item shift.sale.total is exist - process it [18:17:33]SAM_PROTO_GetShiftData [18:17:33]wFMCommunicate request_size=4 [18:17:33]MH_SAM_APDU [18:17:33]CAPDU: 80 13 02 00 [18:17:33]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [18:17:33]Write i2c OK [18:17:33]MH_I2C_Read... [18:17:33]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [18:17:33]Read from MH i2c: E2 [18:17:33]MH_I2C_Read... [18:17:33]Read from MH i2c: E2 FD 00 [18:17:33]MH_I2C_Read... [18:17:33]Read from MH i2c: E2 FD 00 18 00 00 BA 04 AA 04 B6 04 6E 04 04 00 9F 00 00 00 69 04 9C 00 6F 04 04 00 9C 00 00 00 B1 04 03 00 EC 75 77 70 04 03 00 80 75 5F 72 04 03 00 6C 00 18 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 A6 B0 0C 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 B5 0E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 FC 0A 70 04 03 00 80 FC 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BD 2A 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 AA [18:17:33]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 9F 00 00 00 69 04 9C 00 6F 04 04 00 9C 00 00 00 B1 04 03 00 EC 75 77 70 04 03 00 80 75 5F 72 04 03 00 6C 00 18 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 A6 B0 0C 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 B5 0E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 FC 0A 70 04 03 00 80 FC 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BD 2A 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [18:17:33]wFMCommunicate OK [18:17:33]wFMCommunicate request_size=4 [18:17:33]MH_SAM_APDU [18:17:33]CAPDU: 80 17 00 00 [18:17:33]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [18:17:33]Write i2c OK [18:17:33]MH_I2C_Read... [18:17:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:17:34]Read from MH i2c: E2 [18:17:34]MH_I2C_Read... [18:17:34]Read from MH i2c: E2 FD 00 [18:17:34]MH_I2C_Read... [18:17:34]Read from MH i2c: E2 FD 00 19 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 3F [18:17:34]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 [18:17:34]wFMCommunicate OK [18:17:34]wFMCommunicate request_size=4 [18:17:34]MH_SAM_APDU [18:17:34]CAPDU: 80 17 00 00 [18:17:34]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [18:17:34]Write i2c OK [18:17:34]MH_I2C_Read... [18:17:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:17:34]Read from MH i2c: E2 [18:17:34]MH_I2C_Read... [18:17:34]Read from MH i2c: E2 FD 00 [18:17:34]MH_I2C_Read... [18:17:34]Read from MH i2c: E2 FD 00 1A 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 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 C6 [18:17: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 [18:17:34]wFMCommunicate OK [18:17:34]wFMCommunicate request_size=4 [18:17:34]MH_SAM_APDU [18:17:34]CAPDU: 80 17 00 00 [18:17:34]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [18:17:34]Write i2c OK [18:17:34]MH_I2C_Read... [18:17:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:17:34]Read from MH i2c: E2 [18:17:34]MH_I2C_Read... [18:17:34]Read from MH i2c: E2 FD 00 [18:17:34]MH_I2C_Read... [18:17:34]Read from MH i2c: E2 FD 00 1B 00 00 00 EF 03 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 13 [18:17:34]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 [18:17:34]wFMCommunicate OK [18:17:34]wFMCommunicate request_size=4 [18:17:34]MH_SAM_APDU [18:17:34]CAPDU: 80 17 00 00 [18:17:34]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [18:17:34]Write i2c OK [18:17:34]MH_I2C_Read... [18:17:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [18:17:34]Read from MH i2c: E2 [18:17:34]MH_I2C_Read... [18:17:34]Read from MH i2c: E2 D7 00 [18:17:34]MH_I2C_Read... [18:17:34]Read from MH i2c: E2 D7 00 1C 00 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 7F [18:17: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 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [18:17:35]wFMCommunicate OK [18:17:35]SAM_PROTO_GetShiftData done [18:17:35]requested_item shift.sale.total_cash is exist - process it [18:17:35]requested_item shift.sale_refund.total is exist - process it [18:17:35]requested_item shift.sale_refund.total_cash is exist - process it [18:17:35]requested_item shift.buy.total is exist - process it [18:17:35]requested_item shift.buy.total_cash is exist - process it [18:17:35]produce_requested_data done [18:17:35]produce_requested_data return {"fm.sale.total":63586997.81,"fm.sale_refund.total":3197884.00,"fm.buy.total":0.00,"shift.sale.total":78289.72,"shift.sale.total_cash":62560.00,"shift.sale_refund.total":7200.00,"shift.sale_refund.total_cash":7200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [18:17:35]process_action_free get_value [18:17:35]json_value_free [18:17:35]json_value_free done [18:17:35]process_json_proto returns [18:17:35]Send response to host [18:17:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":63586997.81,"fm.sale_refund.total":3197884.00,"fm.buy.total":0.00,"shift.sale.total":78289.72,"shift.sale.total_cash":62560.00,"shift.sale_refund.total":7200.00,"shift.sale_refund.total_cash":7200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [18:17:35]free response buf [18:17:35]execute_script done [18:17:35]execute_script returns [18:17:35]free content buf [18:17:35]Sock 6.Close socket [18:17:35]Sock 6.Thread stoped [18:17:35]accept exits with 9 [18:17:35]New connection [18:17:35]New thread 3067129188 created [18:17:35]Thread 3066985828 joined [18:17:35]Waiting for new connection... [18:17:35] Sock 9.Parse request [18:17:35]Sock 9.Check first char [18:17:35]Sock 9.First char is OK [18:17:35]request: POST /json_proto HTTP/1.0 [18:17:35]Method: POST [18:17:35]URL: /json_proto [18:17:35]Method is POST - this is cgi request [18:17:35]url: /json_proto [18:17:35]query_string will be loaded in cgi processing [18:17:35]execute_cgi json_proto POST (null) [18:17:35]execute_cgi path=json_proto method=POST [18:17:35]POST find Content-Length [18:17:35]Host: 172.17.44.67:8080 [18:17:35]Content-Length: 792 [18:17:35]Content-Type: application/json [18:17:35] [18:17:35]POST finish read [18:17:35]Found Content-Length = 792 [18:17:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03891", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:35]execute_script... [18:17:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03891", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:35]POST & json_proto [18:17:35]process_json_proto [18:17:35]json parsed OK: [18:17:35]protocol is kg_v1.0 [18:17:35]action value=close_receipt [18:17:35]process_action close_receipt [18:17:35]cmd_close_receipt [18:17:35]MH_GetDate [18:17:35]Write to MH i2c: F0 00 00 1D 00 0C [18:17:35]Write i2c OK [18:17:35]MH_I2C_Read... [18:17:35]Read from MH i2c: F0 [18:17:35]MH_I2C_Read... [18:17:35]Read from MH i2c: F0 09 00 [18:17:35]MH_I2C_Read... [18:17:35]Read from MH i2c: F0 09 00 1D 00 00 C0 54 11 67 F1 C7 6B 64 28 [18:17:35]GetLastDocTimeStamp 1729188926 [18:17:35]current date 1729189056 [18:17:35]FM_GetShiftState [18:17:35]SAM_PROTO_GetShiftState [18:17:35]wFMCommunicate request_size=4 [18:17:35]MH_SAM_APDU [18:17:35]CAPDU: 80 13 01 00 [18:17:35]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [18:17:35]Write i2c OK [18:17:35]MH_I2C_Read... [18:17:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:35]Read from MH i2c: E2 [18:17:35]MH_I2C_Read... [18:17:35]Read from MH i2c: E2 0E 00 [18:17:35]MH_I2C_Read... [18:17:35]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 A3 [18:17:35]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [18:17:35]wFMCommunicate OK [18:17:35]SAM_PROTO_GetShiftState done [18:17:35]FM_GetShiftState done [18:17:35]opened in 1729125927 [18:17:35]opened+sec_in_day 1729212327 [18:17:35]quantity*price = 0 [18:17:35]sum+1 = 1 [18:17:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 160 17.10.2024 18:17 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливная Карта 03891 ФМ: 0000000000871843 ФД: 82234 ФПД: 10882893997532 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T181736&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82234&fm=10882893997532&tin=02508201610067®Number=0000000000091680&sum=0 [18:17:36]StoreToDocumentArchive [18:17:36]shift 525 fd 82234 [18:17:36]save to /storage/0525/doc_00082234 [18:17:36]save last doc name /storage/0525/doc_00082234 to /storage/kkm_last_doc_name [18:17:36]save OK [18:17:36]Clear old archive folders... [18:17:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:17:36]tlvbuf is 012F1BE0 [18:17:36]SAM_PROTO_ClearQueue [18:17:36]wFMCommunicate request_size=4 [18:17:36]MH_SAM_APDU [18:17:36]CAPDU: 80 09 00 00 [18:17:36]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [18:17:36]Write i2c OK [18:17:36]MH_I2C_Read... [18:17:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:17:36]Read from MH i2c: E2 [18:17:36]MH_I2C_Read... [18:17:36]Read from MH i2c: E2 03 00 [18:17:36]MH_I2C_Read... [18:17:36]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [18:17:36]RAPDU: 90 00 [18:17:36]wFMCommunicate OK [18:17:36]SAM_PROTO_ClearQueue done [18:17:36]KKMCreateOFDPacket [18:17:36]OFDProtocolAddRootSTLVToBuf [18:17:36]FM_MakeSignedData [18:17:36]FM_MakeSignedData [18:17:36]SAM_PROTO_SignData [18:17:36]wFMCommunicate request_size=4 [18:17:36]MH_SAM_APDU [18:17:36]CAPDU: 80 0D 01 02 [18:17:36]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [18:17:36]Write i2c OK [18:17:36]MH_I2C_Read... [18:17:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:17:37]Read from MH i2c: E2 [18:17:37]MH_I2C_Read... [18:17:37]Read from MH i2c: E2 03 00 [18:17:37]MH_I2C_Read... [18:17:37]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [18:17:37]RAPDU: 90 00 [18:17:37]wFMCommunicate OK [18:17:37]wFMCommunicate request_size=255 [18:17:37]MH_SAM_APDU [18:17:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 C0 54 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3A 41 01 00 35 04 06 00 09 [18:17:37]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 C0 54 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3A 41 01 00 35 04 06 00 09 00 00 DA [18:17:37]Write i2c OK [18:17:37]MH_I2C_Read... [18:17:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:37]Read from MH i2c: E2 [18:17:37]MH_I2C_Read... [18:17:37]Read from MH i2c: E2 03 00 [18:17:37]MH_I2C_Read... [18:17:37]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [18:17:37]RAPDU: 90 00 [18:17:37]wFMCommunicate OK [18:17:37]wFMCommunicate request_size=10 [18:17:37]MH_SAM_APDU [18:17:37]CAPDU: 80 0D 02 02 05 E5 DF 07 E5 DC [18:17:37]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 E5 DF 07 E5 DC 00 00 3E [18:17:37]Write i2c OK [18:17:37]MH_I2C_Read... [18:17:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:37]Read from MH i2c: E2 [18:17:37]MH_I2C_Read... [18:17:37]Read from MH i2c: E2 03 00 [18:17:37]MH_I2C_Read... [18:17:37]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [18:17:37]RAPDU: 90 00 [18:17:37]wFMCommunicate OK [18:17:37]wFMCommunicate request_size=4 [18:17:37]MH_SAM_APDU [18:17:37]CAPDU: 80 0D 03 02 [18:17:37]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [18:17:37]Write i2c OK [18:17:37]MH_I2C_Read... [18:17:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:17:37]Read from MH i2c: E2 [18:17:37]MH_I2C_Read... [18:17:37]Read from MH i2c: E2 0B 00 [18:17:37]MH_I2C_Read... [18:17:37]Read from MH i2c: E2 0B 00 2F 00 00 99 9F 45 2A F2 E1 1A 78 90 00 B7 [18:17:37]RAPDU: 99 9F 45 2A F2 E1 1A 78 90 00 [18:17:37]wFMCommunicate OK [18:17:37]SAM_PROTO_SignData done [18:17:37]FM_MakeSignedData done [18:17:37]CreateOFDProtocolMessage [18:17:37]wFMCommunicate request_size=4 [18:17:37]MH_SAM_APDU [18:17:37]CAPDU: 80 11 00 00 [18:17:37]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [18:17:37]Write i2c OK [18:17:37]MH_I2C_Read... [18:17:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:37]Read from MH i2c: E2 [18:17:37]MH_I2C_Read... [18:17:37]Read from MH i2c: E2 17 00 [18:17:37]MH_I2C_Read... [18:17:37]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 FC [18:17:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:17:37]wFMCommunicate OK [18:17:37]CreateOFDProtocolMessage done [18:17:37]OFDSenderStorePacket 82234 [18:17:37]StoreOFDPacket docnum=82234 [18:17:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 AF A4 07 01 DC 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 C0 54 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3A 41 01 00 35 04 06 00 09 E5 DF 07 E5 DC 99 9F 45 2A F2 E1 1A 78 [18:17:37]CheckFolder [18:17:37]dirname=/storage/ofd_packets [18:17:37]CheckFolder done [18:17:37]ProducePacketName [18:17:37]name=ofd_packets/00082234 [18:17:37]NVStorageSaveData ofd_packets/00082234 [18:17:37]File name is /storage/ofd_packets/00082234 [18:17:37]Write 301 bytes [18:17:37]NVStorageSaveData done [18:17:37]OFDSenderStorePacket done [18:17:37]KKMCreateOFDPacket done [18:17:37]NVStorageSaveData kkm_last_timestamp [18:17:37]File name is /storage/kkm_last_timestamp [18:17:37]Write 4 bytes [18:17:37]NVStorageSaveData done [18:17:37]ExternCall_PrintAddStr [18:17:37]wPrintStart [18:17:37]Write to MH i2c: 01 00 00 31 00 31 [18:17:37]Write i2c OK [18:17:37]MH_I2C_Read... [18:17:37]Read from MH i2c: 01 [18:17:37]MH_I2C_Read... [18:17:37]Read from MH i2c: 01 07 00 [18:17:37]MH_I2C_Read... [18:17:37]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [18:17:37]RasterBufferAndPrint [18:17:37]line Счет N : (1)918736 [18:17:37]line ИНН: 02508201610067 [18:17:37]line Контрольно-Кассовый Чек [18:17:37]line ПРОДАЖА [18:17:37]line ТРК (МРК, ГНК) : 11 [18:17:37]line Товар: 2710124130 [18:17:37]line Аи-92-К-4 [18:17:37]line 20.000 * 0.00 [18:17:37]line = 0.00 [18:17:37]line НДС 12% НСП 1% [18:17:37]line > о реализуемом товаре [18:17:37]line ИТОГО: 0.00 [18:17:37]line НСП 1% : 0.00 [18:17:37]line НДС 12% : 0.00 [18:17:37]line Наличными: 0.00 [18:17:37]line Безнал.: 0.00 [18:17:37]line Место: АЗС № 114 "Партнер Нефть" [18:17:37]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [18:17:37]line СНО: Общий режим [18:17:37]line Чек 160 17.10.2024 18:17 [18:17:37]line Смена: 525 ФФД: 1.0 [18:17:37]line ЗНМ: 0300000086 [18:17:37]line РНМ: 0000000000091680 [18:17:37]line Версия ККМ: 001 [18:17:37]line Талоны: Топливная Карта [18:17:37]line 03891 [18:17:37]line ФМ: 0000000000871843 [18:17:37]line ФД: 82234 [18:17:37]line ФПД: 10882893997532 [18:17:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T181736&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82234&fm=10882893997532&tin=02508201610067®Number=0000000000091680&sum=0 [18:17:37]written 0, free lines is 4095 [18:17:37]OFD Sender: Processing packet 82234 [packets to send 254, broken 253] [18:17:37]ProducePacketName [18:17:37]name=ofd_packets/00082234 [18:17:37]OFD Sender: To server: pG, [18:17:37]CommunicateWithHost lk.salyk.kg:30040 [18:17:37]ConnectInit lk.salyk.kg [18:17:38]Write to MH i2c: 01 00 00 5B 00 5B [18:17:38]Write i2c OK [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: 01 [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: 01 07 00 [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 F2 0C 60 [18:17:38]RasterBufferAndPrint [18:17:38]line [18:17:38]line [18:17:38]line [18:17:38]line [18:17:38]line [18:17:38]written 0, free lines is 3339 [18:17:38]MH_Cut [18:17:38]Write to MH i2c: D1 01 00 62 00 01 34 [18:17:38]Write i2c OK [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: D1 [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: D1 01 00 [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: D1 01 00 62 00 00 33 [18:17:38]Write to MH i2c: 01 00 00 63 00 63 [18:17:38]Write i2c OK [18:17:38]MH_I2C_Read... [18:17:38]Connected sock=10 [18:17:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 AF A4 07 01 DC 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 C0 54 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3A 41 01 00 35 04 06 00 09 E5 DF 07 E5 DC 99 9F 45 2A F2 E1 1A 78 [18:17:38]*** Cut start [18:17:38]*** Partial cut [18:17:38]*** CUTSNS_PIN = 1 [18:17:39]*** CUTSNS_PIN = 0 [18:17:39]*** Brake cut motor [18:17:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 91 22 47 00 A6 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 30 38 37 31 38 34 33 10 04 04 00 3A 41 01 00 F4 03 04 00 FE F9 10 67 B6 04 01 00 00 6A EB 5F 69 32 77 37 44 [18:17:39]CommunicateWithHost err = 0 [18:17:39]CheckOFDResponse [18:17:39]1017 (14) - 77093643461234 [18:17:39]1041 (16) - 0000000000871843 [18:17:39]1040 (4) - 82234 [18:17:39]1012 (4) - 17.10.2024 11:50 [18:17:39]1206 (1) - 0 [18:17:39]OFD Sender: Remove packet 82234 [18:17:39]ProducePacketName [18:17:39]name=ofd_packets/00082234 [18:17:39]NVStorageDeleteData [18:17:39]Read from MH i2c: 01 [18:17:39]MH_I2C_Read... [18:17:39]*** Stop cut motor [18:17:39]*** Cut end [18:17:39]Read from MH i2c: 01 07 00 [18:17:39]MH_I2C_Read... [18:17:39]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [18:17:39]process_action close_receipt done [18:17:39]requested_data is exist [18:17:39]produce_requested_data [18:17:39]requested_item fm.sn is exist - process it [18:17:39]wFMCommunicate request_size=4 [18:17:39]MH_SAM_APDU [18:17:39]CAPDU: 80 11 00 00 [18:17:39]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [18:17:39]Write i2c OK [18:17:39]MH_I2C_Read... [18:17:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:39]Read from MH i2c: E2 [18:17:39]MH_I2C_Read... [18:17:39]Read from MH i2c: E2 17 00 [18:17:39]MH_I2C_Read... [18:17:39]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 30 [18:17:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:17:39]wFMCommunicate OK [18:17:39]requested_item fd.num is exist - process it [18:17:39]SAM_PROTO_GetFieldsCounters [18:17:39]wFMCommunicate request_size=4 [18:17:39]MH_SAM_APDU [18:17:39]CAPDU: 80 13 00 00 [18:17:39]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [18:17:39]Write i2c OK [18:17:39]MH_I2C_Read... [18:17:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:17:39]Read from MH i2c: E2 [18:17:39]MH_I2C_Read... [18:17:39]Read from MH i2c: E2 62 00 [18:17:39]MH_I2C_Read... [18:17:39]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 3A 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [18:17:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 3A 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:17:39]wFMCommunicate OK [18:17:39]SAM_PROTO_GetFieldsCounters done [18:17:39]requested_item shift.num is exist - process it [18:17:39]requested_item shift.opened is exist - process it [18:17:39]req_shift_opened [18:17:39]FM_GetShiftState [18:17:39]SAM_PROTO_GetShiftState [18:17:39]wFMCommunicate request_size=4 [18:17:39]MH_SAM_APDU [18:17:39]CAPDU: 80 13 01 00 [18:17:39]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [18:17:39]OFD Sender: No OFD packet to send [18:17:39]Write i2c OK [18:17:39]MH_I2C_Read... [18:17:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:40]Read from MH i2c: E2 [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: E2 0E 00 [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 EB [18:17:40]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [18:17:40]wFMCommunicate OK [18:17:40]SAM_PROTO_GetShiftState done [18:17:40]FM_GetShiftState done [18:17:40]req_shift_opened done [18:17:40]requested_item shift.open_date is exist - process it [18:17:40]req_shift_open_date [18:17:40]req_shift_open_date done [18:17:40]produce_requested_data done [18:17:40]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82234,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [18:17:40]process_action_free close_receipt [18:17:40]json_value_free [18:17:40]json_value_free done [18:17:40]process_json_proto returns [18:17:40]Send response to host [18:17:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82234,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [18:17:40]free response buf [18:17:40]execute_script done [18:17:40]execute_script returns [18:17:40]free content buf [18:17:40]Sock 9.Close socket [18:17:40]Sock 9.Thread stoped [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:55]recv_with_timeout no data received [18:18:00]OFD Sender: No OFD packet to send [18:18:05]OFD Sender: No OFD packet to send [18:18:10]OFD Sender: No OFD packet to send [18:18:13]recv_with_timeout no data received [18:18:15]OFD Sender: No OFD packet to send [18:18:19]accept exits with 6 [18:18:19]New connection [18:18:19]New thread 3066985828 created [18:18:19]Thread 3067129188 joined [18:18:19]Waiting for new connection... [18:18:19] Sock 6.Parse request [18:18:19]Sock 6.Check first char [18:18:19]Sock 6.First char is OK [18:18:19]request: POST /json_proto HTTP/1.0 [18:18:19]Method: POST [18:18:19]URL: /json_proto [18:18:19]Method is POST - this is cgi request [18:18:19]url: /json_proto [18:18:19]query_string will be loaded in cgi processing [18:18:19]execute_cgi json_proto POST (null) [18:18:19]execute_cgi path=json_proto method=POST [18:18:19]POST find Content-Length [18:18:19]Host: 172.17.44.67:8080 [18:18:19]Content-Length: 677 [18:18:19]Content-Type: application/json [18:18:19] [18:18:19]POST finish read [18:18:19]Found Content-Length = 677 [18:18:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 1.950, "sum" : 130.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 130.00, "total" : 130.00, "payments": [ { "type": 0, "sum" : 130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:19]execute_script... [18:18:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 1.950, "sum" : 130.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 130.00, "total" : 130.00, "payments": [ { "type": 0, "sum" : 130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:19]POST & json_proto [18:18:19]process_json_proto [18:18:19]json parsed OK: [18:18:19]protocol is kg_v1.0 [18:18:19]action value=close_receipt [18:18:19]process_action close_receipt [18:18:19]cmd_close_receipt [18:18:19]MH_GetDate [18:18:19]Write to MH i2c: F0 00 00 67 00 56 [18:18:19]Write i2c OK [18:18:19]MH_I2C_Read... [18:18:19]Read from MH i2c: F0 [18:18:19]MH_I2C_Read... [18:18:19]Read from MH i2c: F0 09 00 [18:18:19]MH_I2C_Read... [18:18:19]Read from MH i2c: F0 09 00 67 00 00 EC 54 11 67 F1 C7 6B 64 9E [18:18:19]GetLastDocTimeStamp 1729189056 [18:18:19]current date 1729189100 [18:18:19]FM_GetShiftState [18:18:19]SAM_PROTO_GetShiftState [18:18:19]wFMCommunicate request_size=4 [18:18:19]MH_SAM_APDU [18:18:19]CAPDU: 80 13 01 00 [18:18:19]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [18:18:19]Write i2c OK [18:18:19]MH_I2C_Read... [18:18:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:19]Read from MH i2c: E2 [18:18:19]MH_I2C_Read... [18:18:19]Read from MH i2c: E2 0E 00 [18:18:19]MH_I2C_Read... [18:18:19]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 ED [18:18:19]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [18:18:19]wFMCommunicate OK [18:18:19]SAM_PROTO_GetShiftState done [18:18:19]FM_GetShiftState done [18:18:19]opened in 1729125927 [18:18:19]opened+sec_in_day 1729212327 [18:18:19]quantity*price = 13045 [18:18:19]sum+1 = 13047 [18:18:19]Check (price>sum+1) || (price+1 о реализуемом товаре [18:18:21]line ОКРУГЛЕНИЕ: -0.46 [18:18:21]line ИТОГО: 130.00 [18:18:21]line Внесено: 130.00 [18:18:21]line СДАЧА: 0.00 [18:18:21]line НСП 1% : 1.15 [18:18:21]line НДС 12% : 13.85 [18:18:21]line Наличными: 130.00 [18:18:21]line Безнал.: 0.00 [18:18:21]line Место: АЗС № 114 "Партнер Нефть" [18:18:21]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [18:18:21]line СНО: Общий режим [18:18:21]line Чек 161 17.10.2024 18:18 [18:18:21]line Смена: 525 ФФД: 1.0 [18:18:21]line ЗНМ: 0300000086 [18:18:21]line РНМ: 0000000000091680 [18:18:21]line Версия ККМ: 001 [18:18:21]line ФМ: 0000000000871843 [18:18:21]line ФД: 82235 [18:18:21]line ФПД: 73950200828350 [18:18:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T181820&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82235&fm=73950200828350&tin=02508201610067®Number=0000000000091680&sum=13000 [18:18:21]written 0, free lines is 4095 [18:18:21]OFD Sender: Processing packet 82235 [packets to send 254, broken 253] [18:18:21]ProducePacketName [18:18:21]name=ofd_packets/00082235 [18:18:21]OFD Sender: To server: pG, [18:18:21]CommunicateWithHost lk.salyk.kg:30040 [18:18:21]ConnectInit lk.salyk.kg [18:18:21]Write to MH i2c: 01 00 00 A6 00 A6 [18:18:21]Write i2c OK [18:18:21]MH_I2C_Read... [18:18:21]Read from MH i2c: 01 [18:18:21]MH_I2C_Read... [18:18:21]Read from MH i2c: 01 07 00 [18:18:21]MH_I2C_Read... [18:18:21]Read from MH i2c: 01 07 00 A6 00 00 00 00 00 00 ED 0C A6 [18:18:21]RasterBufferAndPrint [18:18:21]line [18:18:21]line [18:18:21]line [18:18:21]line [18:18:21]line [18:18:21]written 0, free lines is 3321 [18:18:21]MH_Cut [18:18:21]Write to MH i2c: D1 01 00 AD 00 01 7F [18:18:21]Write i2c OK [18:18:21]MH_I2C_Read... [18:18:21]Read from MH i2c: D1 [18:18:21]MH_I2C_Read... [18:18:21]Read from MH i2c: D1 01 00 [18:18:21]MH_I2C_Read... [18:18:21]Read from MH i2c: D1 01 00 AD 00 00 7E [18:18:21]Write to MH i2c: 01 00 00 AE 00 AE [18:18:21]Write i2c OK [18:18:21]MH_I2C_Read... [18:18:22]*** Cut start [18:18:22]*** Partial cut [18:18:22]*** CUTSNS_PIN = 1 [18:18:22]*** CUTSNS_PIN = 0 [18:18:22]*** Brake cut motor [18:18:23]Read from MH i2c: 01 [18:18:23]MH_I2C_Read... [18:18:23]*** Stop cut motor [18:18:23]*** Cut end [18:18:23]Read from MH i2c: 01 07 00 [18:18:23]MH_I2C_Read... [18:18:23]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [18:18:23]process_action close_receipt done [18:18:23]requested_data is exist [18:18:23]produce_requested_data [18:18:23]requested_item fm.sn is exist - process it [18:18:23]wFMCommunicate request_size=4 [18:18:23]MH_SAM_APDU [18:18:23]CAPDU: 80 11 00 00 [18:18:23]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [18:18:23]Write i2c OK [18:18:23]MH_I2C_Read... [18:18:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:23]Read from MH i2c: E2 [18:18:23]MH_I2C_Read... [18:18:23]Read from MH i2c: E2 17 00 [18:18:23]MH_I2C_Read... [18:18:23]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 7B [18:18:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:18:23]wFMCommunicate OK [18:18:23]requested_item fd.num is exist - process it [18:18:23]SAM_PROTO_GetFieldsCounters [18:18:23]wFMCommunicate request_size=4 [18:18:23]MH_SAM_APDU [18:18:23]CAPDU: 80 13 00 00 [18:18:23]Write to MH i2c: E2 08 00 B0 00 80 13 00 00 00 00 00 00 2C [18:18:23]Write i2c OK [18:18:23]MH_I2C_Read... [18:18:23]Connected sock=11 [18:18:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 E9 22 07 01 14 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 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 69 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 A1 00 00 00 F4 03 04 00 EC 54 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3B 41 01 00 35 04 06 00 43 41 DF 73 91 BE 93 56 FA F2 E6 F5 8C F6 [18:18:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:18:23]Read from MH i2c: E2 [18:18:23]MH_I2C_Read... [18:18:23]Read from MH i2c: E2 62 00 [18:18:23]MH_I2C_Read... [18:18:23]Read from MH i2c: E2 62 00 B0 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 3B 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [18:18:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 3B 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:18:23]wFMCommunicate OK [18:18:23]SAM_PROTO_GetFieldsCounters done [18:18:23]requested_item shift.num is exist - process it [18:18:23]requested_item shift.opened is exist - process it [18:18:23]req_shift_opened [18:18:23]FM_GetShiftState [18:18:23]SAM_PROTO_GetShiftState [18:18:23]wFMCommunicate request_size=4 [18:18:23]MH_SAM_APDU [18:18:23]CAPDU: 80 13 01 00 [18:18:23]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [18:18:23]Write i2c OK [18:18:23]MH_I2C_Read... [18:18:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:23]Read from MH i2c: E2 [18:18:23]MH_I2C_Read... [18:18:23]Read from MH i2c: E2 0E 00 [18:18:23]MH_I2C_Read... [18:18:23]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 36 [18:18:23]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [18:18:23]wFMCommunicate OK [18:18:23]SAM_PROTO_GetShiftState done [18:18:23]FM_GetShiftState done [18:18:23]req_shift_opened done [18:18:23]requested_item shift.open_date is exist - process it [18:18:23]req_shift_open_date [18:18:23]req_shift_open_date done [18:18:23]produce_requested_data done [18:18:23]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82235,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [18:18:23]process_action_free close_receipt [18:18:23]json_value_free [18:18:23]json_value_free done [18:18:23]process_json_proto returns [18:18:23]Send response to host [18:18:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82235,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [18:18:23]free response buf [18:18:23]execute_script done [18:18:23]execute_script returns [18:18:23]free content buf [18:18:23]Sock 6.Close socket [18:18:23]Sock 6.Thread stoped [18:18:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 95 83 47 00 77 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3B 41 01 00 F4 03 04 00 2B FA 10 67 B6 04 01 00 00 96 42 FD 05 88 CF 97 56 [18:18:24]CommunicateWithHost err = 0 [18:18:24]CheckOFDResponse [18:18:24]1017 (14) - 77093643461234 [18:18:24]1041 (16) - 0000000000871843 [18:18:24]1040 (4) - 82235 [18:18:24]1012 (4) - 17.10.2024 11:51 [18:18:24]1206 (1) - 0 [18:18:24]OFD Sender: Remove packet 82235 [18:18:24]ProducePacketName [18:18:24]name=ofd_packets/00082235 [18:18:24]NVStorageDeleteData [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]recv_with_timeout no data received [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:30]recv_with_timeout no data received [18:19:34]OFD Sender: No OFD packet to send [18:19:39]OFD Sender: No OFD packet to send [18:19:40]recv_with_timeout no data received [18:19:44]OFD Sender: No OFD packet to send [18:19:49]OFD Sender: No OFD packet to send [18:18:19]Malloc new data [18:18:19]Malloc new data [18:18:19]Malloc new data [18:18:19]Malloc new data [18:18:19]Malloc new data [18:18:19]KKMSetReceiptItemData err=0 [18:18:19]KKMAddReceiptItem [18:18:19]LoadAmountFromDocumentTag total=0 [18:18:19]LoadAmountFromDocumentTag cost=13046 [18:18:19]SetAmountToDocument total=13046 [18:18:19]Malloc new data [18:18:19]cost*persent_nds=1565520 [18:18:19]+500=1566020 [18:18:19]tax_nds_amount=1385 [18:18:19]cost*persent_nds=130460 [18:18:19]+500=130960 [18:18:19]tax_nsp_amount=115 [18:18:19]Load OK [18:18:19]Load OK [18:18:19]Malloc new data [18:18:19]Malloc new data [18:18:19]Load OK [18:18:19]Load OK [18:18:19]Malloc new data [18:18:19]Malloc new data [18:18:19]free (receipt_item_data.pre_item_text) [18:18:19]free (receipt_item_data.post_item_text) [18:18:19]done [18:18:19]Malloc new data [18:18:19]Malloc new data [18:18:19]Malloc new data [18:18:19]KKMSetReceiptData OK [18:18:19]Malloc new data [18:18:19]Malloc new data [18:18:19]Malloc new data [18:18:19]Malloc new data [18:18:19]ProcessDocumentItem done err = 0, tmpTLVsize=111 [18:18:19]tlvbuf is B6ED3320 [18:18:20]KKMLoadAndSignReceiptData [18:18:20]SAM_PROTO_ProcessDocument [18:18:20]wFMCommunicate request_size=9 [18:18:20]MH_SAM_APDU [18:18:20]CAPDU: 80 15 01 00 04 03 00 6F 00 [18:18:20]Write to MH i2c: E2 0C 00 6A 00 80 15 01 00 04 00 03 00 6F 00 00 00 63 [18:18:20]OFD Sender: No OFD packet to send [18:18:20]Write i2c OK [18:18:20]MH_I2C_Read... [18:18:20]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [18:18:20]Read from MH i2c: E2 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: E2 03 00 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: E2 03 00 6A 00 00 90 00 DE [18:18:20]RAPDU: 90 00 [18:18:20]wFMCommunicate OK [18:18:20]wFMCommunicate request_size=10 [18:18:20]MH_SAM_APDU [18:18:20]CAPDU: 80 15 02 00 05 1E 04 01 00 01 [18:18:20]Write to MH i2c: E2 0D 00 6B 00 80 15 02 00 05 00 1E 04 01 00 01 00 00 19 [18:18:20]Write i2c OK [18:18:20]MH_I2C_Read... [18:18:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [18:18:20]Read from MH i2c: E2 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: E2 03 00 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: E2 03 00 6B 00 00 90 00 DF [18:18:20]RAPDU: 90 00 [18:18:20]wFMCommunicate OK [18:18:20]wFMCommunicate request_size=15 [18:18:20]MH_SAM_APDU [18:18:20]CAPDU: 80 15 02 00 0A FC 03 06 00 C8 32 00 00 00 00 [18:18:20]Write to MH i2c: E2 12 00 6C 00 80 15 02 00 0A 00 FC 03 06 00 C8 32 00 00 00 00 00 00 FF [18:18:20]Write i2c OK [18:18:20]MH_I2C_Read... [18:18:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [18:18:20]Read from MH i2c: E2 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: E2 03 00 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: E2 03 00 6C 00 00 90 00 E0 [18:18:20]RAPDU: 90 00 [18:18:20]wFMCommunicate OK [18:18:20]wFMCommunicate request_size=47 [18:18:20]MH_SAM_APDU [18:18:20]CAPDU: 80 15 02 00 2A 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 69 05 00 00 00 00 [18:18:20]Write to MH i2c: E2 32 00 6D 00 80 15 02 00 2A 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 69 05 00 00 00 00 00 00 25 [18:18:20]Write i2c OK [18:18:20]MH_I2C_Read... [18:18:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [18:18:20]Read from MH i2c: E2 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: E2 03 00 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: E2 03 00 6D 00 00 90 00 E1 [18:18:20]RAPDU: 90 00 [18:18:20]wFMCommunicate OK [18:18:20]wFMCommunicate request_size=15 [18:18:20]MH_SAM_APDU [18:18:20]CAPDU: 80 15 02 00 0A 07 04 06 00 C8 32 00 00 00 00 [18:18:20]Write to MH i2c: E2 12 00 6E 00 80 15 02 00 0A 00 07 04 06 00 C8 32 00 00 00 00 00 00 0D [18:18:20]Write i2c OK [18:18:20]MH_I2C_Read... [18:18:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [18:18:20]Read from MH i2c: E2 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: E2 03 00 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: E2 03 00 6E 00 00 90 00 E2 [18:18:20]RAPDU: 90 00 [18:18:20]wFMCommunicate OK [18:18:20]wFMCommunicate request_size=15 [18:18:20]MH_SAM_APDU [18:18:20]CAPDU: 80 15 02 00 0A 39 04 06 00 00 00 00 00 00 00 [18:18:20]Write to MH i2c: E2 12 00 6F 00 80 15 02 00 0A 00 39 04 06 00 00 00 00 00 00 00 00 00 46 [18:18:20]Write i2c OK [18:18:20]MH_I2C_Read... [18:18:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [18:18:20]Read from MH i2c: E2 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: E2 03 00 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: E2 03 00 6F 00 00 90 00 E3 [18:18:20]RAPDU: 90 00 [18:18:20]wFMCommunicate OK [18:18:20]wFMCommunicate request_size=11 [18:18:20]MH_SAM_APDU [18:18:20]CAPDU: 80 15 02 00 06 1F 04 02 00 01 00 [18:18:20]Write to MH i2c: E2 0E 00 70 00 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 22 [18:18:20]Write i2c OK [18:18:20]MH_I2C_Read... [18:18:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [18:18:20]Read from MH i2c: E2 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: E2 03 00 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: E2 03 00 70 00 00 90 00 E4 [18:18:20]RAPDU: 90 00 [18:18:20]wFMCommunicate OK [18:18:20]wFMCommunicate request_size=13 [18:18:20]MH_SAM_APDU [18:18:20]CAPDU: 80 15 02 00 08 F4 03 04 00 EC 54 11 67 [18:18:20]Write to MH i2c: E2 10 00 71 00 80 15 02 00 08 00 F4 03 04 00 EC 54 11 67 00 00 B4 [18:18:20]Write i2c OK [18:18:20]MH_I2C_Read... [18:18:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [18:18:20]Read from MH i2c: E2 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: E2 03 00 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: E2 03 00 71 00 00 90 00 E5 [18:18:20]RAPDU: 90 00 [18:18:20]wFMCommunicate OK [18:18:20]wFMCommunicate request_size=25 [18:18:20]MH_SAM_APDU [18:18:20]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 [18:18:20]Write to MH i2c: E2 1C 00 72 00 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 00 00 53 [18:18:20]Write i2c OK [18:18:20]MH_I2C_Read... [18:18:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [18:18:20]Read from MH i2c: E2 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: E2 03 00 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: E2 03 00 72 00 00 90 00 E6 [18:18:20]RAPDU: 90 00 [18:18:20]wFMCommunicate OK [18:18:20]wFMCommunicate request_size=4 [18:18:20]MH_SAM_APDU [18:18:20]CAPDU: 80 15 03 00 [18:18:20]Write to MH i2c: E2 08 00 73 00 80 15 03 00 00 00 00 00 F4 [18:18:20]Write i2c OK [18:18:20]MH_I2C_Read... [18:18:20]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [18:18:20]Read from MH i2c: E2 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: E2 40 00 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: E2 40 00 73 00 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3B 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 A1 00 00 00 35 04 06 00 43 41 DF 73 91 BE 90 00 3B [18:18:20]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3B 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 A1 00 00 00 35 04 06 00 43 41 DF 73 91 BE 90 00 [18:18:20]wFMCommunicate OK [18:18:20]SAM_PROTO_ProcessDocument answer len = 59 [18:18:20]SAM_PROTO_ProcessDocument done [18:18:20]SetTLVBufToDocument [18:18:20]Processing tag 1209 (04B9) [18:18:20]Malloc new data [18:18:20]Processing tag 1041 (0411) [18:18:20]Processing tag 1040 (0410) [18:18:20]Malloc new data [18:18:20]Processing tag 1038 (040E) [18:18:20]Malloc new data [18:18:20]Processing tag 1042 (0412) [18:18:20]Malloc new data [18:18:20]Processing tag 1077 (0435) [18:18:20]Malloc new data [18:18:20]SetTLVBufToDocument err=0 [18:18:20]KKMLoadAndSignReceiptData store KKM data [18:18:20]KKMLoadAndSignReceiptData err=0 [18:18:20]wFMCommunicate request_size=4 [18:18:20]MH_SAM_APDU [18:18:20]CAPDU: 80 11 00 00 [18:18:20]Write to MH i2c: E2 08 00 74 00 80 11 00 00 00 00 00 00 EE [18:18:20]Write i2c OK [18:18:20]MH_I2C_Read... [18:18:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:20]Read from MH i2c: E2 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: E2 17 00 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: E2 17 00 74 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 40 [18:18:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:18:20]wFMCommunicate OK [18:18:20]Счет N : (1)918737 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 22 Товар: 2710124130 Аи-92-К-4 1.950 * 66.90 = 130.46 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 130.00 Внесено: 130.00 СДАЧА: 0.00 НСП 1% : 1.15 НДС 12% : 13.85 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 161 17.10.2024 18:18 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82235 ФПД: 73950200828350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T181820&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82235&fm=73950200828350&tin=02508201610067®Number=0000000000091680&sum=13000 [18:18:20]StoreToDocumentArchive [18:18:20]shift 525 fd 82235 [18:18:20]save to /storage/0525/doc_00082235 [18:18:20]save last doc name /storage/0525/doc_00082235 to /storage/kkm_last_doc_name [18:18:20]save OK [18:18:20]Clear old archive folders... [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:39]recv_with_timeout no data received [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:29]OFD Sender: No OFD packet to send [18:22:34]OFD Sender: No OFD packet to send [18:22:39]OFD Sender: No OFD packet to send [18:22:44]OFD Sender: No OFD packet to send [18:22:49]OFD Sender: No OFD packet to send [18:22:54]OFD Sender: No OFD packet to send [18:22:59]OFD Sender: No OFD packet to send [18:23:04]OFD Sender: No OFD packet to send [18:23:09]OFD Sender: No OFD packet to send [18:23:15]OFD Sender: No OFD packet to send [18:23:20]OFD Sender: No OFD packet to send [18:23:25]OFD Sender: No OFD packet to send [18:23:30]OFD Sender: No OFD packet to send [18:23:35]OFD Sender: No OFD packet to send [18:23:40]OFD Sender: No OFD packet to send [18:23:45]OFD Sender: No OFD packet to send [18:23:50]OFD Sender: No OFD packet to send [18:23:55]OFD Sender: No OFD packet to send [18:24:00]OFD Sender: No OFD packet to send [18:24:05]OFD Sender: No OFD packet to send [18:24:10]OFD Sender: No OFD packet to send [18:24:15]OFD Sender: No OFD packet to send [18:24:20]OFD Sender: No OFD packet to send [18:24:25]OFD Sender: No OFD packet to send [18:24:30]OFD Sender: No OFD packet to send [18:24:35]OFD Sender: No OFD packet to send [18:24:38]accept exits with 10 [18:24:38]New connection [18:24:38]New thread 3067129188 created [18:24:38]Thread 3066985828 joined [18:24:38]Waiting for new connection... [18:24:38] Sock 10.Parse request [18:24:38]Sock 10.Check first char [18:24:38]Sock 10.First char is OK [18:24:38]request: POST /json_proto HTTP/1.0 [18:24:38]Method: POST [18:24:38]URL: /json_proto [18:24:38]Method is POST - this is cgi request [18:24:38]url: /json_proto [18:24:38]query_string will be loaded in cgi processing [18:24:38]execute_cgi json_proto POST (null) [18:24:38]execute_cgi path=json_proto method=POST [18:24:38]POST find Content-Length [18:24:38]Host: 172.17.44.67:8080 [18:24:38]Content-Length: 774 [18:24:38]Content-Type: application/json [18:24:38] [18:24:38]POST finish read [18:24:38]Found Content-Length = 774 [18:24:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 65.620, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 5000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:24:38]execute_script... [18:24:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 65.620, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 5000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:24:38]POST & json_proto [18:24:38]process_json_proto [18:24:38]json parsed OK: [18:24:38]protocol is kg_v1.0 [18:24:38]action value=close_receipt [18:24:38]process_action close_receipt [18:24:38]cmd_close_receipt [18:24:38]MH_GetDate [18:24:38]Write to MH i2c: F0 00 00 B2 00 A1 [18:24:38]Write i2c OK [18:24:38]MH_I2C_Read... [18:24:38]Read from MH i2c: F0 [18:24:38]MH_I2C_Read... [18:24:38]Read from MH i2c: F0 09 00 [18:24:38]MH_I2C_Read... [18:24:38]Read from MH i2c: F0 09 00 B2 00 00 67 56 11 67 F1 C7 6B 64 66 [18:24:38]GetLastDocTimeStamp 1729189100 [18:24:38]current date 1729189479 [18:24:38]FM_GetShiftState [18:24:38]SAM_PROTO_GetShiftState [18:24:38]wFMCommunicate request_size=4 [18:24:38]MH_SAM_APDU [18:24:38]CAPDU: 80 13 01 00 [18:24:38]Write to MH i2c: E2 08 00 B3 00 80 13 01 00 00 00 00 00 30 [18:24:38]Write i2c OK [18:24:38]MH_I2C_Read... [18:24:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:38]Read from MH i2c: E2 [18:24:38]MH_I2C_Read... [18:24:38]Read from MH i2c: E2 0E 00 [18:24:38]MH_I2C_Read... [18:24:38]Read from MH i2c: E2 0E 00 B3 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 38 [18:24:38]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [18:24:38]wFMCommunicate OK [18:24:38]SAM_PROTO_GetShiftState done [18:24:38]FM_GetShiftState done [18:24:38]opened in 1729125927 [18:24:38]opened+sec_in_day 1729212327 [18:24:38]quantity*price = 500024 [18:24:38]sum+1 = 500025 [18:24:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5000.24 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 0.00 Безнал.: 5000.24 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 162 17.10.2024 18:24 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82236 ФПД: 232115942501283 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T182439&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82236&fm=232115942501283&tin=02508201610067®Number=0000000000091680&sum=500024 [18:24:40]StoreToDocumentArchive [18:24:40]shift 525 fd 82236 [18:24:40]save to /storage/0525/doc_00082236 [18:24:40]save last doc name /storage/0525/doc_00082236 to /storage/kkm_last_doc_name [18:24:40]save OK [18:24:40]Clear old archive folders... [18:24:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:24:40]tlvbuf is 01313500 [18:24:40]SAM_PROTO_ClearQueue [18:24:40]wFMCommunicate request_size=4 [18:24:40]MH_SAM_APDU [18:24:40]CAPDU: 80 09 00 00 [18:24:40]Write to MH i2c: E2 08 00 C0 00 80 09 00 00 00 00 00 00 32 [18:24:40]Write i2c OK [18:24:40]MH_I2C_Read... [18:24:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:24:40]OFD Sender: No OFD packet to send [18:24:40]Read from MH i2c: E2 [18:24:40]MH_I2C_Read... [18:24:40]Read from MH i2c: E2 03 00 [18:24:40]MH_I2C_Read... [18:24:40]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [18:24:40]RAPDU: 90 00 [18:24:40]wFMCommunicate OK [18:24:40]SAM_PROTO_ClearQueue done [18:24:40]KKMCreateOFDPacket [18:24:40]OFDProtocolAddRootSTLVToBuf [18:24:40]FM_MakeSignedData [18:24:40]FM_MakeSignedData [18:24:40]SAM_PROTO_SignData [18:24:40]wFMCommunicate request_size=4 [18:24:40]MH_SAM_APDU [18:24:40]CAPDU: 80 0D 01 02 [18:24:40]Write to MH i2c: E2 08 00 C1 00 80 0D 01 02 00 00 00 00 3A [18:24:40]Write i2c OK [18:24:40]MH_I2C_Read... [18:24:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:24:40]Read from MH i2c: E2 [18:24:40]MH_I2C_Read... [18:24:40]Read from MH i2c: E2 03 00 [18:24:40]MH_I2C_Read... [18:24:40]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [18:24:40]RAPDU: 90 00 [18:24:40]wFMCommunicate OK [18:24:40]wFMCommunicate request_size=255 [18:24:40]MH_SAM_APDU [18:24:40]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 67 56 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3C 41 01 00 35 04 06 00 [18:24:40]Write to MH i2c: E2 02 01 C2 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 67 56 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3C 41 01 00 35 04 06 00 00 00 4C [18:24:40]Write i2c OK [18:24:40]MH_I2C_Read... [18:24:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:40]Read from MH i2c: E2 [18:24:40]MH_I2C_Read... [18:24:40]Read from MH i2c: E2 03 00 [18:24:40]MH_I2C_Read... [18:24:40]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [18:24:40]RAPDU: 90 00 [18:24:40]wFMCommunicate OK [18:24:40]wFMCommunicate request_size=11 [18:24:40]MH_SAM_APDU [18:24:40]CAPDU: 80 0D 02 02 06 D3 1B B4 4C AB A3 [18:24:40]Write to MH i2c: E2 0E 00 C3 00 80 0D 02 02 06 00 D3 1B B4 4C AB A3 00 00 85 [18:24:40]Write i2c OK [18:24:40]MH_I2C_Read... [18:24:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:40]Read from MH i2c: E2 [18:24:40]MH_I2C_Read... [18:24:40]Read from MH i2c: E2 03 00 [18:24:40]MH_I2C_Read... [18:24:40]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [18:24:40]RAPDU: 90 00 [18:24:40]wFMCommunicate OK [18:24:40]wFMCommunicate request_size=4 [18:24:40]MH_SAM_APDU [18:24:40]CAPDU: 80 0D 03 02 [18:24:40]Write to MH i2c: E2 08 00 C4 00 80 0D 03 02 00 00 00 00 3F [18:24:40]Write i2c OK [18:24:40]MH_I2C_Read... [18:24:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:24:40]Read from MH i2c: E2 [18:24:40]MH_I2C_Read... [18:24:40]Read from MH i2c: E2 0B 00 [18:24:40]MH_I2C_Read... [18:24:40]Read from MH i2c: E2 0B 00 C4 00 00 4B EC 4E 94 8B 0B C8 87 90 00 3E [18:24:40]RAPDU: 4B EC 4E 94 8B 0B C8 87 90 00 [18:24:40]wFMCommunicate OK [18:24:40]SAM_PROTO_SignData done [18:24:40]FM_MakeSignedData done [18:24:40]CreateOFDProtocolMessage [18:24:40]wFMCommunicate request_size=4 [18:24:40]MH_SAM_APDU [18:24:40]CAPDU: 80 11 00 00 [18:24:40]Write to MH i2c: E2 08 00 C5 00 80 11 00 00 00 00 00 00 3F [18:24:40]Write i2c OK [18:24:40]MH_I2C_Read... [18:24:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:40]Read from MH i2c: E2 [18:24:40]MH_I2C_Read... [18:24:40]Read from MH i2c: E2 17 00 [18:24:40]MH_I2C_Read... [18:24:40]Read from MH i2c: E2 17 00 C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 91 [18:24:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:24:40]wFMCommunicate OK [18:24:40]CreateOFDProtocolMessage done [18:24:40]OFDSenderStorePacket 82236 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 53 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725AE (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 44404728+1684785137=1729189865 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 54 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 EA 57 11 67 F1 C7 6B 64 3F [18:31:06]Current date/time: 17.10.2024 18:31 [18:31:06]FM_Init [18:31:06]wFMConnect [18:31:06]MH_SAM_On [18:31:06]Write to MH i2c: E0 00 00 08 00 E7 [18:31:06]Write i2c OK [18:31:06]MH_I2C_Read... [18:31:06]*** iso7816_init finished! [18:31:06]*** atr: [18:31:06]*** 0F 3B D5 18 FF 81 91 FE [18:31:06]*** 1F C3 80 73 C8 21 10 0A [18:31:06]*** 00 00 00 00 00 00 00 00 [18:31:06]*** 00 00 00 00 00 00 00 00 [18:31:06]*** 00 00 00 00 00 00 00 00 [18:31:06]*** 00 00 00 00 00 00 00 00 [18:31:06]*** 00 00 00 00 00 00 00 00 [18:31:06]*** 00 00 00 00 00 00 00 00 [18:31:06]Read from MH i2c: E0 [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: E0 10 00 [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [18:31:06]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [18:31:06]wFMCommunicate request_size=10 [18:31:06]MH_SAM_APDU [18:31:06]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [18:31:06]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [18:31:06]Write i2c OK [18:31:06]MH_I2C_Read... [18:31:06]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [18:31:06]Read from MH i2c: E2 [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: E2 03 00 [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [18:31:06]RAPDU: 90 00 [18:31:06]wFMCommunicate OK [18:31:06]wFMCommunicate request_size=4 [18:31:06]MH_SAM_APDU [18:31:06]CAPDU: 80 11 00 00 [18:31:06]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [18:31:06]Write i2c OK [18:31:06]MH_I2C_Read... [18:31:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:06]Read from MH i2c: E2 [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: E2 17 00 [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D6 [18:31:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:31:06]wFMCommunicate OK [18:31:06]Detected FM SN is 0000000000871843 [18:31:06]Stored FM SN is 0000000000871843 [18:31:06]wFMCommunicate request_size=9 [18:31:06]MH_SAM_APDU [18:31:06]CAPDU: 80 16 00 00 04 C3 A3 00 00 [18:31:06]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 C3 A3 00 00 00 00 F8 [18:31:06]Write i2c OK [18:31:06]MH_I2C_Read... [18:31:06]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [18:31:06]Read from MH i2c: E2 [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: E2 03 00 [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [18:31:06]RAPDU: 90 00 [18:31:06]wFMCommunicate OK [18:31:06]FM PIN OK [18:31:06]wFMCommunicate request_size=8 [18:31:06]MH_SAM_APDU [18:31:06]CAPDU: 80 14 04 00 03 02 00 01 [18:31:06]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [18:31:06]Write i2c OK [18:31:06]MH_I2C_Read... [18:31:06]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [18:31:06]Read from MH i2c: E2 [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: E2 03 00 [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [18:31:06]RAPDU: 90 00 [18:31:06]wFMCommunicate OK [18:31:06]wFMCommunicate request_size=13 [18:31:06]MH_SAM_APDU [18:31:06]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [18:31:06]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [18:31:06]Write i2c OK [18:31:06]MH_I2C_Read... [18:31:06]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [18:31:06]Read from MH i2c: E2 [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: E2 03 00 [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [18:31:06]RAPDU: 90 00 [18:31:06]wFMCommunicate OK [18:31:06]wFMCommunicate request_size=4 [18:31:06]MH_SAM_APDU [18:31:06]CAPDU: 80 11 00 00 [18:31:06]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [18:31:06]Write i2c OK [18:31:06]MH_I2C_Read... [18:31:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:06]Read from MH i2c: E2 [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: E2 17 00 [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DA [18:31:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:31:06]wFMCommunicate OK [18:31:06]DocumentArchiveInit [18:31:06]Start Httpd... [18:31:06]Httpd thread 3067645284 created [18:31:06]Write to MH i2c: 01 00 00 0F 00 0F [18:31:06]Write i2c OK [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: 01 [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: 01 07 00 [18:31:06]MH_I2C_Read... [18:31:06]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [18:31:06]MH Int Process started [18:31:06]Allocated Socket 8 [18:31:06]Bind OK [18:31:06]Listen OK [18:31:06]httpd running on port 8080 [18:31:06]Waiting for new connection... [18:31:06]OFD Sender: Processing packet 82236 [packets to send 254, broken 253] [18:31:06]ProducePacketName [18:31:06]name=ofd_packets/00082236 [18:31:06]OFD Sender: To server: pG, [18:31:06]CommunicateWithHost lk.salyk.kg:30040 [18:31:06]ConnectInit lk.salyk.kg [18:31:07]Connected sock=6 [18:31:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 DE 9C 08 01 18 82 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 67 56 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3C 41 01 00 35 04 06 00 D3 1B B4 4C AB A3 4B EC 4E 94 8B 0B C8 87 [18:31:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 49 AF 47 00 39 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3C 41 01 00 F4 03 04 00 26 FD 10 67 B6 04 01 00 00 CB 04 1A 1F B5 2B 66 78 [18:31:07]CommunicateWithHost err = 0 [18:31:07]CheckOFDResponse [18:31:07]1017 (14) - 77093643461234 [18:31:07]1041 (16) - 0000000000871843 [18:31:07]1040 (4) - 82236 [18:31:07]1012 (4) - 17.10.2024 12:03 [18:31:07]1206 (1) - 0 [18:31:07]OFD Sender: Remove packet 82236 [18:31:07]ProducePacketName [18:31:07]name=ofd_packets/00082236 [18:31:07]NVStorageDeleteData [18:31:08]OFD Sender: No OFD packet to send [18:31:13]OFD Sender: No OFD packet to send [18:31:18]OFD Sender: No OFD packet to send [18:31:21]accept exits with 9 [18:31:21]New connection [18:31:21]New thread 3067358564 created [18:31:21]Waiting for new connection... [18:31:21] Sock 9.Parse request [18:31:21]Sock 9.Check first char [18:31:21]Sock 9.First char is OK [18:31:21]request: POST /json_proto HTTP/1.0 [18:31:21]Method: POST [18:31:21]URL: /json_proto [18:31:21]Method is POST - this is cgi request [18:31:21]url: /json_proto [18:31:21]query_string will be loaded in cgi processing [18:31:21]execute_cgi json_proto POST (null) [18:31:21]execute_cgi path=json_proto method=POST [18:31:21]POST find Content-Length [18:31:21]Host: 172.17.44.67:8080 [18:31:21]Content-Length: 215 [18:31:21]Content-Type: application/json [18:31:21] [18:31:21]POST finish read [18:31:21]Found Content-Length = 215 [18:31:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:21]execute_script... [18:31:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:21]POST & json_proto [18:31:21]process_json_proto [18:31:21]json parsed OK: [18:31:21]protocol is kg_v1.0 [18:31:21]action value=get_value [18:31:21]process_action get_value [18:31:21]cmd_get_value [18:31:21]process_action get_value done [18:31:21]requested_data is exist [18:31:21]produce_requested_data [18:31:21]requested_item kkm.sn is exist - process it [18:31:21]requested_item kkm.ver is exist - process it [18:31:21]requested_item fm.sn is exist - process it [18:31:21]wFMCommunicate request_size=4 [18:31:21]MH_SAM_APDU [18:31:21]CAPDU: 80 11 00 00 [18:31:21]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [18:31:21]Write i2c OK [18:31:21]MH_I2C_Read... [18:31:21]Read from MH i2c: E2 [18:31:21]MH_I2C_Read... [18:31:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:21]Read from MH i2c: E2 17 00 [18:31:21]MH_I2C_Read... [18:31:21]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DC [18:31:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:31:21]wFMCommunicate OK [18:31:21]requested_item fd.num is exist - process it [18:31:21]SAM_PROTO_GetFieldsCounters [18:31:21]wFMCommunicate request_size=4 [18:31:21]MH_SAM_APDU [18:31:21]CAPDU: 80 13 00 00 [18:31:21]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [18:31:21]Write i2c OK [18:31:21]MH_I2C_Read... [18:31:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:21]Read from MH i2c: E2 [18:31:21]MH_I2C_Read... [18:31:21]Read from MH i2c: E2 62 00 [18:31:21]MH_I2C_Read... [18:31:21]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 3C 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [18:31:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 3C 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:31:21]wFMCommunicate OK [18:31:21]SAM_PROTO_GetFieldsCounters done [18:31:21]requested_item shift.num is exist - process it [18:31:21]requested_item shift.opened is exist - process it [18:31:21]req_shift_opened [18:31:21]FM_GetShiftState [18:31:21]SAM_PROTO_GetShiftState [18:31:21]wFMCommunicate request_size=4 [18:31:21]MH_SAM_APDU [18:31:21]CAPDU: 80 13 01 00 [18:31:21]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [18:31:21]Write i2c OK [18:31:21]MH_I2C_Read... [18:31:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:21]Read from MH i2c: E2 [18:31:21]MH_I2C_Read... [18:31:21]Read from MH i2c: E2 0E 00 [18:31:21]MH_I2C_Read... [18:31:21]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 97 [18:31:21]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [18:31:21]wFMCommunicate OK [18:31:21]SAM_PROTO_GetShiftState done [18:31:21]FM_GetShiftState done [18:31:21]req_shift_opened done [18:31:21]requested_item shift.open_date is exist - process it [18:31:21]req_shift_open_date [18:31:21]req_shift_open_date done [18:31:21]produce_requested_data done [18:31:21]produce_requested_data return {"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82236,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [18:31:21]process_action_free get_value [18:31:21]json_value_free [18:31:21]json_value_free done [18:31:21]process_json_proto returns [18:31:21]Send response to host [18:31:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82236,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [18:31:21]free response buf [18:31:21]execute_script done [18:31:21]execute_script returns [18:31:21]free content buf [18:31:21]Sock 9.Close socket [18:31:21]Sock 9.Thread stoped [18:31:21]accept exits with 10 [18:31:21]New connection [18:31:21]New thread 3067215204 created [18:31:21]Thread 3067358564 joined [18:31:21]Waiting for new connection... [18:31:21] Sock 10.Parse request [18:31:21]Sock 10.Check first char [18:31:21]Sock 10.First char is OK [18:31:21]request: POST /json_proto HTTP/1.0 [18:31:21]Method: POST [18:31:21]URL: /json_proto [18:31:21]Method is POST - this is cgi request [18:31:21]url: /json_proto [18:31:21]query_string will be loaded in cgi processing [18:31:21]execute_cgi json_proto POST (null) [18:31:21]execute_cgi path=json_proto method=POST [18:31:21]POST find Content-Length [18:31:21]Host: 172.17.44.67:8080 [18:31:21]Content-Length: 331 [18:31:21]Content-Type: application/json [18:31:21] [18:31:21]POST finish read [18:31:21]Found Content-Length = 331 [18:31:21]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" ] } } [18:31:21]execute_script... [18:31:21]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" ] } } [18:31:21]POST & json_proto [18:31:21]process_json_proto [18:31:21]json parsed OK: [18:31:21]protocol is kg_v1.0 [18:31:21]action value=get_value [18:31:21]process_action get_value [18:31:21]cmd_get_value [18:31:21]process_action get_value done [18:31:21]requested_data is exist [18:31:21]produce_requested_data [18:31:21]requested_item fm.sale.total is exist - process it [18:31:21]SAM_PROTO_GetFMData [18:31:21]wFMCommunicate request_size=4 [18:31:21]MH_SAM_APDU [18:31:21]CAPDU: 80 13 03 00 [18:31:21]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [18:31:21]Write i2c OK [18:31:21]MH_I2C_Read... [18:31:22]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [18:31:22]Read from MH i2c: E2 [18:31:22]MH_I2C_Read... [18:31:22]Read from MH i2c: E2 FD 00 [18:31:22]MH_I2C_Read... [18:31:22]Read from MH i2c: E2 FD 00 13 00 00 C7 04 85 04 C3 04 6E 04 04 00 22 3D 01 00 69 04 A3 00 6F 04 04 00 8A 3A 01 00 B1 04 05 00 05 E3 09 7B 01 70 04 05 00 84 77 F4 40 01 72 04 04 00 81 6B 15 3A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 23 FB 43 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4B EC 5A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 98 02 00 00 B1 04 04 00 70 95 0F 13 70 04 04 00 08 53 0F 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AD 37 06 02 EF 90 00 A0 [18:31:22]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 22 3D 01 00 69 04 A3 00 6F 04 04 00 8A 3A 01 00 B1 04 05 00 05 E3 09 7B 01 70 04 05 00 84 77 F4 40 01 72 04 04 00 81 6B 15 3A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 23 FB 43 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4B EC 5A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 98 02 00 00 B1 04 04 00 70 95 0F 13 70 04 04 00 08 53 0F 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AD 37 06 02 EF 90 00 [18:31:22]wFMCommunicate OK [18:31:22]wFMCommunicate request_size=4 [18:31:22]MH_SAM_APDU [18:31:22]CAPDU: 80 17 00 00 [18:31:22]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [18:31:22]Write i2c OK [18:31:22]MH_I2C_Read... [18:31:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:31:22]Read from MH i2c: E2 [18:31:22]MH_I2C_Read... [18:31:22]Read from MH i2c: E2 FD 00 [18:31:22]MH_I2C_Read... [18:31:22]Read from MH i2c: E2 FD 00 14 00 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0A 2F 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 90 00 05 [18:31:22]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0A 2F 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 90 00 [18:31:22]wFMCommunicate OK [18:31:22]wFMCommunicate request_size=4 [18:31:22]MH_SAM_APDU [18:31:22]CAPDU: 80 17 00 00 [18:31:22]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [18:31:22]Write i2c OK [18:31:22]MH_I2C_Read... [18:31:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:31:22]Read from MH i2c: E2 [18:31:22]MH_I2C_Read... [18:31:22]Read from MH i2c: E2 FD 00 [18:31:22]MH_I2C_Read... [18:31:22]Read from MH i2c: E2 FD 00 15 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 6D [18:31:22]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [18:31:22]wFMCommunicate OK [18:31:22]wFMCommunicate request_size=4 [18:31:22]MH_SAM_APDU [18:31:22]CAPDU: 80 17 00 00 [18:31:22]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [18:31:22]Write i2c OK [18:31:22]MH_I2C_Read... [18:31:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:31:22]Read from MH i2c: E2 [18:31:22]MH_I2C_Read... [18:31:22]Read from MH i2c: E2 FD 00 [18:31:22]MH_I2C_Read... [18:31:22]Read from MH i2c: E2 FD 00 16 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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 11 [18:31:22]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [18:31:22]wFMCommunicate OK [18:31:22]wFMCommunicate request_size=4 [18:31:22]MH_SAM_APDU [18:31:22]CAPDU: 80 17 00 00 [18:31:22]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [18:31:22]Write i2c OK [18:31:22]MH_I2C_Read... [18:31:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [18:31:23]Read from MH i2c: E2 [18:31:23]MH_I2C_Read... [18:31:23]Read from MH i2c: E2 E4 00 [18:31:23]MH_I2C_Read... [18:31:23]Read from MH i2c: E2 E4 00 17 00 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 77 [18:31:23]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [18:31:23]wFMCommunicate OK [18:31:23]SAM_PROTO_GetFMData done [18:31:23]requested_item fm.sale_refund.total is exist - process it [18:31:23]requested_item fm.buy.total is exist - process it [18:31:23]requested_item shift.sale.total is exist - process it [18:31:23]SAM_PROTO_GetShiftData [18:31:23]wFMCommunicate request_size=4 [18:31:23]MH_SAM_APDU [18:31:23]CAPDU: 80 13 02 00 [18:31:23]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [18:31:23]Write i2c OK [18:31:23]MH_I2C_Read... [18:31:23]OFD Sender: No OFD packet to send [18:31:23]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [18:31:23]Read from MH i2c: E2 [18:31:23]MH_I2C_Read... [18:31:23]Read from MH i2c: E2 FD 00 [18:31:23]MH_I2C_Read... [18:31:23]Read from MH i2c: E2 FD 00 18 00 00 BA 04 AA 04 B6 04 6E 04 04 00 A2 00 00 00 69 04 9C 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 EC 49 7F 70 04 03 00 48 A8 5F 72 04 03 00 A4 A1 1F 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 7B 85 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 71 20 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 FC 0A 70 04 03 00 80 FC 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BD 2A 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 E0 [18:31:23]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 A2 00 00 00 69 04 9C 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 EC 49 7F 70 04 03 00 48 A8 5F 72 04 03 00 A4 A1 1F 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 7B 85 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 71 20 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 FC 0A 70 04 03 00 80 FC 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BD 2A 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [18:31:23]wFMCommunicate OK [18:31:23]wFMCommunicate request_size=4 [18:31:23]MH_SAM_APDU [18:31:23]CAPDU: 80 17 00 00 [18:31:23]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [18:31:23]Write i2c OK [18:31:23]MH_I2C_Read... [18:31:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:31:23]Read from MH i2c: E2 [18:31:23]MH_I2C_Read... [18:31:23]Read from MH i2c: E2 FD 00 [18:31:23]MH_I2C_Read... [18:31:23]Read from MH i2c: E2 FD 00 19 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 3F [18:31:23]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 [18:31:23]wFMCommunicate OK [18:31:23]wFMCommunicate request_size=4 [18:31:23]MH_SAM_APDU [18:31:23]CAPDU: 80 17 00 00 [18:31:23]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [18:31:23]Write i2c OK [18:31:23]MH_I2C_Read... [18:31:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:31:24]Read from MH i2c: E2 [18:31:24]MH_I2C_Read... [18:31:24]Read from MH i2c: E2 FD 00 [18:31:24]MH_I2C_Read... [18:31:24]Read from MH i2c: E2 FD 00 1A 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 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 C6 [18:31:24]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 [18:31:24]wFMCommunicate OK [18:31:24]wFMCommunicate request_size=4 [18:31:24]MH_SAM_APDU [18:31:24]CAPDU: 80 17 00 00 [18:31:24]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [18:31:24]Write i2c OK [18:31:24]MH_I2C_Read... [18:31:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:31:24]Read from MH i2c: E2 [18:31:24]MH_I2C_Read... [18:31:24]Read from MH i2c: E2 FD 00 [18:31:24]MH_I2C_Read... [18:31:24]Read from MH i2c: E2 FD 00 1B 00 00 00 EF 03 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 13 [18:31:24]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 [18:31:24]wFMCommunicate OK [18:31:24]wFMCommunicate request_size=4 [18:31:24]MH_SAM_APDU [18:31:24]CAPDU: 80 17 00 00 [18:31:24]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [18:31:24]Write i2c OK [18:31:24]MH_I2C_Read... [18:31:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [18:31:24]Read from MH i2c: E2 [18:31:24]MH_I2C_Read... [18:31:24]Read from MH i2c: E2 D7 00 [18:31:24]MH_I2C_Read... [18:31:24]Read from MH i2c: E2 D7 00 1C 00 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 7F [18:31:24]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 [18:31:24]wFMCommunicate OK [18:31:24]SAM_PROTO_GetShiftData done [18:31:24]requested_item shift.sale.total_cash is exist - process it [18:31:24]requested_item shift.sale_refund.total is exist - process it [18:31:24]requested_item shift.sale_refund.total_cash is exist - process it [18:31:24]requested_item shift.buy.total is exist - process it [18:31:24]requested_item shift.buy.total_cash is exist - process it [18:31:24]produce_requested_data done [18:31:24]produce_requested_data return {"fm.sale.total":63592128.05,"fm.sale_refund.total":3197884.00,"fm.buy.total":0.00,"shift.sale.total":83419.96,"shift.sale.total_cash":62690.00,"shift.sale_refund.total":7200.00,"shift.sale_refund.total_cash":7200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [18:31:24]process_action_free get_value [18:31:24]json_value_free [18:31:24]json_value_free done [18:31:24]process_json_proto returns [18:31:24]Send response to host [18:31:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":63592128.05,"fm.sale_refund.total":3197884.00,"fm.buy.total":0.00,"shift.sale.total":83419.96,"shift.sale.total_cash":62690.00,"shift.sale_refund.total":7200.00,"shift.sale_refund.total_cash":7200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [18:31:24]free response buf [18:31:24]execute_script done [18:31:24]execute_script returns [18:31:24]free content buf [18:31:24]Sock 10.Close socket [18:31:24]Sock 10.Thread stoped [18:31:25]accept exits with 9 [18:31:25]New connection [18:31:25]New thread 3067358564 created [18:31:25]Thread 3067215204 joined [18:31:25]Waiting for new connection... [18:31:25] Sock 9.Parse request [18:31:25]Sock 9.Check first char [18:31:25]Sock 9.First char is OK [18:31:25]request: POST /json_proto HTTP/1.0 [18:31:25]Method: POST [18:31:25]URL: /json_proto [18:31:25]Method is POST - this is cgi request [18:31:25]url: /json_proto [18:31:25]query_string will be loaded in cgi processing [18:31:25]execute_cgi json_proto POST (null) [18:31:25]execute_cgi path=json_proto method=POST [18:31:25]POST find Content-Length [18:31:25]Host: 172.17.44.67:8080 [18:31:25]Content-Length: 682 [18:31:25]Content-Type: application/json [18:31:25] [18:31:25]POST finish read [18:31:25]Found Content-Length = 682 [18:31:25]MH_I2C_Read... [18:31:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [18:31:25]Read from MH i2c: E2 [18:31:25]MH_I2C_Read... [18:31:25]Read from MH i2c: E2 03 00 [18:31:25]MH_I2C_Read... [18:31:25]Read from MH i2c: E2 03 00 28 00 00 90 00 9C [18:31:25]RAPDU: 90 00 [18:31:25]wFMCommunicate OK [18:31:25]wFMCommunicate request_size=4 [18:31:25]MH_SAM_APDU [18:31:25]CAPDU: 80 15 03 00 [18:31:25]Write to MH i2c: E2 08 00 29 00 80 15 03 00 00 00 00 00 AA [18:31:25]Write i2c OK [18:31:25]MH_I2C_Read... [18:31:26]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [18:31:26]Read from MH i2c: E2 [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: E2 40 00 [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: E2 40 00 29 00 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3D 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 A3 00 00 00 35 04 06 00 C9 4A 3B 99 E1 3C 90 00 D4 [18:31:26]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3D 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 A3 00 00 00 35 04 06 00 C9 4A 3B 99 E1 3C 90 00 [18:31:26]wFMCommunicate OK [18:31:26]SAM_PROTO_ProcessDocument answer len = 59 [18:31:26]SAM_PROTO_ProcessDocument done [18:31:26]SetTLVBufToDocument [18:31:26]Processing tag 1209 (04B9) [18:31:26]Malloc new data [18:31:26]Processing tag 1041 (0411) [18:31:26]Processing tag 1040 (0410) [18:31:26]Malloc new data [18:31:26]Processing tag 1038 (040E) [18:31:26]Malloc new data [18:31:26]Processing tag 1042 (0412) [18:31:26]Malloc new data [18:31:26]Processing tag 1077 (0435) [18:31:26]Malloc new data [18:31:26]SetTLVBufToDocument err=0 [18:31:26]KKMLoadAndSignReceiptData store KKM data [18:31:26]KKMLoadAndSignReceiptData err=0 [18:31:26]wFMCommunicate request_size=4 [18:31:26]MH_SAM_APDU [18:31:26]CAPDU: 80 11 00 00 [18:31:26]Write to MH i2c: E2 08 00 2A 00 80 11 00 00 00 00 00 00 A4 [18:31:26]Write i2c OK [18:31:26]MH_I2C_Read... [18:31:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:26]Read from MH i2c: E2 [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: E2 17 00 [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: E2 17 00 2A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 F6 [18:31:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:31:26]wFMCommunicate OK [18:31:26]Счет N : (1)918739 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 22 Товар: 2710124130 Аи-92-К-4 49.380 * 66.90 = 3303.52 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 3303.00 Внесено: 6000.00 СДАЧА: 2697.00 НСП 1% : 29.23 НДС 12% : 350.82 Наличными: 3303.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 163 17.10.2024 18:31 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82237 ФПД: 221320664703292 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T183125&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82237&fm=221320664703292&tin=02508201610067®Number=0000000000091680&sum=330300 [18:31:26]StoreToDocumentArchive [18:31:26]shift 525 fd 82237 [18:31:26]save to /storage/0525/doc_00082237 [18:31:26]save last doc name /storage/0525/doc_00082237 to /storage/kkm_last_doc_name [18:31:26]save OK [18:31:26]Clear old archive folders... [18:31:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:31:26]tlvbuf is 00254550 [18:31:26]SAM_PROTO_ClearQueue [18:31:26]wFMCommunicate request_size=4 [18:31:26]MH_SAM_APDU [18:31:26]CAPDU: 80 09 00 00 [18:31:26]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [18:31:26]Write i2c OK [18:31:26]MH_I2C_Read... [18:31:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:31:26]Read from MH i2c: E2 [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: E2 03 00 [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [18:31:26]RAPDU: 90 00 [18:31:26]wFMCommunicate OK [18:31:26]SAM_PROTO_ClearQueue done [18:31:26]KKMCreateOFDPacket [18:31:26]OFDProtocolAddRootSTLVToBuf [18:31:26]FM_MakeSignedData [18:31:26]FM_MakeSignedData [18:31:26]SAM_PROTO_SignData [18:31:26]wFMCommunicate request_size=4 [18:31:26]MH_SAM_APDU [18:31:26]CAPDU: 80 0D 01 02 [18:31:26]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [18:31:26]Write i2c OK [18:31:26]MH_I2C_Read... [18:31:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:31:26]Read from MH i2c: E2 [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: E2 03 00 [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [18:31:26]RAPDU: 90 00 [18:31:26]wFMCommunicate OK [18:31:26]wFMCommunicate request_size=255 [18:31:26]MH_SAM_APDU [18:31:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E4 C0 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 70 0A 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 0A 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 89 00 00 00 00 07 04 06 00 3C 0A 05 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 FD 57 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3D 41 01 00 35 04 06 00 C9 [18:31:26]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E4 C0 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 70 0A 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 0A 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 89 00 00 00 00 07 04 06 00 3C 0A 05 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 FD 57 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3D 41 01 00 35 04 06 00 C9 00 00 70 [18:31:26]Write i2c OK [18:31:26]MH_I2C_Read... [18:31:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:27]Read from MH i2c: E2 [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: E2 03 00 [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [18:31:27]RAPDU: 90 00 [18:31:27]wFMCommunicate OK [18:31:27]wFMCommunicate request_size=10 [18:31:27]MH_SAM_APDU [18:31:27]CAPDU: 80 0D 02 02 05 4A 3B 99 E1 3C [18:31:27]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 4A 3B 99 E1 3C 00 00 ED [18:31:27]Write i2c OK [18:31:27]MH_I2C_Read... [18:31:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:27]Read from MH i2c: E2 [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: E2 03 00 [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [18:31:27]RAPDU: 90 00 [18:31:27]wFMCommunicate OK [18:31:27]wFMCommunicate request_size=4 [18:31:27]MH_SAM_APDU [18:31:27]CAPDU: 80 0D 03 02 [18:31:27]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [18:31:27]Write i2c OK [18:31:27]MH_I2C_Read... [18:31:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:31:27]Read from MH i2c: E2 [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: E2 0B 00 [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: E2 0B 00 2F 00 00 47 02 BB 10 59 7A 52 F2 90 00 D6 [18:31:27]RAPDU: 47 02 BB 10 59 7A 52 F2 90 00 [18:31:27]wFMCommunicate OK [18:31:27]SAM_PROTO_SignData done [18:31:27]FM_MakeSignedData done [18:31:27]CreateOFDProtocolMessage [18:31:27]wFMCommunicate request_size=4 [18:31:27]MH_SAM_APDU [18:31:27]CAPDU: 80 11 00 00 [18:31:27]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [18:31:27]Write i2c OK [18:31:27]MH_I2C_Read... [18:31:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:27]Read from MH i2c: E2 [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: E2 17 00 [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 FC [18:31:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:31:27]wFMCommunicate OK [18:31:27]CreateOFDProtocolMessage done [18:31:27]OFDSenderStorePacket 82237 [18:31:27]StoreOFDPacket docnum=82237 [18:31:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 F4 B1 07 01 74 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E4 C0 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 70 0A 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 0A 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 89 00 00 00 00 07 04 06 00 3C 0A 05 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 FD 57 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3D 41 01 00 35 04 06 00 C9 4A 3B 99 E1 3C 47 02 BB 10 59 7A 52 F2 [18:31:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 49.380, "sum" : 3303.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 3303.00, "payments": [ { "type": 0, "sum" : 3303.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:25]execute_script... [18:31:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 49.380, "sum" : 3303.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 3303.00, "payments": [ { "type": 0, "sum" : 3303.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:25]POST & json_proto [18:31:25]process_json_proto [18:31:25]json parsed OK: [18:31:25]protocol is kg_v1.0 [18:31:25]action value=close_receipt [18:31:25]process_action close_receipt [18:31:25]cmd_close_receipt [18:31:25]MH_GetDate [18:31:25]Write to MH i2c: F0 00 00 1D 00 0C [18:31:25]Write i2c OK [18:31:25]MH_I2C_Read... [18:31:25]Read from MH i2c: F0 [18:31:25]MH_I2C_Read... [18:31:25]Read from MH i2c: F0 09 00 [18:31:25]MH_I2C_Read... [18:31:25]Read from MH i2c: F0 09 00 1D 00 00 FD 57 11 67 F1 C7 6B 64 68 [18:31:25]GetLastDocTimeStamp 1729189479 [18:31:25]current date 1729189885 [18:31:25]FM_GetShiftState [18:31:25]SAM_PROTO_GetShiftState [18:31:25]wFMCommunicate request_size=4 [18:31:25]MH_SAM_APDU [18:31:25]CAPDU: 80 13 01 00 [18:31:25]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [18:31:25]Write i2c OK [18:31:25]MH_I2C_Read... [18:31:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:25]Read from MH i2c: E2 [18:31:25]MH_I2C_Read... [18:31:25]Read from MH i2c: E2 0E 00 [18:31:25]MH_I2C_Read... [18:31:25]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 A3 [18:31:25]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [18:31:25]wFMCommunicate OK [18:31:25]SAM_PROTO_GetShiftState done [18:31:25]FM_GetShiftState done [18:31:25]opened in 1729125927 [18:31:25]opened+sec_in_day 1729212327 [18:31:25]quantity*price = 330352 [18:31:25]sum+1 = 330353 [18:31:25]Check (price>sum+1) || (price+1 о реализуемом товаре [18:31:27]line ОКРУГЛЕНИЕ: -0.52 [18:31:27]line ИТОГО: 3303.00 [18:31:27]line Внесено: 6000.00 [18:31:27]line СДАЧА: 2697.00 [18:31:27]line НСП 1% : 29.23 [18:31:27]line НДС 12% : 350.82 [18:31:27]line Наличными: 3303.00 [18:31:27]line Безнал.: 0.00 [18:31:27]line Место: АЗС № 114 "Партнер Нефть" [18:31:27]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [18:31:27]line СНО: Общий режим [18:31:27]line Чек 163 17.10.2024 18:31 [18:31:27]line Смена: 525 ФФД: 1.0 [18:31:27]line ЗНМ: 0300000086 [18:31:27]line РНМ: 0000000000091680 [18:31:27]line Версия ККМ: 001 [18:31:27]line ФМ: 0000000000871843 [18:31:27]line ФД: 82237 [18:31:27]line ФПД: 221320664703292 [18:31:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T183125&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82237&fm=221320664703292&tin=02508201610067®Number=0000000000091680&sum=330300 [18:31:27]written 0, free lines is 4095 [18:31:27]OFD Sender: Processing packet 82237 [packets to send 254, broken 253] [18:31:27]ProducePacketName [18:31:27]name=ofd_packets/00082237 [18:31:27]OFD Sender: To server: pG, [18:31:27]CommunicateWithHost lk.salyk.kg:30040 [18:31:27]ConnectInit lk.salyk.kg [18:31:27]Write to MH i2c: 01 00 00 5C 00 5C [18:31:27]Write i2c OK [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: 01 [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: 01 07 00 [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 F0 0C 5F [18:31:27]RasterBufferAndPrint [18:31:27]line [18:31:27]line [18:31:27]line [18:31:27]line [18:31:27]line [18:31:27]written 0, free lines is 3334 [18:31:27]MH_Cut [18:31:27]Write to MH i2c: D1 01 00 63 00 01 35 [18:31:27]Write i2c OK [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: D1 [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: D1 01 00 [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: D1 01 00 63 00 00 34 [18:31:27]Write to MH i2c: 01 00 00 64 00 64 [18:31:27]Write i2c OK [18:31:27]MH_I2C_Read... [18:31:28]*** Cut start [18:31:28]*** Partial cut [18:31:28]*** CUTSNS_PIN = 1 [18:31:28]*** CUTSNS_PIN = 0 [18:31:28]*** Brake cut motor [18:31:29]Read from MH i2c: 01 [18:31:29]MH_I2C_Read... [18:31:29]*** Stop cut motor [18:31:29]*** Cut end [18:31:29]Read from MH i2c: 01 07 00 [18:31:29]MH_I2C_Read... [18:31:29]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [18:31:29]process_action close_receipt done [18:31:29]requested_data is exist [18:31:29]produce_requested_data [18:31:29]requested_item fm.sn is exist - process it [18:31:29]wFMCommunicate request_size=4 [18:31:29]MH_SAM_APDU [18:31:29]CAPDU: 80 11 00 00 [18:31:29]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [18:31:29]Write i2c OK [18:31:29]MH_I2C_Read... [18:31:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:29]Read from MH i2c: E2 [18:31:29]MH_I2C_Read... [18:31:29]Read from MH i2c: E2 17 00 [18:31:29]MH_I2C_Read... [18:31:29]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 31 [18:31:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:31:29]wFMCommunicate OK [18:31:29]requested_item fd.num is exist - process it [18:31:29]SAM_PROTO_GetFieldsCounters [18:31:29]wFMCommunicate request_size=4 [18:31:29]MH_SAM_APDU [18:31:29]CAPDU: 80 13 00 00 [18:31:29]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [18:31:29]Write i2c OK [18:31:29]MH_I2C_Read... [18:31:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:29]Read from MH i2c: E2 [18:31:29]MH_I2C_Read... [18:31:29]Read from MH i2c: E2 62 00 [18:31:29]MH_I2C_Read... [18:31:29]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 3D 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [18:31:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 3D 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:31:29]wFMCommunicate OK [18:31:29]SAM_PROTO_GetFieldsCounters done [18:31:29]requested_item shift.num is exist - process it [18:31:29]requested_item shift.opened is exist - process it [18:31:29]req_shift_opened [18:31:29]FM_GetShiftState [18:31:29]SAM_PROTO_GetShiftState [18:31:29]wFMCommunicate request_size=4 [18:31:29]MH_SAM_APDU [18:31:29]CAPDU: 80 13 01 00 [18:31:29]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [18:31:29]Write i2c OK [18:31:29]MH_I2C_Read... [18:31:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:29]Read from MH i2c: E2 [18:31:29]MH_I2C_Read... [18:31:29]Read from MH i2c: E2 0E 00 [18:31:29]MH_I2C_Read... [18:31:29]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 EC [18:31:29]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [18:31:29]wFMCommunicate OK [18:31:29]SAM_PROTO_GetShiftState done [18:31:29]FM_GetShiftState done [18:31:29]req_shift_opened done [18:31:29]requested_item shift.open_date is exist - process it [18:31:29]req_shift_open_date [18:31:29]req_shift_open_date done [18:31:29]produce_requested_data done [18:31:29]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82237,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [18:31:29]process_action_free close_receipt [18:31:29]json_value_free [18:31:29]json_value_free done [18:31:29]process_json_proto returns [18:31:29]Send response to host [18:31:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82237,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [18:31:29]free response buf [18:31:29]execute_script done [18:31:29]execute_script returns [18:31:29]free content buf [18:31:29]Sock 9.Close socket [18:31:29]Sock 9.Thread stoped [18:31:31]Connected sock=10 [18:31:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 F4 B1 07 01 74 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E4 C0 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 70 0A 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 0A 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 89 00 00 00 00 07 04 06 00 3C 0A 05 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 FD 57 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3D 41 01 00 35 04 06 00 C9 4A 3B 99 E1 3C 47 02 BB 10 59 7A 52 F2 [18:31:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 51 BB 47 00 BB B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3D 41 01 00 F4 03 04 00 3F FD 10 67 B6 04 01 00 00 D0 15 ED 6F ED 5E 4E 87 [18:31:33]CommunicateWithHost err = 0 [18:31:33]CheckOFDResponse [18:31:33]1017 (14) - 77093643461234 [18:31:33]1041 (16) - 0000000000871843 [18:31:33]1040 (4) - 82237 [18:31:33]1012 (4) - 17.10.2024 12:04 [18:31:33]1206 (1) - 0 [18:31:33]OFD Sender: Remove packet 82237 [18:31:33]ProducePacketName [18:31:33]name=ofd_packets/00082237 [18:31:33]NVStorageDeleteData [18:31:34]OFD Sender: No OFD packet to send [18:31:38]recv_with_timeout no data received [18:31:39]OFD Sender: No OFD packet to send [18:31:44]OFD Sender: No OFD packet to send [18:31:49]OFD Sender: No OFD packet to send [18:31:50]recv_with_timeout no data received [18:31:54]OFD Sender: No OFD packet to send [18:31:59]OFD Sender: No OFD packet to send [18:32:03]recv_with_timeout no data received [18:32:04]OFD Sender: No OFD packet to send [18:32:09]OFD Sender: No OFD packet to send [18:32:14]OFD Sender: No OFD packet to send [18:32:19]OFD Sender: No OFD packet to send [18:32:19]recv_with_timeout no data received [18:33:04]OFD Sender: No OFD packet to send [18:33:09]OFD Sender: No OFD packet to send [18:33:14]OFD Sender: No OFD packet to send [18:33:14]accept exits with 7 [18:33:14]New connection [18:33:14]New thread 3067215204 created [18:33:14]Thread 3067358564 joined [18:33:14]Waiting for new connection... [18:33:14] Sock 7.Parse request [18:33:14]Sock 7.Check first char [18:33:14]Sock 7.First char is OK [18:33:14]request: POST /json_proto HTTP/1.0 [18:33:14]Method: POST [18:33:14]URL: /json_proto [18:33:14]Method is POST - this is cgi request [18:33:14]url: /json_proto [18:33:14]query_string will be loaded in cgi processing [18:33:14]execute_cgi json_proto POST (null) [18:33:14]execute_cgi path=json_proto method=POST [18:33:14]POST find Content-Length [18:33:14]Host: 172.17.44.67:8080 [18:33:14]Content-Length: 766 [18:33:14]Content-Type: application/json [18:33:14] [18:33:14]POST finish read [18:33:14]Found Content-Length = 766 [18:33:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:14]execute_script... [18:33:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:14]POST & json_proto [18:33:14]process_json_proto [18:33:14]json parsed OK: [18:33:14]protocol is kg_v1.0 [18:33:14]action value=close_receipt [18:33:14]process_action close_receipt [18:33:14]cmd_close_receipt [18:33:14]MH_GetDate [18:33:14]Write to MH i2c: F0 00 00 68 00 57 [18:33:14]Write i2c OK [18:33:14]MH_I2C_Read... [18:33:14]Read from MH i2c: F0 [18:33:14]MH_I2C_Read... [18:33:14]Read from MH i2c: F0 09 00 [18:33:14]MH_I2C_Read... [18:33:14]Read from MH i2c: F0 09 00 68 00 00 6A 58 11 67 F1 C7 6B 64 21 [18:33:14]GetLastDocTimeStamp 1729189885 [18:33:14]current date 1729189994 [18:33:14]FM_GetShiftState [18:33:14]SAM_PROTO_GetShiftState [18:33:14]wFMCommunicate request_size=4 [18:33:14]MH_SAM_APDU [18:33:14]CAPDU: 80 13 01 00 [18:33:14]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [18:33:14]Write i2c OK [18:33:14]MH_I2C_Read... [18:33:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:14]Read from MH i2c: E2 [18:33:14]MH_I2C_Read... [18:33:14]Read from MH i2c: E2 0E 00 [18:33:14]MH_I2C_Read... [18:33:14]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 EE [18:33:14]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [18:33:14]wFMCommunicate OK [18:33:14]SAM_PROTO_GetShiftState done [18:33:14]FM_GetShiftState done [18:33:14]opened in 1729125927 [18:33:14]opened+sec_in_day 1729212327 [18:33:14]quantity*price = 40006 [18:33:14]sum+1 = 40007 [18:33:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 164 17.10.2024 18:33 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82238 ФПД: 106752067329942 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T183315&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82238&fm=106752067329942&tin=02508201610067®Number=0000000000091680&sum=40006 [18:33:15]StoreToDocumentArchive [18:33:15]shift 525 fd 82238 [18:33:15]save to /storage/0525/doc_00082238 [18:33:15]save last doc name /storage/0525/doc_00082238 to /storage/kkm_last_doc_name [18:33:15]save OK [18:33:15]Clear old archive folders... [18:33:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:33:15]tlvbuf is 00260CC0 [18:33:15]SAM_PROTO_ClearQueue [18:33:15]wFMCommunicate request_size=4 [18:33:15]MH_SAM_APDU [18:33:15]CAPDU: 80 09 00 00 [18:33:15]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [18:33:15]Write i2c OK [18:33:15]MH_I2C_Read... [18:33:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:33:15]Read from MH i2c: E2 [18:33:15]MH_I2C_Read... [18:33:15]Read from MH i2c: E2 03 00 [18:33:15]MH_I2C_Read... [18:33:15]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [18:33:15]RAPDU: 90 00 [18:33:15]wFMCommunicate OK [18:33:15]SAM_PROTO_ClearQueue done [18:33:15]KKMCreateOFDPacket [18:33:15]OFDProtocolAddRootSTLVToBuf [18:33:15]FM_MakeSignedData [18:33:15]FM_MakeSignedData [18:33:15]SAM_PROTO_SignData [18:33:15]wFMCommunicate request_size=4 [18:33:15]MH_SAM_APDU [18:33:15]CAPDU: 80 0D 01 02 [18:33:15]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [18:33:15]Write i2c OK [18:33:15]MH_I2C_Read... [18:33:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:15]Read from MH i2c: E2 [18:33:15]MH_I2C_Read... [18:33:15]Read from MH i2c: E2 03 00 [18:33:15]MH_I2C_Read... [18:33:15]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [18:33:15]RAPDU: 90 00 [18:33:15]wFMCommunicate OK [18:33:15]wFMCommunicate request_size=255 [18:33:15]MH_SAM_APDU [18:33:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 6B 58 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3E 41 01 00 35 04 06 00 61 [18:33:15]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 6B 58 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3E 41 01 00 35 04 06 00 61 00 00 26 [18:33:15]Write i2c OK [18:33:15]MH_I2C_Read... [18:33:16]recv_with_timeout no data received [18:33:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:16]Read from MH i2c: E2 [18:33:16]MH_I2C_Read... [18:33:16]Read from MH i2c: E2 03 00 [18:33:16]MH_I2C_Read... [18:33:16]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [18:33:16]RAPDU: 90 00 [18:33:16]wFMCommunicate OK [18:33:16]wFMCommunicate request_size=10 [18:33:16]MH_SAM_APDU [18:33:16]CAPDU: 80 0D 02 02 05 17 27 0D 5F 96 [18:33:16]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 17 27 0D 5F 96 00 00 3D [18:33:16]Write i2c OK [18:33:16]MH_I2C_Read... [18:33:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:16]Read from MH i2c: E2 [18:33:16]MH_I2C_Read... [18:33:16]Read from MH i2c: E2 03 00 [18:33:16]MH_I2C_Read... [18:33:16]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [18:33:16]RAPDU: 90 00 [18:33:16]wFMCommunicate OK [18:33:16]wFMCommunicate request_size=4 [18:33:16]MH_SAM_APDU [18:33:16]CAPDU: 80 0D 03 02 [18:33:16]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [18:33:16]Write i2c OK [18:33:16]MH_I2C_Read... [18:33:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:33:16]Read from MH i2c: E2 [18:33:16]MH_I2C_Read... [18:33:16]Read from MH i2c: E2 0B 00 [18:33:16]MH_I2C_Read... [18:33:16]Read from MH i2c: E2 0B 00 7A 00 00 F1 3E 31 97 83 BC 01 83 90 00 B0 [18:33:16]RAPDU: F1 3E 31 97 83 BC 01 83 90 00 [18:33:16]wFMCommunicate OK [18:33:16]SAM_PROTO_SignData done [18:33:16]FM_MakeSignedData done [18:33:16]CreateOFDProtocolMessage [18:33:16]wFMCommunicate request_size=4 [18:33:16]MH_SAM_APDU [18:33:16]CAPDU: 80 11 00 00 [18:33:16]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [18:33:16]Write i2c OK [18:33:16]MH_I2C_Read... [18:33:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:16]Read from MH i2c: E2 [18:33:16]MH_I2C_Read... [18:33:16]Read from MH i2c: E2 17 00 [18:33:16]MH_I2C_Read... [18:33:16]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 47 [18:33:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:33:16]wFMCommunicate OK [18:33:16]CreateOFDProtocolMessage done [18:33:16]OFDSenderStorePacket 82238 [18:33:16]StoreOFDPacket docnum=82238 [18:33:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 4A E4 07 01 1A 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 6B 58 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3E 41 01 00 35 04 06 00 61 17 27 0D 5F 96 F1 3E 31 97 83 BC 01 83 [18:33:16]CheckFolder [18:33:16]dirname=/storage/ofd_packets [18:33:16]CheckFolder done [18:33:16]ProducePacketName [18:33:16]name=ofd_packets/00082238 [18:33:16]NVStorageSaveData ofd_packets/00082238 [18:33:16]File name is /storage/ofd_packets/00082238 [18:33:16]Write 301 bytes [18:33:16]NVStorageSaveData done [18:33:16]OFDSenderStorePacket done [18:33:16]KKMCreateOFDPacket done [18:33:16]NVStorageSaveData kkm_last_timestamp [18:33:16]File name is /storage/kkm_last_timestamp [18:33:16]Write 4 bytes [18:33:16]NVStorageSaveData done [18:33:16]ExternCall_PrintAddStr [18:33:16]wPrintStart [18:33:16]Write to MH i2c: 01 00 00 7C 00 7C [18:33:16]Write i2c OK [18:33:16]MH_I2C_Read... [18:33:16]Read from MH i2c: 01 [18:33:16]MH_I2C_Read... [18:33:16]Read from MH i2c: 01 07 00 [18:33:16]MH_I2C_Read... [18:33:16]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [18:33:16]RasterBufferAndPrint [18:33:16]line Счет N : (1)918740 [18:33:16]line ИНН: 02508201610067 [18:33:16]line Контрольно-Кассовый Чек [18:33:16]line ПРОДАЖА [18:33:16]line ТРК (МРК, ГНК) : 11 [18:33:16]line Товар: 2710124130 [18:33:16]line Аи-92-К-4 [18:33:16]line 5.980 * 66.90 [18:33:16]line = 400.06 [18:33:16]line НДС 12% НСП 1% [18:33:16]line > о реализуемом товаре [18:33:16]line ИТОГО: 400.06 [18:33:16]line НСП 1% : 3.54 [18:33:16]line НДС 12% : 42.48 [18:33:16]line Наличными: 0.00 [18:33:16]line Безнал.: 400.06 [18:33:16]line Место: АЗС № 114 "Партнер Нефть" [18:33:16]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [18:33:16]line СНО: Общий режим [18:33:16]line Чек 164 17.10.2024 18:33 [18:33:16]line Смена: 525 ФФД: 1.0 [18:33:16]line ЗНМ: 0300000086 [18:33:16]line РНМ: 0000000000091680 [18:33:16]line Версия ККМ: 001 [18:33:16]line Платежная система: Mbank [18:33:16]line ФМ: 0000000000871843 [18:33:16]line ФД: 82238 [18:33:16]line ФПД: 106752067329942 [18:33:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T183315&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82238&fm=106752067329942&tin=02508201610067®Number=0000000000091680&sum=40006 [18:33:16]OFD Sender: Processing packet 82238 [packets to send 254, broken 253] [18:33:16]ProducePacketName [18:33:16]name=ofd_packets/00082238 [18:33:16]OFD Sender: To server: pG, [18:33:16]CommunicateWithHost lk.salyk.kg:30040 [18:33:16]ConnectInit lk.salyk.kg [18:33:16]written 0, free lines is 4095 [18:33:17]Write to MH i2c: 01 00 00 A5 00 A5 [18:33:17]Write i2c OK [18:33:17]MH_I2C_Read... [18:33:17]Read from MH i2c: 01 [18:33:17]MH_I2C_Read... [18:33:17]Read from MH i2c: 01 07 00 [18:33:17]MH_I2C_Read... [18:33:17]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 FF 0C B7 [18:33:17]RasterBufferAndPrint [18:33:17]line [18:33:17]line [18:33:17]line [18:33:17]line [18:33:17]line [18:33:17]written 0, free lines is 3333 [18:33:17]MH_Cut [18:33:17]Write to MH i2c: D1 01 00 AC 00 01 7E [18:33:17]Write i2c OK [18:33:17]MH_I2C_Read... [18:33:17]Read from MH i2c: D1 [18:33:17]MH_I2C_Read... [18:33:17]Read from MH i2c: D1 01 00 [18:33:17]MH_I2C_Read... [18:33:17]Read from MH i2c: D1 01 00 AC 00 00 7D [18:33:17]Write to MH i2c: 01 00 00 AD 00 AD [18:33:17]Write i2c OK [18:33:17]MH_I2C_Read... [18:33:17]*** Cut start [18:33:17]*** Partial cut [18:33:17]*** CUTSNS_PIN = 1 [18:33:18]*** CUTSNS_PIN = 0 [18:33:18]*** Brake cut motor [18:33:18]Read from MH i2c: 01 [18:33:18]MH_I2C_Read... [18:33:18]*** Stop cut motor [18:33:18]*** Cut end [18:33:18]Read from MH i2c: 01 07 00 [18:33:18]MH_I2C_Read... [18:33:18]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [18:33:18]process_action close_receipt done [18:33:18]requested_data is exist [18:33:18]produce_requested_data [18:33:18]requested_item fm.sn is exist - process it [18:33:18]wFMCommunicate request_size=4 [18:33:18]MH_SAM_APDU [18:33:18]CAPDU: 80 11 00 00 [18:33:18]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [18:33:18]Write i2c OK [18:33:18]MH_I2C_Read... [18:33:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:18]Read from MH i2c: E2 [18:33:18]MH_I2C_Read... [18:33:18]Read from MH i2c: E2 17 00 [18:33:18]MH_I2C_Read... [18:33:18]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 7A [18:33:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:33:18]wFMCommunicate OK [18:33:18]requested_item fd.num is exist - process it [18:33:18]SAM_PROTO_GetFieldsCounters [18:33:18]wFMCommunicate request_size=4 [18:33:18]MH_SAM_APDU [18:33:18]CAPDU: 80 13 00 00 [18:33:18]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [18:33:18]Write i2c OK [18:33:18]MH_I2C_Read... [18:33:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:33:18]Read from MH i2c: E2 [18:33:18]MH_I2C_Read... [18:33:18]Read from MH i2c: E2 62 00 [18:33:18]MH_I2C_Read... [18:33:18]Read from MH i2c: E2 62 00 AF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 3E 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [18:33:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 3E 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:33:18]wFMCommunicate OK [18:33:18]SAM_PROTO_GetFieldsCounters done [18:33:18]requested_item shift.num is exist - process it [18:33:18]requested_item shift.opened is exist - process it [18:33:18]req_shift_opened [18:33:18]FM_GetShiftState [18:33:18]SAM_PROTO_GetShiftState [18:33:18]wFMCommunicate request_size=4 [18:33:18]MH_SAM_APDU [18:33:18]CAPDU: 80 13 01 00 [18:33:18]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [18:33:18]Write i2c OK [18:33:18]MH_I2C_Read... [18:33:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:18]Read from MH i2c: E2 [18:33:18]MH_I2C_Read... [18:33:18]Read from MH i2c: E2 0E 00 [18:33:18]MH_I2C_Read... [18:33:18]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 35 [18:33:18]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [18:33:18]wFMCommunicate OK [18:33:18]SAM_PROTO_GetShiftState done [18:33:18]FM_GetShiftState done [18:33:18]req_shift_opened done [18:33:18]requested_item shift.open_date is exist - process it [18:33:18]req_shift_open_date [18:33:18]req_shift_open_date done [18:33:18]produce_requested_data done [18:33:18]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82238,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [18:33:18]process_action_free close_receipt [18:33:18]json_value_free [18:33:18]json_value_free done [18:33:18]process_json_proto returns [18:33:18]Send response to host [18:33:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82238,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [18:33:18]free response buf [18:33:18]execute_script done [18:33:18]execute_script returns [18:33:18]free content buf [18:33:18]Sock 7.Close socket [18:33:18]Sock 7.Thread stoped [18:33:24]Connected sock=9 [18:33:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 4A E4 07 01 1A 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 6B 58 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3E 41 01 00 35 04 06 00 61 17 27 0D 5F 96 F1 3E 31 97 83 BC 01 83 [18:33:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 14 25 47 00 D8 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3E 41 01 00 F4 03 04 00 B1 FD 10 67 B6 04 01 00 00 07 AF 99 E0 CC AC A5 34 [18:33:27]CommunicateWithHost err = 0 [18:33:27]CheckOFDResponse [18:33:27]1017 (14) - 77093643461234 [18:33:27]1041 (16) - 0000000000871843 [18:33:27]1040 (4) - 82238 [18:33:27]1012 (4) - 17.10.2024 12:06 [18:33:27]1206 (1) - 0 [18:33:27]OFD Sender: Remove packet 82238 [18:33:27]ProducePacketName [18:33:27]name=ofd_packets/00082238 [18:33:27]NVStorageDeleteData [18:33:27]OFD Sender: No OFD packet to send [18:33:29]recv_with_timeout no data received [18:33:32]OFD Sender: No OFD packet to send [18:33:37]OFD Sender: No OFD packet to send [18:33:42]OFD Sender: No OFD packet to send [18:33:44]recv_with_timeout no data received [18:33:47]OFD Sender: No OFD packet to send [18:33:52]OFD Sender: No OFD packet to send [18:33:56]recv_with_timeout no data received [18:33:57]OFD Sender: No OFD packet to send [18:34:02]OFD Sender: No OFD packet to send [18:34:07]OFD Sender: No OFD packet to send [18:34:12]OFD Sender: No OFD packet to send [18:34:17]OFD Sender: No OFD packet to send [18:34:22]OFD Sender: No OFD packet to send [18:34:27]OFD Sender: No OFD packet to send [18:34:32]OFD Sender: No OFD packet to send [18:34:38]OFD Sender: No OFD packet to send [18:34:43]OFD Sender: No OFD packet to send [18:34:48]OFD Sender: No OFD packet to send [18:34:53]OFD Sender: No OFD packet to send [18:34:58]OFD Sender: No OFD packet to send [18:35:03]OFD Sender: No OFD packet to send [18:35:04]accept exits with 10 [18:35:04]New connection [18:35:04]New thread 3067358564 created [18:35:04]Thread 3067215204 joined [18:35:04]Waiting for new connection... [18:35:04] Sock 10.Parse request [18:35:04]Sock 10.Check first char [18:35:04]Sock 10.First char is OK [18:35:04]request: POST /json_proto HTTP/1.0 [18:35:04]Method: POST [18:35:04]URL: /json_proto [18:35:04]Method is POST - this is cgi request [18:35:04]url: /json_proto [18:35:04]query_string will be loaded in cgi processing [18:35:04]execute_cgi json_proto POST (null) [18:35:04]execute_cgi path=json_proto method=POST [18:35:04]POST find Content-Length [18:35:04]Host: 172.17.44.67:8080 [18:35:04]Content-Length: 769 [18:35:04]Content-Type: application/json [18:35:04] [18:35:04]POST finish read [18:35:04]Found Content-Length = 769 [18:35:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:04]execute_script... [18:35:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:04]POST & json_proto [18:35:04]process_json_proto [18:35:04]json parsed OK: [18:35:04]protocol is kg_v1.0 [18:35:04]action value=close_receipt [18:35:04]process_action close_receipt [18:35:04]cmd_close_receipt [18:35:04]MH_GetDate [18:35:04]Write to MH i2c: F0 00 00 B1 00 A0 [18:35:04]Write i2c OK [18:35:04]MH_I2C_Read... [18:35:04]Read from MH i2c: F0 [18:35:04]MH_I2C_Read... [18:35:04]Read from MH i2c: F0 09 00 [18:35:04]MH_I2C_Read... [18:35:04]Read from MH i2c: F0 09 00 B1 00 00 D9 58 11 67 F1 C7 6B 64 D9 [18:35:04]GetLastDocTimeStamp 1729189995 [18:35:04]current date 1729190105 [18:35:04]FM_GetShiftState [18:35:04]SAM_PROTO_GetShiftState [18:35:04]wFMCommunicate request_size=4 [18:35:04]MH_SAM_APDU [18:35:04]CAPDU: 80 13 01 00 [18:35:04]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [18:35:04]Write i2c OK [18:35:04]MH_I2C_Read... [18:35:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:04]Read from MH i2c: E2 [18:35:04]MH_I2C_Read... [18:35:04]Read from MH i2c: E2 0E 00 [18:35:04]MH_I2C_Read... [18:35:04]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 37 [18:35:04]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [18:35:04]wFMCommunicate OK [18:35:04]SAM_PROTO_GetShiftState done [18:35:04]FM_GetShiftState done [18:35:04]opened in 1729125927 [18:35:04]opened+sec_in_day 1729212327 [18:35:04]quantity*price = 100015 [18:35:04]sum+1 = 100017 [18:35:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 165 17.10.2024 18:35 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82239 ФПД: 256000137416581 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T183505&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82239&fm=256000137416581&tin=02508201610067®Number=0000000000091680&sum=100016 [18:35:05]StoreToDocumentArchive [18:35:05]shift 525 fd 82239 [18:35:05]save to /storage/0525/doc_00082239 [18:35:05]save last doc name /storage/0525/doc_00082239 to /storage/kkm_last_doc_name [18:35:05]save OK [18:35:05]Clear old archive folders... [18:35:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:35:05]tlvbuf is 001F5D80 [18:35:05]SAM_PROTO_ClearQueue [18:35:05]wFMCommunicate request_size=4 [18:35:05]MH_SAM_APDU [18:35:05]CAPDU: 80 09 00 00 [18:35:05]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [18:35:05]Write i2c OK [18:35:05]MH_I2C_Read... [18:35:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:35:05]Read from MH i2c: E2 [18:35:05]MH_I2C_Read... [18:35:05]Read from MH i2c: E2 03 00 [18:35:05]MH_I2C_Read... [18:35:05]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [18:35:05]RAPDU: 90 00 [18:35:05]wFMCommunicate OK [18:35:05]SAM_PROTO_ClearQueue done [18:35:05]KKMCreateOFDPacket [18:35:05]OFDProtocolAddRootSTLVToBuf [18:35:05]FM_MakeSignedData [18:35:05]FM_MakeSignedData [18:35:05]SAM_PROTO_SignData [18:35:05]wFMCommunicate request_size=4 [18:35:05]MH_SAM_APDU [18:35:05]CAPDU: 80 0D 01 02 [18:35:05]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [18:35:05]Write i2c OK [18:35:05]MH_I2C_Read... [18:35:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:35:05]Read from MH i2c: E2 [18:35:05]MH_I2C_Read... [18:35:05]Read from MH i2c: E2 03 00 [18:35:05]MH_I2C_Read... [18:35:05]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [18:35:05]RAPDU: 90 00 [18:35:05]wFMCommunicate OK [18:35:05]wFMCommunicate request_size=255 [18:35:05]MH_SAM_APDU [18:35:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 D9 58 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3F 41 01 00 35 04 06 00 E8 [18:35:05]Write to MH i2c: E2 02 01 C1 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 D9 58 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3F 41 01 00 35 04 06 00 E8 00 00 A5 [18:35:06]Write i2c OK [18:35:06]MH_I2C_Read... [18:35:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:06]Read from MH i2c: E2 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 03 00 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [18:35:06]RAPDU: 90 00 [18:35:06]wFMCommunicate OK [18:35:06]wFMCommunicate request_size=10 [18:35:06]MH_SAM_APDU [18:35:06]CAPDU: 80 0D 02 02 05 D4 AD 40 CF 85 [18:35:06]Write to MH i2c: E2 0D 00 C2 00 80 0D 02 02 05 00 D4 AD 40 CF 85 00 00 5B [18:35:06]Write i2c OK [18:35:06]MH_I2C_Read... [18:35:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:06]Read from MH i2c: E2 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 03 00 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [18:35:06]RAPDU: 90 00 [18:35:06]wFMCommunicate OK [18:35:06]wFMCommunicate request_size=4 [18:35:06]MH_SAM_APDU [18:35:06]CAPDU: 80 0D 03 02 [18:35:06]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [18:35:06]Write i2c OK [18:35:06]MH_I2C_Read... [18:35:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:35:06]Read from MH i2c: E2 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 0B 00 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 0B 00 C3 00 00 0B E2 63 BE BB 18 67 12 90 00 99 [18:35:06]RAPDU: 0B E2 63 BE BB 18 67 12 90 00 [18:35:06]wFMCommunicate OK [18:35:06]SAM_PROTO_SignData done [18:35:06]FM_MakeSignedData done [18:35:06]CreateOFDProtocolMessage [18:35:06]wFMCommunicate request_size=4 [18:35:06]MH_SAM_APDU [18:35:06]CAPDU: 80 11 00 00 [18:35:06]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [18:35:06]Write i2c OK [18:35:06]MH_I2C_Read... [18:35:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:06]Read from MH i2c: E2 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 17 00 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 90 [18:35:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:35:06]wFMCommunicate OK [18:35:06]CreateOFDProtocolMessage done [18:35:06]OFDSenderStorePacket 82239 [18:35:06]StoreOFDPacket docnum=82239 [18:35:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82239,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [18:35:08]free response buf [18:35:08]execute_script done [18:35:08]execute_script returns [18:35:08]free content buf [18:35:08]Sock 10.Close socket [18:35:08]Sock 10.Thread stoped [18:35:13]OFD Sender: No OFD packet to send [18:35:18]OFD Sender: No OFD packet to send [18:35:23]OFD Sender: No OFD packet to send [18:35:24]recv_with_timeout no data received [18:35:28]OFD Sender: No OFD packet to send [18:35:33]OFD Sender: No OFD packet to send [18:35:36]recv_with_timeout no data received [18:35:38]OFD Sender: No OFD packet to send [18:35:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 6C 45 07 01 EC AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 D9 58 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3F 41 01 00 35 04 06 00 E8 D4 AD 40 CF 85 0B E2 63 BE BB 18 67 12 [18:35:06]CheckFolder [18:35:06]dirname=/storage/ofd_packets [18:35:06]CheckFolder done [18:35:06]ProducePacketName [18:35:06]name=ofd_packets/00082239 [18:35:06]NVStorageSaveData ofd_packets/00082239 [18:35:06]File name is /storage/ofd_packets/00082239 [18:35:06]Write 301 bytes [18:35:06]NVStorageSaveData done [18:35:06]OFDSenderStorePacket done [18:35:06]KKMCreateOFDPacket done [18:35:06]NVStorageSaveData kkm_last_timestamp [18:35:06]File name is /storage/kkm_last_timestamp [18:35:06]Write 4 bytes [18:35:06]NVStorageSaveData done [18:35:06]ExternCall_PrintAddStr [18:35:06]wPrintStart [18:35:06]Write to MH i2c: 01 00 00 C5 00 C5 [18:35:06]Write i2c OK [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: 01 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: 01 07 00 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [18:35:06]RasterBufferAndPrint [18:35:06]line Счет N : (1)918741 [18:35:06]line ИНН: 02508201610067 [18:35:06]line Контрольно-Кассовый Чек [18:35:06]line ПРОДАЖА [18:35:06]line ТРК (МРК, ГНК) : 22 [18:35:06]line Товар: 2710124130 [18:35:06]line Аи-92-К-4 [18:35:06]line 14.950 * 66.90 [18:35:06]line = 1000.16 [18:35:06]line НДС 12% НСП 1% [18:35:06]line > о реализуемом товаре [18:35:06]line ИТОГО: 1000.16 [18:35:06]line НСП 1% : 8.85 [18:35:06]line НДС 12% : 106.21 [18:35:06]line Наличными: 0.00 [18:35:06]line Безнал.: 1000.16 [18:35:06]line Место: АЗС № 114 "Партнер Нефть" [18:35:06]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [18:35:06]line СНО: Общий режим [18:35:06]line Чек 165 17.10.2024 18:35 [18:35:06]line Смена: 525 ФФД: 1.0 [18:35:06]line ЗНМ: 0300000086 [18:35:06]line РНМ: 0000000000091680 [18:35:06]line Версия ККМ: 001 [18:35:06]line Платежная система: Mbank [18:35:06]line ФМ: 0000000000871843 [18:35:06]line ФД: 82239 [18:35:06]line ФПД: 256000137416581 [18:35:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T183505&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82239&fm=256000137416581&tin=02508201610067®Number=0000000000091680&sum=100016 [18:35:06]written 0, free lines is 4095 [18:35:06]OFD Sender: Processing packet 82239 [packets to send 254, broken 253] [18:35:06]ProducePacketName [18:35:06]name=ofd_packets/00082239 [18:35:06]OFD Sender: To server: pG, [18:35:06]CommunicateWithHost lk.salyk.kg:30040 [18:35:06]ConnectInit lk.salyk.kg [18:35:06]Write to MH i2c: 01 00 00 EE 00 EE [18:35:06]Write i2c OK [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: 01 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: 01 07 00 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: 01 07 00 EE 00 00 00 00 00 00 02 0D 04 [18:35:06]RasterBufferAndPrint [18:35:06]line [18:35:06]line [18:35:06]line [18:35:06]line [18:35:06]line [18:35:06]written 0, free lines is 3337 [18:35:06]MH_Cut [18:35:06]Write to MH i2c: D1 01 00 F5 00 01 C7 [18:35:06]Write i2c OK [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: D1 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: D1 01 00 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: D1 01 00 F5 00 00 C6 [18:35:06]Write to MH i2c: 01 00 00 F6 00 F6 [18:35:06]Write i2c OK [18:35:06]MH_I2C_Read... [18:35:07]Connected sock=9 [18:35:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 6C 45 07 01 EC AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 D9 58 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3F 41 01 00 35 04 06 00 E8 D4 AD 40 CF 85 0B E2 63 BE BB 18 67 12 [18:35:07]*** Cut start [18:35:07]*** Partial cut [18:35:07]*** CUTSNS_PIN = 1 [18:35:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 DA BB 47 00 6E 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3F 41 01 00 F4 03 04 00 16 FE 10 67 B6 04 01 00 00 E8 B3 8A CD 91 B2 A6 DC [18:35:07]CommunicateWithHost err = 0 [18:35:07]CheckOFDResponse [18:35:07]1017 (14) - 77093643461234 [18:35:07]1041 (16) - 0000000000871843 [18:35:07]1040 (4) - 82239 [18:35:07]1012 (4) - 17.10.2024 12:07 [18:35:07]1206 (1) - 0 [18:35:07]OFD Sender: Remove packet 82239 [18:35:07]ProducePacketName [18:35:07]name=ofd_packets/00082239 [18:35:07]NVStorageDeleteData [18:35:07]*** CUTSNS_PIN = 0 [18:35:07]*** Brake cut motor [18:35:08]OFD Sender: No OFD packet to send [18:35:08]Read from MH i2c: 01 [18:35:08]MH_I2C_Read... [18:35:08]*** Stop cut motor [18:35:08]*** Cut end [18:35:08]Read from MH i2c: 01 07 00 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: 01 07 00 F6 00 00 00 00 00 00 FF 0F 0B [18:35:08]process_action close_receipt done [18:35:08]requested_data is exist [18:35:08]produce_requested_data [18:35:08]requested_item fm.sn is exist - process it [18:35:08]wFMCommunicate request_size=4 [18:35:08]MH_SAM_APDU [18:35:08]CAPDU: 80 11 00 00 [18:35:08]Write to MH i2c: E2 08 00 F7 00 80 11 00 00 00 00 00 00 71 [18:35:08]Write i2c OK [18:35:08]MH_I2C_Read... [18:35:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:08]Read from MH i2c: E2 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 17 00 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 17 00 F7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C3 [18:35:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:35:08]wFMCommunicate OK [18:35:08]requested_item fd.num is exist - process it [18:35:08]SAM_PROTO_GetFieldsCounters [18:35:08]wFMCommunicate request_size=4 [18:35:08]MH_SAM_APDU [18:35:08]CAPDU: 80 13 00 00 [18:35:08]Write to MH i2c: E2 08 00 F8 00 80 13 00 00 00 00 00 00 74 [18:35:08]Write i2c OK [18:35:08]MH_I2C_Read... [18:35:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:08]Read from MH i2c: E2 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 62 00 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 62 00 F8 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 3F 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [18:35:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 3F 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:35:08]wFMCommunicate OK [18:35:08]SAM_PROTO_GetFieldsCounters done [18:35:08]requested_item shift.num is exist - process it [18:35:08]requested_item shift.opened is exist - process it [18:35:08]req_shift_opened [18:35:08]FM_GetShiftState [18:35:08]SAM_PROTO_GetShiftState [18:35:08]wFMCommunicate request_size=4 [18:35:08]MH_SAM_APDU [18:35:08]CAPDU: 80 13 01 00 [18:35:08]Write to MH i2c: E2 08 00 F9 00 80 13 01 00 00 00 00 00 76 [18:35:08]Write i2c OK [18:35:08]MH_I2C_Read... [18:35:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:08]Read from MH i2c: E2 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 0E 00 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 0E 00 F9 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 7E [18:35:08]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [18:35:08]wFMCommunicate OK [18:35:08]SAM_PROTO_GetShiftState done [18:35:08]FM_GetShiftState done [18:35:08]req_shift_opened done [18:35:08]requested_item shift.open_date is exist - process it [18:35:08]req_shift_open_date [18:35:08]req_shift_open_date done [18:35:08]produce_requested_data done [18:35:08]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82239,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [18:35:08]process_action_free close_receipt [18:35:08]json_value_free [18:35:08]json_value_free done [18:35:08]process_json_proto returns [18:35:08]Send response to host [18:35:43]OFD Sender: No OFD packet to send [18:35:48]OFD Sender: No OFD packet to send [18:35:53]OFD Sender: No OFD packet to send [18:35:58]OFD Sender: No OFD packet to send [18:36:03]OFD Sender: No OFD packet to send [18:36:08]OFD Sender: No OFD packet to send [18:36:13]OFD Sender: No OFD packet to send [18:36:18]OFD Sender: No OFD packet to send [18:36:23]OFD Sender: No OFD packet to send [18:36:28]OFD Sender: No OFD packet to send [18:36:31]accept exits with 7 [18:36:31]New connection [18:36:31]New thread 3067215204 created [18:36:31]Thread 3067358564 joined [18:36:31]Waiting for new connection... [18:36:31] Sock 7.Parse request [18:36:31]Sock 7.Check first char [18:36:31]Sock 7.First char is OK [18:36:31]request: POST /json_proto HTTP/1.0 [18:36:31]Method: POST [18:36:31]URL: /json_proto [18:36:31]Method is POST - this is cgi request [18:36:31]url: /json_proto [18:36:31]query_string will be loaded in cgi processing [18:36:31]execute_cgi json_proto POST (null) [18:36:31]execute_cgi path=json_proto method=POST [18:36:31]POST find Content-Length [18:36:31]Host: 172.17.44.67:8080 [18:36:31]Content-Length: 682 [18:36:31]Content-Type: application/json [18:36:31] [18:36:31]POST finish read [18:36:31]Found Content-Length = 682 [18:36:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:31]execute_script... [18:36:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:31]POST & json_proto [18:36:31]process_json_proto [18:36:31]json parsed OK: [18:36:31]protocol is kg_v1.0 [18:36:31]action value=close_receipt [18:36:31]process_action close_receipt [18:36:31]cmd_close_receipt [18:36:31]MH_GetDate [18:36:31]Write to MH i2c: F0 00 00 FA 00 E9 [18:36:31]Write i2c OK [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: F0 [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: F0 09 00 [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: F0 09 00 FA 00 00 2F 59 11 67 F1 C7 6B 64 79 [18:36:31]GetLastDocTimeStamp 1729190105 [18:36:31]current date 1729190191 [18:36:31]FM_GetShiftState [18:36:31]SAM_PROTO_GetShiftState [18:36:31]wFMCommunicate request_size=4 [18:36:31]MH_SAM_APDU [18:36:31]CAPDU: 80 13 01 00 [18:36:31]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [18:36:31]Write i2c OK [18:36:31]MH_I2C_Read... [18:36:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:31]Read from MH i2c: E2 [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: E2 0E 00 [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 80 [18:36:31]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [18:36:31]wFMCommunicate OK [18:36:31]SAM_PROTO_GetShiftState done [18:36:31]FM_GetShiftState done [18:36:31]opened in 1729125927 [18:36:31]opened+sec_in_day 1729212327 [18:36:31]quantity*price = 100015 [18:36:31]sum+1 = 100017 [18:36:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 166 17.10.2024 18:36 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82240 ФПД: 90066014239106 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T183631&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82240&fm=90066014239106&tin=02508201610067®Number=0000000000091680&sum=100000 [18:36:32]StoreToDocumentArchive [18:36:32]shift 525 fd 82240 [18:36:32]save to /storage/0525/doc_00082240 [18:36:32]save last doc name /storage/0525/doc_00082240 to /storage/kkm_last_doc_name [18:36:32]save OK [18:36:32]Clear old archive folders... [18:36:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:36:32]tlvbuf is 00278C90 [18:36:32]SAM_PROTO_ClearQueue [18:36:32]wFMCommunicate request_size=4 [18:36:32]MH_SAM_APDU [18:36:32]CAPDU: 80 09 00 00 [18:36:32]Write to MH i2c: E2 08 00 08 01 80 09 00 00 00 00 00 00 7B [18:36:32]Write i2c OK [18:36:32]MH_I2C_Read... [18:36:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:32]Read from MH i2c: E2 [18:36:32]MH_I2C_Read... [18:36:32]Read from MH i2c: E2 03 00 [18:36:32]MH_I2C_Read... [18:36:32]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [18:36:32]RAPDU: 90 00 [18:36:32]wFMCommunicate OK [18:36:32]SAM_PROTO_ClearQueue done [18:36:32]KKMCreateOFDPacket [18:36:32]OFDProtocolAddRootSTLVToBuf [18:36:32]FM_MakeSignedData [18:36:32]FM_MakeSignedData [18:36:32]SAM_PROTO_SignData [18:36:32]wFMCommunicate request_size=4 [18:36:32]MH_SAM_APDU [18:36:32]CAPDU: 80 0D 01 02 [18:36:32]Write to MH i2c: E2 08 00 09 01 80 0D 01 02 00 00 00 00 83 [18:36:32]Write i2c OK [18:36:32]MH_I2C_Read... [18:36:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:32]Read from MH i2c: E2 [18:36:32]MH_I2C_Read... [18:36:32]Read from MH i2c: E2 03 00 [18:36:32]MH_I2C_Read... [18:36:32]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [18:36:32]RAPDU: 90 00 [18:36:32]wFMCommunicate OK [18:36:32]wFMCommunicate request_size=255 [18:36:32]MH_SAM_APDU [18:36:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 2F 59 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 40 41 01 00 35 04 06 00 51 [18:36:32]Write to MH i2c: E2 02 01 0A 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 2F 59 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 40 41 01 00 35 04 06 00 51 00 00 91 [18:36:32]Write i2c OK [18:36:32]MH_I2C_Read... [18:36:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:32]Read from MH i2c: E2 [18:36:32]MH_I2C_Read... [18:36:32]Read from MH i2c: E2 03 00 [18:36:32]MH_I2C_Read... [18:36:32]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [18:36:32]RAPDU: 90 00 [18:36:32]wFMCommunicate OK [18:36:32]wFMCommunicate request_size=10 [18:36:32]MH_SAM_APDU [18:36:32]CAPDU: 80 0D 02 02 05 EA 20 C8 F9 82 [18:36:32]Write to MH i2c: E2 0D 00 0B 01 80 0D 02 02 05 00 EA 20 C8 F9 82 00 00 DD [18:36:32]Write i2c OK [18:36:32]MH_I2C_Read... [18:36:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:33]Read from MH i2c: E2 [18:36:33]MH_I2C_Read... [18:36:33]Read from MH i2c: E2 03 00 [18:36:33]MH_I2C_Read... [18:36:33]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [18:36:33]RAPDU: 90 00 [18:36:33]wFMCommunicate OK [18:36:33]wFMCommunicate request_size=4 [18:36:33]MH_SAM_APDU [18:36:33]CAPDU: 80 0D 03 02 [18:36:33]Write to MH i2c: E2 08 00 0C 01 80 0D 03 02 00 00 00 00 88 [18:36:33]Write i2c OK [18:36:33]MH_I2C_Read... [18:36:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:33]Read from MH i2c: E2 [18:36:33]MH_I2C_Read... [18:36:33]Read from MH i2c: E2 0B 00 [18:36:33]MH_I2C_Read... [18:36:33]Read from MH i2c: E2 0B 00 0C 01 00 20 36 EA 98 E6 9F 91 62 90 00 D9 [18:36:33]RAPDU: 20 36 EA 98 E6 9F 91 62 90 00 [18:36:33]wFMCommunicate OK [18:36:33]SAM_PROTO_SignData done [18:36:33]FM_MakeSignedData done [18:36:33]CreateOFDProtocolMessage [18:36:33]wFMCommunicate request_size=4 [18:36:33]MH_SAM_APDU [18:36:33]CAPDU: 80 11 00 00 [18:36:33]Write to MH i2c: E2 08 00 0D 01 80 11 00 00 00 00 00 00 88 [18:36:33]Write i2c OK [18:36:33]MH_I2C_Read... [18:36:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:33]Read from MH i2c: E2 [18:36:33]MH_I2C_Read... [18:36:33]Read from MH i2c: E2 17 00 [18:36:33]MH_I2C_Read... [18:36:33]Read from MH i2c: E2 17 00 0D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DA [18:36:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:36:33]wFMCommunicate OK [18:36:33]CreateOFDProtocolMessage done [18:36:33]OFDSenderStorePacket 82240 [18:36:33]StoreOFDPacket docnum=82240 [18:36:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 84 49 07 01 59 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 2F 59 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 40 41 01 00 35 04 06 00 51 EA 20 C8 F9 82 20 36 EA 98 E6 9F 91 62 [18:36:33]CheckFolder [18:36:33]dirname=/storage/ofd_packets [18:36:33]CheckFolder done [18:36:33]ProducePacketName [18:36:33]name=ofd_packets/00082240 [18:36:33]NVStorageSaveData ofd_packets/00082240 [18:36:33]File name is /storage/ofd_packets/00082240 [18:36:33]Write 301 bytes [18:36:33]NVStorageSaveData done [18:36:33]OFDSenderStorePacket done [18:36:33]KKMCreateOFDPacket done [18:36:33]NVStorageSaveData kkm_last_timestamp [18:36:33]File name is /storage/kkm_last_timestamp [18:36:33]Write 4 bytes [18:36:33]NVStorageSaveData done [18:36:33]ExternCall_PrintAddStr [18:36:33]wPrintStart [18:36:33]Write to MH i2c: 01 00 00 0E 01 0F [18:36:33]Write i2c OK [18:36:33]MH_I2C_Read... [18:36:33]Read from MH i2c: 01 [18:36:33]MH_I2C_Read... [18:36:33]Read from MH i2c: 01 07 00 [18:36:33]MH_I2C_Read... [18:36:33]Read from MH i2c: 01 07 00 0E 01 00 00 00 00 00 FF 0F 24 [18:36:33]RasterBufferAndPrint [18:36:33]line Счет N : (1)918742 [18:36:33]line ИНН: 02508201610067 [18:36:33]line Контрольно-Кассовый Чек [18:36:33]line ПРОДАЖА [18:36:33]line ТРК (МРК, ГНК) : 11 [18:36:33]line Товар: 2710124130 [18:36:33]line Аи-92-К-4 [18:36:33]line 14.950 * 66.90 [18:36:33]line = 1000.16 [18:36:33]line НДС 12% НСП 1% [18:36:33]line > о реализуемом товаре [18:36:33]line ОКРУГЛЕНИЕ: -0.16 [18:36:33]line ИТОГО: 1000.00 [18:36:33]line Внесено: 1000.00 [18:36:33]line СДАЧА: 0.00 [18:36:33]line НСП 1% : 8.85 [18:36:33]line НДС 12% : 106.21 [18:36:33]line Наличными: 1000.00 [18:36:33]line Безнал.: 0.00 [18:36:33]line Место: АЗС № 114 "Партнер Нефть" [18:36:33]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [18:36:33]line СНО: Общий режим [18:36:33]line Чек 166 17.10.2024 18:36 [18:36:33]line Смена: 525 ФФД: 1.0 [18:36:33]line ЗНМ: 0300000086 [18:36:33]line РНМ: 0000000000091680 [18:36:33]line Версия ККМ: 001 [18:36:33]line ФМ: 0000000000871843 [18:36:33]line ФД: 82240 [18:36:33]line ФПД: 90066014239106 [18:36:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T183631&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82240&fm=90066014239106&tin=02508201610067®Number=0000000000091680&sum=100000 [18:36:33]OFD Sender: Processing packet 82240 [packets to send 254, broken 253] [18:36:33]ProducePacketName [18:36:33]name=ofd_packets/00082240 [18:36:33]OFD Sender: To server: pG, [18:36:33]CommunicateWithHost lk.salyk.kg:30040 [18:36:33]ConnectInit lk.salyk.kg [18:36:33]written 0, free lines is 4095 [18:36:33]Write to MH i2c: 01 00 00 39 01 3A [18:36:33]Write i2c OK [18:36:33]MH_I2C_Read... [18:36:33]Read from MH i2c: 01 [18:36:33]MH_I2C_Read... [18:36:33]Read from MH i2c: 01 07 00 [18:36:33]MH_I2C_Read... [18:36:33]Read from MH i2c: 01 07 00 39 01 00 00 00 00 00 D9 0C 26 [18:36:33]RasterBufferAndPrint [18:36:33]line [18:36:33]line [18:36:33]line [18:36:33]line [18:36:33]line [18:36:33]written 0, free lines is 3296 [18:36:33]MH_Cut [18:36:33]Write to MH i2c: D1 01 00 40 01 01 13 [18:36:33]Write i2c OK [18:36:33]MH_I2C_Read... [18:36:33]Read from MH i2c: D1 [18:36:33]MH_I2C_Read... [18:36:33]Read from MH i2c: D1 01 00 [18:36:33]MH_I2C_Read... [18:36:33]Read from MH i2c: D1 01 00 40 01 00 12 [18:36:33]Write to MH i2c: 01 00 00 41 01 42 [18:36:33]Write i2c OK [18:36:33]MH_I2C_Read... [18:36:34]*** Cut start [18:36:34]*** Partial cut [18:36:34]*** CUTSNS_PIN = 1 [18:36:34]*** CUTSNS_PIN = 0 [18:36:35]*** Brake cut motor [18:36:35]Read from MH i2c: 01 [18:36:35]MH_I2C_Read... [18:36:35]*** Stop cut motor [18:36:35]*** Cut end [18:36:35]Read from MH i2c: 01 07 00 [18:36:35]MH_I2C_Read... [18:36:35]Read from MH i2c: 01 07 00 41 01 00 00 00 00 00 FF 0F 57 [18:36:35]process_action close_receipt done [18:36:35]requested_data is exist [18:36:35]produce_requested_data [18:36:35]requested_item fm.sn is exist - process it [18:36:35]wFMCommunicate request_size=4 [18:36:35]MH_SAM_APDU [18:36:35]CAPDU: 80 11 00 00 [18:36:35]Write to MH i2c: E2 08 00 42 01 80 11 00 00 00 00 00 00 BD [18:36:35]Write i2c OK [18:36:35]MH_I2C_Read... [18:36:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:35]Read from MH i2c: E2 [18:36:35]MH_I2C_Read... [18:36:35]Read from MH i2c: E2 17 00 [18:36:35]MH_I2C_Read... [18:36:35]Read from MH i2c: E2 17 00 42 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 0F [18:36:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:36:35]wFMCommunicate OK [18:36:35]requested_item fd.num is exist - process it [18:36:35]SAM_PROTO_GetFieldsCounters [18:36:35]wFMCommunicate request_size=4 [18:36:35]MH_SAM_APDU [18:36:35]CAPDU: 80 13 00 00 [18:36:35]Write to MH i2c: E2 08 00 43 01 80 13 00 00 00 00 00 00 C0 [18:36:35]Write i2c OK [18:36:35]MH_I2C_Read... [18:36:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:35]Read from MH i2c: E2 [18:36:35]MH_I2C_Read... [18:36:35]Read from MH i2c: E2 62 00 [18:36:35]MH_I2C_Read... [18:36:35]Read from MH i2c: E2 62 00 43 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 40 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [18:36:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 40 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:36:35]wFMCommunicate OK [18:36:35]SAM_PROTO_GetFieldsCounters done [18:36:35]requested_item shift.num is exist - process it [18:36:35]requested_item shift.opened is exist - process it [18:36:35]req_shift_opened [18:36:35]FM_GetShiftState [18:36:35]SAM_PROTO_GetShiftState [18:36:35]wFMCommunicate request_size=4 [18:36:35]MH_SAM_APDU [18:36:35]CAPDU: 80 13 01 00 [18:36:35]Write to MH i2c: E2 08 00 44 01 80 13 01 00 00 00 00 00 C2 [18:36:35]Write i2c OK [18:36:35]MH_I2C_Read... [18:36:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:35]Read from MH i2c: E2 [18:36:35]MH_I2C_Read... [18:36:35]Read from MH i2c: E2 0E 00 [18:36:35]MH_I2C_Read... [18:36:35]Read from MH i2c: E2 0E 00 44 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 CA [18:36:35]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [18:36:35]wFMCommunicate OK [18:36:35]SAM_PROTO_GetShiftState done [18:36:35]FM_GetShiftState done [18:36:35]req_shift_opened done [18:36:35]requested_item shift.open_date is exist - process it [18:36:35]req_shift_open_date [18:36:35]req_shift_open_date done [18:36:35]produce_requested_data done [18:36:35]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82240,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [18:36:35]process_action_free close_receipt [18:36:35]json_value_free [18:36:35]json_value_free done [18:36:35]process_json_proto returns [18:36:35]Send response to host [18:36:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82240,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [18:36:35]free response buf [18:36:35]execute_script done [18:36:35]execute_script returns [18:36:35]free content buf [18:36:35]Sock 7.Close socket [18:36:35]Sock 7.Thread stoped [18:36:38]Connected sock=11 [18:36:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 84 49 07 01 59 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 2F 59 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 40 41 01 00 35 04 06 00 51 EA 20 C8 F9 82 20 36 EA 98 E6 9F 91 62 [18:36:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 04 63 47 00 57 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 40 41 01 00 F4 03 04 00 71 FE 10 67 B6 04 01 00 00 21 E1 A6 B4 DF 2A 1C 9F [18:36:41]CommunicateWithHost err = 0 [18:36:41]CheckOFDResponse [18:36:41]1017 (14) - 77093643461234 [18:36:41]1041 (16) - 0000000000871843 [18:36:41]1040 (4) - 82240 [18:36:41]1012 (4) - 17.10.2024 12:09 [18:36:41]1206 (1) - 0 [18:36:41]OFD Sender: Remove packet 82240 [18:36:41]ProducePacketName [18:36:41]name=ofd_packets/00082240 [18:36:41]NVStorageDeleteData [18:36:41]recv_with_timeout no data received [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:51]recv_with_timeout no data received [18:36:56]OFD Sender: No OFD packet to send [18:37:01]OFD Sender: No OFD packet to send [18:37:02]recv_with_timeout no data received [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:47]OFD Sender: No OFD packet to send [18:37:50]recv_with_timeout no data received [18:37:52]OFD Sender: No OFD packet to send [18:37:57]OFD Sender: No OFD packet to send [18:38:02]OFD Sender: No OFD packet to send [18:38:07]OFD Sender: No OFD packet to send [18:38:12]OFD Sender: No OFD packet to send [18:38:17]OFD Sender: No OFD packet to send [18:38:22]OFD Sender: No OFD packet to send [18:38:27]OFD Sender: No OFD packet to send [18:38:32]OFD Sender: No OFD packet to send [18:38:37]OFD Sender: No OFD packet to send [18:38:42]OFD Sender: No OFD packet to send [18:38:47]OFD Sender: No OFD packet to send [18:38:52]OFD Sender: No OFD packet to send [18:38:57]OFD Sender: No OFD packet to send [18:39:02]OFD Sender: No OFD packet to send [18:39:07]OFD Sender: No OFD packet to send [18:39:12]OFD Sender: No OFD packet to send [18:39:17]OFD Sender: No OFD packet to send [18:39:22]OFD Sender: No OFD packet to send [18:39:27]OFD Sender: No OFD packet to send [18:39:32]OFD Sender: No OFD packet to send [18:39:37]OFD Sender: No OFD packet to send [18:39:42]OFD Sender: No OFD packet to send [18:39:47]OFD Sender: No OFD packet to send [18:39:52]OFD Sender: No OFD packet to send [18:39:57]OFD Sender: No OFD packet to send [18:40:02]OFD Sender: No OFD packet to send [18:40:07]OFD Sender: No OFD packet to send [18:40:12]OFD Sender: No OFD packet to send [18:40:17]OFD Sender: No OFD packet to send [18:40:22]OFD Sender: No OFD packet to send [18:40:27]OFD Sender: No OFD packet to send [18:40:32]OFD Sender: No OFD packet to send [18:40:37]OFD Sender: No OFD packet to send [18:40:42]OFD Sender: No OFD packet to send [18:40:47]OFD Sender: No OFD packet to send [18:40:52]OFD Sender: No OFD packet to send [18:40:57]OFD Sender: No OFD packet to send [18:41:02]OFD Sender: No OFD packet to send [18:41:07]OFD Sender: No OFD packet to send [18:41:12]OFD Sender: No OFD packet to send [18:41:16]recv_with_timeout no data received [18:41:17]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]accept exits with 9 [18:42:07]New connection [18:42:07]New thread 3067358564 created [18:42:07]Thread 3067215204 joined [18:42:07]Waiting for new connection... [18:42:07] Sock 9.Parse request [18:42:07]Sock 9.Check first char [18:42:07]Sock 9.First char is OK [18:42:07]request: POST /json_proto HTTP/1.0 [18:42:07]Method: POST [18:42:07]URL: /json_proto [18:42:07]Method is POST - this is cgi request [18:42:07]url: /json_proto [18:42:07]query_string will be loaded in cgi processing [18:42:07]execute_cgi json_proto POST (null) [18:42:07]execute_cgi path=json_proto method=POST [18:42:07]POST find Content-Length [18:42:07]Host: 172.17.44.67:8080 [18:42:07]Content-Length: 754 [18:42:07]Content-Type: application/json [18:42:07] [18:42:07]POST finish read [18:42:07]Found Content-Length = 754 [18:42:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101473", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:07]execute_script... [18:42:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101473", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:07]POST & json_proto [18:42:07]process_json_proto [18:42:07]json parsed OK: [18:42:07]protocol is kg_v1.0 [18:42:07]action value=close_receipt [18:42:07]process_action close_receipt [18:42:07]cmd_close_receipt [18:42:07]MH_GetDate [18:42:07]Write to MH i2c: F0 00 00 45 01 35 [18:42:07]Write i2c OK [18:42:07]MH_I2C_Read... [18:42:07]Read from MH i2c: F0 [18:42:07]MH_I2C_Read... [18:42:07]Read from MH i2c: F0 09 00 [18:42:07]MH_I2C_Read... [18:42:07]Read from MH i2c: F0 09 00 45 01 00 7F 5A 11 67 F1 C7 6B 64 16 [18:42:07]GetLastDocTimeStamp 1729190191 [18:42:07]current date 1729190527 [18:42:07]FM_GetShiftState [18:42:07]SAM_PROTO_GetShiftState [18:42:07]wFMCommunicate request_size=4 [18:42:07]MH_SAM_APDU [18:42:07]CAPDU: 80 13 01 00 [18:42:07]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [18:42:07]Write i2c OK [18:42:07]MH_I2C_Read... [18:42:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:07]Read from MH i2c: E2 [18:42:07]MH_I2C_Read... [18:42:07]Read from MH i2c: E2 0E 00 [18:42:07]MH_I2C_Read... [18:42:07]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 CC [18:42:07]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [18:42:07]wFMCommunicate OK [18:42:07]SAM_PROTO_GetShiftState done [18:42:07]FM_GetShiftState done [18:42:07]opened in 1729125927 [18:42:07]opened+sec_in_day 1729212327 [18:42:07]quantity*price = 0 [18:42:07]sum+1 = 1 [18:42:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 167 17.10.2024 18:42 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30101473 ФМ: 0000000000871843 ФД: 82241 ФПД: 64688917252646 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T184207&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82241&fm=64688917252646&tin=02508201610067®Number=0000000000091680&sum=0 [18:42:08]StoreToDocumentArchive [18:42:08]shift 525 fd 82241 [18:42:08]save to /storage/0525/doc_00082241 [18:42:08]save last doc name /storage/0525/doc_00082241 to /storage/kkm_last_doc_name [18:42:08]save OK [18:42:08]Clear old archive folders... [18:42:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:42:08]tlvbuf is 001F7560 [18:42:08]SAM_PROTO_ClearQueue [18:42:08]wFMCommunicate request_size=4 [18:42:08]MH_SAM_APDU [18:42:08]CAPDU: 80 09 00 00 [18:42:08]Write to MH i2c: E2 08 00 53 01 80 09 00 00 00 00 00 00 C6 [18:42:08]Write i2c OK [18:42:08]MH_I2C_Read... [18:42:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:42:08]Read from MH i2c: E2 [18:42:08]MH_I2C_Read... [18:42:08]Read from MH i2c: E2 03 00 [18:42:08]MH_I2C_Read... [18:42:08]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [18:42:08]RAPDU: 90 00 [18:42:08]wFMCommunicate OK [18:42:08]SAM_PROTO_ClearQueue done [18:42:08]KKMCreateOFDPacket [18:42:08]OFDProtocolAddRootSTLVToBuf [18:42:08]FM_MakeSignedData [18:42:08]FM_MakeSignedData [18:42:08]SAM_PROTO_SignData [18:42:08]wFMCommunicate request_size=4 [18:42:08]MH_SAM_APDU [18:42:08]CAPDU: 80 0D 01 02 [18:42:08]Write to MH i2c: E2 08 00 54 01 80 0D 01 02 00 00 00 00 CE [18:42:08]Write i2c OK [18:42:08]MH_I2C_Read... [18:42:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:42:08]Read from MH i2c: E2 [18:42:08]MH_I2C_Read... [18:42:08]Read from MH i2c: E2 03 00 [18:42:08]MH_I2C_Read... [18:42:08]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [18:42:08]RAPDU: 90 00 [18:42:08]wFMCommunicate OK [18:42:08]wFMCommunicate request_size=255 [18:42:08]MH_SAM_APDU [18:42:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 7F 5A 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 41 41 01 00 35 04 06 00 3A [18:42:08]Write to MH i2c: E2 02 01 55 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 7F 5A 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 41 41 01 00 35 04 06 00 3A 00 00 AC [18:42:08]Write i2c OK [18:42:08]MH_I2C_Read... [18:42:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:08]Read from MH i2c: E2 [18:42:08]MH_I2C_Read... [18:42:08]Read from MH i2c: E2 03 00 [18:42:08]MH_I2C_Read... [18:42:08]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [18:42:08]RAPDU: 90 00 [18:42:08]wFMCommunicate OK [18:42:08]wFMCommunicate request_size=10 [18:42:08]MH_SAM_APDU [18:42:08]CAPDU: 80 0D 02 02 05 D5 8F EF 0A 26 [18:42:08]Write to MH i2c: E2 0D 00 56 01 80 0D 02 02 05 00 D5 8F EF 0A 26 00 00 5E [18:42:08]Write i2c OK [18:42:08]MH_I2C_Read... [18:42:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:08]Read from MH i2c: E2 [18:42:08]MH_I2C_Read... [18:42:08]Read from MH i2c: E2 03 00 [18:42:08]MH_I2C_Read... [18:42:08]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [18:42:08]RAPDU: 90 00 [18:42:08]wFMCommunicate OK [18:42:08]wFMCommunicate request_size=4 [18:42:08]MH_SAM_APDU [18:42:08]CAPDU: 80 0D 03 02 [18:42:08]Write to MH i2c: E2 08 00 57 01 80 0D 03 02 00 00 00 00 D3 [18:42:08]Write i2c OK [18:42:08]MH_I2C_Read... [18:42:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:42:08]Read from MH i2c: E2 [18:42:08]MH_I2C_Read... [18:42:08]Read from MH i2c: E2 0B 00 [18:42:08]MH_I2C_Read... [18:42:08]Read from MH i2c: E2 0B 00 57 01 00 10 4D E4 04 B4 C5 70 DE 90 00 E0 [18:42:08]RAPDU: 10 4D E4 04 B4 C5 70 DE 90 00 [18:42:08]wFMCommunicate OK [18:42:08]SAM_PROTO_SignData done [18:42:08]FM_MakeSignedData done [18:42:08]CreateOFDProtocolMessage [18:42:08]wFMCommunicate request_size=4 [18:42:08]MH_SAM_APDU [18:42:08]CAPDU: 80 11 00 00 [18:42:08]Write to MH i2c: E2 08 00 58 01 80 11 00 00 00 00 00 00 D3 [18:42:08]Write i2c OK [18:42:08]MH_I2C_Read... [18:42:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:08]Read from MH i2c: E2 [18:42:08]MH_I2C_Read... [18:42:08]Read from MH i2c: E2 17 00 [18:42:08]MH_I2C_Read... [18:42:08]Read from MH i2c: E2 17 00 58 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 25 [18:42:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:42:08]wFMCommunicate OK [18:42:08]CreateOFDProtocolMessage done [18:42:08]OFDSenderStorePacket 82241 [18:42:08]StoreOFDPacket docnum=82241 [18:42:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 C1 B7 07 01 8D B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 7F 5A 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 41 41 01 00 35 04 06 00 3A D5 8F EF 0A 26 10 4D E4 04 B4 C5 70 DE [18:42:08]CheckFolder [18:42:08]dirname=/storage/ofd_packets [18:42:08]CheckFolder done [18:42:08]ProducePacketName [18:42:08]name=ofd_packets/00082241 [18:42:08]NVStorageSaveData ofd_packets/00082241 [18:42:08]File name is /storage/ofd_packets/00082241 [18:42:08]Write 301 bytes [18:42:08]NVStorageSaveData done [18:42:08]OFDSenderStorePacket done [18:42:08]KKMCreateOFDPacket done [18:42:08]NVStorageSaveData kkm_last_timestamp [18:42:08]File name is /storage/kkm_last_timestamp [18:42:08]Write 4 bytes [18:42:08]NVStorageSaveData done [18:42:08]ExternCall_PrintAddStr [18:42:08]wPrintStart [18:42:08]Write to MH i2c: 01 00 00 59 01 5A [18:42:08]Write i2c OK [18:42:08]MH_I2C_Read... [18:42:08]Read from MH i2c: 01 [18:42:08]MH_I2C_Read... [18:42:08]Read from MH i2c: 01 07 00 [18:42:08]MH_I2C_Read... [18:42:08]Read from MH i2c: 01 07 00 59 01 00 00 00 00 00 FF 0F 6F [18:42:08]RasterBufferAndPrint [18:42:08]line Счет N : (1)918743 [18:42:08]line ИНН: 02508201610067 [18:42:08]line Контрольно-Кассовый Чек [18:42:08]line ПРОДАЖА [18:42:08]line ТРК (МРК, ГНК) : 22 [18:42:08]line Товар: 2710124130 [18:42:08]line Аи-92-К-4 [18:42:08]line 50.000 * 0.00 [18:42:08]line = 0.00 [18:42:08]line НДС 12% НСП 1% [18:42:08]line > о реализуемом товаре [18:42:08]line ИТОГО: 0.00 [18:42:08]line НСП 1% : 0.00 [18:42:08]line НДС 12% : 0.00 [18:42:08]line Наличными: 0.00 [18:42:08]line Безнал.: 0.00 [18:42:08]line Место: АЗС № 114 "Партнер Нефть" [18:42:08]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [18:42:08]line СНО: Общий режим [18:42:08]line Чек 167 17.10.2024 18:42 [18:42:08]line Смена: 525 ФФД: 1.0 [18:42:08]line ЗНМ: 0300000086 [18:42:08]line РНМ: 0000000000091680 [18:42:08]line Версия ККМ: 001 [18:42:08]line Талоны: ТК ГПНА Online [18:42:08]line 30101473 [18:42:08]line ФМ: 0000000000871843 [18:42:08]line ФД: 82241 [18:42:08]line ФПД: 64688917252646 [18:42:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T184207&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82241&fm=64688917252646&tin=02508201610067®Number=0000000000091680&sum=0 [18:42:09]written 0, free lines is 4095 [18:42:09]OFD Sender: Processing packet 82241 [packets to send 254, broken 253] [18:42:09]ProducePacketName [18:42:09]name=ofd_packets/00082241 [18:42:09]OFD Sender: To server: pG, [18:42:09]CommunicateWithHost lk.salyk.kg:30040 [18:42:09]ConnectInit lk.salyk.kg [18:42:09]Write to MH i2c: 01 00 00 83 01 84 [18:42:09]Write i2c OK [18:42:09]MH_I2C_Read... [18:42:09]Read from MH i2c: 01 [18:42:09]MH_I2C_Read... [18:42:09]Read from MH i2c: 01 07 00 [18:42:09]MH_I2C_Read... [18:42:09]Read from MH i2c: 01 07 00 83 01 00 00 00 00 00 E3 0C 7A [18:42:09]RasterBufferAndPrint [18:42:09]line [18:42:09]line [18:42:09]line [18:42:09]line [18:42:09]line [18:42:09]written 0, free lines is 3305 [18:42:09]MH_Cut [18:42:09]Write to MH i2c: D1 01 00 8A 01 01 5D [18:42:09]Write i2c OK [18:42:09]MH_I2C_Read... [18:42:09]Read from MH i2c: D1 [18:42:09]MH_I2C_Read... [18:42:09]Read from MH i2c: D1 01 00 [18:42:09]MH_I2C_Read... [18:42:09]Read from MH i2c: D1 01 00 8A 01 00 5C [18:42:09]Write to MH i2c: 01 00 00 8B 01 8C [18:42:09]Write i2c OK [18:42:09]MH_I2C_Read... [18:42:10]Connected sock=10 [18:42:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 C1 B7 07 01 8D B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 7F 5A 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 41 41 01 00 35 04 06 00 3A D5 8F EF 0A 26 10 4D E4 04 B4 C5 70 DE [18:42:10]*** Cut start [18:42:10]*** Partial cut [18:42:10]*** CUTSNS_PIN = 1 [18:42:10]*** CUTSNS_PIN = 0 [18:42:10]*** Brake cut motor [18:42:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 C4 44 47 00 DF 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 41 41 01 00 F4 03 04 00 BD FF 10 67 B6 04 01 00 00 EF 3E 63 4F 07 57 CE 7E [18:42:10]CommunicateWithHost err = 0 [18:42:10]CheckOFDResponse [18:42:10]1017 (14) - 77093643461234 [18:42:10]1041 (16) - 0000000000871843 [18:42:10]1040 (4) - 82241 [18:42:10]1012 (4) - 17.10.2024 12:14 [18:42:10]1206 (1) - 0 [18:42:10]OFD Sender: Remove packet 82241 [18:42:10]ProducePacketName [18:42:10]name=ofd_packets/00082241 [18:42:10]NVStorageDeleteData [18:42:11]Read from MH i2c: 01 [18:42:11]MH_I2C_Read... [18:42:11]*** Stop cut motor [18:42:11]*** Cut end [18:42:11]Read from MH i2c: 01 07 00 [18:42:11]MH_I2C_Read... [18:42:11]Read from MH i2c: 01 07 00 8B 01 00 00 00 00 00 FF 0F A1 [18:42:11]process_action close_receipt done [18:42:11]requested_data is exist [18:42:11]produce_requested_data [18:42:11]requested_item fm.sn is exist - process it [18:42:11]wFMCommunicate request_size=4 [18:42:11]MH_SAM_APDU [18:42:11]CAPDU: 80 11 00 00 [18:42:11]Write to MH i2c: E2 08 00 8C 01 80 11 00 00 00 00 00 00 07 [18:42:11]Write i2c OK [18:42:11]MH_I2C_Read... [18:42:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:11]Read from MH i2c: E2 [18:42:11]MH_I2C_Read... [18:42:11]Read from MH i2c: E2 17 00 [18:42:11]MH_I2C_Read... [18:42:11]Read from MH i2c: E2 17 00 8C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 59 [18:42:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:42:11]wFMCommunicate OK [18:42:11]requested_item fd.num is exist - process it [18:42:11]SAM_PROTO_GetFieldsCounters [18:42:11]wFMCommunicate request_size=4 [18:42:11]MH_SAM_APDU [18:42:11]CAPDU: 80 13 00 00 [18:42:11]Write to MH i2c: E2 08 00 8D 01 80 13 00 00 00 00 00 00 0A [18:42:11]Write i2c OK [18:42:11]MH_I2C_Read... [18:42:11]OFD Sender: No OFD packet to send [18:42:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:42:11]Read from MH i2c: E2 [18:42:11]MH_I2C_Read... [18:42:11]Read from MH i2c: E2 62 00 [18:42:11]MH_I2C_Read... [18:42:11]Read from MH i2c: E2 62 00 8D 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 41 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [18:42:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 41 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:42:11]wFMCommunicate OK [18:42:11]SAM_PROTO_GetFieldsCounters done [18:42:11]requested_item shift.num is exist - process it [18:42:11]requested_item shift.opened is exist - process it [18:42:11]req_shift_opened [18:42:11]FM_GetShiftState [18:42:11]SAM_PROTO_GetShiftState [18:42:11]wFMCommunicate request_size=4 [18:42:11]MH_SAM_APDU [18:42:11]CAPDU: 80 13 01 00 [18:42:11]Write to MH i2c: E2 08 00 8E 01 80 13 01 00 00 00 00 00 0C [18:42:11]Write i2c OK [18:42:11]MH_I2C_Read... [18:42:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:11]Read from MH i2c: E2 [18:42:11]MH_I2C_Read... [18:42:11]Read from MH i2c: E2 0E 00 [18:42:11]MH_I2C_Read... [18:42:11]Read from MH i2c: E2 0E 00 8E 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 14 [18:42:11]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [18:42:11]wFMCommunicate OK [18:42:11]SAM_PROTO_GetShiftState done [18:42:11]FM_GetShiftState done [18:42:11]req_shift_opened done [18:42:11]requested_item shift.open_date is exist - process it [18:42:11]req_shift_open_date [18:42:11]req_shift_open_date done [18:42:11]produce_requested_data done [18:42:11]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82241,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [18:42:11]process_action_free close_receipt [18:42:11]json_value_free [18:42:11]json_value_free done [18:42:11]process_json_proto returns [18:42:11]Send response to host [18:42:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82241,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [18:42:11]free response buf [18:42:11]execute_script done [18:42:11]execute_script returns [18:42:11]free content buf [18:42:11]Sock 9.Close socket [18:42:11]Sock 9.Thread stoped [18:42:11]accept exits with 7 [18:42:11]New connection [18:42:11]New thread 3067215204 created [18:42:11]Thread 3067358564 joined [18:42:11]Waiting for new connection... [18:42:11] Sock 7.Parse request [18:42:11]Sock 7.Check first char [18:42:11]Sock 7.First char is OK [18:42:11]request: POST /json_proto HTTP/1.0 [18:42:11]Method: POST [18:42:11]URL: /json_proto [18:42:11]Method is POST - this is cgi request [18:42:11]url: /json_proto [18:42:11]query_string will be loaded in cgi processing [18:42:11]execute_cgi json_proto POST (null) [18:42:11]execute_cgi path=json_proto method=POST [18:42:11]POST find Content-Length [18:42:11]Host: 172.17.44.67:8080 [18:42:11]Content-Length: 769 [18:42:11]Content-Type: application/json [18:42:11] [18:42:11]POST finish read [18:42:11]Found Content-Length = 769 [18:42:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:11]execute_script... [18:42:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:11]POST & json_proto [18:42:11]process_json_proto [18:42:11]json parsed OK: [18:42:11]protocol is kg_v1.0 [18:42:11]action value=close_receipt [18:42:11]process_action close_receipt [18:42:11]cmd_close_receipt [18:42:11]MH_GetDate [18:42:11]Write to MH i2c: F0 00 00 8F 01 7F [18:42:11]Write i2c OK [18:42:11]MH_I2C_Read... [18:42:11]Read from MH i2c: F0 [18:42:11]MH_I2C_Read... [18:42:11]Read from MH i2c: F0 09 00 [18:42:11]MH_I2C_Read... [18:42:11]Read from MH i2c: F0 09 00 8F 01 00 83 5A 11 67 F1 C7 6B 64 64 [18:42:11]GetLastDocTimeStamp 1729190527 [18:42:11]current date 1729190531 [18:42:11]FM_GetShiftState [18:42:11]SAM_PROTO_GetShiftState [18:42:11]wFMCommunicate request_size=4 [18:42:11]MH_SAM_APDU [18:42:11]CAPDU: 80 13 01 00 [18:42:11]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [18:42:11]Write i2c OK [18:42:11]MH_I2C_Read... [18:42:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:11]Read from MH i2c: E2 [18:42:11]MH_I2C_Read... [18:42:11]Read from MH i2c: E2 0E 00 [18:42:11]MH_I2C_Read... [18:42:11]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 16 [18:42:11]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [18:42:11]wFMCommunicate OK [18:42:11]SAM_PROTO_GetShiftState done [18:42:11]FM_GetShiftState done [18:42:11]opened in 1729125927 [18:42:11]opened+sec_in_day 1729212327 [18:42:11]quantity*price = 100021 [18:42:11]sum+1 = 100023 [18:42:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 168 17.10.2024 18:42 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82242 ФПД: 20959779581642 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T184211&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82242&fm=20959779581642&tin=02508201610067®Number=0000000000091680&sum=100022 [18:42:13]StoreToDocumentArchive [18:42:13]shift 525 fd 82242 [18:42:13]save to /storage/0525/doc_00082242 [18:42:13]save last doc name /storage/0525/doc_00082242 to /storage/kkm_last_doc_name [18:42:13]save OK [18:42:13]Clear old archive folders... [18:42:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:42:13]tlvbuf is 002670A0 [18:42:13]SAM_PROTO_ClearQueue [18:42:13]wFMCommunicate request_size=4 [18:42:13]MH_SAM_APDU [18:42:13]CAPDU: 80 09 00 00 [18:42:13]Write to MH i2c: E2 08 00 9D 01 80 09 00 00 00 00 00 00 10 [18:42:13]Write i2c OK [18:42:13]MH_I2C_Read... [18:42:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:42:13]Read from MH i2c: E2 [18:42:13]MH_I2C_Read... [18:42:13]Read from MH i2c: E2 03 00 [18:42:13]MH_I2C_Read... [18:42:13]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [18:42:13]RAPDU: 90 00 [18:42:13]wFMCommunicate OK [18:42:13]SAM_PROTO_ClearQueue done [18:42:13]KKMCreateOFDPacket [18:42:13]OFDProtocolAddRootSTLVToBuf [18:42:13]FM_MakeSignedData [18:42:13]FM_MakeSignedData [18:42:13]SAM_PROTO_SignData [18:42:13]wFMCommunicate request_size=4 [18:42:13]MH_SAM_APDU [18:42:13]CAPDU: 80 0D 01 02 [18:42:13]Write to MH i2c: E2 08 00 9E 01 80 0D 01 02 00 00 00 00 18 [18:42:13]Write i2c OK [18:42:13]MH_I2C_Read... [18:42:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:42:13]Read from MH i2c: E2 [18:42:13]MH_I2C_Read... [18:42:13]Read from MH i2c: E2 03 00 [18:42:13]MH_I2C_Read... [18:42:13]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [18:42:13]RAPDU: 90 00 [18:42:13]wFMCommunicate OK [18:42:13]wFMCommunicate request_size=255 [18:42:13]MH_SAM_APDU [18:42:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 83 5A 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 42 41 01 00 35 04 06 00 13 [18:42:13]Write to MH i2c: E2 02 01 9F 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 83 5A 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 42 41 01 00 35 04 06 00 13 00 00 91 [18:42:13]Write i2c OK [18:42:13]MH_I2C_Read... [18:42:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:13]Read from MH i2c: E2 [18:42:13]MH_I2C_Read... [18:42:13]Read from MH i2c: E2 03 00 [18:42:13]MH_I2C_Read... [18:42:13]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [18:42:13]RAPDU: 90 00 [18:42:13]wFMCommunicate OK [18:42:13]wFMCommunicate request_size=10 [18:42:13]MH_SAM_APDU [18:42:13]CAPDU: 80 0D 02 02 05 10 14 37 6E CA [18:42:13]Write to MH i2c: E2 0D 00 A0 01 80 0D 02 02 05 00 10 14 37 6E CA 00 00 B8 [18:42:13]Write i2c OK [18:42:13]MH_I2C_Read... [18:42:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:13]Read from MH i2c: E2 [18:42:13]MH_I2C_Read... [18:42:13]Read from MH i2c: E2 03 00 [18:42:13]MH_I2C_Read... [18:42:13]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [18:42:13]RAPDU: 90 00 [18:42:13]wFMCommunicate OK [18:42:13]wFMCommunicate request_size=4 [18:42:13]MH_SAM_APDU [18:42:13]CAPDU: 80 0D 03 02 [18:42:13]Write to MH i2c: E2 08 00 A1 01 80 0D 03 02 00 00 00 00 1D [18:42:13]Write i2c OK [18:42:13]MH_I2C_Read... [18:42:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:42:13]Read from MH i2c: E2 [18:42:13]MH_I2C_Read... [18:42:13]Read from MH i2c: E2 0B 00 [18:42:13]MH_I2C_Read... [18:42:13]Read from MH i2c: E2 0B 00 A1 01 00 5B C2 7F B6 5C 84 53 AD 90 00 50 [18:42:13]RAPDU: 5B C2 7F B6 5C 84 53 AD 90 00 [18:42:13]wFMCommunicate OK [18:42:13]SAM_PROTO_SignData done [18:42:13]FM_MakeSignedData done [18:42:13]CreateOFDProtocolMessage [18:42:13]wFMCommunicate request_size=4 [18:42:13]MH_SAM_APDU [18:42:13]CAPDU: 80 11 00 00 [18:42:13]Write to MH i2c: E2 08 00 A2 01 80 11 00 00 00 00 00 00 1D [18:42:13]Write i2c OK [18:42:13]MH_I2C_Read... [18:42:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:13]Read from MH i2c: E2 [18:42:13]MH_I2C_Read... [18:42:13]Read from MH i2c: E2 17 00 [18:42:13]MH_I2C_Read... [18:42:13]Read from MH i2c: E2 17 00 A2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 6F [18:42:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:42:13]wFMCommunicate OK [18:42:13]CreateOFDProtocolMessage done [18:42:13]OFDSenderStorePacket 82242 [18:42:13]StoreOFDPacket docnum=82242 [18:42:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 98 69 07 01 3E F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 83 5A 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 42 41 01 00 35 04 06 00 13 10 14 37 6E CA 5B C2 7F B6 5C 84 53 AD [18:42:13]CheckFolder [18:42:13]dirname=/storage/ofd_packets [18:42:13]CheckFolder done [18:42:13]ProducePacketName [18:42:13]name=ofd_packets/00082242 [18:42:13]NVStorageSaveData ofd_packets/00082242 [18:42:13]File name is /storage/ofd_packets/00082242 [18:42:13]Write 301 bytes [18:42:13]NVStorageSaveData done [18:42:13]OFDSenderStorePacket done [18:42:13]KKMCreateOFDPacket done [18:42:13]NVStorageSaveData kkm_last_timestamp [18:42:13]File name is /storage/kkm_last_timestamp [18:42:13]Write 4 bytes [18:42:13]NVStorageSaveData done [18:42:13]ExternCall_PrintAddStr [18:42:13]wPrintStart [18:42:13]Write to MH i2c: 01 00 00 A3 01 A4 [18:42:13]Write i2c OK [18:42:13]MH_I2C_Read... [18:42:13]Read from MH i2c: 01 [18:42:13]MH_I2C_Read... [18:42:13]Read from MH i2c: 01 07 00 [18:42:13]MH_I2C_Read... [18:42:13]Read from MH i2c: 01 07 00 A3 01 00 00 00 00 00 FF 0F B9 [18:42:13]RasterBufferAndPrint [18:42:13]line Счет N : (1)918744 [18:42:13]line ИНН: 02508201610067 [18:42:13]line Контрольно-Кассовый Чек [18:42:13]line ПРОДАЖА [18:42:13]line ТРК (МРК, ГНК) : 12 [18:42:13]line Товар: 2710124500 [18:42:13]line Аи-95-К-5 [18:42:13]line 13.480 * 74.20 [18:42:13]line = 1000.22 [18:42:13]line НДС 12% НСП 1% [18:42:13]line > о реализуемом товаре [18:42:13]line ИТОГО: 1000.22 [18:42:13]line НСП 1% : 8.85 [18:42:13]line НДС 12% : 106.22 [18:42:13]line Наличными: 0.00 [18:42:14]line Безнал.: 1000.22 [18:42:14]line Место: АЗС № 114 "Партнер Нефть" [18:42:14]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [18:42:14]line СНО: Общий режим [18:42:14]line Чек 168 17.10.2024 18:42 [18:42:14]line Смена: 525 ФФД: 1.0 [18:42:14]line ЗНМ: 0300000086 [18:42:14]line РНМ: 0000000000091680 [18:42:14]line Версия ККМ: 001 [18:42:14]line Платежная система: Mbank [18:42:14]line ФМ: 0000000000871843 [18:42:14]line ФД: 82242 [18:42:14]line ФПД: 20959779581642 [18:42:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T184211&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82242&fm=20959779581642&tin=02508201610067®Number=0000000000091680&sum=100022 [18:42:14]OFD Sender: Processing packet 82242 [packets to send 254, broken 253] [18:42:14]ProducePacketName [18:42:14]name=ofd_packets/00082242 [18:42:14]OFD Sender: To server: pG, [18:42:14]CommunicateWithHost lk.salyk.kg:30040 [18:42:14]ConnectInit lk.salyk.kg [18:42:14]written 0, free lines is 4095 [18:42:14]Write to MH i2c: 01 00 00 CC 01 CD [18:42:14]Write i2c OK [18:42:14]MH_I2C_Read... [18:42:14]Read from MH i2c: 01 [18:42:14]MH_I2C_Read... [18:42:14]Read from MH i2c: 01 07 00 [18:42:14]MH_I2C_Read... [18:42:14]Read from MH i2c: 01 07 00 CC 01 00 00 00 00 00 08 0D E9 [18:42:14]RasterBufferAndPrint [18:42:14]line [18:42:14]line [18:42:14]line [18:42:14]line [18:42:14]line [18:42:14]written 0, free lines is 3349 [18:42:14]MH_Cut [18:42:14]Write to MH i2c: D1 01 00 D3 01 01 A6 [18:42:14]Write i2c OK [18:42:14]MH_I2C_Read... [18:42:14]Read from MH i2c: D1 [18:42:14]MH_I2C_Read... [18:42:14]Read from MH i2c: D1 01 00 [18:42:14]MH_I2C_Read... [18:42:14]Read from MH i2c: D1 01 00 D3 01 00 A5 [18:42:14]Write to MH i2c: 01 00 00 D4 01 D5 [18:42:14]Write i2c OK [18:42:14]MH_I2C_Read... [18:42:15]*** Cut start [18:42:15]*** Partial cut [18:42:15]*** CUTSNS_PIN = 1 [18:42:15]*** CUTSNS_PIN = 0 [18:42:15]*** Brake cut motor [18:42:15]Read from MH i2c: 01 [18:42:15]MH_I2C_Read... [18:42:15]*** Stop cut motor [18:42:15]*** Cut end [18:42:15]Read from MH i2c: 01 07 00 [18:42:15]MH_I2C_Read... [18:42:15]Read from MH i2c: 01 07 00 D4 01 00 00 00 00 00 FF 0F EA [18:42:15]process_action close_receipt done [18:42:15]requested_data is exist [18:42:15]produce_requested_data [18:42:15]requested_item fm.sn is exist - process it [18:42:15]wFMCommunicate request_size=4 [18:42:15]MH_SAM_APDU [18:42:15]CAPDU: 80 11 00 00 [18:42:15]Write to MH i2c: E2 08 00 D5 01 80 11 00 00 00 00 00 00 50 [18:42:15]Write i2c OK [18:42:15]MH_I2C_Read... [18:42:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:15]Read from MH i2c: E2 [18:42:15]MH_I2C_Read... [18:42:15]Read from MH i2c: E2 17 00 [18:42:15]MH_I2C_Read... [18:42:15]Read from MH i2c: E2 17 00 D5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 A2 [18:42:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:42:15]wFMCommunicate OK [18:42:15]requested_item fd.num is exist - process it [18:42:15]SAM_PROTO_GetFieldsCounters [18:42:15]wFMCommunicate request_size=4 [18:42:15]MH_SAM_APDU [18:42:15]CAPDU: 80 13 00 00 [18:42:15]Write to MH i2c: E2 08 00 D6 01 80 13 00 00 00 00 00 00 53 [18:42:15]Write i2c OK [18:42:15]MH_I2C_Read... [18:42:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:42:16]Read from MH i2c: E2 [18:42:16]MH_I2C_Read... [18:42:16]Read from MH i2c: E2 62 00 [18:42:16]MH_I2C_Read... [18:42:16]Read from MH i2c: E2 62 00 D6 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 42 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [18:42:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 42 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:42:16]wFMCommunicate OK [18:42:16]SAM_PROTO_GetFieldsCounters done [18:42:16]requested_item shift.num is exist - process it [18:42:16]requested_item shift.opened is exist - process it [18:42:16]req_shift_opened [18:42:16]FM_GetShiftState [18:42:16]SAM_PROTO_GetShiftState [18:42:16]wFMCommunicate request_size=4 [18:42:16]MH_SAM_APDU [18:42:16]CAPDU: 80 13 01 00 [18:42:16]Write to MH i2c: E2 08 00 D7 01 80 13 01 00 00 00 00 00 55 [18:42:16]Write i2c OK [18:42:16]MH_I2C_Read... [18:42:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:16]Read from MH i2c: E2 [18:42:16]MH_I2C_Read... [18:42:16]Read from MH i2c: E2 0E 00 [18:42:16]MH_I2C_Read... [18:42:16]Read from MH i2c: E2 0E 00 D7 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 5D [18:42:16]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [18:42:16]wFMCommunicate OK [18:42:16]SAM_PROTO_GetShiftState done [18:42:16]FM_GetShiftState done [18:42:16]req_shift_opened done [18:42:16]requested_item shift.open_date is exist - process it [18:42:16]req_shift_open_date [18:42:16]req_shift_open_date done [18:42:16]produce_requested_data done [18:42:16]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82242,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [18:42:16]process_action_free close_receipt [18:42:16]json_value_free [18:42:16]json_value_free done [18:42:16]process_json_proto returns [18:42:16]Send response to host [18:42:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82242,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [18:42:16]free response buf [18:42:16]execute_script done [18:42:16]execute_script returns [18:42:16]free content buf [18:42:16]Sock 7.Close socket [18:42:16]Sock 7.Thread stoped [18:42:16]Connected sock=11 [18:42:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 98 69 07 01 3E F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 83 5A 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 42 41 01 00 35 04 06 00 13 10 14 37 6E CA 5B C2 7F B6 5C 84 53 AD [18:42:17]recv_with_timeout no data received [18:42:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 21 3D 47 00 5C FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 42 41 01 00 F4 03 04 00 C4 FF 10 67 B6 04 01 00 00 F9 8B A3 AF C6 8E 04 C5 [18:42:20]CommunicateWithHost err = 0 [18:42:20]CheckOFDResponse [18:42:20]1017 (14) - 77093643461234 [18:42:20]1041 (16) - 0000000000871843 [18:42:20]1040 (4) - 82242 [18:42:20]1012 (4) - 17.10.2024 12:15 [18:42:20]1206 (1) - 0 [18:42:20]OFD Sender: Remove packet 82242 [18:42:20]ProducePacketName [18:42:20]name=ofd_packets/00082242 [18:42:20]NVStorageDeleteData [18:42:20]OFD Sender: No OFD packet to send [18:42:25]OFD Sender: No OFD packet to send [18:42:27]recv_with_timeout no data received [18:42:30]OFD Sender: No OFD packet to send [18:42:35]OFD Sender: No OFD packet to send [18:42:38]recv_with_timeout no data received [18:42:40]OFD Sender: No OFD packet to send [18:42:45]OFD Sender: No OFD packet to send [18:42:50]OFD Sender: No OFD packet to send [18:42:51]recv_with_timeout no data received [18:42:55]OFD Sender: No OFD packet to send [18:43:00]OFD Sender: No OFD packet to send [18:43:02]recv_with_timeout no data received [18:43:05]OFD Sender: No OFD packet to send [18:43:10]OFD Sender: No OFD packet to send [18:43:13]recv_with_timeout no data received [18:43:15]OFD Sender: No OFD packet to send [18:43:21]OFD Sender: No OFD packet to send [18:43:26]OFD Sender: No OFD packet to send [18:43:31]OFD Sender: No OFD packet to send [18:43:36]OFD Sender: No OFD packet to send [18:43:41]OFD Sender: No OFD packet to send [18:43:46]OFD Sender: No OFD packet to send [18:43:51]OFD Sender: No OFD packet to send [18:43:56]OFD Sender: No OFD packet to send [18:44:01]OFD Sender: No OFD packet to send [18:44:06]OFD Sender: No OFD packet to send [18:44:11]OFD Sender: No OFD packet to send [18:44:16]OFD Sender: No OFD packet to send [18:44:21]OFD Sender: No OFD packet to send [18:44:26]OFD Sender: No OFD packet to send [18:44:31]OFD Sender: No OFD packet to send [18:44:36]OFD Sender: No OFD packet to send [18:44:41]OFD Sender: No OFD packet to send [18:44:46]OFD Sender: No OFD packet to send [18:44:51]OFD Sender: No OFD packet to send [18:44:56]OFD Sender: No OFD packet to send [18:45:01]OFD Sender: No OFD packet to send [18:45:06]OFD Sender: No OFD packet to send [18:45:11]OFD Sender: No OFD packet to send [18:45:16]OFD Sender: No OFD packet to send [18:45:21]OFD Sender: No OFD packet to send [18:45:26]OFD Sender: No OFD packet to send [18:45:31]OFD Sender: No OFD packet to send [18:45:36]OFD Sender: No OFD packet to send [18:45:41]OFD Sender: No OFD packet to send [18:45:46]OFD Sender: No OFD packet to send [18:45:51]OFD Sender: No OFD packet to send [18:45:56]OFD Sender: No OFD packet to send [18:46:01]OFD Sender: No OFD packet to send [18:46:06]OFD Sender: No OFD packet to send [18:46:11]OFD Sender: No OFD packet to send [18:46:16]OFD Sender: No OFD packet to send [18:46:21]OFD Sender: No OFD packet to send [18:46:26]OFD Sender: No OFD packet to send [18:46:31]OFD Sender: No OFD packet to send [18:46:36]OFD Sender: No OFD packet to send [18:46:41]OFD Sender: No OFD packet to send [18:46:46]OFD Sender: No OFD packet to send [18:46:51]OFD Sender: No OFD packet to send [18:46:56]OFD Sender: No OFD packet to send [18:47:01]OFD Sender: No OFD packet to send [18:47:06]OFD Sender: No OFD packet to send [18:47:11]OFD Sender: No OFD packet to send [18:47:16]OFD Sender: No OFD packet to send [18:47:21]OFD Sender: No OFD packet to send [18:47:26]OFD Sender: No OFD packet to send [18:47:31]OFD Sender: No OFD packet to send [18:47:36]OFD Sender: No OFD packet to send [18:47:41]accept exits with 9 [18:47:41]New connection [18:47:41]New thread 3067358564 created [18:47:41]Thread 3067215204 joined [18:47:41]Waiting for new connection... [18:47:41] Sock 9.Parse request [18:47:41]Sock 9.Check first char [18:47:41]Sock 9.First char is OK [18:47:41]request: POST /json_proto HTTP/1.0 [18:47:41]Method: POST [18:47:41]URL: /json_proto [18:47:41]Method is POST - this is cgi request [18:47:41]url: /json_proto [18:47:41]query_string will be loaded in cgi processing [18:47:41]execute_cgi json_proto POST (null) [18:47:41]execute_cgi path=json_proto method=POST [18:47:41]POST find Content-Length [18:47:41]Host: 172.17.44.67:8080 [18:47:41]Content-Length: 682 [18:47:41]Content-Type: application/json [18:47:41] [18:47:41]POST finish read [18:47:41]Found Content-Length = 682 [18:47:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:41]execute_script... [18: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 : (1)918745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:41]POST & json_proto [18:47:41]process_json_proto [18:47:41]json parsed OK: [18:47:41]protocol is kg_v1.0 [18:47:41]action value=close_receipt [18:47:41]process_action close_receipt [18:47:41]cmd_close_receipt [18:47:41]MH_GetDate [18:47:41]Write to MH i2c: F0 00 00 D8 01 C8 [18:47:41]Write i2c OK [18:47:41]MH_I2C_Read... [18:47:41]Read from MH i2c: F0 [18:47:41]MH_I2C_Read... [18:47:41]Read from MH i2c: F0 09 00 [18:47:41]MH_I2C_Read... [18:47:41]Read from MH i2c: F0 09 00 D8 01 00 CD 5B 11 67 F1 C7 6B 64 F8 [18:47:41]GetLastDocTimeStamp 1729190531 [18:47:41]current date 1729190861 [18:47:41]FM_GetShiftState [18:47:41]SAM_PROTO_GetShiftState [18:47:41]wFMCommunicate request_size=4 [18:47:41]MH_SAM_APDU [18:47:41]CAPDU: 80 13 01 00 [18:47:41]Write to MH i2c: E2 08 00 D9 01 80 13 01 00 00 00 00 00 57 [18:47:41]Write i2c OK [18:47:41]MH_I2C_Read... [18:47:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:41]Read from MH i2c: E2 [18:47:41]MH_I2C_Read... [18:47:41]Read from MH i2c: E2 0E 00 [18:47:41]MH_I2C_Read... [18:47:41]Read from MH i2c: E2 0E 00 D9 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 5F [18:47:41]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [18:47:41]wFMCommunicate OK [18:47:41]SAM_PROTO_GetShiftState done [18:47:41]FM_GetShiftState done [18:47:41]opened in 1729125927 [18:47:41]opened+sec_in_day 1729212327 [18:47:41]quantity*price = 100015 [18:47:41]sum+1 = 100017 [18:47:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 169 17.10.2024 18:47 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82243 ФПД: 68712062870199 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T184741&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82243&fm=68712062870199&tin=02508201610067®Number=0000000000091680&sum=100000 [18:47:42]StoreToDocumentArchive [18:47:42]shift 525 fd 82243 [18:47:42]save to /storage/0525/doc_00082243 [18:47:42]save last doc name /storage/0525/doc_00082243 to /storage/kkm_last_doc_name [18:47:42]save OK [18:47:42]Clear old archive folders... [18:47:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:47:42]tlvbuf is 0027A020 [18:47:42]SAM_PROTO_ClearQueue [18:47:42]wFMCommunicate request_size=4 [18:47:42]MH_SAM_APDU [18:47:42]CAPDU: 80 09 00 00 [18:47:42]Write to MH i2c: E2 08 00 E6 01 80 09 00 00 00 00 00 00 59 [18:47:42]Write i2c OK [18:47:42]MH_I2C_Read... [18:47:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:47:42]Read from MH i2c: E2 [18:47:42]MH_I2C_Read... [18:47:42]Read from MH i2c: E2 03 00 [18:47:42]MH_I2C_Read... [18:47:42]Read from MH i2c: E2 03 00 E6 01 00 90 00 5B [18:47:42]RAPDU: 90 00 [18:47:42]wFMCommunicate OK [18:47:42]SAM_PROTO_ClearQueue done [18:47:42]KKMCreateOFDPacket [18:47:42]OFDProtocolAddRootSTLVToBuf [18:47:42]FM_MakeSignedData [18:47:42]FM_MakeSignedData [18:47:42]SAM_PROTO_SignData [18:47:42]wFMCommunicate request_size=4 [18:47:42]MH_SAM_APDU [18:47:42]CAPDU: 80 0D 01 02 [18:47:42]Write to MH i2c: E2 08 00 E7 01 80 0D 01 02 00 00 00 00 61 [18:47:42]Write i2c OK [18:47:42]MH_I2C_Read... [18:47:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:47:42]Read from MH i2c: E2 [18:47:42]MH_I2C_Read... [18:47:42]Read from MH i2c: E2 03 00 [18:47:42]MH_I2C_Read... [18:47:42]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [18:47:42]RAPDU: 90 00 [18:47:42]wFMCommunicate OK [18:47:42]wFMCommunicate request_size=255 [18:47:42]MH_SAM_APDU [18:47:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 CD 5B 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 43 41 01 00 35 04 06 00 3E [18:47:42]Write to MH i2c: E2 02 01 E8 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 CD 5B 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 43 41 01 00 35 04 06 00 3E 00 00 02 [18:47:42]Write i2c OK [18:47:42]MH_I2C_Read... [18:47:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:42]Read from MH i2c: E2 [18:47:42]MH_I2C_Read... [18:47:42]Read from MH i2c: E2 03 00 [18:47:42]MH_I2C_Read... [18:47:42]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [18:47:42]RAPDU: 90 00 [18:47:42]wFMCommunicate OK [18:47:42]wFMCommunicate request_size=10 [18:47:42]MH_SAM_APDU [18:47:42]CAPDU: 80 0D 02 02 05 7E 46 19 62 B7 [18:47:42]Write to MH i2c: E2 0D 00 E9 01 80 0D 02 02 05 00 7E 46 19 62 B7 00 00 64 [18:47:42]Write i2c OK [18:47:42]MH_I2C_Read... [18:47:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:42]Read from MH i2c: E2 [18:47:42]MH_I2C_Read... [18:47:42]Read from MH i2c: E2 03 00 [18:47:42]MH_I2C_Read... [18:47:42]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [18:47:42]RAPDU: 90 00 [18:47:42]wFMCommunicate OK [18:47:42]wFMCommunicate request_size=4 [18:47:42]MH_SAM_APDU [18:47:42]CAPDU: 80 0D 03 02 [18:47:42]Write to MH i2c: E2 08 00 EA 01 80 0D 03 02 00 00 00 00 66 [18:47:42]Write i2c OK [18:47:42]MH_I2C_Read... [18:47:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:47:42]Read from MH i2c: E2 [18:47:42]MH_I2C_Read... [18:47:42]Read from MH i2c: E2 0B 00 [18:47:42]MH_I2C_Read... [18:47:42]Read from MH i2c: E2 0B 00 EA 01 00 4B 3C 6F AE 96 68 62 25 90 00 90 [18:47:42]RAPDU: 4B 3C 6F AE 96 68 62 25 90 00 [18:47:42]wFMCommunicate OK [18:47:42]SAM_PROTO_SignData done [18:47:42]FM_MakeSignedData done [18:47:42]CreateOFDProtocolMessage [18:47:42]wFMCommunicate request_size=4 [18:47:42]MH_SAM_APDU [18:47:42]CAPDU: 80 11 00 00 [18:47:42]Write to MH i2c: E2 08 00 EB 01 80 11 00 00 00 00 00 00 66 [18:47:42]Write i2c OK [18:47:42]MH_I2C_Read... [18:47:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:42]Read from MH i2c: E2 [18:47:42]MH_I2C_Read... [18:47:42]Read from MH i2c: E2 17 00 [18:47:42]MH_I2C_Read... [18:47:42]Read from MH i2c: E2 17 00 EB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 B8 [18:47:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:47:42]wFMCommunicate OK [18:47:42]CreateOFDProtocolMessage done [18:47:42]OFDSenderStorePacket 82243 [18:47:42]StoreOFDPacket docnum=82243 [18:47:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 46 4D 07 01 6F DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 CD 5B 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 43 41 01 00 35 04 06 00 3E 7E 46 19 62 B7 4B 3C 6F AE 96 68 62 25 [18:47:42]CheckFolder [18:47:42]dirname=/storage/ofd_packets [18:47:42]CheckFolder done [18:47:42]ProducePacketName [18:47:42]name=ofd_packets/00082243 [18:47:42]NVStorageSaveData ofd_packets/00082243 [18:47:42]File name is /storage/ofd_packets/00082243 [18:47:42]Write 301 bytes [18:47:42]NVStorageSaveData done [18:47:42]OFDSenderStorePacket done [18:47:42]KKMCreateOFDPacket done [18:47:42]NVStorageSaveData kkm_last_timestamp [18:47:42]File name is /storage/kkm_last_timestamp [18:47:42]Write 4 bytes [18:47:42]NVStorageSaveData done [18:47:43]ExternCall_PrintAddStr [18:47:43]wPrintStart [18:47:43]Write to MH i2c: 01 00 00 EC 01 ED [18:47:43]OFD Sender: Processing packet 82243 [packets to send 254, broken 253] [18:47:43]ProducePacketName [18:47:43]name=ofd_packets/00082243 [18:47:43]OFD Sender: To server: pG, [18:47:43]CommunicateWithHost lk.salyk.kg:30040 [18:47:43]ConnectInit lk.salyk.kg [18:47:43]Write i2c OK [18:47:43]MH_I2C_Read... [18:47:43]Read from MH i2c: 01 [18:47:43]MH_I2C_Read... [18:47:43]Read from MH i2c: 01 07 00 [18:47:43]MH_I2C_Read... [18:47:43]Read from MH i2c: 01 07 00 EC 01 00 00 00 00 00 FF 0F 02 [18:47:43]RasterBufferAndPrint [18:47:43]line Счет N : (1)918745 [18:47:43]line ИНН: 02508201610067 [18:47:43]line Контрольно-Кассовый Чек [18:47:43]line ПРОДАЖА [18:47:43]line ТРК (МРК, ГНК) : 22 [18:47:43]line Товар: 2710124130 [18:47:43]line Аи-92-К-4 [18:47:43]line 14.950 * 66.90 [18:47:43]line = 1000.16 [18:47:43]line НДС 12% НСП 1% [18:47:43]line > о реализуемом товаре [18:47:43]line ОКРУГЛЕНИЕ: -0.16 [18:47:43]line ИТОГО: 1000.00 [18:47:43]line Внесено: 1000.00 [18:47:43]line СДАЧА: 0.00 [18:47:43]line НСП 1% : 8.85 [18:47:43]line НДС 12% : 106.21 [18:47:43]line Наличными: 1000.00 [18:47:43]line Безнал.: 0.00 [18:47:43]line Место: АЗС № 114 "Партнер Нефть" [18:47:43]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [18:47:43]line СНО: Общий режим [18:47:43]line Чек 169 17.10.2024 18:47 [18:47:43]line Смена: 525 ФФД: 1.0 [18:47:43]line ЗНМ: 0300000086 [18:47:43]line РНМ: 0000000000091680 [18:47:43]line Версия ККМ: 001 [18:47:43]line ФМ: 0000000000871843 [18:47:43]line ФД: 82243 [18:47:43]line ФПД: 68712062870199 [18:47:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T184741&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82243&fm=68712062870199&tin=02508201610067®Number=0000000000091680&sum=100000 [18:47:43]written 0, free lines is 4095 [18:47:43]Write to MH i2c: 01 00 00 17 02 19 [18:47:43]Write i2c OK [18:47:43]MH_I2C_Read... [18:47:43]Read from MH i2c: 01 [18:47:43]MH_I2C_Read... [18:47:43]Read from MH i2c: 01 07 00 [18:47:43]MH_I2C_Read... [18:47:43]Read from MH i2c: 01 07 00 17 02 00 00 00 00 00 D6 0C 02 [18:47:43]RasterBufferAndPrint [18:47:43]line [18:47:43]line [18:47:43]line [18:47:43]line [18:47:43]line [18:47:43]written 0, free lines is 3294 [18:47:43]MH_Cut [18:47:43]Write to MH i2c: D1 01 00 1E 02 01 F2 [18:47:43]Write i2c OK [18:47:43]MH_I2C_Read... [18:47:43]Read from MH i2c: D1 [18:47:43]MH_I2C_Read... [18:47:43]Read from MH i2c: D1 01 00 [18:47:43]MH_I2C_Read... [18:47:43]Read from MH i2c: D1 01 00 1E 02 00 F1 [18:47:43]Write to MH i2c: 01 00 00 1F 02 21 [18:47:43]Write i2c OK [18:47:43]MH_I2C_Read... [18:47:44]Connected sock=11 [18:47:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 46 4D 07 01 6F DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 CD 5B 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 43 41 01 00 35 04 06 00 3E 7E 46 19 62 B7 4B 3C 6F AE 96 68 62 25 [18:47:44]*** Cut start [18:47:44]*** Partial cut [18:47:44]*** CUTSNS_PIN = 1 [18:47:44]*** CUTSNS_PIN = 0 [18:47:44]*** Brake cut motor [18:47:44]Read from MH i2c: 01 [18:47:44]MH_I2C_Read... [18:47:44]*** Stop cut motor [18:47:44]*** Cut end [18:47:44]Read from MH i2c: 01 07 00 [18:47:44]MH_I2C_Read... [18:47:44]Read from MH i2c: 01 07 00 1F 02 00 00 00 00 00 FF 0F 36 [18:47:44]process_action close_receipt done [18:47:44]requested_data is exist [18:47:44]produce_requested_data [18:47:44]requested_item fm.sn is exist - process it [18:47:44]wFMCommunicate request_size=4 [18:47:44]MH_SAM_APDU [18:47:44]CAPDU: 80 11 00 00 [18:47:44]Write to MH i2c: E2 08 00 20 02 80 11 00 00 00 00 00 00 9C [18:47:44]Write i2c OK [18:47:44]MH_I2C_Read... [18:47:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:44]Read from MH i2c: E2 [18:47:44]MH_I2C_Read... [18:47:44]Read from MH i2c: E2 17 00 [18:47:44]MH_I2C_Read... [18:47:44]Read from MH i2c: E2 17 00 20 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 EE [18:47:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:47:44]wFMCommunicate OK [18:47:44]requested_item fd.num is exist - process it [18:47:44]SAM_PROTO_GetFieldsCounters [18:47:44]wFMCommunicate request_size=4 [18:47:44]MH_SAM_APDU [18:47:44]CAPDU: 80 13 00 00 [18:47:44]Write to MH i2c: E2 08 00 21 02 80 13 00 00 00 00 00 00 9F [18:47:44]Write i2c OK [18:47:44]MH_I2C_Read... [18:47:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:47:45]Read from MH i2c: E2 [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: E2 62 00 [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: E2 62 00 21 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 43 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [18:47:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 43 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:47:45]wFMCommunicate OK [18:47:45]SAM_PROTO_GetFieldsCounters done [18:47:45]requested_item shift.num is exist - process it [18:47:45]requested_item shift.opened is exist - process it [18:47:45]req_shift_opened [18:47:45]FM_GetShiftState [18:47:45]SAM_PROTO_GetShiftState [18:47:45]wFMCommunicate request_size=4 [18:47:45]MH_SAM_APDU [18:47:45]CAPDU: 80 13 01 00 [18:47:45]Write to MH i2c: E2 08 00 22 02 80 13 01 00 00 00 00 00 A1 [18:47:45]Write i2c OK [18:47:45]MH_I2C_Read... [18:47:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:45]Read from MH i2c: E2 [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: E2 0E 00 [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: E2 0E 00 22 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 A9 [18:47:45]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [18:47:45]wFMCommunicate OK [18:47:45]SAM_PROTO_GetShiftState done [18:47:45]FM_GetShiftState done [18:47:45]req_shift_opened done [18:47:45]requested_item shift.open_date is exist - process it [18:47:45]req_shift_open_date [18:47:45]req_shift_open_date done [18:47:45]produce_requested_data done [18:47:45]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82243,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [18:47:45]process_action_free close_receipt [18:47:45]json_value_free [18:47:45]json_value_free done [18:47:45]process_json_proto returns [18:47:45]Send response to host [18:47:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82243,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [18:47:45]free response buf [18:47:45]execute_script done [18:47:45]execute_script returns [18:47:45]free content buf [18:47:45]Sock 9.Close socket [18:47:45]Sock 9.Thread stoped [18:47:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 BE 5B 47 00 E2 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 43 41 01 00 F4 03 04 00 0B 01 11 67 B6 04 01 00 00 3F B5 C9 25 B5 72 16 26 [18:47:45]CommunicateWithHost err = 0 [18:47:45]CheckOFDResponse [18:47:45]1017 (14) - 77093643461234 [18:47:45]1041 (16) - 0000000000871843 [18:47:45]1040 (4) - 82243 [18:47:45]1012 (4) - 17.10.2024 12:20 [18:47:45]1206 (1) - 0 [18:47:45]OFD Sender: Remove packet 82243 [18:47:45]ProducePacketName [18:47:45]name=ofd_packets/00082243 [18:47:45]NVStorageDeleteData [18:47:45]OFD Sender: No OFD packet to send [18:47:50]OFD Sender: No OFD packet to send [18:47:55]OFD Sender: No OFD packet to send [18:47:56]recv_with_timeout no data received [18:48:00]OFD Sender: No OFD packet to send [18:48:05]OFD Sender: No OFD packet to send [18:48:07]recv_with_timeout no data received [18:48:11]OFD Sender: No OFD packet to send [18:48:16]OFD Sender: No OFD packet to send [18:48:19]recv_with_timeout no data received [18:48:21]OFD Sender: No OFD packet to send [18:48:26]OFD Sender: No OFD packet to send [18:48:31]OFD Sender: No OFD packet to send [18:48:36]OFD Sender: No OFD packet to send [18:48:41]OFD Sender: No OFD packet to send [18:48:46]OFD Sender: No OFD packet to send [18:48:51]OFD Sender: No OFD packet to send [18:48:56]OFD Sender: No OFD packet to send [18:49:01]OFD Sender: No OFD packet to send [18:49:06]OFD Sender: No OFD packet to send [18:49:11]OFD Sender: No OFD packet to send [18:49:16]OFD Sender: No OFD packet to send [18:49:21]OFD Sender: No OFD packet to send [18:49:26]OFD Sender: No OFD packet to send [18:49:31]OFD Sender: No OFD packet to send [18:49:36]OFD Sender: No OFD packet to send [18:49:41]OFD Sender: No OFD packet to send [18:49:46]OFD Sender: No OFD packet to send [18:49:51]OFD Sender: No OFD packet to send [18:49:56]OFD Sender: No OFD packet to send [18:50:01]OFD Sender: No OFD packet to send [18:50:06]OFD Sender: No OFD packet to send [18:50:11]OFD Sender: No OFD packet to send [18:50:16]OFD Sender: No OFD packet to send [18:50:21]OFD Sender: No OFD packet to send [18:50:26]OFD Sender: No OFD packet to send [18:50:31]OFD Sender: No OFD packet to send [18:50:36]OFD Sender: No OFD packet to send [18:50:41]OFD Sender: No OFD packet to send [18:50:46]OFD Sender: No OFD packet to send [18:50:51]OFD Sender: No OFD packet to send [18:50:56]OFD Sender: No OFD packet to send [18:51:01]OFD Sender: No OFD packet to send [18:51:06]OFD Sender: No OFD packet to send [18:51:11]OFD Sender: No OFD packet to send [18:51:16]OFD Sender: No OFD packet to send [18:51:21]OFD Sender: No OFD packet to send [18:51:26]OFD Sender: No OFD packet to send [18:51:31]OFD Sender: No OFD packet to send [18:51:36]OFD Sender: No OFD packet to send [18:51:41]OFD Sender: No OFD packet to send [18:51:46]OFD Sender: No OFD packet to send [18:51:51]OFD Sender: No OFD packet to send [18:51:56]OFD Sender: No OFD packet to send [18:52:01]OFD Sender: No OFD packet to send [18:52:06]OFD Sender: No OFD packet to send [18:52:11]OFD Sender: No OFD packet to send [18:52:16]OFD Sender: No OFD packet to send [18:52:21]OFD Sender: No OFD packet to send [18:52:26]OFD Sender: No OFD packet to send [18:52:31]OFD Sender: No OFD packet to send [18:52:36]OFD Sender: No OFD packet to send [18:52:41]OFD Sender: No OFD packet to send [18:52:46]OFD Sender: No OFD packet to send [18:52:50]recv_with_timeout no data received [18:52:51]OFD Sender: No OFD packet to send [18:52:56]OFD Sender: No OFD packet to send [18:53:01]OFD Sender: No OFD packet to send [18:53:06]OFD Sender: No OFD packet to send [18:53:11]OFD Sender: No OFD packet to send [18:53:16]OFD Sender: No OFD packet to send [18:53:19]accept exits with 10 [18:53:19]New connection [18:53:19]New thread 3067215204 created [18:53:19]Thread 3067358564 joined [18:53:19]Waiting for new connection... [18:53:19] Sock 10.Parse request [18:53:19]Sock 10.Check first char [18:53:19]Sock 10.First char is OK [18:53:19]request: POST /json_proto HTTP/1.0 [18:53:19]Method: POST [18:53:19]URL: /json_proto [18:53:19]Method is POST - this is cgi request [18:53:19]url: /json_proto [18:53:19]query_string will be loaded in cgi processing [18:53:19]execute_cgi json_proto POST (null) [18:53:19]execute_cgi path=json_proto method=POST [18:53:19]POST find Content-Length [18:53:19]Host: 172.17.44.67:8080 [18:53:19]Content-Length: 677 [18:53:19]Content-Type: application/json [18:53:19] [18:53:19]POST finish read [18:53:19]Found Content-Length = 677 [18:53:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:19]execute_script... [18:53:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:19]POST & json_proto [18:53:19]process_json_proto [18:53:19]json parsed OK: [18:53:19]protocol is kg_v1.0 [18:53:19]action value=close_receipt [18:53:19]process_action close_receipt [18:53:19]cmd_close_receipt [18:53:19]MH_GetDate [18:53:19]Write to MH i2c: F0 00 00 23 02 14 [18:53:19]Write i2c OK [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: F0 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: F0 09 00 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: F0 09 00 23 02 00 1F 5D 11 67 F1 C7 6B 64 98 [18:53:19]GetLastDocTimeStamp 1729190861 [18:53:19]current date 1729191199 [18:53:19]FM_GetShiftState [18:53:19]SAM_PROTO_GetShiftState [18:53:19]wFMCommunicate request_size=4 [18:53:19]MH_SAM_APDU [18:53:19]CAPDU: 80 13 01 00 [18:53:19]Write to MH i2c: E2 08 00 24 02 80 13 01 00 00 00 00 00 A3 [18:53:19]Write i2c OK [18:53:19]MH_I2C_Read... [18:53:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:19]Read from MH i2c: E2 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: E2 0E 00 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: E2 0E 00 24 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 AB [18:53:19]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [18:53:19]wFMCommunicate OK [18:53:19]SAM_PROTO_GetShiftState done [18:53:19]FM_GetShiftState done [18:53:19]opened in 1729125927 [18:53:19]opened+sec_in_day 1729212327 [18:53:19]quantity*price = 50041 [18:53:19]sum+1 = 50042 [18:53:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 170 17.10.2024 18:53 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82244 ФПД: 246305529404300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T185319&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82244&fm=246305529404300&tin=02508201610067®Number=0000000000091680&sum=50000 [18:53:20]StoreToDocumentArchive [18:53:20]shift 525 fd 82244 [18:53:20]save to /storage/0525/doc_00082244 [18:53:20]save last doc name /storage/0525/doc_00082244 to /storage/kkm_last_doc_name [18:53:20]save OK [18:53:20]Clear old archive folders... [18:53:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:53:20]tlvbuf is 001F4A30 [18:53:20]SAM_PROTO_ClearQueue [18:53:20]wFMCommunicate request_size=4 [18:53:20]MH_SAM_APDU [18:53:20]CAPDU: 80 09 00 00 [18:53:20]Write to MH i2c: E2 08 00 31 02 80 09 00 00 00 00 00 00 A5 [18:53:20]Write i2c OK [18:53:20]MH_I2C_Read... [18:53:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:53:20]Read from MH i2c: E2 [18:53:20]MH_I2C_Read... [18:53:20]Read from MH i2c: E2 03 00 [18:53:20]MH_I2C_Read... [18:53:20]Read from MH i2c: E2 03 00 31 02 00 90 00 A7 [18:53:20]RAPDU: 90 00 [18:53:20]wFMCommunicate OK [18:53:20]SAM_PROTO_ClearQueue done [18:53:20]KKMCreateOFDPacket [18:53:20]OFDProtocolAddRootSTLVToBuf [18:53:20]FM_MakeSignedData [18:53:20]FM_MakeSignedData [18:53:20]SAM_PROTO_SignData [18:53:20]wFMCommunicate request_size=4 [18:53:20]MH_SAM_APDU [18:53:20]CAPDU: 80 0D 01 02 [18:53:20]Write to MH i2c: E2 08 00 32 02 80 0D 01 02 00 00 00 00 AD [18:53:20]Write i2c OK [18:53:20]MH_I2C_Read... [18:53:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:53:20]Read from MH i2c: E2 [18:53:20]MH_I2C_Read... [18:53:20]Read from MH i2c: E2 03 00 [18:53:20]MH_I2C_Read... [18:53:20]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [18:53:20]RAPDU: 90 00 [18:53:20]wFMCommunicate OK [18:53:20]wFMCommunicate request_size=255 [18:53:20]MH_SAM_APDU [18:53:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 1F 5D 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 44 41 01 00 35 04 06 00 E0 [18:53:20]Write to MH i2c: E2 02 01 33 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 1F 5D 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 44 41 01 00 35 04 06 00 E0 00 00 4C [18:53:20]Write i2c OK [18:53:20]MH_I2C_Read... [18:53:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:20]Read from MH i2c: E2 [18:53:20]MH_I2C_Read... [18:53:20]Read from MH i2c: E2 03 00 [18:53:20]MH_I2C_Read... [18:53:20]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [18:53:20]RAPDU: 90 00 [18:53:20]wFMCommunicate OK [18:53:20]wFMCommunicate request_size=10 [18:53:20]MH_SAM_APDU [18:53:20]CAPDU: 80 0D 02 02 05 03 79 96 1B 8C [18:53:20]Write to MH i2c: E2 0D 00 34 02 80 0D 02 02 05 00 03 79 96 1B 8C 00 00 73 [18:53:20]Write i2c OK [18:53:20]MH_I2C_Read... [18:53:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:20]Read from MH i2c: E2 [18:53:20]MH_I2C_Read... [18:53:20]Read from MH i2c: E2 03 00 [18:53:20]MH_I2C_Read... [18:53:20]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [18:53:20]RAPDU: 90 00 [18:53:20]wFMCommunicate OK [18:53:20]wFMCommunicate request_size=4 [18:53:20]MH_SAM_APDU [18:53:20]CAPDU: 80 0D 03 02 [18:53:20]Write to MH i2c: E2 08 00 35 02 80 0D 03 02 00 00 00 00 B2 [18:53:20]Write i2c OK [18:53:20]MH_I2C_Read... [18:53:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:53:20]Read from MH i2c: E2 [18:53:20]MH_I2C_Read... [18:53:20]Read from MH i2c: E2 0B 00 [18:53:20]MH_I2C_Read... [18:53:20]Read from MH i2c: E2 0B 00 35 02 00 FA 6F 7E 50 0C 97 38 68 90 00 2D [18:53:20]RAPDU: FA 6F 7E 50 0C 97 38 68 90 00 [18:53:20]wFMCommunicate OK [18:53:20]SAM_PROTO_SignData done [18:53:20]FM_MakeSignedData done [18:53:20]CreateOFDProtocolMessage [18:53:20]wFMCommunicate request_size=4 [18:53:20]MH_SAM_APDU [18:53:20]CAPDU: 80 11 00 00 [18:53:20]Write to MH i2c: E2 08 00 36 02 80 11 00 00 00 00 00 00 B2 [18:53:20]Write i2c OK [18:53:20]MH_I2C_Read... [18:53:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:21]Read from MH i2c: E2 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 17 00 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 17 00 36 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 04 [18:53:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:53:21]wFMCommunicate OK [18:53:21]CreateOFDProtocolMessage done [18:53:21]OFDSenderStorePacket 82244 [18:53:21]StoreOFDPacket docnum=82244 [18:53:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 99 EC 07 01 F0 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 1F 5D 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 44 41 01 00 35 04 06 00 E0 03 79 96 1B 8C FA 6F 7E 50 0C 97 38 68 [18:53:21]CheckFolder [18:53:21]dirname=/storage/ofd_packets [18:53:21]CheckFolder done [18:53:21]ProducePacketName [18:53:21]name=ofd_packets/00082244 [18:53:21]NVStorageSaveData ofd_packets/00082244 [18:53:21]File name is /storage/ofd_packets/00082244 [18:53:21]Write 301 bytes [18:53:21]NVStorageSaveData done [18:53:21]OFDSenderStorePacket done [18:53:21]KKMCreateOFDPacket done [18:53:21]NVStorageSaveData kkm_last_timestamp [18:53:21]File name is /storage/kkm_last_timestamp [18:53:21]Write 4 bytes [18:53:21]NVStorageSaveData done [18:53:21]ExternCall_PrintAddStr [18:53:21]wPrintStart [18:53:21]Write to MH i2c: 01 00 00 37 02 39 [18:53:21]Write i2c OK [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: 01 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: 01 07 00 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: 01 07 00 37 02 00 00 00 00 00 FF 0F 4E [18:53:21]RasterBufferAndPrint [18:53:21]line Счет N : (1)918746 [18:53:21]line ИНН: 02508201610067 [18:53:21]line Контрольно-Кассовый Чек [18:53:21]line ПРОДАЖА [18:53:21]line ТРК (МРК, ГНК) : 22 [18:53:21]line Товар: 2710124130 [18:53:21]line Аи-92-К-4 [18:53:21]line 7.480 * 66.90 [18:53:21]line = 500.41 [18:53:21]line НДС 12% НСП 1% [18:53:21]line > о реализуемом товаре [18:53:21]line ОКРУГЛЕНИЕ: -0.41 [18:53:21]line ИТОГО: 500.00 [18:53:21]line Внесено: 500.00 [18:53:21]line СДАЧА: 0.00 [18:53:21]line НСП 1% : 4.43 [18:53:21]line НДС 12% : 53.14 [18:53:21]line Наличными: 500.00 [18:53:21]line Безнал.: 0.00 [18:53:21]line Место: АЗС № 114 "Партнер Нефть" [18:53:21]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [18:53:21]line СНО: Общий режим [18:53:21]line Чек 170 17.10.2024 18:53 [18:53:21]line Смена: 525 ФФД: 1.0 [18:53:21]line ЗНМ: 0300000086 [18:53:21]line РНМ: 0000000000091680 [18:53:21]line Версия ККМ: 001 [18:53:21]line ФМ: 0000000000871843 [18:53:21]line ФД: 82244 [18:53:21]line ФПД: 246305529404300 [18:53:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T185319&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82244&fm=246305529404300&tin=02508201610067®Number=0000000000091680&sum=50000 [18:53:21]OFD Sender: Processing packet 82244 [packets to send 254, broken 253] [18:53:21]ProducePacketName [18:53:21]name=ofd_packets/00082244 [18:53:21]OFD Sender: To server: pG, [18:53:21]CommunicateWithHost lk.salyk.kg:30040 [18:53:21]ConnectInit lk.salyk.kg [18:53:21]written 0, free lines is 4095 [18:53:21]Write to MH i2c: 01 00 00 62 02 64 [18:53:21]Write i2c OK [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: 01 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: 01 07 00 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: 01 07 00 62 02 00 00 00 00 00 D1 0C 48 [18:53:21]RasterBufferAndPrint [18:53:21]line [18:53:21]line [18:53:21]line [18:53:21]line [18:53:21]line [18:53:21]written 0, free lines is 3289 [18:53:21]MH_Cut [18:53:21]Write to MH i2c: D1 01 00 69 02 01 3D [18:53:21]Write i2c OK [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: D1 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: D1 01 00 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: D1 01 00 69 02 00 3C [18:53:21]Write to MH i2c: 01 00 00 6A 02 6C [18:53:21]Write i2c OK [18:53:21]MH_I2C_Read... [18:53:22]*** Cut start [18:53:22]*** Partial cut [18:53:22]*** CUTSNS_PIN = 1 [18:53:22]*** CUTSNS_PIN = 0 [18:53:22]*** Brake cut motor [18:53:23]Connected sock=9 [18:53:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 99 EC 07 01 F0 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 1F 5D 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 44 41 01 00 35 04 06 00 E0 03 79 96 1B 8C FA 6F 7E 50 0C 97 38 68 [18:53:23]Read from MH i2c: 01 [18:53:23]MH_I2C_Read... [18:53:23]*** Stop cut motor [18:53:23]*** Cut end [18:53:23]Read from MH i2c: 01 07 00 [18:53:23]MH_I2C_Read... [18:53:23]Read from MH i2c: 01 07 00 6A 02 00 00 00 00 00 FF 0F 81 [18:53:23]process_action close_receipt done [18:53:23]requested_data is exist [18:53:23]produce_requested_data [18:53:23]requested_item fm.sn is exist - process it [18:53:23]wFMCommunicate request_size=4 [18:53:23]MH_SAM_APDU [18:53:23]CAPDU: 80 11 00 00 [18:53:23]Write to MH i2c: E2 08 00 6B 02 80 11 00 00 00 00 00 00 E7 [18:53:23]Write i2c OK [18:53:23]MH_I2C_Read... [18:53:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:23]Read from MH i2c: E2 [18:53:23]MH_I2C_Read... [18:53:23]Read from MH i2c: E2 17 00 [18:53:23]MH_I2C_Read... [18:53:23]Read from MH i2c: E2 17 00 6B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 39 [18:53:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:53:23]wFMCommunicate OK [18:53:23]requested_item fd.num is exist - process it [18:53:23]SAM_PROTO_GetFieldsCounters [18:53:23]wFMCommunicate request_size=4 [18:53:23]MH_SAM_APDU [18:53:23]CAPDU: 80 13 00 00 [18:53:23]Write to MH i2c: E2 08 00 6C 02 80 13 00 00 00 00 00 00 EA [18:53:23]Write i2c OK [18:53:23]MH_I2C_Read... [18:53:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:23]Read from MH i2c: E2 [18:53:23]MH_I2C_Read... [18:53:23]Read from MH i2c: E2 62 00 [18:53:23]MH_I2C_Read... [18:53:23]Read from MH i2c: E2 62 00 6C 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 44 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [18:53:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 44 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:53:23]wFMCommunicate OK [18:53:23]SAM_PROTO_GetFieldsCounters done [18:53:23]requested_item shift.num is exist - process it [18:53:23]requested_item shift.opened is exist - process it [18:53:23]req_shift_opened [18:53:23]FM_GetShiftState [18:53:23]SAM_PROTO_GetShiftState [18:53:23]wFMCommunicate request_size=4 [18:53:23]MH_SAM_APDU [18:53:23]CAPDU: 80 13 01 00 [18:53:23]Write to MH i2c: E2 08 00 6D 02 80 13 01 00 00 00 00 00 EC [18:53:23]Write i2c OK [18:53:23]MH_I2C_Read... [18:53:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:23]Read from MH i2c: E2 [18:53:23]MH_I2C_Read... [18:53:23]Read from MH i2c: E2 0E 00 [18:53:23]MH_I2C_Read... [18:53:23]Read from MH i2c: E2 0E 00 6D 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 F4 [18:53:23]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [18:53:23]wFMCommunicate OK [18:53:23]SAM_PROTO_GetShiftState done [18:53:23]FM_GetShiftState done [18:53:23]req_shift_opened done [18:53:23]requested_item shift.open_date is exist - process it [18:53:23]req_shift_open_date [18:53:23]req_shift_open_date done [18:53:23]produce_requested_data done [18:53:23]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82244,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [18:53:23]process_action_free close_receipt [18:53:23]json_value_free [18:53:23]json_value_free done [18:53:23]process_json_proto returns [18:53:23]Send response to host [18:53:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82244,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [18:53:23]free response buf [18:53:23]execute_script done [18:53:23]execute_script returns [18:53:23]free content buf [18:53:23]Sock 10.Close socket [18:53:23]Sock 10.Thread stoped [18:53:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 95 F7 47 00 A1 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 44 41 01 00 F4 03 04 00 5F 02 11 67 B6 04 01 00 00 AF AB B0 69 C3 20 05 FC [18:53:24]CommunicateWithHost err = 0 [18:53:24]CheckOFDResponse [18:53:24]1017 (14) - 77093643461234 [18:53:24]1041 (16) - 0000000000871843 [18:53:24]1040 (4) - 82244 [18:53:24]1012 (4) - 17.10.2024 12:26 [18:53:24]1206 (1) - 0 [18:53:24]OFD Sender: Remove packet 82244 [18:53:24]ProducePacketName [18:53:24]name=ofd_packets/00082244 [18:53:24]NVStorageDeleteData [18:53:25]OFD Sender: No OFD packet to send [18:53:29]recv_with_timeout no data received [18:53:30]OFD Sender: No OFD packet to send [18:53:35]OFD Sender: No OFD packet to send [18:53:40]OFD Sender: No OFD packet to send [18:53:41]recv_with_timeout no data received [18:53:45]OFD Sender: No OFD packet to send [18:53:50]OFD Sender: No OFD packet to send [18:53:55]OFD Sender: No OFD packet to send [18:54:00]OFD Sender: No OFD packet to send [18:54:05]OFD Sender: No OFD packet to send [18:54:10]OFD Sender: No OFD packet to send [18:54:15]OFD Sender: No OFD packet to send [18:54:20]OFD Sender: No OFD packet to send [18:54:25]OFD Sender: No OFD packet to send [18:54:30]OFD Sender: No OFD packet to send [18:54:35]OFD Sender: No OFD packet to send [18:54:40]OFD Sender: No OFD packet to send [18:54:45]OFD Sender: No OFD packet to send [18:54:50]OFD Sender: No OFD packet to send [18:54:55]OFD Sender: No OFD packet to send [18:54:56]recv_with_timeout no data received [18:55:00]OFD Sender: No OFD packet to send [18:55:05]OFD Sender: No OFD packet to send [18:55:10]OFD Sender: No OFD packet to send [18:55:15]OFD Sender: No OFD packet to send [18:55:20]OFD Sender: No OFD packet to send [18:55:25]OFD Sender: No OFD packet to send [18:55:30]OFD Sender: No OFD packet to send [18:55:35]OFD Sender: No OFD packet to send [18:55:40]OFD Sender: No OFD packet to send [18:55:45]OFD Sender: No OFD packet to send [18:55:50]OFD Sender: No OFD packet to send [18:55:55]OFD Sender: No OFD packet to send [18:56:00]OFD Sender: No OFD packet to send [18:56:02]accept exits with 7 [18:56:02]New connection [18:56:02]New thread 3067358564 created [18:56:02]Thread 3067215204 joined [18:56:02]Waiting for new connection... [18:56:02] Sock 7.Parse request [18:56:02]Sock 7.Check first char [18:56:02]Sock 7.First char is OK [18:56:02]request: POST /json_proto HTTP/1.0 [18:56:02]Method: POST [18:56:02]URL: /json_proto [18:56:02]Method is POST - this is cgi request [18:56:02]url: /json_proto [18:56:02]query_string will be loaded in cgi processing [18:56:02]execute_cgi json_proto POST (null) [18:56:02]execute_cgi path=json_proto method=POST [18:56:02]POST find Content-Length [18:56:02]Host: 172.17.44.67:8080 [18:56:02]Content-Length: 766 [18:56:02]Content-Type: application/json [18:56:02] [18:56:02]POST finish read [18:56:02]Found Content-Length = 766 [18:56:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:02]execute_script... [18:56: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)918747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:02]POST & json_proto [18:56:02]process_json_proto [18:56:02]json parsed OK: [18:56:02]protocol is kg_v1.0 [18:56:02]action value=close_receipt [18:56:02]process_action close_receipt [18:56:02]cmd_close_receipt [18:56:02]MH_GetDate [18:56:02]Write to MH i2c: F0 00 00 6E 02 5F [18:56:02]Write i2c OK [18:56:02]MH_I2C_Read... [18:56:02]Read from MH i2c: F0 [18:56:02]MH_I2C_Read... [18:56:02]Read from MH i2c: F0 09 00 [18:56:02]MH_I2C_Read... [18:56:02]Read from MH i2c: F0 09 00 6E 02 00 C3 5D 11 67 F1 C7 6B 64 87 [18:56:02]GetLastDocTimeStamp 1729191199 [18:56:02]current date 1729191363 [18:56:02]FM_GetShiftState [18:56:02]SAM_PROTO_GetShiftState [18:56:02]wFMCommunicate request_size=4 [18:56:02]MH_SAM_APDU [18:56:02]CAPDU: 80 13 01 00 [18:56:02]Write to MH i2c: E2 08 00 6F 02 80 13 01 00 00 00 00 00 EE [18:56:02]Write i2c OK [18:56:02]MH_I2C_Read... [18:56:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:02]Read from MH i2c: E2 [18:56:02]MH_I2C_Read... [18:56:02]Read from MH i2c: E2 0E 00 [18:56:02]MH_I2C_Read... [18:56:02]Read from MH i2c: E2 0E 00 6F 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 F6 [18:56:02]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [18:56:03]wFMCommunicate OK [18:56:03]SAM_PROTO_GetShiftState done [18:56:03]FM_GetShiftState done [18:56:03]opened in 1729125927 [18:56:03]opened+sec_in_day 1729212327 [18:56:03]quantity*price = 50010 [18:56:03]sum+1 = 50012 [18:56:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 171 17.10.2024 18:56 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82245 ФПД: 233686599737730 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T185603&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82245&fm=233686599737730&tin=02508201610067®Number=0000000000091680&sum=50011 [18:56:04]StoreToDocumentArchive [18:56:04]shift 525 fd 82245 [18:56:04]save to /storage/0525/doc_00082245 [18:56:04]save last doc name /storage/0525/doc_00082245 to /storage/kkm_last_doc_name [18:56:04]save OK [18:56:04]Clear old archive folders... [18:56:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:56:04]tlvbuf is 002772F0 [18:56:04]SAM_PROTO_ClearQueue [18:56:04]wFMCommunicate request_size=4 [18:56:04]MH_SAM_APDU [18:56:04]CAPDU: 80 09 00 00 [18:56:04]Write to MH i2c: E2 08 00 7C 02 80 09 00 00 00 00 00 00 F0 [18:56:04]Write i2c OK [18:56:04]MH_I2C_Read... [18:56:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:56:04]Read from MH i2c: E2 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: E2 03 00 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: E2 03 00 7C 02 00 90 00 F2 [18:56:04]RAPDU: 90 00 [18:56:04]wFMCommunicate OK [18:56:04]SAM_PROTO_ClearQueue done [18:56:04]KKMCreateOFDPacket [18:56:04]OFDProtocolAddRootSTLVToBuf [18:56:04]FM_MakeSignedData [18:56:04]FM_MakeSignedData [18:56:04]SAM_PROTO_SignData [18:56:04]wFMCommunicate request_size=4 [18:56:04]MH_SAM_APDU [18:56:04]CAPDU: 80 0D 01 02 [18:56:04]Write to MH i2c: E2 08 00 7D 02 80 0D 01 02 00 00 00 00 F8 [18:56:04]Write i2c OK [18:56:04]MH_I2C_Read... [18:56:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:56:04]Read from MH i2c: E2 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: E2 03 00 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [18:56:04]RAPDU: 90 00 [18:56:04]wFMCommunicate OK [18:56:04]wFMCommunicate request_size=255 [18:56:04]MH_SAM_APDU [18:56: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 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 C3 5D 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 45 41 01 00 35 04 06 00 D4 [18:56:04]Write to MH i2c: E2 02 01 7E 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 C3 5D 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 45 41 01 00 35 04 06 00 D4 00 00 20 [18:56:04]Write i2c OK [18:56:04]MH_I2C_Read... [18:56:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:04]Read from MH i2c: E2 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: E2 03 00 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [18:56:04]RAPDU: 90 00 [18:56:04]wFMCommunicate OK [18:56:04]wFMCommunicate request_size=10 [18:56:04]MH_SAM_APDU [18:56:04]CAPDU: 80 0D 02 02 05 89 66 C4 21 82 [18:56:04]Write to MH i2c: E2 0D 00 7F 02 80 0D 02 02 05 00 89 66 C4 21 82 00 00 5B [18:56:04]Write i2c OK [18:56:04]MH_I2C_Read... [18:56:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:04]Read from MH i2c: E2 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: E2 03 00 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: E2 03 00 7F 02 00 90 00 F5 [18:56:04]RAPDU: 90 00 [18:56:04]wFMCommunicate OK [18:56:04]wFMCommunicate request_size=4 [18:56:04]MH_SAM_APDU [18:56:04]CAPDU: 80 0D 03 02 [18:56:04]Write to MH i2c: E2 08 00 80 02 80 0D 03 02 00 00 00 00 FD [18:56:04]Write i2c OK [18:56:04]MH_I2C_Read... [18:56:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:56:04]Read from MH i2c: E2 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: E2 0B 00 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: E2 0B 00 80 02 00 33 73 CD 98 B4 AE 91 F3 90 00 EF [18:56:04]RAPDU: 33 73 CD 98 B4 AE 91 F3 90 00 [18:56:04]wFMCommunicate OK [18:56:04]SAM_PROTO_SignData done [18:56:04]FM_MakeSignedData done [18:56:04]CreateOFDProtocolMessage [18:56:04]wFMCommunicate request_size=4 [18:56:04]MH_SAM_APDU [18:56:04]CAPDU: 80 11 00 00 [18:56:04]Write to MH i2c: E2 08 00 81 02 80 11 00 00 00 00 00 00 FD [18:56:04]Write i2c OK [18:56:04]MH_I2C_Read... [18:56:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:04]Read from MH i2c: E2 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: E2 17 00 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: E2 17 00 81 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 4F [18:56:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:56:04]wFMCommunicate OK [18:56:04]CreateOFDProtocolMessage done [18:56:04]OFDSenderStorePacket 82245 [18:56:04]StoreOFDPacket docnum=82245 [18:56:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 E4 01 07 01 62 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 C3 5D 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 45 41 01 00 35 04 06 00 D4 89 66 C4 21 82 33 73 CD 98 B4 AE 91 F3 [18:56:04]CheckFolder [18:56:04]dirname=/storage/ofd_packets [18:56:04]CheckFolder done [18:56:04]ProducePacketName [18:56:04]name=ofd_packets/00082245 [18:56:04]NVStorageSaveData ofd_packets/00082245 [18:56:04]File name is /storage/ofd_packets/00082245 [18:56:04]Write 301 bytes [18:56:04]NVStorageSaveData done [18:56:04]OFDSenderStorePacket done [18:56:04]KKMCreateOFDPacket done [18:56:04]NVStorageSaveData kkm_last_timestamp [18:56:04]File name is /storage/kkm_last_timestamp [18:56:04]Write 4 bytes [18:56:04]NVStorageSaveData done [18:56:04]ExternCall_PrintAddStr [18:56:04]wPrintStart [18:56:04]Write to MH i2c: 01 00 00 82 02 84 [18:56:04]Write i2c OK [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: 01 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: 01 07 00 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: 01 07 00 82 02 00 00 00 00 00 FF 0F 99 [18:56:04]RasterBufferAndPrint [18:56:04]line Счет N : (1)918747 [18:56:04]line ИНН: 02508201610067 [18:56:04]line Контрольно-Кассовый Чек [18:56:04]line ПРОДАЖА [18:56:04]line ТРК (МРК, ГНК) : 12 [18:56:04]line Товар: 2710124500 [18:56:04]line Аи-95-К-5 [18:56:04]line 6.740 * 74.20 [18:56:04]line = 500.11 [18:56:04]line НДС 12% НСП 1% [18:56:04]line > о реализуемом товаре [18:56:04]line ИТОГО: 500.11 [18:56:04]line НСП 1% : 4.43 [18:56:04]line НДС 12% : 53.11 [18:56:04]line Наличными: 0.00 [18:56:04]line Безнал.: 500.11 [18:56:04]line Место: АЗС № 114 "Партнер Нефть" [18:56:04]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [18:56:04]line СНО: Общий режим [18:56:04]line Чек 171 17.10.2024 18:56 [18:56:04]line Смена: 525 ФФД: 1.0 [18:56:04]line ЗНМ: 0300000086 [18:56:04]line РНМ: 0000000000091680 [18:56:04]line Версия ККМ: 001 [18:56:04]line Платежная система: Mbank [18:56:04]line ФМ: 0000000000871843 [18:56:04]line ФД: 82245 [18:56:04]line ФПД: 233686599737730 [18:56:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T185603&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82245&fm=233686599737730&tin=02508201610067®Number=0000000000091680&sum=50011 [18:56:04]written 0, free lines is 4095 [18:56:04]OFD Sender: Processing packet 82245 [packets to send 254, broken 253] [18:56:04]ProducePacketName [18:56:04]name=ofd_packets/00082245 [18:56:04]OFD Sender: To server: pG, [18:56:04]CommunicateWithHost lk.salyk.kg:30040 [18:56:04]ConnectInit lk.salyk.kg [18:56:05]Write to MH i2c: 01 00 00 AB 02 AD [18:56:05]Write i2c OK [18:56:05]MH_I2C_Read... [18:56:05]Read from MH i2c: 01 [18:56:05]MH_I2C_Read... [18:56:05]Read from MH i2c: 01 07 00 [18:56:05]MH_I2C_Read... [18:56:05]Read from MH i2c: 01 07 00 AB 02 00 00 00 00 00 EF 0C AF [18:56:05]RasterBufferAndPrint [18:56:05]line [18:56:05]line [18:56:05]line [18:56:05]line [18:56:05]line [18:56:05]written 0, free lines is 3317 [18:56:05]MH_Cut [18:56:05]Write to MH i2c: D1 01 00 B2 02 01 86 [18:56:05]Write i2c OK [18:56:05]MH_I2C_Read... [18:56:05]Read from MH i2c: D1 [18:56:05]MH_I2C_Read... [18:56:05]Read from MH i2c: D1 01 00 [18:56:05]MH_I2C_Read... [18:56:05]Read from MH i2c: D1 01 00 B2 02 00 85 [18:56:05]Write to MH i2c: 01 00 00 B3 02 B5 [18:56:05]Write i2c OK [18:56:05]MH_I2C_Read... [18:56:05]Connected sock=9 [18:56:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 E4 01 07 01 62 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 C3 5D 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 45 41 01 00 35 04 06 00 D4 89 66 C4 21 82 33 73 CD 98 B4 AE 91 F3 [18:56:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 C0 D9 47 00 5A 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 45 41 01 00 F4 03 04 00 00 03 11 67 B6 04 01 00 00 63 08 00 69 A5 84 36 FA [18:56:05]CommunicateWithHost err = 0 [18:56:05]CheckOFDResponse [18:56:05]1017 (14) - 77093643461234 [18:56:05]1041 (16) - 0000000000871843 [18:56:05]1040 (4) - 82245 [18:56:05]1012 (4) - 17.10.2024 12:28 [18:56:05]1206 (1) - 0 [18:56:05]OFD Sender: Remove packet 82245 [18:56:05]ProducePacketName [18:56:05]name=ofd_packets/00082245 [18:56:05]NVStorageDeleteData [18:56:05]*** Cut start [18:56:05]*** Partial cut [18:56:05]*** CUTSNS_PIN = 1 [18:56:05]*** CUTSNS_PIN = 0 [18:56:06]*** Brake cut motor [18:56:06]OFD Sender: No OFD packet to send [18:56:06]Read from MH i2c: 01 [18:56:06]MH_I2C_Read... [18:56:06]*** Stop cut motor [18:56:06]*** Cut end [18:56:06]Read from MH i2c: 01 07 00 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: 01 07 00 B3 02 00 00 00 00 00 FF 0F CA [18:56:06]process_action close_receipt done [18:56:06]requested_data is exist [18:56:06]produce_requested_data [18:56:06]requested_item fm.sn is exist - process it [18:56:06]wFMCommunicate request_size=4 [18:56:06]MH_SAM_APDU [18:56:06]CAPDU: 80 11 00 00 [18:56:06]Write to MH i2c: E2 08 00 B4 02 80 11 00 00 00 00 00 00 30 [18:56:06]Write i2c OK [18:56:06]MH_I2C_Read... [18:56:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:06]Read from MH i2c: E2 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 17 00 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 17 00 B4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 82 [18:56:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:56:06]wFMCommunicate OK [18:56:06]requested_item fd.num is exist - process it [18:56:06]SAM_PROTO_GetFieldsCounters [18:56:06]wFMCommunicate request_size=4 [18:56:06]MH_SAM_APDU [18:56:06]CAPDU: 80 13 00 00 [18:56:06]Write to MH i2c: E2 08 00 B5 02 80 13 00 00 00 00 00 00 33 [18:56:06]Write i2c OK [18:56:06]MH_I2C_Read... [18:56:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:56:06]Read from MH i2c: E2 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 62 00 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 62 00 B5 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 45 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [18:56:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 45 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:56:06]wFMCommunicate OK [18:56:06]SAM_PROTO_GetFieldsCounters done [18:56:06]requested_item shift.num is exist - process it [18:56:06]requested_item shift.opened is exist - process it [18:56:06]req_shift_opened [18:56:06]FM_GetShiftState [18:56:06]SAM_PROTO_GetShiftState [18:56:06]wFMCommunicate request_size=4 [18:56:06]MH_SAM_APDU [18:56:06]CAPDU: 80 13 01 00 [18:56:06]Write to MH i2c: E2 08 00 B6 02 80 13 01 00 00 00 00 00 35 [18:56:06]Write i2c OK [18:56:06]MH_I2C_Read... [18:56:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:06]Read from MH i2c: E2 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 0E 00 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 0E 00 B6 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 3D [18:56:06]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [18:56:06]wFMCommunicate OK [18:56:06]SAM_PROTO_GetShiftState done [18:56:06]FM_GetShiftState done [18:56:06]req_shift_opened done [18:56:06]requested_item shift.open_date is exist - process it [18:56:06]req_shift_open_date [18:56:06]req_shift_open_date done [18:56:06]produce_requested_data done [18:56:06]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82245,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [18:56:06]process_action_free close_receipt [18:56:06]json_value_free [18:56:06]json_value_free done [18:56:06]process_json_proto returns [18:56:06]Send response to host [18:56:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82245,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [18:56:06]free response buf [18:56:06]execute_script done [18:56:06]execute_script returns [18:56:06]free content buf [18:56:06]Sock 7.Close socket [18:56:06]Sock 7.Thread stoped [18:56:11]OFD Sender: No OFD packet to send [18:56:15]recv_with_timeout no data received [18:56:16]OFD Sender: No OFD packet to send [18:56:21]OFD Sender: No OFD packet to send [18:56:26]OFD Sender: No OFD packet to send [18:56:31]OFD Sender: No OFD packet to send [18:56:35]recv_with_timeout no data received [18:56:36]OFD Sender: No OFD packet to send [18:56:41]OFD Sender: No OFD packet to send [18:56:46]OFD Sender: No OFD packet to send [18:56:51]OFD Sender: No OFD packet to send [18:56:56]OFD Sender: No OFD packet to send [18:57:01]OFD Sender: No OFD packet to send [18:57:06]OFD Sender: No OFD packet to send [18:57:11]OFD Sender: No OFD packet to send [18:57:16]OFD Sender: No OFD packet to send [18:57:21]OFD Sender: No OFD packet to send [18:57:26]OFD Sender: No OFD packet to send [18:57:31]OFD Sender: No OFD packet to send [18:57:36]OFD Sender: No OFD packet to send [18:57:41]OFD Sender: No OFD packet to send [18:57:46]OFD Sender: No OFD packet to send [18:57:51]OFD Sender: No OFD packet to send [18:57:56]OFD Sender: No OFD packet to send [18:58:01]OFD Sender: No OFD packet to send [18:58:05]accept exits with 10 [18:58:05]New connection [18:58:05]New thread 3067215204 created [18:58:05]Thread 3067358564 joined [18:58:05]Waiting for new connection... [18:58:05] Sock 10.Parse request [18:58:05]Sock 10.Check first char [18:58:05]Sock 10.First char is OK [18:58:05]request: POST /json_proto HTTP/1.0 [18:58:05]Method: POST [18:58:05]URL: /json_proto [18:58:05]Method is POST - this is cgi request [18:58:05]url: /json_proto [18:58:05]query_string will be loaded in cgi processing [18:58:05]execute_cgi json_proto POST (null) [18:58:05]execute_cgi path=json_proto method=POST [18:58:05]POST find Content-Length [18:58:05]Host: 172.17.44.67:8080 [18:58:05]Content-Length: 772 [18:58:05]Content-Type: application/json [18:58:05] [18:58:05]POST finish read [18:58:05]Found Content-Length = 772 [18:58:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 9.070, "sum" : 700.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:05]execute_script... [18:58:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 9.070, "sum" : 700.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:05]POST & json_proto [18:58:05]process_json_proto [18:58:05]json parsed OK: [18:58:05]protocol is kg_v1.0 [18:58:05]action value=close_receipt [18:58:05]process_action close_receipt [18:58:05]cmd_close_receipt [18:58:05]MH_GetDate [18:58:05]Write to MH i2c: F0 00 00 B7 02 A8 [18:58:06]Write i2c OK [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: F0 [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: F0 09 00 [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: F0 09 00 B7 02 00 3E 5E 11 67 F1 C7 6B 64 4C [18:58:06]GetLastDocTimeStamp 1729191363 [18:58:06]current date 1729191486 [18:58:06]FM_GetShiftState [18:58:06]SAM_PROTO_GetShiftState [18:58:06]wFMCommunicate request_size=4 [18:58:06]MH_SAM_APDU [18:58:06]CAPDU: 80 13 01 00 [18:58:06]Write to MH i2c: E2 08 00 B8 02 80 13 01 00 00 00 00 00 37 [18:58:06]Write i2c OK [18:58:06]MH_I2C_Read... [18:58:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:06]Read from MH i2c: E2 [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: E2 0E 00 [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: E2 0E 00 B8 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 3F [18:58:06]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [18:58:06]wFMCommunicate OK [18:58:06]SAM_PROTO_GetShiftState done [18:58:06]FM_GetShiftState done [18:58:06]opened in 1729125927 [18:58:06]opened+sec_in_day 1729212327 [18:58:06]quantity*price = 70020 [18:58:06]sum+1 = 70021 [18:58:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.20 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 0.00 Безнал.: 700.20 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 172 17.10.2024 18:58 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82246 ФПД: 276868956669778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T185806&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82246&fm=276868956669778&tin=02508201610067®Number=0000000000091680&sum=70020 [18:58:07]StoreToDocumentArchive [18:58:07]shift 525 fd 82246 [18:58:07]save to /storage/0525/doc_00082246 [18:58:07]save last doc name /storage/0525/doc_00082246 to /storage/kkm_last_doc_name [18:58:07]save OK [18:58:07]Clear old archive folders... [18:58:07]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:58:07]tlvbuf is 0027B750 [18:58:07]SAM_PROTO_ClearQueue [18:58:07]wFMCommunicate request_size=4 [18:58:07]MH_SAM_APDU [18:58:07]CAPDU: 80 09 00 00 [18:58:07]Write to MH i2c: E2 08 00 C5 02 80 09 00 00 00 00 00 00 39 [18:58:07]Write i2c OK [18:58:07]MH_I2C_Read... [18:58:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:58:07]Read from MH i2c: E2 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: E2 03 00 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: E2 03 00 C5 02 00 90 00 3B [18:58:07]RAPDU: 90 00 [18:58:07]wFMCommunicate OK [18:58:07]SAM_PROTO_ClearQueue done [18:58:07]KKMCreateOFDPacket [18:58:07]OFDProtocolAddRootSTLVToBuf [18:58:07]FM_MakeSignedData [18:58:07]FM_MakeSignedData [18:58:07]SAM_PROTO_SignData [18:58:07]wFMCommunicate request_size=4 [18:58:07]MH_SAM_APDU [18:58:07]CAPDU: 80 0D 01 02 [18:58:07]Write to MH i2c: E2 08 00 C6 02 80 0D 01 02 00 00 00 00 41 [18:58:07]Write i2c OK [18:58:07]MH_I2C_Read... [18:58:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:58:07]Read from MH i2c: E2 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: E2 03 00 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: E2 03 00 C6 02 00 90 00 3C [18:58:07]RAPDU: 90 00 [18:58:07]wFMCommunicate OK [18:58:07]wFMCommunicate request_size=255 [18:58:07]MH_SAM_APDU [18:58:07]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 3E 5E 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 46 41 01 [18:58:07]Write to MH i2c: E2 02 01 C7 02 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 3E 5E 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 46 41 01 00 00 FD [18:58:07]Write i2c OK [18:58:07]MH_I2C_Read... [18:58:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:07]Read from MH i2c: E2 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: E2 03 00 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: E2 03 00 C7 02 00 90 00 3D [18:58:07]RAPDU: 90 00 [18:58:07]wFMCommunicate OK [18:58:07]wFMCommunicate request_size=16 [18:58:07]MH_SAM_APDU [18:58:07]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 FB CF 93 CF C7 52 [18:58:07]Write to MH i2c: E2 13 00 C8 02 80 0D 02 02 0B 00 00 35 04 06 00 FB CF 93 CF C7 52 00 00 DE [18:58:07]Write i2c OK [18:58:07]MH_I2C_Read... [18:58:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:07]Read from MH i2c: E2 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: E2 03 00 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [18:58:07]RAPDU: 90 00 [18:58:07]wFMCommunicate OK [18:58:07]wFMCommunicate request_size=4 [18:58:07]MH_SAM_APDU [18:58:07]CAPDU: 80 0D 03 02 [18:58:07]Write to MH i2c: E2 08 00 C9 02 80 0D 03 02 00 00 00 00 46 [18:58:07]Write i2c OK [18:58:07]MH_I2C_Read... [18:58:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:58:07]Read from MH i2c: E2 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: E2 0B 00 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: E2 0B 00 C9 02 00 AF F2 91 9F 29 20 F5 AC 90 00 02 [18:58:07]RAPDU: AF F2 91 9F 29 20 F5 AC 90 00 [18:58:07]wFMCommunicate OK [18:58:07]SAM_PROTO_SignData done [18:58:07]FM_MakeSignedData done [18:58:07]CreateOFDProtocolMessage [18:58:07]wFMCommunicate request_size=4 [18:58:07]MH_SAM_APDU [18:58:07]CAPDU: 80 11 00 00 [18:58:07]Write to MH i2c: E2 08 00 CA 02 80 11 00 00 00 00 00 00 46 [18:58:07]Write i2c OK [18:58:07]MH_I2C_Read... [18:58:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:07]Read from MH i2c: E2 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: E2 17 00 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: E2 17 00 CA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 98 [18:58:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:58:07]wFMCommunicate OK [18:58:07]CreateOFDProtocolMessage done [18:58:07]OFDSenderStorePacket 82246 [18:58:07]StoreOFDPacket docnum=82246 [18:58:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 93 1E 0D 01 B2 2B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 3E 5E 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 46 41 01 00 35 04 06 00 FB CF 93 CF C7 52 AF F2 91 9F 29 20 F5 AC [18:58:07]CheckFolder [18:58:07]dirname=/storage/ofd_packets [18:58:07]CheckFolder done [18:58:07]ProducePacketName [18:58:07]name=ofd_packets/00082246 [18:58:07]NVStorageSaveData ofd_packets/00082246 [18:58:07]File name is /storage/ofd_packets/00082246 [18:58:07]Write 307 bytes [18:58:07]NVStorageSaveData done [18:58:07]OFDSenderStorePacket done [18:58:07]KKMCreateOFDPacket done [18:58:07]NVStorageSaveData kkm_last_timestamp [18:58:07]File name is /storage/kkm_last_timestamp [18:58:07]Write 4 bytes [18:58:07]NVStorageSaveData done [18:58:07]ExternCall_PrintAddStr [18:58:07]wPrintStart [18:58:07]Write to MH i2c: 01 00 00 CB 02 CD [18:58:07]Write i2c OK [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: 01 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: 01 07 00 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: 01 07 00 CB 02 00 00 00 00 00 FF 0F E2 [18:58:07]RasterBufferAndPrint [18:58:07]line Счет N : (1)918748 [18:58:07]line ИНН: 02508201610067 [18:58:07]line Контрольно-Кассовый Чек [18:58:07]line ПРОДАЖА [18:58:07]line ТРК (МРК, ГНК) : 21 [18:58:07]line Товар: 2710194800 [18:58:07]line D-Energy ДТ-К-2 [18:58:07]line 9.070 * 77.20 [18:58:07]line = 700.20 [18:58:07]line НДС 12% НСП 1% [18:58:07]line > о реализуемом товаре [18:58:07]line ИТОГО: 700.20 [18:58:07]line НСП 1% : 6.20 [18:58:07]line НДС 12% : 74.36 [18:58:07]line Наличными: 0.00 [18:58:07]line Безнал.: 700.20 [18:58:07]line Место: АЗС № 114 "Партнер Нефть" [18:58:07]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [18:58:07]line СНО: Общий режим [18:58:07]line Чек 172 17.10.2024 18:58 [18:58:07]line Смена: 525 ФФД: 1.0 [18:58:07]line ЗНМ: 0300000086 [18:58:07]line РНМ: 0000000000091680 [18:58:07]line Версия ККМ: 001 [18:58:07]line Платежная система: Mbank [18:58:07]line ФМ: 0000000000871843 [18:58:07]line ФД: 82246 [18:58:07]line ФПД: 276868956669778 [18:58:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T185806&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82246&fm=276868956669778&tin=02508201610067®Number=0000000000091680&sum=70020 [18:58:08]OFD Sender: Processing packet 82246 [packets to send 254, broken 253] [18:58:08]ProducePacketName [18:58:08]name=ofd_packets/00082246 [18:58:08]OFD Sender: To server: pG, [18:58:08]CommunicateWithHost lk.salyk.kg:30040 [18:58:08]ConnectInit lk.salyk.kg [18:58:08]written 0, free lines is 4095 [18:58:08]Write to MH i2c: 01 00 00 F4 02 F6 [18:58:08]Write i2c OK [18:58:08]MH_I2C_Read... [18:58:08]Read from MH i2c: 01 [18:58:08]MH_I2C_Read... [18:58:08]Read from MH i2c: 01 07 00 [18:58:08]MH_I2C_Read... [18:58:08]Read from MH i2c: 01 07 00 F4 02 00 00 00 00 00 0C 0D 16 [18:58:08]RasterBufferAndPrint [18:58:08]line [18:58:08]line [18:58:08]line [18:58:08]line [18:58:08]line [18:58:08]written 0, free lines is 3347 [18:58:08]MH_Cut [18:58:08]Write to MH i2c: D1 01 00 FB 02 01 CF [18:58:08]Write i2c OK [18:58:08]MH_I2C_Read... [18:58:08]Read from MH i2c: D1 [18:58:08]MH_I2C_Read... [18:58:08]Read from MH i2c: D1 01 00 [18:58:08]MH_I2C_Read... [18:58:08]Read from MH i2c: D1 01 00 FB 02 00 CE [18:58:08]Write to MH i2c: 01 00 00 FC 02 FE [18:58:08]Write i2c OK [18:58:08]MH_I2C_Read... [18:58:08]Connected sock=9 [18:58:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 93 1E 0D 01 B2 2B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 3E 5E 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 46 41 01 00 35 04 06 00 FB CF 93 CF C7 52 AF F2 91 9F 29 20 F5 AC [18:58:09]*** Cut start [18:58:09]*** Partial cut [18:58:09]*** CUTSNS_PIN = 1 [18:58:09]*** CUTSNS_PIN = 0 [18:58:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 A9 02 47 00 8D 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 46 41 01 00 F4 03 04 00 7C 03 11 67 B6 04 01 00 00 1C D4 CD D9 F6 2E B5 F9 [18:58:09]CommunicateWithHost err = 0 [18:58:09]CheckOFDResponse [18:58:09]1017 (14) - 77093643461234 [18:58:09]1041 (16) - 0000000000871843 [18:58:09]1040 (4) - 82246 [18:58:09]1012 (4) - 17.10.2024 12:30 [18:58:09]1206 (1) - 0 [18:58:09]OFD Sender: Remove packet 82246 [18:58:09]ProducePacketName [18:58:09]name=ofd_packets/00082246 [18:58:09]NVStorageDeleteData [18:58:09]*** Brake cut motor [18:58:09]Read from MH i2c: 01 [18:58:09]MH_I2C_Read... [18:58:09]*** Stop cut motor [18:58:09]*** Cut end [18:58:09]Read from MH i2c: 01 07 00 [18:58:09]MH_I2C_Read... [18:58:09]Read from MH i2c: 01 07 00 FC 02 00 00 00 00 00 FF 0F 13 [18:58:09]process_action close_receipt done [18:58:09]requested_data is exist [18:58:09]produce_requested_data [18:58:09]requested_item fm.sn is exist - process it [18:58:09]wFMCommunicate request_size=4 [18:58:09]MH_SAM_APDU [18:58:09]CAPDU: 80 11 00 00 [18:58:09]Write to MH i2c: E2 08 00 FD 02 80 11 00 00 00 00 00 00 79 [18:58:09]Write i2c OK [18:58:09]MH_I2C_Read... [18:58:09]OFD Sender: No OFD packet to send [18:58:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:09]Read from MH i2c: E2 [18:58:09]MH_I2C_Read... [18:58:09]Read from MH i2c: E2 17 00 [18:58:09]MH_I2C_Read... [18:58:09]Read from MH i2c: E2 17 00 FD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 CB [18:58:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:58:09]wFMCommunicate OK [18:58:09]requested_item fd.num is exist - process it [18:58:09]SAM_PROTO_GetFieldsCounters [18:58:09]wFMCommunicate request_size=4 [18:58:09]MH_SAM_APDU [18:58:09]CAPDU: 80 13 00 00 [18:58:09]Write to MH i2c: E2 08 00 FE 02 80 13 00 00 00 00 00 00 7C [18:58:09]Write i2c OK [18:58:09]MH_I2C_Read... [18:58:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:10]Read from MH i2c: E2 [18:58:10]MH_I2C_Read... [18:58:10]Read from MH i2c: E2 62 00 [18:58:10]MH_I2C_Read... [18:58:10]Read from MH i2c: E2 62 00 FE 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 46 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [18:58:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 46 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:58:10]wFMCommunicate OK [18:58:10]SAM_PROTO_GetFieldsCounters done [18:58:10]requested_item shift.num is exist - process it [18:58:10]requested_item shift.opened is exist - process it [18:58:10]req_shift_opened [18:58:10]FM_GetShiftState [18:58:10]SAM_PROTO_GetShiftState [18:58:10]wFMCommunicate request_size=4 [18:58:10]MH_SAM_APDU [18:58:10]CAPDU: 80 13 01 00 [18:58:10]Write to MH i2c: E2 08 00 FF 02 80 13 01 00 00 00 00 00 7E [18:58:10]Write i2c OK [18:58:10]MH_I2C_Read... [18:58:10]Read from MH i2c: E2 [18:58:10]MH_I2C_Read... [18:58:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:10]Read from MH i2c: E2 0E 00 [18:58:10]MH_I2C_Read... [18:58:10]Read from MH i2c: E2 0E 00 FF 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 86 [18:58:10]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [18:58:10]wFMCommunicate OK [18:58:10]SAM_PROTO_GetShiftState done [18:58:10]FM_GetShiftState done [18:58:10]req_shift_opened done [18:58:10]requested_item shift.open_date is exist - process it [18:58:10]req_shift_open_date [18:58:10]req_shift_open_date done [18:58:10]produce_requested_data done [18:58:10]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82246,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [18:58:10]process_action_free close_receipt [18:58:10]json_value_free [18:58:10]json_value_free done [18:58:10]process_json_proto returns [18:58:10]Send response to host [18:58:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82246,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [18:58:10]free response buf [18:58:10]execute_script done [18:58:10]execute_script returns [18:58:10]free content buf [18:58:10]Sock 10.Close socket [18:58:10]Sock 10.Thread stoped [18:58:14]OFD Sender: No OFD packet to send [18:58:16]recv_with_timeout no data received [18:58:19]OFD Sender: No OFD packet to send [18:58:24]OFD Sender: No OFD packet to send [18:58:27]recv_with_timeout no data received [18:58:29]OFD Sender: No OFD packet to send [18:58:34]OFD Sender: No OFD packet to send [18:58:38]recv_with_timeout no data received [18:58:40]OFD Sender: No OFD packet to send [18:58:45]OFD Sender: No OFD packet to send [18:58:50]OFD Sender: No OFD packet to send [18:58:55]OFD Sender: No OFD packet to send [18:59:00]OFD Sender: No OFD packet to send [18:59:05]OFD Sender: No OFD packet to send [18:59:10]OFD Sender: No OFD packet to send [18:59:15]OFD Sender: No OFD packet to send [18:59:20]OFD Sender: No OFD packet to send [18:59:25]OFD Sender: No OFD packet to send [18:59:30]OFD Sender: No OFD packet to send [18:59:35]OFD Sender: No OFD packet to send [18:59:40]OFD Sender: No OFD packet to send [18:59:45]OFD Sender: No OFD packet to send [18:59:50]OFD Sender: No OFD packet to send [18:59:55]OFD Sender: No OFD packet to send [19:00:00]OFD Sender: No OFD packet to send [19:00:05]OFD Sender: No OFD packet to send [19:00:10]OFD Sender: No OFD packet to send [19:00:13]recv_with_timeout no data received [19:00:15]OFD Sender: No OFD packet to send [19:00:20]OFD Sender: No OFD packet to send [19:00:25]OFD Sender: No OFD packet to send [19:00:30]OFD Sender: No OFD packet to send [19:00:35]OFD Sender: No OFD packet to send [19:00:40]OFD Sender: No OFD packet to send [19:00:45]OFD Sender: No OFD packet to send [19:00:50]OFD Sender: No OFD packet to send [19:00:55]OFD Sender: No OFD packet to send [19:01:00]OFD Sender: No OFD packet to send [19:01:05]OFD Sender: No OFD packet to send [19:01:10]OFD Sender: No OFD packet to send [19:01:15]OFD Sender: No OFD packet to send [19:01:20]OFD Sender: No OFD packet to send [19:01:25]OFD Sender: No OFD packet to send [19:01:30]OFD Sender: No OFD packet to send [19:01:35]OFD Sender: No OFD packet to send [19:01:40]OFD Sender: No OFD packet to send [19:01:45]OFD Sender: No OFD packet to send [19:01:50]OFD Sender: No OFD packet to send [19:01:55]OFD Sender: No OFD packet to send [19:02:00]OFD Sender: No OFD packet to send [19:02:05]OFD Sender: No OFD packet to send [19:02:10]OFD Sender: No OFD packet to send [19:02:15]OFD Sender: No OFD packet to send [19:02:17]accept exits with 7 [19:02:17]New connection [19:02:17]New thread 3067358564 created [19:02:17]Thread 3067215204 joined [19:02:17]Waiting for new connection... [19:02:17] Sock 7.Parse request [19:02:17]Sock 7.Check first char [19:02:17]Sock 7.First char is OK [19:02:17]request: POST /json_proto HTTP/1.0 [19:02:17]Method: POST [19:02:17]URL: /json_proto [19:02:17]Method is POST - this is cgi request [19:02:17]url: /json_proto [19:02:17]query_string will be loaded in cgi processing [19:02:17]execute_cgi json_proto POST (null) [19:02:17]execute_cgi path=json_proto method=POST [19:02:17]POST find Content-Length [19:02:17]Host: 172.17.44.67:8080 [19:02:17]Content-Length: 682 [19:02:17]Content-Type: application/json [19:02:17] [19:02:17]POST finish read [19:02:17]Found Content-Length = 682 [19:02:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:17]execute_script... [19:02:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:17]POST & json_proto [19:02:17]process_json_proto [19:02:17]json parsed OK: [19:02:17]protocol is kg_v1.0 [19:02:17]action value=close_receipt [19:02:17]process_action close_receipt [19:02:17]cmd_close_receipt [19:02:17]MH_GetDate [19:02:17]Write to MH i2c: F0 00 00 00 03 F2 [19:02:17]Write i2c OK [19:02:17]MH_I2C_Read... [19:02:17]Read from MH i2c: F0 [19:02:17]MH_I2C_Read... [19:02:17]Read from MH i2c: F0 09 00 [19:02:17]MH_I2C_Read... [19:02:17]Read from MH i2c: F0 09 00 00 03 00 3A 5F 11 67 F1 C7 6B 64 93 [19:02:17]GetLastDocTimeStamp 1729191486 [19:02:17]current date 1729191738 [19:02:17]FM_GetShiftState [19:02:17]SAM_PROTO_GetShiftState [19:02:17]wFMCommunicate request_size=4 [19:02:17]MH_SAM_APDU [19:02:17]CAPDU: 80 13 01 00 [19:02:17]Write to MH i2c: E2 08 00 01 03 80 13 01 00 00 00 00 00 81 [19:02:17]Write i2c OK [19:02:17]MH_I2C_Read... [19:02:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:17]Read from MH i2c: E2 [19:02:17]MH_I2C_Read... [19:02:17]Read from MH i2c: E2 0E 00 [19:02:17]MH_I2C_Read... [19:02:17]Read from MH i2c: E2 0E 00 01 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 89 [19:02:17]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [19:02:17]wFMCommunicate OK [19:02:17]SAM_PROTO_GetShiftState done [19:02:17]FM_GetShiftState done [19:02:17]opened in 1729125927 [19:02:17]opened+sec_in_day 1729212327 [19:02:17]quantity*price = 100015 [19:02:17]sum+1 = 100017 [19:02:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 173 17.10.2024 19:02 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82247 ФПД: 112140362109389 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T190218&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82247&fm=112140362109389&tin=02508201610067®Number=0000000000091680&sum=100000 [19:02:18]StoreToDocumentArchive [19:02:18]shift 525 fd 82247 [19:02:18]save to /storage/0525/doc_00082247 [19:02:18]save last doc name /storage/0525/doc_00082247 to /storage/kkm_last_doc_name [19:02:18]save OK [19:02:18]Clear old archive folders... [19:02:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:02:19]tlvbuf is 00279CC0 [19:02:19]SAM_PROTO_ClearQueue [19:02:19]wFMCommunicate request_size=4 [19:02:19]MH_SAM_APDU [19:02:19]CAPDU: 80 09 00 00 [19:02:19]Write to MH i2c: E2 08 00 0E 03 80 09 00 00 00 00 00 00 83 [19:02:19]Write i2c OK [19:02:19]MH_I2C_Read... [19:02:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:02:19]Read from MH i2c: E2 [19:02:19]MH_I2C_Read... [19:02:19]Read from MH i2c: E2 03 00 [19:02:19]MH_I2C_Read... [19:02:19]Read from MH i2c: E2 03 00 0E 03 00 90 00 85 [19:02:19]RAPDU: 90 00 [19:02:19]wFMCommunicate OK [19:02:19]SAM_PROTO_ClearQueue done [19:02:19]KKMCreateOFDPacket [19:02:19]OFDProtocolAddRootSTLVToBuf [19:02:19]FM_MakeSignedData [19:02:19]FM_MakeSignedData [19:02:19]SAM_PROTO_SignData [19:02:19]wFMCommunicate request_size=4 [19:02:19]MH_SAM_APDU [19:02:19]CAPDU: 80 0D 01 02 [19:02:19]Write to MH i2c: E2 08 00 0F 03 80 0D 01 02 00 00 00 00 8B [19:02:19]Write i2c OK [19:02:19]MH_I2C_Read... [19:02:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:02:19]Read from MH i2c: E2 [19:02:19]MH_I2C_Read... [19:02:19]Read from MH i2c: E2 03 00 [19:02:19]MH_I2C_Read... [19:02:19]Read from MH i2c: E2 03 00 0F 03 00 90 00 86 [19:02:19]RAPDU: 90 00 [19:02:19]wFMCommunicate OK [19:02:19]wFMCommunicate request_size=255 [19:02:19]MH_SAM_APDU [19:02:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 3A 5F 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 47 41 01 00 35 04 06 00 65 [19:02:19]Write to MH i2c: E2 02 01 10 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 3A 5F 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 47 41 01 00 35 04 06 00 65 00 00 CC [19:02:19]Write i2c OK [19:02:19]MH_I2C_Read... [19:02:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:19]Read from MH i2c: E2 [19:02:19]MH_I2C_Read... [19:02:19]Read from MH i2c: E2 03 00 [19:02:19]MH_I2C_Read... [19:02:19]Read from MH i2c: E2 03 00 10 03 00 90 00 87 [19:02:19]RAPDU: 90 00 [19:02:19]wFMCommunicate OK [19:02:19]wFMCommunicate request_size=10 [19:02:19]MH_SAM_APDU [19:02:19]CAPDU: 80 0D 02 02 05 FD B6 72 D1 CD [19:02:19]Write to MH i2c: E2 0D 00 11 03 80 0D 02 02 05 00 FD B6 72 D1 CD 00 00 5B [19:02:19]Write i2c OK [19:02:19]MH_I2C_Read... [19:02:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:19]Read from MH i2c: E2 [19:02:19]MH_I2C_Read... [19:02:19]Read from MH i2c: E2 03 00 [19:02:19]MH_I2C_Read... [19:02:19]Read from MH i2c: E2 03 00 11 03 00 90 00 88 [19:02:19]RAPDU: 90 00 [19:02:19]wFMCommunicate OK [19:02:19]wFMCommunicate request_size=4 [19:02:19]MH_SAM_APDU [19:02:19]CAPDU: 80 0D 03 02 [19:02:19]Write to MH i2c: E2 08 00 12 03 80 0D 03 02 00 00 00 00 90 [19:02:19]Write i2c OK [19:02:19]MH_I2C_Read... [19:02:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:02:19]Read from MH i2c: E2 [19:02:19]MH_I2C_Read... [19:02:19]Read from MH i2c: E2 0B 00 [19:02:19]MH_I2C_Read... [19:02:19]Read from MH i2c: E2 0B 00 12 03 00 F8 B7 B2 79 63 91 E9 D5 90 00 1D [19:02:19]RAPDU: F8 B7 B2 79 63 91 E9 D5 90 00 [19:02:19]wFMCommunicate OK [19:02:19]SAM_PROTO_SignData done [19:02:19]FM_MakeSignedData done [19:02:19]CreateOFDProtocolMessage [19:02:19]wFMCommunicate request_size=4 [19:02:19]MH_SAM_APDU [19:02:19]CAPDU: 80 11 00 00 [19:02:19]Write to MH i2c: E2 08 00 13 03 80 11 00 00 00 00 00 00 90 [19:02:19]Write i2c OK [19:02:19]MH_I2C_Read... [19:02:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:19]Read from MH i2c: E2 [19:02:19]MH_I2C_Read... [19:02:19]Read from MH i2c: E2 17 00 [19:02:19]MH_I2C_Read... [19:02:19]Read from MH i2c: E2 17 00 13 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 E2 [19:02:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:02:19]wFMCommunicate OK [19:02:19]CreateOFDProtocolMessage done [19:02:19]OFDSenderStorePacket 82247 [19:02:19]StoreOFDPacket docnum=82247 [19:02:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 C2 B1 07 01 CD 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 3A 5F 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 47 41 01 00 35 04 06 00 65 FD B6 72 D1 CD F8 B7 B2 79 63 91 E9 D5 [19:02:19]CheckFolder [19:02:19]dirname=/storage/ofd_packets [19:02:19]CheckFolder done [19:02:19]ProducePacketName [19:02:19]name=ofd_packets/00082247 [19:02:19]NVStorageSaveData ofd_packets/00082247 [19:02:19]File name is /storage/ofd_packets/00082247 [19:02:19]Write 301 bytes [19:02:19]NVStorageSaveData done [19:02:19]OFDSenderStorePacket done [19:02:19]KKMCreateOFDPacket done [19:02:19]NVStorageSaveData kkm_last_timestamp [19:02:19]File name is /storage/kkm_last_timestamp [19:02:19]Write 4 bytes [19:02:19]NVStorageSaveData done [19:02:19]ExternCall_PrintAddStr [19:02:19]wPrintStart [19:02:19]Write to MH i2c: 01 00 00 14 03 17 [19:02:19]Write i2c OK [19:02:19]MH_I2C_Read... [19:02:19]Read from MH i2c: 01 [19:02:19]MH_I2C_Read... [19:02:19]Read from MH i2c: 01 07 00 [19:02:19]MH_I2C_Read... [19:02:19]Read from MH i2c: 01 07 00 14 03 00 00 00 00 00 FF 0F 2C [19:02:19]RasterBufferAndPrint [19:02:19]line Счет N : (1)918749 [19:02:19]line ИНН: 02508201610067 [19:02:19]line Контрольно-Кассовый Чек [19:02:19]line ПРОДАЖА [19:02:19]line ТРК (МРК, ГНК) : 11 [19:02:19]line Товар: 2710124130 [19:02:19]line Аи-92-К-4 [19:02:19]line 14.950 * 66.90 [19:02:19]line = 1000.16 [19:02:19]line НДС 12% НСП 1% [19:02:19]line > о реализуемом товаре [19:02:19]line ОКРУГЛЕНИЕ: -0.16 [19:02:19]line ИТОГО: 1000.00 [19:02:19]line Внесено: 1000.00 [19:02:19]line СДАЧА: 0.00 [19:02:19]line НСП 1% : 8.85 [19:02:19]line НДС 12% : 106.21 [19:02:19]line Наличными: 1000.00 [19:02:19]line Безнал.: 0.00 [19:02:19]line Место: АЗС № 114 "Партнер Нефть" [19:02:19]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [19:02:19]line СНО: Общий режим [19:02:19]line Чек 173 17.10.2024 19:02 [19:02:19]line Смена: 525 ФФД: 1.0 [19:02:19]line ЗНМ: 0300000086 [19:02:19]line РНМ: 0000000000091680 [19:02:19]line Версия ККМ: 001 [19:02:19]line ФМ: 0000000000871843 [19:02:19]line ФД: 82247 [19:02:19]line ФПД: 112140362109389 [19:02:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T190218&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82247&fm=112140362109389&tin=02508201610067®Number=0000000000091680&sum=100000 [19:02:19]OFD Sender: Processing packet 82247 [packets to send 254, broken 253] [19:02:19]ProducePacketName [19:02:19]name=ofd_packets/00082247 [19:02:19]OFD Sender: To server: pG, [19:02:19]CommunicateWithHost lk.salyk.kg:30040 [19:02:19]ConnectInit lk.salyk.kg [19:02:19]written 0, free lines is 4095 [19:02:20]Write to MH i2c: 01 00 00 3F 03 42 [19:02:20]Write i2c OK [19:02:20]MH_I2C_Read... [19:02:20]Read from MH i2c: 01 [19:02:20]MH_I2C_Read... [19:02:20]Read from MH i2c: 01 07 00 [19:02:20]MH_I2C_Read... [19:02:20]Read from MH i2c: 01 07 00 3F 03 00 00 00 00 00 E4 0C 39 [19:02:20]RasterBufferAndPrint [19:02:20]line [19:02:20]line [19:02:20]line [19:02:20]line [19:02:20]line [19:02:20]written 0, free lines is 3306 [19:02:20]MH_Cut [19:02:20]Write to MH i2c: D1 01 00 46 03 01 1B [19:02:20]Write i2c OK [19:02:20]MH_I2C_Read... [19:02:20]Read from MH i2c: D1 [19:02:20]MH_I2C_Read... [19:02:20]Read from MH i2c: D1 01 00 [19:02:20]MH_I2C_Read... [19:02:20]Read from MH i2c: D1 01 00 46 03 00 1A [19:02:20]Write to MH i2c: 01 00 00 47 03 4A [19:02:20]Write i2c OK [19:02:20]MH_I2C_Read... [19:02:20]Connected sock=10 [19:02:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 C2 B1 07 01 CD 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 3A 5F 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 47 41 01 00 35 04 06 00 65 FD B6 72 D1 CD F8 B7 B2 79 63 91 E9 D5 [19:02:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 6C 68 47 00 12 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 47 41 01 00 F4 03 04 00 77 04 11 67 B6 04 01 00 00 80 32 50 76 0F EB FA EB [19:02:21]CommunicateWithHost err = 0 [19:02:21]CheckOFDResponse [19:02:21]1017 (14) - 77093643461234 [19:02:21]1041 (16) - 0000000000871843 [19:02:21]1040 (4) - 82247 [19:02:21]1012 (4) - 17.10.2024 12:35 [19:02:21]1206 (1) - 0 [19:02:21]OFD Sender: Remove packet 82247 [19:02:21]ProducePacketName [19:02:21]name=ofd_packets/00082247 [19:02:21]NVStorageDeleteData [19:02:21]*** Cut start [19:02:21]*** Partial cut [19:02:21]*** CUTSNS_PIN = 1 [19:02:21]*** CUTSNS_PIN = 0 [19:02:21]*** Brake cut motor [19:02:21]OFD Sender: No OFD packet to send [19:02:21]Read from MH i2c: 01 [19:02:21]MH_I2C_Read... [19:02:21]*** Stop cut motor [19:02:21]*** Cut end [19:02:21]Read from MH i2c: 01 07 00 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: 01 07 00 47 03 00 00 00 00 00 FF 0F 5F [19:02:21]process_action close_receipt done [19:02:21]requested_data is exist [19:02:21]produce_requested_data [19:02:21]requested_item fm.sn is exist - process it [19:02:21]wFMCommunicate request_size=4 [19:02:21]MH_SAM_APDU [19:02:21]CAPDU: 80 11 00 00 [19:02:21]Write to MH i2c: E2 08 00 48 03 80 11 00 00 00 00 00 00 C5 [19:02:21]Write i2c OK [19:02:21]MH_I2C_Read... [19:02:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:21]Read from MH i2c: E2 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 17 00 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 17 00 48 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 17 [19:02:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:02:21]wFMCommunicate OK [19:02:21]requested_item fd.num is exist - process it [19:02:21]SAM_PROTO_GetFieldsCounters [19:02:21]wFMCommunicate request_size=4 [19:02:21]MH_SAM_APDU [19:02:21]CAPDU: 80 13 00 00 [19:02:21]Write to MH i2c: E2 08 00 49 03 80 13 00 00 00 00 00 00 C8 [19:02:21]Write i2c OK [19:02:21]MH_I2C_Read... [19:02:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:02:21]Read from MH i2c: E2 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 62 00 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 62 00 49 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 47 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [19:02:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 47 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:02:21]wFMCommunicate OK [19:02:21]SAM_PROTO_GetFieldsCounters done [19:02:21]requested_item shift.num is exist - process it [19:02:21]requested_item shift.opened is exist - process it [19:02:21]req_shift_opened [19:02:21]FM_GetShiftState [19:02:21]SAM_PROTO_GetShiftState [19:02:21]wFMCommunicate request_size=4 [19:02:21]MH_SAM_APDU [19:02:21]CAPDU: 80 13 01 00 [19:02:21]Write to MH i2c: E2 08 00 4A 03 80 13 01 00 00 00 00 00 CA [19:02:21]Write i2c OK [19:02:21]MH_I2C_Read... [19:02:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:22]Read from MH i2c: E2 [19:02:22]MH_I2C_Read... [19:02:22]Read from MH i2c: E2 0E 00 [19:02:22]MH_I2C_Read... [19:02:22]Read from MH i2c: E2 0E 00 4A 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 D2 [19:02:22]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [19:02:22]wFMCommunicate OK [19:02:22]SAM_PROTO_GetShiftState done [19:02:22]FM_GetShiftState done [19:02:22]req_shift_opened done [19:02:22]requested_item shift.open_date is exist - process it [19:02:22]req_shift_open_date [19:02:22]req_shift_open_date done [19:02:22]produce_requested_data done [19:02:22]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82247,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [19:02:22]process_action_free close_receipt [19:02:22]json_value_free [19:02:22]json_value_free done [19:02:22]process_json_proto returns [19:02:22]Send response to host [19:02:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82247,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [19:02:22]free response buf [19:02:22]execute_script done [19:02:22]execute_script returns [19:02:22]free content buf [19:02:22]Sock 7.Close socket [19:02:22]Sock 7.Thread stoped [19:02:26]OFD Sender: No OFD packet to send [19:02:27]recv_with_timeout no data received [19:02:31]OFD Sender: No OFD packet to send [19:02:36]OFD Sender: No OFD packet to send [19:02:38]recv_with_timeout no data received [19:02:41]OFD Sender: No OFD packet to send [19:02:46]OFD Sender: No OFD packet to send [19:02:48]recv_with_timeout no data received [19:02:51]OFD Sender: No OFD packet to send [19:02:56]OFD Sender: No OFD packet to send [19:03:01]OFD Sender: No OFD packet to send [19:03:06]OFD Sender: No OFD packet to send [19:03:11]OFD Sender: No OFD packet to send [19:03:16]OFD Sender: No OFD packet to send [19:03:21]OFD Sender: No OFD packet to send [19:03:26]OFD Sender: No OFD packet to send [19:03:31]OFD Sender: No OFD packet to send [19:03:36]OFD Sender: No OFD packet to send [19:03:41]OFD Sender: No OFD packet to send [19:03:46]OFD Sender: No OFD packet to send [19:03:51]OFD Sender: No OFD packet to send [19:03:56]OFD Sender: No OFD packet to send [19:04:01]OFD Sender: No OFD packet to send [19:04:06]OFD Sender: No OFD packet to send [19:04:11]OFD Sender: No OFD packet to send [19:04:16]OFD Sender: No OFD packet to send [19:04:21]OFD Sender: No OFD packet to send [19:04:26]OFD Sender: No OFD packet to send [19:04:31]OFD Sender: No OFD packet to send [19:04:36]OFD Sender: No OFD packet to send [19:04:41]OFD Sender: No OFD packet to send [19:04:46]OFD Sender: No OFD packet to send [19:04:51]OFD Sender: No OFD packet to send [19:04:56]OFD Sender: No OFD packet to send [19:05:01]OFD Sender: No OFD packet to send [19:05:06]OFD Sender: No OFD packet to send [19:05:11]OFD Sender: No OFD packet to send [19:05:16]OFD Sender: No OFD packet to send [19:05:21]OFD Sender: No OFD packet to send [19:05:26]OFD Sender: No OFD packet to send [19:05:31]OFD Sender: No OFD packet to send [19:05:36]OFD Sender: No OFD packet to send [19:05:41]OFD Sender: No OFD packet to send [19:05:46]OFD Sender: No OFD packet to send [19:05:51]OFD Sender: No OFD packet to send [19:05:56]OFD Sender: No OFD packet to send [19:06:01]OFD Sender: No OFD packet to send [19:06:06]OFD Sender: No OFD packet to send [19:06:11]OFD Sender: No OFD packet to send [19:06:16]OFD Sender: No OFD packet to send [19:06:21]OFD Sender: No OFD packet to send [19:06:26]OFD Sender: No OFD packet to send [19:06:31]OFD Sender: No OFD packet to send [19:06:36]OFD Sender: No OFD packet to send [19:06:41]OFD Sender: No OFD packet to send [19:06:46]OFD Sender: No OFD packet to send [19:06:51]OFD Sender: No OFD packet to send [19:06:56]OFD Sender: No OFD packet to send [19:07:01]OFD Sender: No OFD packet to send [19:07:07]OFD Sender: No OFD packet to send [19:07:12]OFD Sender: No OFD packet to send [19:07:16]accept exits with 9 [19:07:16]New connection [19:07:16]New thread 3067215204 created [19:07:16]Thread 3067358564 joined [19:07:16]Waiting for new connection... [19:07:16] Sock 9.Parse request [19:07:16]Sock 9.Check first char [19:07:16]Sock 9.First char is OK [19:07:16]request: POST /json_proto HTTP/1.0 [19:07:16]Method: POST [19:07:16]URL: /json_proto [19:07:16]Method is POST - this is cgi request [19:07:16]url: /json_proto [19:07:16]query_string will be loaded in cgi processing [19:07:16]execute_cgi json_proto POST (null) [19:07:16]execute_cgi path=json_proto method=POST [19:07:16]POST find Content-Length [19:07:16]Host: 172.17.44.67:8080 [19:07:16]Content-Length: 766 [19:07:16]Content-Type: application/json [19:07:16] [19:07:16]POST finish read [19:07:16]Found Content-Length = 766 [19:07:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:07:16]execute_script... [19:07:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:07:16]POST & json_proto [19:07:16]process_json_proto [19:07:16]json parsed OK: [19:07:16]protocol is kg_v1.0 [19:07:16]action value=close_receipt [19:07:16]process_action close_receipt [19:07:16]cmd_close_receipt [19:07:16]MH_GetDate [19:07:16]Write to MH i2c: F0 00 00 4B 03 3D [19:07:16]Write i2c OK [19:07:16]MH_I2C_Read... [19:07:16]Read from MH i2c: F0 [19:07:16]MH_I2C_Read... [19:07:16]Read from MH i2c: F0 09 00 [19:07:16]MH_I2C_Read... [19:07:16]Read from MH i2c: F0 09 00 4B 03 00 64 60 11 67 F1 C7 6B 64 09 [19:07:16]GetLastDocTimeStamp 1729191738 [19:07:16]current date 1729192036 [19:07:16]FM_GetShiftState [19:07:16]SAM_PROTO_GetShiftState [19:07:16]wFMCommunicate request_size=4 [19:07:16]MH_SAM_APDU [19:07:16]CAPDU: 80 13 01 00 [19:07:16]Write to MH i2c: E2 08 00 4C 03 80 13 01 00 00 00 00 00 CC [19:07:16]Write i2c OK [19:07:16]MH_I2C_Read... [19:07:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:16]Read from MH i2c: E2 [19:07:16]MH_I2C_Read... [19:07:16]Read from MH i2c: E2 0E 00 [19:07:16]MH_I2C_Read... [19:07:16]Read from MH i2c: E2 0E 00 4C 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 D4 [19:07:16]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [19:07:16]wFMCommunicate OK [19:07:16]SAM_PROTO_GetShiftState done [19:07:16]FM_GetShiftState done [19:07:16]opened in 1729125927 [19:07:16]opened+sec_in_day 1729212327 [19:07:16]quantity*price = 50041 [19:07:16]sum+1 = 50042 [19:07:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 174 17.10.2024 19:07 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82248 ФПД: 75927266076002 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T190716&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82248&fm=75927266076002&tin=02508201610067®Number=0000000000091680&sum=50041 [19:07:17]StoreToDocumentArchive [19:07:17]shift 525 fd 82248 [19:07:17]save to /storage/0525/doc_00082248 [19:07:17]save last doc name /storage/0525/doc_00082248 to /storage/kkm_last_doc_name [19:07:17]save OK [19:07:17]Clear old archive folders... [19:07:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:07:17]tlvbuf is 00277570 [19:07:17]SAM_PROTO_ClearQueue [19:07:17]wFMCommunicate request_size=4 [19:07:17]MH_SAM_APDU [19:07:17]CAPDU: 80 09 00 00 [19:07:17]Write to MH i2c: E2 08 00 59 03 80 09 00 00 00 00 00 00 CE [19:07:17]Write i2c OK [19:07:17]MH_I2C_Read... [19:07:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:07:17]Read from MH i2c: E2 [19:07:17]MH_I2C_Read... [19:07:17]Read from MH i2c: E2 03 00 [19:07:17]MH_I2C_Read... [19:07:17]Read from MH i2c: E2 03 00 59 03 00 90 00 D0 [19:07:17]RAPDU: 90 00 [19:07:17]wFMCommunicate OK [19:07:17]SAM_PROTO_ClearQueue done [19:07:17]KKMCreateOFDPacket [19:07:17]OFDProtocolAddRootSTLVToBuf [19:07:17]FM_MakeSignedData [19:07:17]FM_MakeSignedData [19:07:17]SAM_PROTO_SignData [19:07:17]wFMCommunicate request_size=4 [19:07:17]MH_SAM_APDU [19:07:17]CAPDU: 80 0D 01 02 [19:07:17]Write to MH i2c: E2 08 00 5A 03 80 0D 01 02 00 00 00 00 D6 [19:07:17]Write i2c OK [19:07:17]MH_I2C_Read... [19:07:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:07:17]Read from MH i2c: E2 [19:07:17]MH_I2C_Read... [19:07:17]Read from MH i2c: E2 03 00 [19:07:17]MH_I2C_Read... [19:07:17]Read from MH i2c: E2 03 00 5A 03 00 90 00 D1 [19:07:17]RAPDU: 90 00 [19:07:17]wFMCommunicate OK [19:07:17]wFMCommunicate request_size=255 [19:07:17]MH_SAM_APDU [19:07:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 64 60 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 48 41 01 00 35 04 06 00 45 [19:07:17]Write to MH i2c: E2 02 01 5B 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 64 60 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 48 41 01 00 35 04 06 00 45 00 00 7C [19:07:17]Write i2c OK [19:07:17]MH_I2C_Read... [19:07:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:07:17]Read from MH i2c: E2 [19:07:17]MH_I2C_Read... [19:07:17]Read from MH i2c: E2 03 00 [19:07:17]MH_I2C_Read... [19:07:17]Read from MH i2c: E2 03 00 5B 03 00 90 00 D2 [19:07:17]RAPDU: 90 00 [19:07:17]wFMCommunicate OK [19:07:17]wFMCommunicate request_size=10 [19:07:17]MH_SAM_APDU [19:07:17]CAPDU: 80 0D 02 02 05 0E 31 B9 25 62 [19:07:17]Write to MH i2c: E2 0D 00 5C 03 80 0D 02 02 05 00 0E 31 B9 25 62 00 00 62 [19:07:17]Write i2c OK [19:07:17]MH_I2C_Read... [19:07:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:07:17]Read from MH i2c: E2 [19:07:17]MH_I2C_Read... [19:07:17]Read from MH i2c: E2 03 00 [19:07:17]MH_I2C_Read... [19:07:17]Read from MH i2c: E2 03 00 5C 03 00 90 00 D3 [19:07:17]RAPDU: 90 00 [19:07:17]wFMCommunicate OK [19:07:17]wFMCommunicate request_size=4 [19:07:17]MH_SAM_APDU [19:07:17]CAPDU: 80 0D 03 02 [19:07:17]Write to MH i2c: E2 08 00 5D 03 80 0D 03 02 00 00 00 00 DB [19:07:17]Write i2c OK [19:07:17]MH_I2C_Read... [19:07:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:07:17]Read from MH i2c: E2 [19:07:17]MH_I2C_Read... [19:07:17]Read from MH i2c: E2 0B 00 [19:07:17]MH_I2C_Read... [19:07:17]Read from MH i2c: E2 0B 00 5D 03 00 E5 CF 52 25 7B 74 39 B5 90 00 E4 [19:07:17]RAPDU: E5 CF 52 25 7B 74 39 B5 90 00 [19:07:17]wFMCommunicate OK [19:07:17]SAM_PROTO_SignData done [19:07:17]FM_MakeSignedData done [19:07:17]CreateOFDProtocolMessage [19:07:17]wFMCommunicate request_size=4 [19:07:17]MH_SAM_APDU [19:07:17]CAPDU: 80 11 00 00 [19:07:17]Write to MH i2c: E2 08 00 5E 03 80 11 00 00 00 00 00 00 DB [19:07:17]Write i2c OK [19:07:17]MH_I2C_Read... [19:07:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:07:17]Read from MH i2c: E2 [19:07:17]MH_I2C_Read... [19:07:17]Read from MH i2c: E2 17 00 [19:07:17]MH_I2C_Read... [19:07:17]Read from MH i2c: E2 17 00 5E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 2D [19:07:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:07:17]wFMCommunicate OK [19:07:17]CreateOFDProtocolMessage done [19:07:17]OFDSenderStorePacket 82248 [19:07:17]StoreOFDPacket docnum=82248 [19:07:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 4C 28 07 01 04 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 64 60 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 48 41 01 00 35 04 06 00 45 0E 31 B9 25 62 E5 CF 52 25 7B 74 39 B5 [19:07:17]CheckFolder [19:07:17]dirname=/storage/ofd_packets [19:07:17]CheckFolder done [19:07:17]ProducePacketName [19:07:17]name=ofd_packets/00082248 [19:07:17]NVStorageSaveData ofd_packets/00082248 [19:07:17]File name is /storage/ofd_packets/00082248 [19:07:17]Write 301 bytes [19:07:17]NVStorageSaveData done [19:07:17]OFDSenderStorePacket done [19:07:17]KKMCreateOFDPacket done [19:07:17]NVStorageSaveData kkm_last_timestamp [19:07:17]File name is /storage/kkm_last_timestamp [19:07:17]Write 4 bytes [19:07:17]NVStorageSaveData done [19:07:17]ExternCall_PrintAddStr [19:07:17]wPrintStart [19:07:17]Write to MH i2c: 01 00 00 5F 03 62 [19:07:17]Write i2c OK [19:07:17]MH_I2C_Read... [19:07:17]Read from MH i2c: 01 [19:07:17]MH_I2C_Read... [19:07:17]Read from MH i2c: 01 07 00 [19:07:17]MH_I2C_Read... [19:07:17]Read from MH i2c: 01 07 00 5F 03 00 00 00 00 00 FF 0F 77 [19:07:17]RasterBufferAndPrint [19:07:17]line Счет N : (1)918750 [19:07:17]line ИНН: 02508201610067 [19:07:17]line Контрольно-Кассовый Чек [19:07:17]line ПРОДАЖА [19:07:17]line ТРК (МРК, ГНК) : 11 [19:07:17]line Товар: 2710124130 [19:07:17]line Аи-92-К-4 [19:07:17]line 7.480 * 66.90 [19:07:17]line = 500.41 [19:07:17]line НДС 12% НСП 1% [19:07:17]line > о реализуемом товаре [19:07:17]line ИТОГО: 500.41 [19:07:17]line НСП 1% : 4.43 [19:07:17]line НДС 12% : 53.14 [19:07:17]line Наличными: 0.00 [19:07:17]line Безнал.: 500.41 [19:07:17]line Место: АЗС № 114 "Партнер Нефть" [19:07:17]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [19:07:17]line СНО: Общий режим [19:07:17]line Чек 174 17.10.2024 19:07 [19:07:17]line Смена: 525 ФФД: 1.0 [19:07:17]line ЗНМ: 0300000086 [19:07:17]line РНМ: 0000000000091680 [19:07:17]line Версия ККМ: 001 [19:07:17]line Платежная система: Mbank [19:07:17]line ФМ: 0000000000871843 [19:07:17]line ФД: 82248 [19:07:17]line ФПД: 75927266076002 [19:07:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T190716&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82248&fm=75927266076002&tin=02508201610067®Number=0000000000091680&sum=50041 [19:07:18]written 0, free lines is 4095 [19:07:18]OFD Sender: Processing packet 82248 [packets to send 254, broken 253] [19:07:18]ProducePacketName [19:07:18]name=ofd_packets/00082248 [19:07:18]OFD Sender: To server: pG, [19:07:18]CommunicateWithHost lk.salyk.kg:30040 [19:07:18]ConnectInit lk.salyk.kg [19:07:18]Write to MH i2c: 01 00 00 88 03 8B [19:07:18]Write i2c OK [19:07:18]MH_I2C_Read... [19:07:18]Read from MH i2c: 01 [19:07:18]MH_I2C_Read... [19:07:18]Read from MH i2c: 01 07 00 [19:07:18]MH_I2C_Read... [19:07:18]Read from MH i2c: 01 07 00 88 03 00 00 00 00 00 F7 0C 95 [19:07:18]RasterBufferAndPrint [19:07:18]line [19:07:18]line [19:07:18]line [19:07:18]line [19:07:18]line [19:07:18]written 0, free lines is 3326 [19:07:18]MH_Cut [19:07:18]Write to MH i2c: D1 01 00 8F 03 01 64 [19:07:18]Write i2c OK [19:07:18]MH_I2C_Read... [19:07:18]Read from MH i2c: D1 [19:07:18]MH_I2C_Read... [19:07:18]Read from MH i2c: D1 01 00 [19:07:18]MH_I2C_Read... [19:07:18]Read from MH i2c: D1 01 00 8F 03 00 63 [19:07:18]Write to MH i2c: 01 00 00 90 03 93 [19:07:18]Write i2c OK [19:07:18]MH_I2C_Read... [19:07:18]Connected sock=7 [19:07:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 4C 28 07 01 04 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 64 60 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 48 41 01 00 35 04 06 00 45 0E 31 B9 25 62 E5 CF 52 25 7B 74 39 B5 [19:07:19]*** Cut start [19:07:19]*** Partial cut [19:07:19]*** CUTSNS_PIN = 1 [19:07:19]*** CUTSNS_PIN = 0 [19:07:19]*** Brake cut motor [19:07:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 BF 39 47 00 FE CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 48 41 01 00 F4 03 04 00 A2 05 11 67 B6 04 01 00 00 B5 01 50 EA 8C 23 92 D5 [19:07:19]CommunicateWithHost err = 0 [19:07:19]CheckOFDResponse [19:07:19]1017 (14) - 77093643461234 [19:07:19]1041 (16) - 0000000000871843 [19:07:19]1040 (4) - 82248 [19:07:19]1012 (4) - 17.10.2024 12:40 [19:07:19]1206 (1) - 0 [19:07:19]OFD Sender: Remove packet 82248 [19:07:19]ProducePacketName [19:07:19]name=ofd_packets/00082248 [19:07:19]NVStorageDeleteData [19:07:20]Read from MH i2c: 01 [19:07:20]MH_I2C_Read... [19:07:20]*** Stop cut motor [19:07:20]*** Cut end [19:07:20]Read from MH i2c: 01 07 00 [19:07:20]MH_I2C_Read... [19:07:20]Read from MH i2c: 01 07 00 90 03 00 00 00 00 00 FF 0F A8 [19:07:20]process_action close_receipt done [19:07:20]requested_data is exist [19:07:20]produce_requested_data [19:07:20]requested_item fm.sn is exist - process it [19:07:20]wFMCommunicate request_size=4 [19:07:20]MH_SAM_APDU [19:07:20]CAPDU: 80 11 00 00 [19:07:20]Write to MH i2c: E2 08 00 91 03 80 11 00 00 00 00 00 00 0E [19:07:20]Write i2c OK [19:07:20]MH_I2C_Read... [19:07:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:07:20]Read from MH i2c: E2 [19:07:20]MH_I2C_Read... [19:07:20]Read from MH i2c: E2 17 00 [19:07:20]MH_I2C_Read... [19:07:20]Read from MH i2c: E2 17 00 91 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 60 [19:07:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:07:20]wFMCommunicate OK [19:07:20]requested_item fd.num is exist - process it [19:07:20]SAM_PROTO_GetFieldsCounters [19:07:20]wFMCommunicate request_size=4 [19:07:20]MH_SAM_APDU [19:07:20]CAPDU: 80 13 00 00 [19:07:20]Write to MH i2c: E2 08 00 92 03 80 13 00 00 00 00 00 00 11 [19:07:20]Write i2c OK [19:07:20]MH_I2C_Read... [19:07:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:07:20]Read from MH i2c: E2 [19:07:20]MH_I2C_Read... [19:07:20]Read from MH i2c: E2 62 00 [19:07:20]MH_I2C_Read... [19:07:20]Read from MH i2c: E2 62 00 92 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 48 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [19:07:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 48 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:07:20]wFMCommunicate OK [19:07:20]SAM_PROTO_GetFieldsCounters done [19:07:20]requested_item shift.num is exist - process it [19:07:20]requested_item shift.opened is exist - process it [19:07:20]req_shift_opened [19:07:20]FM_GetShiftState [19:07:20]SAM_PROTO_GetShiftState [19:07:20]wFMCommunicate request_size=4 [19:07:20]MH_SAM_APDU [19:07:20]CAPDU: 80 13 01 00 [19:07:20]Write to MH i2c: E2 08 00 93 03 80 13 01 00 00 00 00 00 13 [19:07:20]Write i2c OK [19:07:20]MH_I2C_Read... [19:07:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:20]Read from MH i2c: E2 [19:07:20]MH_I2C_Read... [19:07:20]Read from MH i2c: E2 0E 00 [19:07:20]MH_I2C_Read... [19:07:20]Read from MH i2c: E2 0E 00 93 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 1B [19:07:20]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [19:07:20]wFMCommunicate OK [19:07:20]SAM_PROTO_GetShiftState done [19:07:20]FM_GetShiftState done [19:07:20]req_shift_opened done [19:07:20]requested_item shift.open_date is exist - process it [19:07:20]req_shift_open_date [19:07:20]req_shift_open_date done [19:07:20]produce_requested_data done [19:07:20]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82248,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [19:07:20]process_action_free close_receipt [19:07:20]json_value_free [19:07:20]json_value_free done [19:07:20]process_json_proto returns [19:07:20]Send response to host [19:07:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82248,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [19:07:20]free response buf [19:07:20]execute_script done [19:07:20]execute_script returns [19:07:20]free content buf [19:07:20]Sock 9.Close socket [19:07:20]Sock 9.Thread stoped [19:07:20]OFD Sender: No OFD packet to send [19:07:25]OFD Sender: No OFD packet to send [19:07:28]recv_with_timeout no data received [19:07:30]OFD Sender: No OFD packet to send [19:07:35]OFD Sender: No OFD packet to send [19:07:38]recv_with_timeout no data received [19:07:40]OFD Sender: No OFD packet to send [19:07:45]OFD Sender: No OFD packet to send [19:07:49]recv_with_timeout no data received [19:07:50]OFD Sender: No OFD packet to send [19:07:55]OFD Sender: No OFD packet to send [19:08:00]OFD Sender: No OFD packet to send [19:08:05]OFD Sender: No OFD packet to send [19:08:10]OFD Sender: No OFD packet to send [19:08:15]OFD Sender: No OFD packet to send [19:08:20]OFD Sender: No OFD packet to send [19:08:25]OFD Sender: No OFD packet to send [19:08:30]OFD Sender: No OFD packet to send [19:08:35]OFD Sender: No OFD packet to send [19:08:40]OFD Sender: No OFD packet to send [19:08:45]OFD Sender: No OFD packet to send [19:08:50]OFD Sender: No OFD packet to send [19:08:55]OFD Sender: No OFD packet to send [19:09:00]OFD Sender: No OFD packet to send [19:09:05]OFD Sender: No OFD packet to send [19:09:10]OFD Sender: No OFD packet to send [19:09:15]OFD Sender: No OFD packet to send [19:09:20]OFD Sender: No OFD packet to send [19:09:25]OFD Sender: No OFD packet to send [19:09:30]OFD Sender: No OFD packet to send [19:09:35]OFD Sender: No OFD packet to send [19:09:40]OFD Sender: No OFD packet to send [19:09:45]OFD Sender: No OFD packet to send [19:09:50]OFD Sender: No OFD packet to send [19:09:55]OFD Sender: No OFD packet to send [19:10:00]OFD Sender: No OFD packet to send [19:10:05]OFD Sender: No OFD packet to send [19:10:10]OFD Sender: No OFD packet to send [19:10:15]OFD Sender: No OFD packet to send [19:10:20]OFD Sender: No OFD packet to send [19:10:25]OFD Sender: No OFD packet to send [19:10:30]OFD Sender: No OFD packet to send [19:10:35]OFD Sender: No OFD packet to send [19:10:40]OFD Sender: No OFD packet to send [19:10:45]OFD Sender: No OFD packet to send [19:10:50]OFD Sender: No OFD packet to send [19:10:55]OFD Sender: No OFD packet to send [19:11:00]OFD Sender: No OFD packet to send [19:11:05]OFD Sender: No OFD packet to send [19:11:10]OFD Sender: No OFD packet to send [19:11:15]OFD Sender: No OFD packet to send [19:11:20]OFD Sender: No OFD packet to send [19:11:25]OFD Sender: No OFD packet to send [19:11:30]OFD Sender: No OFD packet to send [19:11:35]OFD Sender: No OFD packet to send [19:11:40]OFD Sender: No OFD packet to send [19:11:45]OFD Sender: No OFD packet to send [19:11:50]OFD Sender: No OFD packet to send [19:11:55]OFD Sender: No OFD packet to send [19:12:00]OFD Sender: No OFD packet to send [19:12:05]OFD Sender: No OFD packet to send [19:12:10]OFD Sender: No OFD packet to send [19:12:15]OFD Sender: No OFD packet to send [19:12:20]OFD Sender: No OFD packet to send [19:12:25]OFD Sender: No OFD packet to send [19:12:30]OFD Sender: No OFD packet to send [19:12:35]OFD Sender: No OFD packet to send [19:12:40]OFD Sender: No OFD packet to send [19:12:45]OFD Sender: No OFD packet to send [19:12:50]OFD Sender: No OFD packet to send [19:12:55]OFD Sender: No OFD packet to send [19:13:00]OFD Sender: No OFD packet to send [19:13:05]OFD Sender: No OFD packet to send [19:13:10]OFD Sender: No OFD packet to send [19:13:15]OFD Sender: No OFD packet to send [19:13:20]OFD Sender: No OFD packet to send [19:13:25]OFD Sender: No OFD packet to send [19:13:30]OFD Sender: No OFD packet to send [19:13:35]OFD Sender: No OFD packet to send [19:13:40]OFD Sender: No OFD packet to send [19:13:44]accept exits with 10 [19:13:44]New connection [19:13:44]New thread 3067358564 created [19:13:44]Thread 3067215204 joined [19:13:44]Waiting for new connection... [19:13:44] Sock 10.Parse request [19:13:44]Sock 10.Check first char [19:13:44]Sock 10.First char is OK [19:13:44]request: POST /json_proto HTTP/1.0 [19:13:44]Method: POST [19:13:44]URL: /json_proto [19:13:44]Method is POST - this is cgi request [19:13:44]url: /json_proto [19:13:44]query_string will be loaded in cgi processing [19:13:44]execute_cgi json_proto POST (null) [19:13:44]execute_cgi path=json_proto method=POST [19:13:44]POST find Content-Length [19:13:44]Host: 172.17.44.67:8080 [19:13:44]Content-Length: 754 [19:13:44]Content-Type: application/json [19:13:44] [19:13:44]POST finish read [19:13:44]Found Content-Length = 754 [19:13:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100665", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:44]execute_script... [19:13:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100665", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:44]POST & json_proto [19:13:44]process_json_proto [19:13:44]json parsed OK: [19:13:44]protocol is kg_v1.0 [19:13:44]action value=close_receipt [19:13:44]process_action close_receipt [19:13:44]cmd_close_receipt [19:13:44]MH_GetDate [19:13:44]Write to MH i2c: F0 00 00 94 03 86 [19:13:44]Write i2c OK [19:13:44]MH_I2C_Read... [19:13:44]Read from MH i2c: F0 [19:13:44]MH_I2C_Read... [19:13:44]Read from MH i2c: F0 09 00 [19:13:44]MH_I2C_Read... [19:13:44]Read from MH i2c: F0 09 00 94 03 00 E9 61 11 67 F1 C7 6B 64 D8 [19:13:44]GetLastDocTimeStamp 1729192036 [19:13:44]current date 1729192425 [19:13:44]FM_GetShiftState [19:13:44]SAM_PROTO_GetShiftState [19:13:44]wFMCommunicate request_size=4 [19:13:44]MH_SAM_APDU [19:13:44]CAPDU: 80 13 01 00 [19:13:44]Write to MH i2c: E2 08 00 95 03 80 13 01 00 00 00 00 00 15 [19:13:44]Write i2c OK [19:13:44]MH_I2C_Read... [19:13:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:44]Read from MH i2c: E2 [19:13:44]MH_I2C_Read... [19:13:44]Read from MH i2c: E2 0E 00 [19:13:44]MH_I2C_Read... [19:13:44]Read from MH i2c: E2 0E 00 95 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 1D [19:13:44]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [19:13:44]wFMCommunicate OK [19:13:44]SAM_PROTO_GetShiftState done [19:13:44]FM_GetShiftState done [19:13:44]opened in 1729125927 [19:13:44]opened+sec_in_day 1729212327 [19:13:44]quantity*price = 0 [19:13:44]sum+1 = 1 [19:13:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 175 17.10.2024 19:13 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30100665 ФМ: 0000000000871843 ФД: 82249 ФПД: 216877604603219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T191345&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82249&fm=216877604603219&tin=02508201610067®Number=0000000000091680&sum=0 [19:13:45]StoreToDocumentArchive [19:13:45]shift 525 fd 82249 [19:13:45]save to /storage/0525/doc_00082249 [19:13:45]save last doc name /storage/0525/doc_00082249 to /storage/kkm_last_doc_name [19:13:45]save OK [19:13:45]Clear old archive folders... [19:13:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:13:45]tlvbuf is 001D7C60 [19:13:45]SAM_PROTO_ClearQueue [19:13:45]wFMCommunicate request_size=4 [19:13:45]MH_SAM_APDU [19:13:45]CAPDU: 80 09 00 00 [19:13:45]Write to MH i2c: E2 08 00 A2 03 80 09 00 00 00 00 00 00 17 [19:13:45]Write i2c OK [19:13:45]MH_I2C_Read... [19:13:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:13:45]Read from MH i2c: E2 [19:13:45]MH_I2C_Read... [19:13:45]Read from MH i2c: E2 03 00 [19:13:45]MH_I2C_Read... [19:13:45]Read from MH i2c: E2 03 00 A2 03 00 90 00 19 [19:13:45]RAPDU: 90 00 [19:13:45]wFMCommunicate OK [19:13:45]SAM_PROTO_ClearQueue done [19:13:45]KKMCreateOFDPacket [19:13:45]OFDProtocolAddRootSTLVToBuf [19:13:45]FM_MakeSignedData [19:13:45]FM_MakeSignedData [19:13:45]SAM_PROTO_SignData [19:13:45]wFMCommunicate request_size=4 [19:13:45]MH_SAM_APDU [19:13:45]CAPDU: 80 0D 01 02 [19:13:45]Write to MH i2c: E2 08 00 A3 03 80 0D 01 02 00 00 00 00 1F [19:13:45]Write i2c OK [19:13:45]MH_I2C_Read... [19:13:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:13:45]Read from MH i2c: E2 [19:13:45]MH_I2C_Read... [19:13:45]Read from MH i2c: E2 03 00 [19:13:45]MH_I2C_Read... [19:13:45]Read from MH i2c: E2 03 00 A3 03 00 90 00 1A [19:13:45]RAPDU: 90 00 [19:13:45]wFMCommunicate OK [19:13:45]wFMCommunicate request_size=255 [19:13:45]MH_SAM_APDU [19:13:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 E9 61 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 00 00 00 90 00 [19:13:48]wFMCommunicate OK [19:13:48]SAM_PROTO_GetFieldsCounters done [19:13:48]requested_item shift.num is exist - process it [19:13:48]requested_item shift.opened is exist - process it [19:13:48]req_shift_opened [19:13:48]FM_GetShiftState [19:13:48]SAM_PROTO_GetShiftState [19:13:48]wFMCommunicate request_size=4 [19:13:48]MH_SAM_APDU [19:13:48]CAPDU: 80 13 01 00 [19:13:48]Write to MH i2c: E2 08 00 DD 03 80 13 01 00 00 00 00 00 5D [19:13:48]Write i2c OK [19:13:48]MH_I2C_Read... [19:13:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:48]Read from MH i2c: E2 [19:13:48]MH_I2C_Read... [19:13:48]Read from MH i2c: E2 0E 00 [19:13:48]MH_I2C_Read... [19:13:48]Read from MH i2c: E2 0E 00 DD 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 65 [19:13:48]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [19:13:48]wFMCommunicate OK [19:13:48]SAM_PROTO_GetShiftState done [19:13:48]FM_GetShiftState done [19:13:48]req_shift_opened done [19:13:48]requested_item shift.open_date is exist - process it [19:13:48]req_shift_open_date [19:13:48]req_shift_open_date done [19:13:48]produce_requested_data done [19:13:48]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82249,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [19:13:48]process_action_free close_receipt [19:13:48]json_value_free [19:13:48]json_value_free done [19:13:48]process_json_proto returns [19:13:48]Send response to host [19:13:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82249,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [19:13:48]free response buf [19:13:48]execute_script done [19:13:48]execute_script returns [19:13:48]free content buf [19:13:48]Sock 10.Close socket [19:13:48]Sock 10.Thread stoped [19:13:50]recv_with_timeout no data received [19:13:50]Connected sock=11 [19:13:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 23 18 07 01 DD 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 E9 61 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 49 41 01 00 35 04 06 00 C5 3F C0 95 05 53 F3 8A 1F 95 D8 30 D9 C7 [19:13:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 B4 B5 47 00 39 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 49 41 01 00 F4 03 04 00 2A 07 11 67 B6 04 01 00 00 8C 54 F1 F2 20 D7 FE 76 [19:13:52]CommunicateWithHost err = 0 [19:13:52]CheckOFDResponse [19:13:52]1017 (14) - 77093643461234 [19:13:52]1041 (16) - 0000000000871843 [19:13:52]1040 (4) - 82249 [19:13:52]1012 (4) - 17.10.2024 12:46 [19:13:52]1206 (1) - 0 [19:13:52]OFD Sender: Remove packet 82249 [19:13:52]ProducePacketName [19:13:52]name=ofd_packets/00082249 [19:13:52]NVStorageDeleteData [19:13:52]OFD Sender: No OFD packet to send [19:13:57]OFD Sender: No OFD packet to send [19:14:01]recv_with_timeout no data received [19:14:02]OFD Sender: No OFD packet to send [19:14:07]OFD Sender: No OFD packet to send [19:14:12]OFD Sender: No OFD packet to send [19:14:17]recv_with_timeout no data received [19:14:17]OFD Sender: No OFD packet to send 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 49 41 01 00 35 04 06 00 C5 [19:13:45]Write to MH i2c: E2 02 01 A4 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 E9 61 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 49 41 01 00 35 04 06 00 C5 00 00 2D [19:13:45]Write i2c OK [19:13:45]MH_I2C_Read... [19:13:46]OFD Sender: No OFD packet to send [19:13:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:46]Read from MH i2c: E2 [19:13:46]MH_I2C_Read... [19:13:46]Read from MH i2c: E2 03 00 [19:13:46]MH_I2C_Read... [19:13:46]Read from MH i2c: E2 03 00 A4 03 00 90 00 1B [19:13:46]RAPDU: 90 00 [19:13:46]wFMCommunicate OK [19:13:46]wFMCommunicate request_size=10 [19:13:46]MH_SAM_APDU [19:13:46]CAPDU: 80 0D 02 02 05 3F C0 95 05 53 [19:13:46]Write to MH i2c: E2 0D 00 A5 03 80 0D 02 02 05 00 3F C0 95 05 53 00 00 18 [19:13:46]Write i2c OK [19:13:46]MH_I2C_Read... [19:13:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:46]Read from MH i2c: E2 [19:13:46]MH_I2C_Read... [19:13:46]Read from MH i2c: E2 03 00 [19:13:46]MH_I2C_Read... [19:13:46]Read from MH i2c: E2 03 00 A5 03 00 90 00 1C [19:13:46]RAPDU: 90 00 [19:13:46]wFMCommunicate OK [19:13:46]wFMCommunicate request_size=4 [19:13:46]MH_SAM_APDU [19:13:46]CAPDU: 80 0D 03 02 [19:13:46]Write to MH i2c: E2 08 00 A6 03 80 0D 03 02 00 00 00 00 24 [19:13:46]Write i2c OK [19:13:46]MH_I2C_Read... [19:13:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:13:46]Read from MH i2c: E2 [19:13:46]MH_I2C_Read... [19:13:46]Read from MH i2c: E2 0B 00 [19:13:46]MH_I2C_Read... [19:13:46]Read from MH i2c: E2 0B 00 A6 03 00 F3 8A 1F 95 D8 30 D9 C7 90 00 FE [19:13:46]RAPDU: F3 8A 1F 95 D8 30 D9 C7 90 00 [19:13:46]wFMCommunicate OK [19:13:46]SAM_PROTO_SignData done [19:13:46]FM_MakeSignedData done [19:13:46]CreateOFDProtocolMessage [19:13:46]wFMCommunicate request_size=4 [19:13:46]MH_SAM_APDU [19:13:46]CAPDU: 80 11 00 00 [19:13:46]Write to MH i2c: E2 08 00 A7 03 80 11 00 00 00 00 00 00 24 [19:13:46]Write i2c OK [19:13:46]MH_I2C_Read... [19:13:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:46]Read from MH i2c: E2 [19:13:46]MH_I2C_Read... [19:13:46]Read from MH i2c: E2 17 00 [19:13:46]MH_I2C_Read... [19:13:46]Read from MH i2c: E2 17 00 A7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 76 [19:13:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:13:46]wFMCommunicate OK [19:13:46]CreateOFDProtocolMessage done [19:13:46]OFDSenderStorePacket 82249 [19:13:46]StoreOFDPacket docnum=82249 [19:13:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 23 18 07 01 DD 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 E9 61 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 49 41 01 00 35 04 06 00 C5 3F C0 95 05 53 F3 8A 1F 95 D8 30 D9 C7 [19:13:46]CheckFolder [19:13:46]dirname=/storage/ofd_packets [19:13:46]CheckFolder done [19:13:46]ProducePacketName [19:13:46]name=ofd_packets/00082249 [19:13:46]NVStorageSaveData ofd_packets/00082249 [19:13:46]File name is /storage/ofd_packets/00082249 [19:13:46]Write 301 bytes [19:13:46]NVStorageSaveData done [19:13:46]OFDSenderStorePacket done [19:13:46]KKMCreateOFDPacket done [19:13:46]NVStorageSaveData kkm_last_timestamp [19:13:46]File name is /storage/kkm_last_timestamp [19:13:46]Write 4 bytes [19:13:46]NVStorageSaveData done [19:13:46]ExternCall_PrintAddStr [19:13:46]wPrintStart [19:13:46]Write to MH i2c: 01 00 00 A8 03 AB [19:13:46]Write i2c OK [19:13:46]MH_I2C_Read... [19:13:46]Read from MH i2c: 01 [19:13:46]MH_I2C_Read... [19:13:46]Read from MH i2c: 01 07 00 [19:13:46]MH_I2C_Read... [19:13:46]Read from MH i2c: 01 07 00 A8 03 00 00 00 00 00 FF 0F C0 [19:13:46]RasterBufferAndPrint [19:13:46]line Счет N : (1)918752 [19:13:46]line ИНН: 02508201610067 [19:13:46]line Контрольно-Кассовый Чек [19:13:46]line ПРОДАЖА [19:13:46]line ТРК (МРК, ГНК) : 11 [19:13:46]line Товар: 2710124130 [19:13:46]line Аи-92-К-4 [19:13:46]line 10.000 * 0.00 [19:13:46]line = 0.00 [19:13:46]line НДС 12% НСП 1% [19:13:46]line > о реализуемом товаре [19:13:46]line ИТОГО: 0.00 [19:13:46]line НСП 1% : 0.00 [19:13:46]line НДС 12% : 0.00 [19:13:46]line Наличными: 0.00 [19:13:46]line Безнал.: 0.00 [19:13:46]line Место: АЗС № 114 "Партнер Нефть" [19:13:46]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [19:13:46]line СНО: Общий режим [19:13:46]line Чек 175 17.10.2024 19:13 [19:13:46]line Смена: 525 ФФД: 1.0 [19:13:46]line ЗНМ: 0300000086 [19:13:46]line РНМ: 0000000000091680 [19:13:46]line Версия ККМ: 001 [19:13:46]line Талоны: ТК ГПНА Online [19:13:46]line 30100665 [19:13:46]line ФМ: 0000000000871843 [19:13:46]line ФД: 82249 [19:13:46]line ФПД: 216877604603219 [19:13:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T191345&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82249&fm=216877604603219&tin=02508201610067®Number=0000000000091680&sum=0 [19:13:46]OFD Sender: Processing packet 82249 [packets to send 254, broken 253] [19:13:46]ProducePacketName [19:13:46]name=ofd_packets/00082249 [19:13:46]OFD Sender: To server: pG, [19:13:46]CommunicateWithHost lk.salyk.kg:30040 [19:13:46]ConnectInit lk.salyk.kg [19:13:46]written 0, free lines is 4095 [19:13:47]Write to MH i2c: 01 00 00 D2 03 D5 [19:13:47]Write i2c OK [19:13:47]MH_I2C_Read... [19:13:47]Read from MH i2c: 01 [19:13:47]MH_I2C_Read... [19:13:47]Read from MH i2c: 01 07 00 [19:13:47]MH_I2C_Read... [19:13:47]Read from MH i2c: 01 07 00 D2 03 00 00 00 00 00 E1 0C C9 [19:13:47]RasterBufferAndPrint [19:13:47]line [19:13:47]line [19:13:47]line [19:13:47]line [19:13:47]line [19:13:47]written 0, free lines is 3303 [19:13:47]MH_Cut [19:13:47]Write to MH i2c: D1 01 00 D9 03 01 AE [19:13:47]Write i2c OK [19:13:47]MH_I2C_Read... [19:13:47]Read from MH i2c: D1 [19:13:47]MH_I2C_Read... [19:13:47]Read from MH i2c: D1 01 00 [19:13:47]MH_I2C_Read... [19:13:47]Read from MH i2c: D1 01 00 D9 03 00 AD [19:13:47]Write to MH i2c: 01 00 00 DA 03 DD [19:13:47]Write i2c OK [19:13:47]MH_I2C_Read... [19:13:47]*** Cut start [19:13:47]*** Partial cut [19:13:47]*** CUTSNS_PIN = 1 [19:13:47]*** CUTSNS_PIN = 0 [19:13:48]*** Brake cut motor [19:13:48]Read from MH i2c: 01 [19:13:48]MH_I2C_Read... [19:13:48]*** Stop cut motor [19:13:48]*** Cut end [19:13:48]Read from MH i2c: 01 07 00 [19:13:48]MH_I2C_Read... [19:13:48]Read from MH i2c: 01 07 00 DA 03 00 00 00 00 00 FF 0F F2 [19:13:48]process_action close_receipt done [19:13:48]requested_data is exist [19:13:48]produce_requested_data [19:13:48]requested_item fm.sn is exist - process it [19:13:48]wFMCommunicate request_size=4 [19:13:48]MH_SAM_APDU [19:13:48]CAPDU: 80 11 00 00 [19:13:48]Write to MH i2c: E2 08 00 DB 03 80 11 00 00 00 00 00 00 58 [19:13:48]Write i2c OK [19:13:48]MH_I2C_Read... [19:13:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:48]Read from MH i2c: E2 [19:13:48]MH_I2C_Read... [19:13:48]Read from MH i2c: E2 17 00 [19:13:48]MH_I2C_Read... [19:13:48]Read from MH i2c: E2 17 00 DB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 AA [19:13:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:13:48]wFMCommunicate OK [19:13:48]requested_item fd.num is exist - process it [19:13:48]SAM_PROTO_GetFieldsCounters [19:13:48]wFMCommunicate request_size=4 [19:13:48]MH_SAM_APDU [19:13:48]CAPDU: 80 13 00 00 [19:13:48]Write to MH i2c: E2 08 00 DC 03 80 13 00 00 00 00 00 00 5B [19:13:48]Write i2c OK [19:13:48]MH_I2C_Read... [19:13:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:13:48]Read from MH i2c: E2 [19:13:48]MH_I2C_Read... [19:13:48]Read from MH i2c: E2 62 00 [19:13:48]MH_I2C_Read... [19:13:48]Read from MH i2c: E2 62 00 DC 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 49 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [19:13:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 49 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 [19:14:22]OFD Sender: No OFD packet to send [19:14:27]OFD Sender: No OFD packet to send [19:14:32]OFD Sender: No OFD packet to send [19:14:37]OFD Sender: No OFD packet to send [19:14:42]OFD Sender: No OFD packet to send [19:14:47]OFD Sender: No OFD packet to send [19:14:52]OFD Sender: No OFD packet to send [19:14:57]OFD Sender: No OFD packet to send [19:15:02]OFD Sender: No OFD packet to send [19:15:07]OFD Sender: No OFD packet to send [19:15:12]OFD Sender: No OFD packet to send [19:15:17]OFD Sender: No OFD packet to send [19:15:22]OFD Sender: No OFD packet to send [19:15:27]OFD Sender: No OFD packet to send [19:15:32]accept exits with 7 [19:15:32]New connection [19:15:32]New thread 3067215204 created [19:15:32]Thread 3067358564 joined [19:15:32]Waiting for new connection... [19:15:32] Sock 7.Parse request [19:15:32]Sock 7.Check first char [19:15:32]Sock 7.First char is OK [19:15:32]request: POST /json_proto HTTP/1.0 [19:15:32]Method: POST [19:15:32]URL: /json_proto [19:15:32]Method is POST - this is cgi request [19:15:32]url: /json_proto [19:15:32]query_string will be loaded in cgi processing [19:15:32]execute_cgi json_proto POST (null) [19:15:32]execute_cgi path=json_proto method=POST [19:15:32]POST find Content-Length [19:15:32]Host: 172.17.44.67:8080 [19:15:32]Content-Length: 769 [19:15:32]Content-Type: application/json [19:15:32] [19:15:32]POST finish read [19:15:32]Found Content-Length = 769 [19:15:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:32]execute_script... [19:15:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:32]POST & json_proto [19:15:32]process_json_proto [19:15:32]json parsed OK: [19:15:32]protocol is kg_v1.0 [19:15:32]action value=close_receipt [19:15:32]process_action close_receipt [19:15:32]cmd_close_receipt [19:15:32]MH_GetDate [19:15:32]Write to MH i2c: F0 00 00 DE 03 D0 [19:15:32]Write i2c OK [19:15:32]MH_I2C_Read... [19:15:32]Read from MH i2c: F0 [19:15:32]MH_I2C_Read... [19:15:32]Read from MH i2c: F0 09 00 [19:15:32]MH_I2C_Read... [19:15:32]Read from MH i2c: F0 09 00 DE 03 00 55 62 11 67 F1 C7 6B 64 8F [19:15:32]GetLastDocTimeStamp 1729192425 [19:15:32]current date 1729192533 [19:15:32]FM_GetShiftState [19:15:32]SAM_PROTO_GetShiftState [19:15:32]wFMCommunicate request_size=4 [19:15:32]MH_SAM_APDU [19:15:32]CAPDU: 80 13 01 00 [19:15:32]Write to MH i2c: E2 08 00 DF 03 80 13 01 00 00 00 00 00 5F [19:15:32]Write i2c OK [19:15:32]MH_I2C_Read... [19:15:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:32]Read from MH i2c: E2 [19:15:32]MH_I2C_Read... [19:15:32]Read from MH i2c: E2 0E 00 [19:15:32]MH_I2C_Read... [19:15:32]Read from MH i2c: E2 0E 00 DF 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 67 [19:15:32]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [19:15:32]wFMCommunicate OK [19:15:32]SAM_PROTO_GetShiftState done [19:15:32]FM_GetShiftState done [19:15:32]opened in 1729125927 [19:15:32]opened+sec_in_day 1729212327 [19:15:32]quantity*price = 100015 [19:15:32]sum+1 = 100017 [19:15:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 176 17.10.2024 19:15 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82250 ФПД: 154295663549491 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T191533&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82250&fm=154295663549491&tin=02508201610067®Number=0000000000091680&sum=100016 [19:15:33]StoreToDocumentArchive [19:15:33]shift 525 fd 82250 [19:15:33]save to /storage/0525/doc_00082250 [19:15:33]save last doc name /storage/0525/doc_00082250 to /storage/kkm_last_doc_name [19:15:33]save OK [19:15:33]Clear old archive folders... [19:15:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:15:33]tlvbuf is 00269680 [19:15:33]SAM_PROTO_ClearQueue [19:15:33]wFMCommunicate request_size=4 [19:15:33]MH_SAM_APDU [19:15:33]CAPDU: 80 09 00 00 [19:15:33]Write to MH i2c: E2 08 00 EC 03 80 09 00 00 00 00 00 00 61 [19:15:33]Write i2c OK [19:15:33]MH_I2C_Read... [19:15:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:15:33]Read from MH i2c: E2 [19:15:33]MH_I2C_Read... [19:15:33]Read from MH i2c: E2 03 00 [19:15:33]MH_I2C_Read... [19:15:33]Read from MH i2c: E2 03 00 EC 03 00 90 00 63 [19:15:33]RAPDU: 90 00 [19:15:33]wFMCommunicate OK [19:15:33]SAM_PROTO_ClearQueue done [19:15:33]KKMCreateOFDPacket [19:15:33]OFDProtocolAddRootSTLVToBuf [19:15:33]FM_MakeSignedData [19:15:33]FM_MakeSignedData [19:15:33]SAM_PROTO_SignData [19:15:33]wFMCommunicate request_size=4 [19:15:33]MH_SAM_APDU [19:15:33]CAPDU: 80 0D 01 02 [19:15:33]Write to MH i2c: E2 08 00 ED 03 80 0D 01 02 00 00 00 00 69 [19:15:33]Write i2c OK [19:15:33]MH_I2C_Read... [19:15:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:15:33]Read from MH i2c: E2 [19:15:33]MH_I2C_Read... [19:15:33]Read from MH i2c: E2 03 00 [19:15:33]MH_I2C_Read... [19:15:33]Read from MH i2c: E2 03 00 ED 03 00 90 00 64 [19:15:33]RAPDU: 90 00 [19:15:33]wFMCommunicate OK [19:15:33]wFMCommunicate request_size=255 [19:15:33]MH_SAM_APDU [19:15:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 55 62 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4A 41 01 00 35 04 06 00 8C [19:15:33]Write to MH i2c: E2 02 01 EE 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 55 62 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4A 41 01 00 35 04 06 00 8C 00 00 15 [19:15:33]Write i2c OK [19:15:33]MH_I2C_Read... [19:15:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:34]Read from MH i2c: E2 [19:15:34]MH_I2C_Read... [19:15:34]Read from MH i2c: E2 03 00 [19:15:34]MH_I2C_Read... [19:15:34]Read from MH i2c: E2 03 00 EE 03 00 90 00 65 [19:15:34]RAPDU: 90 00 [19:15:34]wFMCommunicate OK [19:15:34]wFMCommunicate request_size=10 [19:15:34]MH_SAM_APDU [19:15:34]CAPDU: 80 0D 02 02 05 54 C2 37 5C 33 [19:15:34]Write to MH i2c: E2 0D 00 EF 03 80 0D 02 02 05 00 54 C2 37 5C 33 00 00 52 [19:15:34]Write i2c OK [19:15:34]MH_I2C_Read... [19:15:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:34]Read from MH i2c: E2 [19:15:34]MH_I2C_Read... [19:15:34]Read from MH i2c: E2 03 00 [19:15:34]MH_I2C_Read... [19:15:34]Read from MH i2c: E2 03 00 EF 03 00 90 00 66 [19:15:34]RAPDU: 90 00 [19:15:34]wFMCommunicate OK [19:15:34]wFMCommunicate request_size=4 [19:15:34]MH_SAM_APDU [19:15:34]CAPDU: 80 0D 03 02 [19:15:34]Write to MH i2c: E2 08 00 F0 03 80 0D 03 02 00 00 00 00 6E [19:15:34]Write i2c OK [19:15:34]MH_I2C_Read... [19:15:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:34]Read from MH i2c: E2 [19:15:34]MH_I2C_Read... [19:15:34]Read from MH i2c: E2 0B 00 [19:15:34]MH_I2C_Read... [19:15:34]Read from MH i2c: E2 0B 00 F0 03 00 61 C4 86 D2 37 A0 D7 70 90 00 0A [19:15:34]RAPDU: 61 C4 86 D2 37 A0 D7 70 90 00 [19:15:34]wFMCommunicate OK [19:15:34]SAM_PROTO_SignData done [19:15:34]FM_MakeSignedData done [19:15:34]CreateOFDProtocolMessage [19:15:34]wFMCommunicate request_size=4 [19:15:34]MH_SAM_APDU [19:15:34]CAPDU: 80 11 00 00 [19:15:34]Write to MH i2c: E2 08 00 F1 03 80 11 00 00 00 00 00 00 6E [19:15:34]Write i2c OK [19:15:34]MH_I2C_Read... [19:15:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:34]Read from MH i2c: E2 [19:15:34]MH_I2C_Read... [19:15:34]Read from MH i2c: E2 17 00 [19:15:34]MH_I2C_Read... [19:15:34]Read from MH i2c: E2 17 00 F1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C0 [19:15:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:15:34]wFMCommunicate OK [19:15:34]CreateOFDProtocolMessage done [19:15:34]OFDSenderStorePacket 82250 [19:15:34]StoreOFDPacket docnum=82250 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]/dev/ttyS4 opened [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 53 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725AE (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 44407504+1684785137=1729192641 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 54 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 C1 62 11 67 F1 C7 6B 64 21 [19:17:21]Current date/time: 17.10.2024 19:17 [19:17:21]FM_Init [19:17:21]wFMConnect [19:17:21]MH_SAM_On [19:17:21]Write to MH i2c: E0 00 00 08 00 E7 [19:17:21]Write i2c OK [19:17:21]MH_I2C_Read... [19:17:21]*** iso7816_init finished! [19:17:21]*** atr: [19:17:21]*** 0F 3B D5 18 FF 81 91 FE [19:17:21]*** 1F C3 80 73 C8 21 10 0A [19:17:21]*** 00 00 00 00 00 00 00 00 [19:17:21]*** 00 00 00 00 00 00 00 00 [19:17:21]*** 00 00 00 00 00 00 00 00 [19:17:21]*** 00 00 00 00 00 00 00 00 [19:17:21]*** 00 00 00 00 00 00 00 00 [19:17:21]*** 00 00 00 00 00 00 00 00 [19:17:21]Read from MH i2c: E0 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E0 10 00 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [19:17:21]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [19:17:21]wFMCommunicate request_size=10 [19:17:21]MH_SAM_APDU [19:17:21]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [19:17:21]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [19:17:21]Write i2c OK [19:17:21]MH_I2C_Read... [19:17:21]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [19:17:21]Read from MH i2c: E2 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E2 03 00 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [19:17:21]RAPDU: 90 00 [19:17:21]wFMCommunicate OK [19:17:21]wFMCommunicate request_size=4 [19:17:21]MH_SAM_APDU [19:17:21]CAPDU: 80 11 00 00 [19:17:21]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [19:17:21]Write i2c OK [19:17:21]MH_I2C_Read... [19:17:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:21]Read from MH i2c: E2 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E2 17 00 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D6 [19:17:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:17:21]wFMCommunicate OK [19:17:21]Detected FM SN is 0000000000871843 [19:17:21]Stored FM SN is 0000000000871843 [19:17:21]wFMCommunicate request_size=9 [19:17:21]MH_SAM_APDU [19:17:21]CAPDU: 80 16 00 00 04 C3 A3 00 00 [19:17:21]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 C3 A3 00 00 00 00 F8 [19:17:21]Write i2c OK [19:17:21]MH_I2C_Read... [19:17:21]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [19:17:21]Read from MH i2c: E2 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E2 03 00 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [19:17:21]RAPDU: 90 00 [19:17:21]wFMCommunicate OK [19:17:21]FM PIN OK [19:17:21]wFMCommunicate request_size=8 [19:17:21]MH_SAM_APDU [19:17:21]CAPDU: 80 14 04 00 03 02 00 01 [19:17:21]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [19:17:21]Write i2c OK [19:17:21]MH_I2C_Read... [19:17:21]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [19:17:21]Read from MH i2c: E2 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E2 03 00 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [19:17:21]RAPDU: 90 00 [19:17:21]wFMCommunicate OK [19:17:21]wFMCommunicate request_size=13 [19:17:21]MH_SAM_APDU [19:17:21]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [19:17:21]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [19:17:21]Write i2c OK [19:17:21]MH_I2C_Read... [19:17:21]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [19:17:21]Read from MH i2c: E2 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E2 03 00 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [19:17:21]RAPDU: 90 00 [19:17:21]wFMCommunicate OK [19:17:21]wFMCommunicate request_size=4 [19:17:21]MH_SAM_APDU [19:17:21]CAPDU: 80 11 00 00 [19:17:21]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [19:17:21]Write i2c OK [19:17:21]MH_I2C_Read... [19:17:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:21]Read from MH i2c: E2 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E2 17 00 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DA [19:17:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:17:21]wFMCommunicate OK [19:17:21]DocumentArchiveInit [19:17:21]Start Httpd... [19:17:21]Httpd thread 3067034980 created [19:17:21]Write to MH i2c: 01 00 00 0F 00 0F [19:17:21]Write i2c OK [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: 01 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: 01 07 00 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [19:17:21]MH Int Process started [19:17:21]Allocated Socket 8 [19:17:21]Bind OK [19:17:21]Listen OK [19:17:21]httpd running on port 8080 [19:17:21]Waiting for new connection... [19:17:21]OFD Sender: Processing packet 82250 [packets to send 254, broken 253] [19:17:21]ProducePacketName [19:17:21]name=ofd_packets/00082250 [19:17:21]OFD Sender: To server: pG, [19:17:21]CommunicateWithHost lk.salyk.kg:30040 [19:17:21]ConnectInit lk.salyk.kg [19:17:22]Connected sock=7 [19:17:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 4B 80 07 01 CA B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 55 62 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4A 41 01 00 35 04 06 00 8C 54 C2 37 5C 33 61 C4 86 D2 37 A0 D7 70 [19:17:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 7A 24 47 00 05 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4A 41 01 00 F4 03 04 00 FE 07 11 67 B6 04 01 00 00 3E 23 3D D0 C9 24 8F D4 [19:17:23]CommunicateWithHost err = 0 [19:17:23]CheckOFDResponse [19:17:23]1017 (14) - 77093643461234 [19:17:23]1041 (16) - 0000000000871843 [19:17:23]1040 (4) - 82250 [19:17:23]1012 (4) - 17.10.2024 12:50 [19:17:23]1206 (1) - 0 [19:17:23]OFD Sender: Remove packet 82250 [19:17:23]ProducePacketName [19:17:23]name=ofd_packets/00082250 [19:17:23]NVStorageDeleteData [19:17:24]OFD Sender: No OFD packet to send [19:17:24]accept exits with 9 [19:17:24]New connection [19:17:24]New thread 3066748260 created [19:17:24]Waiting for new connection... [19:17:24] Sock 9.Parse request [19:17:24]Sock 9.Check first char [19:17:24]Sock 9.First char is OK [19:17:24]request: POST /json_proto HTTP/1.0 [19:17:24]Method: POST [19:17:24]URL: /json_proto [19:17:24]Method is POST - this is cgi request [19:17:24]url: /json_proto [19:17:24]query_string will be loaded in cgi processing [19:17:24]execute_cgi json_proto POST (null) [19:17:24]execute_cgi path=json_proto method=POST [19:17:24]POST find Content-Length [19:17:24]Host: 172.17.44.67:8080 [19:17:24]Content-Length: 215 [19:17:24]Content-Type: application/json [19:17:24] [19:17:24]POST finish read [19:17:24]Found Content-Length = 215 [19:17: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" ] } } [19:17:24]execute_script... [19:17: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" ] } } [19:17:24]POST & json_proto [19:17:24]process_json_proto [19:17:24]json parsed OK: [19:17:24]protocol is kg_v1.0 [19:17:24]action value=get_value [19:17:24]process_action get_value [19:17:24]cmd_get_value [19:17:24]process_action get_value done [19:17:24]requested_data is exist [19:17:24]produce_requested_data [19:17:24]requested_item kkm.sn is exist - process it [19:17:24]requested_item kkm.ver is exist - process it [19:17:24]requested_item fm.sn is exist - process it [19:17:24]wFMCommunicate request_size=4 [19:17:24]MH_SAM_APDU [19:17:24]CAPDU: 80 11 00 00 [19:17:24]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [19:17:24]Write i2c OK [19:17:24]MH_I2C_Read... [19:17:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:25]Read from MH i2c: E2 [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: E2 17 00 [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DC [19:17:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:17:25]wFMCommunicate OK [19:17:25]requested_item fd.num is exist - process it [19:17:25]SAM_PROTO_GetFieldsCounters [19:17:25]wFMCommunicate request_size=4 [19:17:25]MH_SAM_APDU [19:17:25]CAPDU: 80 13 00 00 [19:17:25]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [19:17:25]Write i2c OK [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: E2 [19:17:25]MH_I2C_Read... [19:17:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:25]Read from MH i2c: E2 62 00 [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 4A 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [19:17:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 4A 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:17:25]wFMCommunicate OK [19:17:25]SAM_PROTO_GetFieldsCounters done [19:17:25]requested_item shift.num is exist - process it [19:17:25]requested_item shift.opened is exist - process it [19:17:25]req_shift_opened [19:17:25]FM_GetShiftState [19:17:25]SAM_PROTO_GetShiftState [19:17:25]wFMCommunicate request_size=4 [19:17:25]MH_SAM_APDU [19:17:25]CAPDU: 80 13 01 00 [19:17:25]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [19:17:25]Write i2c OK [19:17:25]MH_I2C_Read... 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 11 [19:17:26]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [19:17:26]wFMCommunicate OK [19:17:26]wFMCommunicate request_size=4 [19:17:26]MH_SAM_APDU [19:17:26]CAPDU: 80 17 00 00 [19:17:26]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [19:17:26]Write i2c OK [19:17:26]MH_I2C_Read... [19:17:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [19:17:27]Read from MH i2c: E2 [19:17:27]MH_I2C_Read... [19:17:27]Read from MH i2c: E2 E4 00 [19:17:27]MH_I2C_Read... [19:17:27]Read from MH i2c: E2 E4 00 17 00 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 77 [19:17:27]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:17:27]wFMCommunicate OK [19:17:27]SAM_PROTO_GetFMData done [19:17:27]requested_item fm.sale_refund.total is exist - process it [19:17:27]requested_item fm.buy.total is exist - process it [19:17:27]requested_item shift.sale.total is exist - process it [19:17:27]SAM_PROTO_GetShiftData [19:17:27]wFMCommunicate request_size=4 [19:17:27]MH_SAM_APDU [19:17:27]CAPDU: 80 13 02 00 [19:17:27]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [19:17:27]Write i2c OK [19:17:27]MH_I2C_Read... [19:17:27]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:17:27]Read from MH i2c: E2 [19:17:27]MH_I2C_Read... [19:17:27]Read from MH i2c: E2 FD 00 [19:17:27]MH_I2C_Read... [19:17:27]Read from MH i2c: E2 FD 00 18 00 00 BA 04 AA 04 B6 04 6E 04 04 00 B0 00 00 00 69 04 9C 00 6F 04 04 00 AD 00 00 00 B1 04 03 00 0C 74 91 70 04 03 00 B4 09 6A 72 04 03 00 58 6A 27 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 5B 73 0F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 99 49 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 FC 0A 70 04 03 00 80 FC 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BD 2A 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 D7 [19:17:27]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 B0 00 00 00 69 04 9C 00 6F 04 04 00 AD 00 00 00 B1 04 03 00 0C 74 91 70 04 03 00 B4 09 6A 72 04 03 00 58 6A 27 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 5B 73 0F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 99 49 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 FC 0A 70 04 03 00 80 FC 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BD 2A 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [19:17:27]wFMCommunicate OK [19:17:27]wFMCommunicate request_size=4 [19:17:27]MH_SAM_APDU [19:17:27]CAPDU: 80 17 00 00 [19:17:27]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [19:17:27]Write i2c OK [19:17:27]MH_I2C_Read... [19:17:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:17:27]Read from MH i2c: E2 [19:17:27]MH_I2C_Read... [19:17:27]Read from MH i2c: E2 FD 00 [19:17:27]MH_I2C_Read... [19:17:27]Read from MH i2c: E2 FD 00 19 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 3F [19:17:27]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 [19:17:27]wFMCommunicate OK [19:17:27]wFMCommunicate request_size=4 [19:17:27]MH_SAM_APDU [19:17:27]CAPDU: 80 17 00 00 [19:17:27]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [19:17:27]Write i2c OK [19:17:27]MH_I2C_Read... [19:17:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:17:28]Read from MH i2c: E2 [19:17:28]MH_I2C_Read... [19:17:28]Read from MH i2c: E2 FD 00 [19:17:28]MH_I2C_Read... [19:17:28]Read from MH i2c: E2 FD 00 1A 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 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 C6 [19:17:28]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 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 [19:17:28]wFMCommunicate OK [19:17:28]wFMCommunicate request_size=4 [19:17:28]MH_SAM_APDU [19:17:28]CAPDU: 80 17 00 00 [19:17:28]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [19:17:28]Write i2c OK [19:17:28]MH_I2C_Read... [19:17:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:17:28]Read from MH i2c: E2 [19:17:28]MH_I2C_Read... [19:17:28]Read from MH i2c: E2 FD 00 [19:17:28]MH_I2C_Read... [19:17:28]Read from MH i2c: E2 FD 00 1B 00 00 00 EF 03 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 13 [19:17: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 [19:17:28]wFMCommunicate OK [19:17:28]wFMCommunicate request_size=4 [19:17:28]MH_SAM_APDU [19:17:28]CAPDU: 80 17 00 00 [19:17:28]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [19:17:28]Write i2c OK [19:17:28]MH_I2C_Read... [19:17:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [19:17:28]Read from MH i2c: E2 [19:17:28]MH_I2C_Read... [19:17:28]Read from MH i2c: E2 D7 00 [19:17:28]MH_I2C_Read... [19:17:28]Read from MH i2c: E2 D7 00 1C 00 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 7F [19:17: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 [19:17:28]wFMCommunicate OK [19:17:28]SAM_PROTO_GetShiftData done [19:17:28]requested_item shift.sale.total_cash is exist - process it [19:17:28]requested_item shift.sale_refund.total is exist - process it [19:17:28]requested_item shift.sale_refund.total_cash is exist - process it [19:17:28]requested_item shift.buy.total is exist - process it [19:17:28]requested_item shift.buy.total_cash is exist - process it [19:17:28]produce_requested_data done [19:17:28]produce_requested_data return {"fm.sale.total":63604032.37,"fm.sale_refund.total":3197884.00,"fm.buy.total":0.00,"shift.sale.total":95324.28,"shift.sale.total_cash":69493.00,"shift.sale_refund.total":7200.00,"shift.sale_refund.total_cash":7200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [19:17:28]process_action_free get_value [19:17:28]json_value_free [19:17:28]json_value_free done [19:17:28]process_json_proto returns [19:17:28]Send response to host [19:17:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":63604032.37,"fm.sale_refund.total":3197884.00,"fm.buy.total":0.00,"shift.sale.total":95324.28,"shift.sale.total_cash":69493.00,"shift.sale_refund.total":7200.00,"shift.sale_refund.total_cash":7200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [19:17:28]free response buf [19:17:28]execute_script done [19:17:28]execute_script returns [19:17:28]free content buf [19:17:28]Sock 10.Close socket [19:17:28]Sock 10.Thread stoped [19:17:29]accept exits with 9 [19:17:29]New connection [19:17:29]New thread 3066748260 created [19:17:29]Thread 3066604900 joined [19:17:29]Waiting for new connection... [19:17:29] Sock 9.Parse request [19:17:29]Sock 9.Check first char [19:17:29]Sock 9.First char is OK [19:17:29]request: POST /json_proto HTTP/1.0 [19:17:29]Method: POST [19:17:29]URL: /json_proto [19:17:29]Method is POST - this is cgi request [19:17:29]url: /json_proto [19:17:29]query_string will be loaded in cgi processing [19:17:29]execute_cgi json_proto POST (null) [19:17:29]execute_cgi path=json_proto method=POST [19:17:29]POST find Content-Length [19:17:29]Host: 172.17.44.67:8080 [19:17:29]Content-Length: 759 [19:17:29]Content-Type: application/json [19:17:29] [19:17:29]POST finish read [19:17:29]Found Content-Length = 759 [19:17:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 70.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30047783", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:29]execute_script... [19:17:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 70.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30047783", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:29]POST & json_proto [19:17:29]process_json_proto [19:17:29]json parsed OK: [19:17:29]protocol is kg_v1.0 [19:17:29]action value=close_receipt [19:17:29]process_action close_receipt [19:17:29]cmd_close_receipt [19:17:29]MH_GetDate [19:17:29]Write to MH i2c: F0 00 00 1D 00 0C [19:17:29]Write i2c OK [19:17:29]MH_I2C_Read... [19:17:29]Read from MH i2c: F0 [19:17:29]MH_I2C_Read... [19:17:29]Read from MH i2c: F0 09 00 [19:17:29]MH_I2C_Read... [19:17:29]Read from MH i2c: F0 09 00 1D 00 00 CA 62 11 67 F1 C7 6B 64 40 [19:17:29]GetLastDocTimeStamp 1729192533 [19:17:29]current date 1729192650 [19:17:29]FM_GetShiftState [19:17:29]SAM_PROTO_GetShiftState [19:17:29]wFMCommunicate request_size=4 [19:17:29]MH_SAM_APDU [19:17:29]CAPDU: 80 13 01 00 [19:17:29]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [19:17:29]Write i2c OK [19:17:29]MH_I2C_Read... [19:17:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:29]Read from MH i2c: E2 [19:17:29]MH_I2C_Read... [19:17:29]Read from MH i2c: E2 0E 00 [19:17:29]MH_I2C_Read... [19:17:29]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 A3 [19:17:29]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [19:17:29]wFMCommunicate OK [19:17:29]SAM_PROTO_GetShiftState done [19:17:29]FM_GetShiftState done [19:17:29]opened in 1729125927 [19:17:29]opened+sec_in_day 1729212327 [19:17:29]quantity*price = 0 [19:17:29]sum+1 = 1 [19:17:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 177 17.10.2024 19:17 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30047783 ФМ: 0000000000871843 ФД: 82251 ФПД: 173656628190637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T191730&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82251&fm=173656628190637&tin=02508201610067®Number=0000000000091680&sum=0 [19:17:30]StoreToDocumentArchive [19:17:30]shift 525 fd 82251 [19:17:30]save to /storage/0525/doc_00082251 [19:17:30]save last doc name /storage/0525/doc_00082251 to /storage/kkm_last_doc_name [19:17:30]save OK [19:17:30]Clear old archive folders... [19:17:30]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:17:30]tlvbuf is 002992B0 [19:17:30]SAM_PROTO_ClearQueue [19:17:30]wFMCommunicate request_size=4 [19:17:30]MH_SAM_APDU [19:17:30]CAPDU: 80 09 00 00 [19:17:30]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [19:17:30]Write i2c OK [19:17:30]MH_I2C_Read... [19:17:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:17:30]Read from MH i2c: E2 [19:17:30]MH_I2C_Read... [19:17:30]Read from MH i2c: E2 03 00 [19:17:30]MH_I2C_Read... [19:17:30]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [19:17:30]RAPDU: 90 00 [19:17:30]wFMCommunicate OK [19:17:30]SAM_PROTO_ClearQueue done [19:17:30]KKMCreateOFDPacket [19:17:30]OFDProtocolAddRootSTLVToBuf [19:17:30]FM_MakeSignedData [19:17:30]FM_MakeSignedData [19:17:30]SAM_PROTO_SignData [19:17:30]wFMCommunicate request_size=4 [19:17:30]MH_SAM_APDU [19:17:30]CAPDU: 80 0D 01 02 [19:17:30]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [19:17:30]Write i2c OK [19:17:30]MH_I2C_Read... [19:17:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:17:30]Read from MH i2c: E2 [19:17:30]MH_I2C_Read... [19:17:30]Read from MH i2c: E2 03 00 [19:17:30]MH_I2C_Read... [19:17:30]recv_with_timeout no data received [19:17:30]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [19:17:30]RAPDU: 90 00 [19:17:30]wFMCommunicate OK [19:17:30]wFMCommunicate request_size=255 [19:17:30]MH_SAM_APDU [19:17:30]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 CA 62 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4B 41 01 00 35 04 06 00 [19:17:30]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 CA 62 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4B 41 01 00 35 04 06 00 00 00 5B [19:17:30]Write i2c OK [19:17:30]MH_I2C_Read... [19:17:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:31]Read from MH i2c: E2 [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: E2 03 00 [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [19:17:31]RAPDU: 90 00 [19:17:31]wFMCommunicate OK [19:17:31]wFMCommunicate request_size=11 [19:17:31]MH_SAM_APDU [19:17:31]CAPDU: 80 0D 02 02 06 9D F0 95 A2 DD AD [19:17:31]Write to MH i2c: E2 0E 00 2E 00 80 0D 02 02 06 00 9D F0 95 A2 DD AD 00 00 02 [19:17:31]Write i2c OK [19:17:31]MH_I2C_Read... [19:17:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:31]Read from MH i2c: E2 [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: E2 03 00 [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [19:17:31]RAPDU: 90 00 [19:17:31]wFMCommunicate OK [19:17:31]wFMCommunicate request_size=4 [19:17:31]MH_SAM_APDU [19:17:31]CAPDU: 80 0D 03 02 [19:17:31]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [19:17:31]Write i2c OK [19:17:31]MH_I2C_Read... [19:17:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:17:31]Read from MH i2c: E2 [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: E2 0B 00 [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: E2 0B 00 2F 00 00 1B 0B DC 45 97 BB 10 E8 90 00 3C [19:17:31]RAPDU: 1B 0B DC 45 97 BB 10 E8 90 00 [19:17:31]wFMCommunicate OK [19:17:31]SAM_PROTO_SignData done [19:17:31]FM_MakeSignedData done [19:17:31]CreateOFDProtocolMessage [19:17:31]wFMCommunicate request_size=4 [19:17:31]MH_SAM_APDU [19:17:31]CAPDU: 80 11 00 00 [19:17:31]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [19:17:31]Write i2c OK [19:17:31]MH_I2C_Read... [19:17:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:31]Read from MH i2c: E2 [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: E2 17 00 [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 FC [19:17:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:17:31]wFMCommunicate OK [19:17:31]CreateOFDProtocolMessage done [19:17:31]OFDSenderStorePacket 82251 [19:17:31]StoreOFDPacket docnum=82251 [19:17:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 CE 0B 08 01 77 0B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 CA 62 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4B 41 01 00 35 04 06 00 9D F0 95 A2 DD AD 1B 0B DC 45 97 BB 10 E8 [19:17:31]CheckFolder [19:17:31]dirname=/storage/ofd_packets [19:17:31]CheckFolder done [19:17:31]ProducePacketName [19:17:31]name=ofd_packets/00082251 [19:17:31]NVStorageSaveData ofd_packets/00082251 [19:17:31]File name is /storage/ofd_packets/00082251 [19:17:31]Write 302 bytes [19:17:31]NVStorageSaveData done [19:17:31]OFDSenderStorePacket done [19:17:31]KKMCreateOFDPacket done [19:17:31]NVStorageSaveData kkm_last_timestamp [19:17:31]File name is /storage/kkm_last_timestamp [19:17:31]Write 4 bytes [19:17:31]NVStorageSaveData done [19:17:31]ExternCall_PrintAddStr [19:17:31]wPrintStart [19:17:31]Write to MH i2c: 01 00 00 31 00 31 [19:17:31]OFD Sender: Processing packet 82251 [packets to send 254, broken 253] [19:17:31]ProducePacketName [19:17:31]name=ofd_packets/00082251 [19:17:31]OFD Sender: To server: pG, [19:17:31]CommunicateWithHost lk.salyk.kg:30040 [19:17:31]ConnectInit lk.salyk.kg [19:17:31]Write i2c OK [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: 01 [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: 01 07 00 [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [19:17:31]RasterBufferAndPrint [19:17:31]line Счет N : (1)918751 [19:17:31]line ИНН: 02508201610067 [19:17:31]line Контрольно-Кассовый Чек [19:17:31]line ПРОДАЖА [19:17:31]line ТРК (МРК, ГНК) : 31 [19:17:31]line Товар: 2710194210 [19:17:31]line ДТ(л)-К-5 [19:17:31]line 70.000 * 0.00 [19:17:31]line = 0.00 [19:17:31]line НДС 12% НСП 1% [19:17:31]line > о реализуемом товаре [19:17:31]line ИТОГО: 0.00 [19:17:31]line НСП 1% : 0.00 [19:17:31]line НДС 12% : 0.00 [19:17:31]line Наличными: 0.00 [19:17:31]line Безнал.: 0.00 [19:17:31]line Место: АЗС № 114 "Партнер Нефть" [19:17:31]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [19:17:31]line СНО: Общий режим [19:17:31]line Чек 177 17.10.2024 19:17 [19:17:31]line Смена: 525 ФФД: 1.0 [19:17:31]line ЗНМ: 0300000086 [19:17:31]line РНМ: 0000000000091680 [19:17:31]line Версия ККМ: 001 [19:17:31]line Талоны: ТК ГПНА Online [19:17:31]line 30047783 [19:17:31]line ФМ: 0000000000871843 [19:17:31]line ФД: 82251 [19:17:31]line ФПД: 173656628190637 [19:17:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T191730&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82251&fm=173656628190637&tin=02508201610067®Number=0000000000091680&sum=0 [19:17:31]written 0, free lines is 4095 [19:17:31]Write to MH i2c: 01 00 00 5B 00 5B [19:17:31]Write i2c OK [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: 01 [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: 01 07 00 [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 F0 0C 5E [19:17:31]RasterBufferAndPrint [19:17:31]line [19:17:31]line [19:17:31]line [19:17:31]line [19:17:31]line [19:17:31]written 0, free lines is 3336 [19:17:31]MH_Cut [19:17:31]Write to MH i2c: D1 01 00 62 00 01 34 [19:17:31]Write i2c OK [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: D1 [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: D1 01 00 [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: D1 01 00 62 00 00 33 [19:17:31]Write to MH i2c: 01 00 00 63 00 63 [19:17:31]Write i2c OK [19:17:31]MH_I2C_Read... [19:17:32]*** Cut start [19:17:32]*** Partial cut [19:17:32]*** CUTSNS_PIN = 1 [19:17:32]*** CUTSNS_PIN = 0 [19:17:32]*** Brake cut motor [19:17:33]Read from MH i2c: 01 [19:17:33]MH_I2C_Read... [19:17:33]*** Stop cut motor [19:17:33]*** Cut end [19:17:33]Read from MH i2c: 01 07 00 [19:17:33]MH_I2C_Read... [19:17:33]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [19:17:33]process_action close_receipt done [19:17:33]requested_data is exist [19:17:33]produce_requested_data [19:17:33]requested_item fm.sn is exist - process it [19:17:33]wFMCommunicate request_size=4 [19:17:33]MH_SAM_APDU [19:17:33]CAPDU: 80 11 00 00 [19:17:33]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [19:17:33]Write i2c OK [19:17:33]MH_I2C_Read... [19:17:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:33]Read from MH i2c: E2 [19:17:33]MH_I2C_Read... [19:17:33]Read from MH i2c: E2 17 00 [19:17:33]MH_I2C_Read... [19:17:33]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 30 [19:17:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:17:33]wFMCommunicate OK [19:17:33]requested_item fd.num is exist - process it [19:17:33]SAM_PROTO_GetFieldsCounters [19:17:33]wFMCommunicate request_size=4 [19:17:33]MH_SAM_APDU [19:17:33]CAPDU: 80 13 00 00 [19:17:33]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [19:17:33]Write i2c OK [19:17:33]MH_I2C_Read... [19:17:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:33]Read from MH i2c: E2 [19:17:33]MH_I2C_Read... [19:17:33]Read from MH i2c: E2 62 00 [19:17:33]MH_I2C_Read... [19:17:33]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 4B 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [19:17:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 4B 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:17:33]wFMCommunicate OK [19:17:33]SAM_PROTO_GetFieldsCounters done [19:17:33]requested_item shift.num is exist - process it [19:17:33]requested_item shift.opened is exist - process it [19:17:33]req_shift_opened [19:17:33]FM_GetShiftState [19:17:33]SAM_PROTO_GetShiftState [19:17:33]wFMCommunicate request_size=4 [19:17:33]MH_SAM_APDU [19:17:33]CAPDU: 80 13 01 00 [19:17:33]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [19:17:33]Write i2c OK [19:17:33]MH_I2C_Read... [19:17:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:33]Read from MH i2c: E2 [19:17:33]MH_I2C_Read... [19:17:33]Read from MH i2c: E2 0E 00 [19:17:33]MH_I2C_Read... [19:17:33]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 EB [19:17:33]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [19:17:33]wFMCommunicate OK [19:17:33]SAM_PROTO_GetShiftState done [19:17:33]FM_GetShiftState done [19:17:33]req_shift_opened done [19:17:33]requested_item shift.open_date is exist - process it [19:17:33]req_shift_open_date [19:17:33]req_shift_open_date done [19:17:33]produce_requested_data done [19:17:33]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82251,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [19:17:33]process_action_free close_receipt [19:17:33]json_value_free [19:17:33]json_value_free done [19:17:33]process_json_proto returns [19:17:33]Send response to host [19:17:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82251,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [19:17:33]free response buf [19:17:33]execute_script done [19:17:33]execute_script returns [19:17:33]free content buf [19:17:33]Sock 9.Close socket [19:17:33]Sock 9.Thread stoped [19:17:33]Connected sock=6 [19:17:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 CE 0B 08 01 77 0B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 CA 62 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4B 41 01 00 35 04 06 00 9D F0 95 A2 DD AD 1B 0B DC 45 97 BB 10 E8 [19:17:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 4C A6 47 00 D2 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4B 41 01 00 F4 03 04 00 09 08 11 67 B6 04 01 00 00 53 7F AF 0F CE BB 8C 80 [19:17:34]CommunicateWithHost err = 0 [19:17:34]CheckOFDResponse [19:17:34]1017 (14) - 77093643461234 [19:17:34]1041 (16) - 0000000000871843 [19:17:34]1040 (4) - 82251 [19:17:34]1012 (4) - 17.10.2024 12:50 [19:17:34]1206 (1) - 0 [19:17:34]OFD Sender: Remove packet 82251 [19:17:34]ProducePacketName [19:17:34]name=ofd_packets/00082251 [19:17:34]NVStorageDeleteData [19:17:35]OFD Sender: No OFD packet to send [19:17:40]OFD Sender: No OFD packet to send [19:17:41]recv_with_timeout no data received [19:17:45]OFD Sender: No OFD packet to send [19:17:50]OFD Sender: No OFD packet to send [19:17:54]recv_with_timeout no data received [19:17:55]OFD Sender: No OFD packet to send [19:18:00]OFD Sender: No OFD packet to send [19:18:05]OFD Sender: No OFD packet to send [19:18:10]OFD Sender: No OFD packet to send [19:18:10]recv_with_timeout no data received [19:18:15]OFD Sender: No OFD packet to send [19:18:20]OFD Sender: No OFD packet to send [19:18:25]OFD Sender: No OFD packet to send [19:18:25]recv_with_timeout no data received [19:18:30]OFD Sender: No OFD packet to send [19:18:35]OFD Sender: No OFD packet to send [19:18:38]recv_with_timeout no data received [19:18:40]OFD Sender: No OFD packet to send [19:18:45]OFD Sender: No OFD packet to send [19:18:50]OFD Sender: No OFD packet to send [19:18:50]recv_with_timeout no data received [19:18:52]accept exits with 10 [19:18:52]New connection [19:18:52]New thread 3066604900 created [19:18:52]Thread 3066748260 joined [19:18:52]Waiting for new connection... [19:18:52] Sock 10.Parse request [19:18:52]Sock 10.Check first char [19:18:52]Sock 10.First char is OK [19:18:52]request: POST /json_proto HTTP/1.0 [19:18:52]Method: POST [19:18:52]URL: /json_proto [19:18:52]Method is POST - this is cgi request [19:18:52]url: /json_proto [19:18:52]query_string will be loaded in cgi processing [19:18:52]execute_cgi json_proto POST (null) [19:18:52]execute_cgi path=json_proto method=POST [19:18:52]POST find Content-Length [19:18:52]Host: 172.17.44.67:8080 [19:18:52]Content-Length: 688 [19:18:52]Content-Type: application/json [19:18:52] [19:18:52]POST finish read [19:18:52]Found Content-Length = 688 [19:18:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:52]execute_script... [19:18:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:52]POST & json_proto [19:18:52]process_json_proto [19:18:52]json parsed OK: [19:18:52]protocol is kg_v1.0 [19:18:52]action value=close_receipt [19:18:52]process_action close_receipt [19:18:52]cmd_close_receipt [19:18:52]MH_GetDate [19:18:52]Write to MH i2c: F0 00 00 67 00 56 [19:18:52]Write i2c OK [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: F0 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: F0 09 00 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: F0 09 00 67 00 00 1D 63 11 67 F1 C7 6B 64 DE [19:18:52]GetLastDocTimeStamp 1729192650 [19:18:52]current date 1729192733 [19:18:52]FM_GetShiftState [19:18:52]SAM_PROTO_GetShiftState [19:18:52]wFMCommunicate request_size=4 [19:18:52]MH_SAM_APDU [19:18:52]CAPDU: 80 13 01 00 [19:18:52]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [19:18:52]Write i2c OK [19:18:52]MH_I2C_Read... [19:18:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:52]Read from MH i2c: E2 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: E2 0E 00 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 ED [19:18:52]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [19:18:52]wFMCommunicate OK [19:18:52]SAM_PROTO_GetShiftState done [19:18:52]FM_GetShiftState done [19:18:52]opened in 1729125927 [19:18:52]opened+sec_in_day 1729212327 [19:18:52]quantity*price = 200025 [19:18:52]sum+1 = 200026 [19:18:52]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 179 17.10.2024 19:25 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82253 ФПД: 228858670756334 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T192527&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82253&fm=228858670756334&tin=02508201610067®Number=0000000000091680&sum=20000 [19:25:28]StoreToDocumentArchive [19:25:28]shift 525 fd 82253 [19:25:28]save to /storage/0525/doc_00082253 [19:25:28]save last doc name /storage/0525/doc_00082253 to /storage/kkm_last_doc_name [19:25:28]save OK [19:25:28]Clear old archive folders... [19:25:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:25:28]tlvbuf is 003973B0 [19:25:28]SAM_PROTO_ClearQueue [19:25:28]wFMCommunicate request_size=4 [19:25:28]MH_SAM_APDU [19:25:28]CAPDU: 80 09 00 00 [19:25:28]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [19:25:28]Write i2c OK [19:25:28]MH_I2C_Read... [19:25:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:25:28]Read from MH i2c: E2 [19:25:28]MH_I2C_Read... [19:25:28]Read from MH i2c: E2 03 00 [19:25:28]MH_I2C_Read... [19:25:28]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [19:25:28]RAPDU: 90 00 [19:25:28]wFMCommunicate OK [19:25:28]SAM_PROTO_ClearQueue done [19:25:28]KKMCreateOFDPacket [19:25:28]OFDProtocolAddRootSTLVToBuf [19:25:28]FM_MakeSignedData [19:25:28]FM_MakeSignedData [19:25:28]SAM_PROTO_SignData [19:25:28]wFMCommunicate request_size=4 [19:25:28]MH_SAM_APDU [19:25:28]CAPDU: 80 0D 01 02 [19:25:28]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [19:25:28]Write i2c OK [19:25:28]MH_I2C_Read... [19:25:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:25:28]Read from MH i2c: E2 [19:25:28]MH_I2C_Read... [19:25:28]Read from MH i2c: E2 03 00 [19:25:28]MH_I2C_Read... [19:25:28]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [19:25:28]RAPDU: 90 00 [19:25:28]wFMCommunicate OK [19:25:28]wFMCommunicate request_size=255 [19:25:28]MH_SAM_APDU [19:25:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 A7 64 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4D 41 01 00 35 04 06 00 D0 [19:25:28]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 A7 64 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4D 41 01 00 35 04 06 00 D0 00 00 97 [19:25:29]Write i2c OK [19:25:29]MH_I2C_Read... [19:25:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:29]Read from MH i2c: E2 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 03 00 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [19:25:29]RAPDU: 90 00 [19:25:29]wFMCommunicate OK [19:25:29]wFMCommunicate request_size=10 [19:25:29]MH_SAM_APDU [19:25:29]CAPDU: 80 0D 02 02 05 25 4F C6 31 EE [19:25:29]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 25 4F C6 31 EE 00 00 0B [19:25:29]Write i2c OK [19:25:29]MH_I2C_Read... [19:25:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:29]Read from MH i2c: E2 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 03 00 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [19:25:29]RAPDU: 90 00 [19:25:29]wFMCommunicate OK [19:25:29]wFMCommunicate request_size=4 [19:25:29]MH_SAM_APDU [19:25:29]CAPDU: 80 0D 03 02 [19:25:29]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [19:25:29]Write i2c OK [19:25:29]MH_I2C_Read... [19:25:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:25:29]Read from MH i2c: E2 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 0B 00 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 0B 00 2F 00 00 8E 1E 91 93 CC 5D 15 55 90 00 0E [19:25:29]RAPDU: 8E 1E 91 93 CC 5D 15 55 90 00 [19:25:29]wFMCommunicate OK [19:25:29]SAM_PROTO_SignData done [19:25:29]FM_MakeSignedData done [19:25:29]CreateOFDProtocolMessage [19:25:29]wFMCommunicate request_size=4 [19:25:29]MH_SAM_APDU [19:25:29]CAPDU: 80 11 00 00 [19:25:29]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [19:25:29]Write i2c OK [19:25:29]MH_I2C_Read... [19:25:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:29]Read from MH i2c: E2 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 17 00 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 FC [19:25:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:25:29]wFMCommunicate OK [19:25:29]CreateOFDProtocolMessage done [19:25:29]OFDSenderStorePacket 82253 [19:25:29]StoreOFDPacket docnum=82253 [19:25:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 76 F6 07 01 65 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 A7 64 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4D 41 01 00 35 04 06 00 D0 25 4F C6 31 EE 8E 1E 91 93 CC 5D 15 55 [19:25:29]CheckFolder [19:25:29]dirname=/storage/ofd_packets [19:25:29]CheckFolder done [19:25:29]ProducePacketName [19:25:29]name=ofd_packets/00082253 [19:25:29]NVStorageSaveData ofd_packets/00082253 [19:25:29]File name is /storage/ofd_packets/00082253 [19:25:29]Write 301 bytes [19:25:29]NVStorageSaveData done [19:25:29]OFDSenderStorePacket done [19:25:29]KKMCreateOFDPacket done [19:25:29]NVStorageSaveData kkm_last_timestamp [19:25:29]File name is /storage/kkm_last_timestamp [19:25:29]Write 4 bytes [19:25:29]NVStorageSaveData done [19:25:29]ExternCall_PrintAddStr [19:25:29]wPrintStart [19:25:29]Write to MH i2c: 01 00 00 31 00 31 [19:25:29]Write i2c OK [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: 01 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: 01 07 00 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [19:25:29]RasterBufferAndPrint [19:25:29]line Счет N : (1)918755 [19:25:29]OFD Sender: Processing packet 82253 [packets to send 254, broken 253] [19:25:29]ProducePacketName [19:25:29]name=ofd_packets/00082253 [19:25:29]OFD Sender: To server: pG, [19:25:29]CommunicateWithHost lk.salyk.kg:30040 [19:25:29]ConnectInit lk.salyk.kg [19:25:29]line ИНН: 02508201610067 [19:25:29]line Контрольно-Кассовый Чек [19:25:29]line ПРОДАЖА [19:25:29]line ТРК (МРК, ГНК) : 22 [19:25:29]line Товар: 2710124130 [19:25:29]line Аи-92-К-4 [19:25:29]line 2.990 * 66.90 [19:25:29]line = 200.03 [19:25:29]line НДС 12% НСП 1% [19:25:29]line > о реализуемом товаре [19:25:29]line ОКРУГЛЕНИЕ: -0.03 [19:25:29]line ИТОГО: 200.00 [19:25:29]line Внесено: 200.00 [19:25:29]line СДАЧА: 0.00 [19:25:29]line НСП 1% : 1.77 [19:25:29]line НДС 12% : 21.24 [19:25:29]line Наличными: 200.00 [19:25:29]line Безнал.: 0.00 [19:25:29]line Место: АЗС № 114 "Партнер Нефть" [19:25:29]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [19:25:29]line СНО: Общий режим [19:25:29]line Чек 179 17.10.2024 19:25 [19:25:29]line Смена: 525 ФФД: 1.0 [19:25:29]line ЗНМ: 0300000086 [19:25:29]line РНМ: 0000000000091680 [19:25:29]line Версия ККМ: 001 [19:25:29]line ФМ: 0000000000871843 [19:25:29]line ФД: 82253 [19:25:29]line ФПД: 228858670756334 [19:25:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T192527&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82253&fm=228858670756334&tin=02508201610067®Number=0000000000091680&sum=20000 [19:25:29]written 0, free lines is 4095 [19:25:30]Write to MH i2c: 01 00 00 5C 00 5C [19:25:30]Write i2c OK [19:25:30]MH_I2C_Read... [19:25:30]Read from MH i2c: 01 [19:25:30]MH_I2C_Read... [19:25:30]Read from MH i2c: 01 07 00 [19:25:30]MH_I2C_Read... [19:25:30]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 DC 0C 4B [19:25:30]RasterBufferAndPrint [19:25:30]line [19:25:30]line [19:25:30]line [19:25:30]line [19:25:30]line [19:25:30]written 0, free lines is 3316 [19:25:30]MH_Cut [19:25:30]Write to MH i2c: D1 01 00 63 00 01 35 [19:25:30]Write i2c OK [19:25:30]MH_I2C_Read... [19:25:30]Read from MH i2c: D1 [19:25:30]MH_I2C_Read... [19:25:30]Read from MH i2c: D1 01 00 [19:25:30]MH_I2C_Read... [19:25:30]Read from MH i2c: D1 01 00 63 00 00 34 [19:25:30]Write to MH i2c: 01 00 00 64 00 64 [19:25:30]Write i2c OK [19:25:30]MH_I2C_Read... [19:25:30]*** Cut start [19:25:30]*** Partial cut [19:25:30]*** CUTSNS_PIN = 1 [19:25:30]*** CUTSNS_PIN = 0 [19:25:31]recv_with_timeout no data received [19:25:31]*** Brake cut motor [19:25:31]Read from MH i2c: 01 [19:25:31]MH_I2C_Read... [19:25:31]*** Stop cut motor [19:25:31]*** Cut end [19:25:31]Read from MH i2c: 01 07 00 [19:25:31]MH_I2C_Read... [19:25:31]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [19:25:31]process_action close_receipt done [19:25:31]requested_data is exist [19:25:31]produce_requested_data [19:25:31]requested_item fm.sn is exist - process it [19:25:31]wFMCommunicate request_size=4 [19:25:31]MH_SAM_APDU [19:25:31]CAPDU: 80 11 00 00 [19:25:31]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [19:25:31]Write i2c OK [19:25:31]MH_I2C_Read... [19:25:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:31]Read from MH i2c: E2 [19:25:31]MH_I2C_Read... [19:25:31]Read from MH i2c: E2 17 00 [19:25:31]MH_I2C_Read... [19:25:31]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 31 [19:25:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:25:31]wFMCommunicate OK [19:25:31]requested_item fd.num is exist - process it [19:25:31]SAM_PROTO_GetFieldsCounters [19:25:31]wFMCommunicate request_size=4 [19:25:31]MH_SAM_APDU [19:25:31]CAPDU: 80 13 00 00 [19:25:31]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [19:25:31]Write i2c OK [19:25:31]MH_I2C_Read... [19:25:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:25:31]Read from MH i2c: E2 [19:25:31]MH_I2C_Read... [19:25:31]Read from MH i2c: E2 62 00 [19:25:31]MH_I2C_Read... [19:25:31]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 4D 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [19:25:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 4D 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:25:31]wFMCommunicate OK [19:25:31]SAM_PROTO_GetFieldsCounters done [19:25:31]requested_item shift.num is exist - process it [19:25:31]requested_item shift.opened is exist - process it [19:25:31]req_shift_opened [19:25:31]FM_GetShiftState [19:25:31]SAM_PROTO_GetShiftState [19:25:31]wFMCommunicate request_size=4 [19:25:31]MH_SAM_APDU [19:25:31]CAPDU: 80 13 01 00 [19:25:31]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [19:25:31]Write i2c OK [19:25:31]MH_I2C_Read... [19:25:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:31]Read from MH i2c: E2 [19:25:31]MH_I2C_Read... [19:25:31]Read from MH i2c: E2 0E 00 [19:25:31]MH_I2C_Read... [19:25:31]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 EC [19:25:31]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [19:25:31]wFMCommunicate OK [19:25:31]SAM_PROTO_GetShiftState done [19:25:31]FM_GetShiftState done [19:25:31]req_shift_opened done [19:25:31]requested_item shift.open_date is exist - process it [19:25:31]req_shift_open_date [19:25:31]req_shift_open_date done [19:25:31]produce_requested_data done [19:25:31]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82253,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [19:25:31]process_action_free close_receipt [19:25:31]json_value_free [19:25:31]json_value_free done [19:25:31]process_json_proto returns [19:25:31]Send response to host [19:25:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82253,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [19:25:31]free response buf [19:25:31]execute_script done [19:25:31]execute_script returns [19:25:31]free content buf [19:25:31]Sock 9.Close socket [19:25:31]Sock 9.Thread stoped [19:25:34]Connected sock=11 [19:25:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 76 F6 07 01 65 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 A7 64 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4D 41 01 00 35 04 06 00 D0 25 4F C6 31 EE 8E 1E 91 93 CC 5D 15 55 [19:25:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 42 CD 47 00 DF 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4D 41 01 00 F4 03 04 00 EA 09 11 67 B6 04 01 00 00 0D D4 06 F1 44 AB 2A 7E [19:25:35]CommunicateWithHost err = 0 [19:25:35]CheckOFDResponse [19:25:35]1017 (14) - 77093643461234 [19:25:35]1041 (16) - 0000000000871843 [19:25:35]1040 (4) - 82253 [19:25:35]1012 (4) - 17.10.2024 12:58 [19:25:35]1206 (1) - 0 [19:25:35]OFD Sender: Remove packet 82253 [19:25:35]ProducePacketName [19:25:35]name=ofd_packets/00082253 [19:25:35]NVStorageDeleteData [19:25:36]OFD Sender: No OFD packet to send [19:25:41]OFD Sender: No OFD packet to send [19:25:46]OFD Sender: No OFD packet to send [19:25:51]OFD Sender: No OFD packet to send [19:25:52]recv_with_timeout no data received [19:25:56]OFD Sender: No OFD packet to send [19:26:01]OFD Sender: No OFD packet to send [19:26:06]OFD Sender: No OFD packet to send [19:26:08]accept exits with 7 [19:26:08]New connection [19:26:08]New thread 3066793316 created [19:26:08]Thread 3066936676 joined [19:26:08]Waiting for new connection... [19:26:08] Sock 7.Parse request [19:26:08]Sock 7.Check first char [19:26:08]Sock 7.First char is OK [19:26:08]request: POST /json_proto HTTP/1.0 [19:26:08]Method: POST [19:26:08]URL: /json_proto [19:26:08]Method is POST - this is cgi request [19:26:08]url: /json_proto [19:26:08]query_string will be loaded in cgi processing [19:26:08]execute_cgi json_proto POST (null) [19:26:08]execute_cgi path=json_proto method=POST [19:26:08]POST find Content-Length [19:26:08]Host: 172.17.44.67:8080 [19:26:08]Content-Length: 677 [19:26:08]Content-Type: application/json [19:26:08] [19:26:08]POST finish read [19:26:08]Found Content-Length = 677 [19:26:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:08]execute_script... [19:26:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:08]POST & json_proto [19:26:08]process_json_proto [19:26:08]json parsed OK: [19:26:08]protocol is kg_v1.0 [19:26:08]action value=close_receipt [19:26:08]process_action close_receipt [19:26:08]cmd_close_receipt [19:26:08]MH_GetDate [19:26:08]Write to MH i2c: F0 00 00 68 00 57 [19:26:08]Write i2c OK [19:26:08]MH_I2C_Read... [19:26:08]Read from MH i2c: F0 [19:26:08]MH_I2C_Read... [19:26:08]Read from MH i2c: F0 09 00 [19:26:08]MH_I2C_Read... [19:26:08]Read from MH i2c: F0 09 00 68 00 00 D0 64 11 67 F1 C7 6B 64 93 [19:26:08]GetLastDocTimeStamp 1729193127 [19:26:08]current date 1729193168 [19:26:08]FM_GetShiftState [19:26:08]SAM_PROTO_GetShiftState [19:26:08]wFMCommunicate request_size=4 [19:26:08]MH_SAM_APDU [19:26:08]CAPDU: 80 13 01 00 [19:26:08]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [19:26:08]Write i2c OK [19:26:08]MH_I2C_Read... [19:26:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:08]Read from MH i2c: E2 [19:26:08]MH_I2C_Read... [19:26:08]Read from MH i2c: E2 0E 00 [19:26:08]MH_I2C_Read... [19:26:08]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 EE [19:26:08]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [19:26:08]wFMCommunicate OK [19:26:08]SAM_PROTO_GetShiftState done [19:26:08]FM_GetShiftState done [19:26:08]opened in 1729125927 [19:26:08]opened+sec_in_day 1729212327 [19:26:08]quantity*price = 50041 [19:26:08]sum+1 = 50042 [19:26:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 180 17.10.2024 19:26 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82254 ФПД: 85039003855243 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T192608&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82254&fm=85039003855243&tin=02508201610067®Number=0000000000091680&sum=50000 [19:26:09]StoreToDocumentArchive [19:26:09]shift 525 fd 82254 [19:26:09]save to /storage/0525/doc_00082254 [19:26:09]save last doc name /storage/0525/doc_00082254 to /storage/kkm_last_doc_name [19:26:09]save OK [19:26:09]Clear old archive folders... [19:26:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:26:09]tlvbuf is 0032BB70 [19:26:09]SAM_PROTO_ClearQueue [19:26:09]wFMCommunicate request_size=4 [19:26:09]MH_SAM_APDU [19:26:09]CAPDU: 80 09 00 00 [19:26:09]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [19:26:09]Write i2c OK [19:26:09]MH_I2C_Read... [19:26:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:09]Read from MH i2c: E2 [19:26:09]MH_I2C_Read... [19:26:09]Read from MH i2c: E2 03 00 [19:26:09]MH_I2C_Read... [19:26:09]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [19:26:09]RAPDU: 90 00 [19:26:09]wFMCommunicate OK [19:26:09]SAM_PROTO_ClearQueue done [19:26:09]KKMCreateOFDPacket [19:26:09]OFDProtocolAddRootSTLVToBuf [19:26:09]FM_MakeSignedData [19:26:09]FM_MakeSignedData [19:26:09]SAM_PROTO_SignData [19:26:09]wFMCommunicate request_size=4 [19:26:09]MH_SAM_APDU [19:26:09]CAPDU: 80 0D 01 02 [19:26:09]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [19:26:09]Write i2c OK [19:26:09]MH_I2C_Read... [19:26:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:09]Read from MH i2c: E2 [19:26:09]MH_I2C_Read... [19:26:09]Read from MH i2c: E2 03 00 [19:26:09]MH_I2C_Read... [19:26:09]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [19:26:09]RAPDU: 90 00 [19:26:09]wFMCommunicate OK [19:26:09]wFMCommunicate request_size=255 [19:26:09]MH_SAM_APDU [19:26:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 D0 64 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4E 41 01 00 35 04 06 00 4D [19:26:09]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 D0 64 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4E 41 01 00 35 04 06 00 4D 00 00 C8 [19:26:09]Write i2c OK [19:26:09]MH_I2C_Read... [19:26:10]*** iso7816_exchange 80 0D 02 02... 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 78 00 00 90 00 EC [19:26:10]RAPDU: 90 00 [19:26:10]wFMCommunicate OK [19:26:10]wFMCommunicate request_size=10 [19:26:10]MH_SAM_APDU [19:26:10]CAPDU: 80 0D 02 02 05 57 AF 9D E9 8B [19:26:10]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 57 AF 9D E9 8B 00 00 14 [19:26:10]Write i2c OK [19:26:10]MH_I2C_Read... [19:26:10]*** iso7816_exchange 80 0D 02 02... 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 79 00 00 90 00 ED [19:26:10]RAPDU: 90 00 [19:26:10]wFMCommunicate OK [19:26:10]wFMCommunicate request_size=4 [19:26:10]MH_SAM_APDU [19:26:10]CAPDU: 80 0D 03 02 [19:26:10]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [19:26:10]Write i2c OK [19:26:10]MH_I2C_Read... [19:26:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:10]Read from MH i2c: E2 [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: E2 0B 00 [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: E2 0B 00 7A 00 00 32 05 76 33 C6 4E C2 FD 90 00 A9 [19:26:10]RAPDU: 32 05 76 33 C6 4E C2 FD 90 00 [19:26:10]wFMCommunicate OK [19:26:10]SAM_PROTO_SignData done [19:26:10]FM_MakeSignedData done [19:26:10]CreateOFDProtocolMessage [19:26:10]wFMCommunicate request_size=4 [19:26:10]MH_SAM_APDU [19:26:10]CAPDU: 80 11 00 00 [19:26:10]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [19:26:10]Write i2c OK [19:26:10]MH_I2C_Read... [19:26:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:10]Read from MH i2c: E2 [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: E2 17 00 [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 47 [19:26:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:26:10]wFMCommunicate OK [19:26:10]CreateOFDProtocolMessage done [19:26:10]OFDSenderStorePacket 82254 [19:26:10]StoreOFDPacket docnum=82254 [19:26:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 40 C3 07 01 8C 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 D0 64 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4E 41 01 00 35 04 06 00 4D 57 AF 9D E9 8B 32 05 76 33 C6 4E C2 FD [19:26:10]CheckFolder [19:26:10]dirname=/storage/ofd_packets [19:26:10]CheckFolder done [19:26:10]ProducePacketName [19:26:10]name=ofd_packets/00082254 [19:26:10]NVStorageSaveData ofd_packets/00082254 [19:26:10]File name is /storage/ofd_packets/00082254 [19:26:10]Write 301 bytes [19:26:10]NVStorageSaveData done [19:26:10]OFDSenderStorePacket done [19:26:10]KKMCreateOFDPacket done [19:26:10]NVStorageSaveData kkm_last_timestamp [19:26:10]File name is /storage/kkm_last_timestamp [19:26:10]Write 4 bytes [19:26:10]NVStorageSaveData done [19:26:10]ExternCall_PrintAddStr [19:26:10]wPrintStart [19:26:10]Write to MH i2c: 01 00 00 7C 00 7C [19:26:10]Write i2c OK [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: 01 [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: 01 07 00 [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [19:26:10]RasterBufferAndPrint [19:26:10]line Счет N : (1)918756 [19:26:10]line ИНН: 02508201610067 [19:26:10]line Контрольно-Кассовый Чек [19:26:10]line ПРОДАЖА [19:26:10]line ТРК (МРК, ГНК) : 22 [19:26:10]line Товар: 2710124130 [19:26:10]line Аи-92-К-4 [19:26:10]line 7.480 * 66.90 [19:26:10]line = 500.41 [19:26:10]line НДС 12% НСП 1% [19:26:10]line > о реализуемом товаре [19:26:10]line ОКРУГЛЕНИЕ: -0.41 [19:26:10]line ИТОГО: 500.00 [19:26:10]line Внесено: 500.00 [19:26:10]line СДАЧА: 0.00 [19:26:10]line НСП 1% : 4.43 [19:26:10]line НДС 12% : 53.14 [19:26:10]line Наличными: 500.00 [19:26:10]line Безнал.: 0.00 [19:26:10]line Место: АЗС № 114 "Партнер Нефть" [19:26:10]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [19:26:10]line СНО: Общий режим [19:26:10]line Чек 180 17.10.2024 19:26 [19:26:10]line Смена: 525 ФФД: 1.0 [19:26:10]line ЗНМ: 0300000086 [19:26:10]line РНМ: 0000000000091680 [19:26:10]line Версия ККМ: 001 [19:26:10]line ФМ: 0000000000871843 [19:26:10]line ФД: 82254 [19:26:10]line ФПД: 85039003855243 [19:26:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T192608&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82254&fm=85039003855243&tin=02508201610067®Number=0000000000091680&sum=50000 [19:26:10]OFD Sender: Processing packet 82254 [packets to send 254, broken 253] [19:26:10]ProducePacketName [19:26:10]name=ofd_packets/00082254 [19:26:10]OFD Sender: To server: pG, [19:26:10]CommunicateWithHost lk.salyk.kg:30040 [19:26:10]ConnectInit lk.salyk.kg [19:26:10]written 0, free lines is 4095 [19:26:10]Write to MH i2c: 01 00 00 A7 00 A7 [19:26:10]Write i2c OK [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: 01 [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: 01 07 00 [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 DD 0C 97 [19:26:10]RasterBufferAndPrint [19:26:10]line [19:26:10]line [19:26:10]line [19:26:10]line [19:26:10]line [19:26:10]written 0, free lines is 3305 [19:26:10]MH_Cut [19:26:10]Write to MH i2c: D1 01 00 AE 00 01 80 [19:26:10]Write i2c OK [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: D1 [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: D1 01 00 [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: D1 01 00 AE 00 00 7F [19:26:10]Write to MH i2c: 01 00 00 AF 00 AF [19:26:10]Write i2c OK [19:26:10]MH_I2C_Read... [19:26:11]*** Cut start [19:26:11]*** Partial cut [19:26:11]*** CUTSNS_PIN = 1 [19:26:11]*** CUTSNS_PIN = 0 [19:26:11]*** Brake cut motor [19:26:12]Read from MH i2c: 01 [19:26:12]MH_I2C_Read... [19:26:12]*** Stop cut motor [19:26:12]*** Cut end [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 AF 00 00 00 00 00 00 FF 0F C4 [19:26:12]process_action close_receipt done [19:26:12]requested_data is exist [19:26:12]produce_requested_data [19:26:12]requested_item fm.sn is exist - process it [19:26:12]wFMCommunicate request_size=4 [19:26:12]MH_SAM_APDU [19:26:12]CAPDU: 80 11 00 00 [19:26:12]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [19:26:12]Write i2c OK [19:26:12]MH_I2C_Read... [19:26:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:12]Read from MH i2c: E2 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: E2 17 00 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 7C [19:26:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:26:12]wFMCommunicate OK [19:26:12]requested_item fd.num is exist - process it [19:26:12]SAM_PROTO_GetFieldsCounters [19:26:12]wFMCommunicate request_size=4 [19:26:12]MH_SAM_APDU [19:26:12]CAPDU: 80 13 00 00 [19:26:12]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [19:26:12]Write i2c OK [19:26:12]MH_I2C_Read... [19:26:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:12]Read from MH i2c: E2 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: E2 62 00 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 4E 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [19:26:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 4E 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:26:12]wFMCommunicate OK [19:26:12]SAM_PROTO_GetFieldsCounters done [19:26:12]requested_item shift.num is exist - process it [19:26:12]requested_item shift.opened is exist - process it [19:26:12]req_shift_opened [19:26:12]FM_GetShiftState [19:26:12]SAM_PROTO_GetShiftState [19:26:12]wFMCommunicate request_size=4 [19:26:12]MH_SAM_APDU [19:26:12]CAPDU: 80 13 01 00 [19:26:12]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [19:26:12]Write i2c OK [19:26:12]MH_I2C_Read... [19:26:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:12]Read from MH i2c: E2 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: E2 0E 00 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 37 [19:26:12]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [19:26:12]wFMCommunicate OK [19:26:12]SAM_PROTO_GetShiftState done [19:26:12]FM_GetShiftState done [19:26:12]req_shift_opened done [19:26:12]requested_item shift.open_date is exist - process it [19:26:12]req_shift_open_date [19:26:12]req_shift_open_date done [19:26:12]produce_requested_data done [19:26:12]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82254,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [19:26:12]process_action_free close_receipt [19:26:12]json_value_free [19:26:12]json_value_free done [19:26:12]process_json_proto returns [19:26:12]Send response to host [19:26:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82254,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [19:26:12]free response buf [19:26:12]execute_script done [19:26:12]execute_script returns [19:26:12]free content buf [19:26:12]Sock 7.Close socket [19:26:12]Sock 7.Thread stoped [19:26:12]Connected sock=11 [19:26:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 40 C3 07 01 8C 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 D0 64 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4E 41 01 00 35 04 06 00 4D 57 AF 9D E9 8B 32 05 76 33 C6 4E C2 FD [19:26:13]recv_with_timeout no data received [19:26:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 FF D6 47 00 98 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4E 41 01 00 F4 03 04 00 10 0A 11 67 B6 04 01 00 00 BC E3 39 07 B1 6F 7E 6D [19:26:15]CommunicateWithHost err = 0 [19:26:15]CheckOFDResponse [19:26:15]1017 (14) - 77093643461234 [19:26:15]1041 (16) - 0000000000871843 [19:26:15]1040 (4) - 82254 [19:26:15]1012 (4) - 17.10.2024 12:58 [19:26:15]1206 (1) - 0 [19:26:15]OFD Sender: Remove packet 82254 [19:26:15]ProducePacketName [19:26:15]name=ofd_packets/00082254 [19:26:15]NVStorageDeleteData [19:26:15]OFD Sender: No OFD packet to send [19:26:20]OFD Sender: No OFD packet to send [19:26:23]recv_with_timeout no data received [19:26:25]OFD Sender: No OFD packet to send [19:26:30]OFD Sender: No OFD packet to send [19:26:35]OFD Sender: No OFD packet to send [19:26:40]recv_with_timeout no data received [19:26:40]OFD Sender: No OFD packet to send [19:26:45]OFD Sender: No OFD packet to send [19:26:50]OFD Sender: No OFD packet to send [19:26:51]recv_with_timeout no data received [19:26:55]OFD Sender: No OFD packet to send [19:27:00]OFD Sender: No OFD packet to send [19:27:01]recv_with_timeout no data received [19:27:05]OFD Sender: No OFD packet to send [19:27:10]OFD Sender: No OFD packet to send [19:27:13]recv_with_timeout no data received [19:27:15]OFD Sender: No OFD packet to send [19:27:20]OFD Sender: No OFD packet to send [19:27:24]recv_with_timeout no data received [19:27:25]OFD Sender: No OFD packet to send [19:27:30]OFD Sender: No OFD packet to send [19:27:35]OFD Sender: No OFD packet to send [19:27:40]OFD Sender: No OFD packet to send [19:27:45]OFD Sender: No OFD packet to send [19:27:50]OFD Sender: No OFD packet to send [19:27:55]OFD Sender: No OFD packet to send [19:28:00]OFD Sender: No OFD packet to send [19:28:05]OFD Sender: No OFD packet to send [19:28:10]OFD Sender: No OFD packet to send [19:28:15]OFD Sender: No OFD packet to send [19:28:20]OFD Sender: No OFD packet to send [19:28:25]OFD Sender: No OFD packet to send [19:28:28]recv_with_timeout no data received [19:28:30]OFD Sender: No OFD packet to send [19:28:35]OFD Sender: No OFD packet to send [19:28:40]OFD Sender: No OFD packet to send [19:28:45]OFD Sender: No OFD packet to send [19:28:50]OFD Sender: No OFD packet to send [19:28:55]OFD Sender: No OFD packet to send [19:29:00]OFD Sender: No OFD packet to send [19:29:05]OFD Sender: No OFD packet to send [19:29:10]OFD Sender: No OFD packet to send [19:29:15]OFD Sender: No OFD packet to send [19:29:20]OFD Sender: No OFD packet to send [19:29:25]OFD Sender: No OFD packet to send [19:29:30]OFD Sender: No OFD packet to send [19:29:35]OFD Sender: No OFD packet to send [19:29:40]OFD Sender: No OFD packet to send [19:29:45]OFD Sender: No OFD packet to send [19:29:51]OFD Sender: No OFD packet to send [19:29:56]OFD Sender: No OFD packet to send [19:30:01]OFD Sender: No OFD packet to send [19:30:06]OFD Sender: No OFD packet to send [19:30:11]OFD Sender: No OFD packet to send [19:30:16]OFD Sender: No OFD packet to send [19:30:21]OFD Sender: No OFD packet to send [19:30:26]OFD Sender: No OFD packet to send [19:30:31]OFD Sender: No OFD packet to send [19:30:34]accept exits with 10 [19:30:34]New connection [19:30:34]New thread 3066936676 created [19:30:34]Thread 3066793316 joined [19:30:34]Waiting for new connection... [19:30:34] Sock 10.Parse request [19:30:34]Sock 10.Check first char [19:30:34]Sock 10.First char is OK [19:30:34]request: POST /json_proto HTTP/1.0 [19:30:34]Method: POST [19:30:34]URL: /json_proto [19:30:34]Method is POST - this is cgi request [19:30:34]url: /json_proto [19:30:34]query_string will be loaded in cgi processing [19:30:34]execute_cgi json_proto POST (null) [19:30:34]execute_cgi path=json_proto method=POST [19:30:34]POST find Content-Length [19:30:34]Host: 172.17.44.67:8080 [19:30:34]Content-Length: 677 [19:30:34]Content-Type: application/json [19:30:34] [19:30:34]POST finish read [19:30:34]Found Content-Length = 677 [19:30:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:34]execute_script... [19:30:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:34]POST & json_proto [19:30:34]process_json_proto [19:30:34]json parsed OK: [19:30:34]protocol is kg_v1.0 [19:30:34]action value=close_receipt [19:30:34]process_action close_receipt [19:30:34]cmd_close_receipt [19:30:34]MH_GetDate [19:30:34]Write to MH i2c: F0 00 00 B3 00 A2 [19:30:34]Write i2c OK [19:30:34]MH_I2C_Read... [19:30:34]Read from MH i2c: F0 [19:30:34]MH_I2C_Read... [19:30:34]Read from MH i2c: F0 09 00 [19:30:34]MH_I2C_Read... [19:30:34]Read from MH i2c: F0 09 00 B3 00 00 DB 65 11 67 F1 C7 6B 64 EA [19:30:34]GetLastDocTimeStamp 1729193168 [19:30:34]current date 1729193435 [19:30:34]FM_GetShiftState [19:30:34]SAM_PROTO_GetShiftState [19:30:34]wFMCommunicate request_size=4 [19:30:34]MH_SAM_APDU [19:30:34]CAPDU: 80 13 01 00 [19:30:34]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [19:30:34]Write i2c OK [19:30:34]MH_I2C_Read... [19:30:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:34]Read from MH i2c: E2 [19:30:34]MH_I2C_Read... [19:30:34]Read from MH i2c: E2 0E 00 [19:30:34]MH_I2C_Read... [19:30:34]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 39 [19:30:34]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [19:30:34]wFMCommunicate OK [19:30:34]SAM_PROTO_GetShiftState done [19:30:34]FM_GetShiftState done [19:30:34]opened in 1729125927 [19:30:34]opened+sec_in_day 1729212327 [19:30:34]quantity*price = 30051 [19:30:34]sum+1 = 30052 [19:30:34]Check (price>sum+1) || (price+1 о реализуемом товаре [19:30:36]line ОКРУГЛЕНИЕ: -0.51 [19:30:36]line ИТОГО: 300.00 [19:30:36]line Внесено: 300.00 [19:30:36]line СДАЧА: 0.00 [19:30:36]line НСП 1% : 2.66 [19:30:36]line НДС 12% : 31.91 [19:30:36]line Наличными: 300.00 [19:30:36]line Безнал.: 0.00 [19:30:36]line Место: АЗС № 114 "Партнер Нефть" [19:30:36]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [19:30:36]line СНО: Общий режим [19:30:36]line Чек 181 17.10.2024 19:30 [19:30:36]line Смена: 525 ФФД: 1.0 [19:30:36]line ЗНМ: 0300000086 [19:30:36]line РНМ: 0000000000091680 [19:30:36]line Версия ККМ: 001 [19:30:36]line ФМ: 0000000000871843 [19:30:36]line ФД: 82255 [19:30:36]line ФПД: 89060482651106 [19:30:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T193035&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82255&fm=89060482651106&tin=02508201610067®Number=0000000000091680&sum=30000 [19:30:36]OFD Sender: Processing packet 82255 [packets to send 254, broken 253] [19:30:36]ProducePacketName [19:30:36]name=ofd_packets/00082255 [19:30:36]OFD Sender: To server: pG, [19:30:36]CommunicateWithHost lk.salyk.kg:30040 [19:30:36]ConnectInit lk.salyk.kg [19:30:36]written 0, free lines is 4095 [19:30:37]Write to MH i2c: 01 00 00 F2 00 F2 [19:30:37]Write i2c OK [19:30:37]MH_I2C_Read... [19:30:37]Read from MH i2c: 01 [19:30:37]MH_I2C_Read... [19:30:37]Read from MH i2c: 01 07 00 [19:30:37]MH_I2C_Read... [19:30:37]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 D4 0C D9 [19:30:37]RasterBufferAndPrint [19:30:37]line [19:30:37]line [19:30:37]line [19:30:37]line [19:30:37]line [19:30:37]written 0, free lines is 3292 [19:30:37]MH_Cut [19:30:37]Write to MH i2c: D1 01 00 F9 00 01 CB [19:30:37]Write i2c OK [19:30:37]MH_I2C_Read... [19:30:37]Read from MH i2c: D1 [19:30:37]MH_I2C_Read... [19:30:37]Read from MH i2c: D1 01 00 [19:30:37]MH_I2C_Read... [19:30:37]Read from MH i2c: D1 01 00 F9 00 00 CA [19:30:37]Write to MH i2c: 01 00 00 FA 00 FA [19:30:37]Write i2c OK [19:30:37]MH_I2C_Read... [19:30:37]Connected sock=7 [19:30:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 2B 94 07 01 98 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 DB 65 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4F 41 01 00 35 04 06 00 51 00 02 6E 93 E2 E9 59 C1 01 96 5A 1A 1E [19:30:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 33 46 47 00 55 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4F 41 01 00 F4 03 04 00 18 0B 11 67 B6 04 01 00 00 97 6A 07 43 58 43 F7 2D [19:30:37]CommunicateWithHost err = 0 [19:30:37]CheckOFDResponse [19:30:37]1017 (14) - 77093643461234 [19:30:37]1041 (16) - 0000000000871843 [19:30:37]1040 (4) - 82255 [19:30:37]1012 (4) - 17.10.2024 13:03 [19:30:37]1206 (1) - 0 [19:30:37]OFD Sender: Remove packet 82255 [19:30:37]ProducePacketName [19:30:37]name=ofd_packets/00082255 [19:30:37]NVStorageDeleteData [19:30:38]*** Cut start [19:30:38]*** Partial cut [19:30:38]*** CUTSNS_PIN = 1 [19:30:38]*** CUTSNS_PIN = 0 [19:30:38]OFD Sender: No OFD packet to send [19:30:38]*** Brake cut motor [19:30:38]Read from MH i2c: 01 [19:30:38]MH_I2C_Read... [19:30:38]*** Stop cut motor [19:30:38]*** Cut end [19:30:38]Read from MH i2c: 01 07 00 [19:30:38]MH_I2C_Read... [19:30:38]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [19:30:38]process_action close_receipt done [19:30:38]requested_data is exist [19:30:38]produce_requested_data [19:30:38]requested_item fm.sn is exist - process it [19:30:38]wFMCommunicate request_size=4 [19:30:38]MH_SAM_APDU [19:30:38]CAPDU: 80 11 00 00 [19:30:38]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [19:30:38]Write i2c OK [19:30:38]MH_I2C_Read... [19:30:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:38]Read from MH i2c: E2 [19:30:38]MH_I2C_Read... [19:30:38]Read from MH i2c: E2 17 00 [19:30:38]MH_I2C_Read... [19:30:38]Read from MH i2c: E2 17 00 FB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C7 [19:30:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:30:38]wFMCommunicate OK [19:30:38]requested_item fd.num is exist - process it [19:30:38]SAM_PROTO_GetFieldsCounters [19:30:38]wFMCommunicate request_size=4 [19:30:38]MH_SAM_APDU [19:30:38]CAPDU: 80 13 00 00 [19:30:38]Write to MH i2c: E2 08 00 FC 00 80 13 00 00 00 00 00 00 78 [19:30:38]Write i2c OK [19:30:38]MH_I2C_Read... [19:30:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:38]Read from MH i2c: E2 [19:30:38]MH_I2C_Read... [19:30:38]Read from MH i2c: E2 62 00 [19:30:38]MH_I2C_Read... [19:30:38]Read from MH i2c: E2 62 00 FC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 4F 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [19:30:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 4F 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:30:38]wFMCommunicate OK [19:30:38]SAM_PROTO_GetFieldsCounters done [19:30:38]requested_item shift.num is exist - process it [19:30:38]requested_item shift.opened is exist - process it [19:30:38]req_shift_opened [19:30:38]FM_GetShiftState [19:30:38]SAM_PROTO_GetShiftState [19:30:38]wFMCommunicate request_size=4 [19:30:38]MH_SAM_APDU [19:30:38]CAPDU: 80 13 01 00 [19:30:38]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [19:30:38]Write i2c OK [19:30:38]MH_I2C_Read... [19:30:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:39]Read from MH i2c: E2 [19:30:39]MH_I2C_Read... [19:30:39]Read from MH i2c: E2 0E 00 [19:30:39]MH_I2C_Read... [19:30:39]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 82 [19:30:39]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [19:30:39]wFMCommunicate OK [19:30:39]SAM_PROTO_GetShiftState done [19:30:39]FM_GetShiftState done [19:30:39]req_shift_opened done [19:30:39]requested_item shift.open_date is exist - process it [19:30:39]req_shift_open_date [19:30:39]req_shift_open_date done [19:30:39]produce_requested_data done [19:30:39]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82255,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [19:30:39]process_action_free close_receipt [19:30:39]json_value_free [19:30:39]json_value_free done [19:30:39]process_json_proto returns [19:30:39]Send response to host 00 DB 65 11 67 [19:30:35]Write to MH i2c: E2 10 00 BD 00 80 15 02 00 08 00 F4 03 04 00 DB 65 11 67 00 00 00 [19:30:35]Write i2c OK [19:30:35]MH_I2C_Read... [19:30:35]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [19:30:35]Read from MH i2c: E2 [19:30:35]MH_I2C_Read... [19:30:35]Read from MH i2c: E2 03 00 [19:30:35]MH_I2C_Read... [19:30:35]Read from MH i2c: E2 03 00 BD 00 00 90 00 31 [19:30:35]RAPDU: 90 00 [19:30:35]wFMCommunicate OK [19:30:35]wFMCommunicate request_size=25 [19:30:35]MH_SAM_APDU [19:30:35]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 [19:30:35]Write to MH i2c: E2 1C 00 BE 00 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 00 00 9F [19:30:35]Write i2c OK [19:30:35]MH_I2C_Read... [19:30:35]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [19:30:35]Read from MH i2c: E2 [19:30:35]MH_I2C_Read... [19:30:35]Read from MH i2c: E2 03 00 [19:30:35]MH_I2C_Read... [19:30:35]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [19:30:35]RAPDU: 90 00 [19:30:35]wFMCommunicate OK [19:30:35]wFMCommunicate request_size=4 [19:30:35]MH_SAM_APDU [19:30:35]CAPDU: 80 15 03 00 [19:30:35]Write to MH i2c: E2 08 00 BF 00 80 15 03 00 00 00 00 00 40 [19:30:35]Write i2c OK [19:30:35]MH_I2C_Read... [19:30:35]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [19:30:35]Read from MH i2c: E2 [19:30:35]MH_I2C_Read... [19:30:35]Read from MH i2c: E2 40 00 [19:30:35]MH_I2C_Read... [19:30:35]Read from MH i2c: E2 40 00 BF 00 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4F 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 B5 00 00 00 35 04 06 00 51 00 02 6E 93 E2 90 00 C0 [19:30:35]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4F 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 B5 00 00 00 35 04 06 00 51 00 02 6E 93 E2 90 00 [19:30:35]wFMCommunicate OK [19:30:35]SAM_PROTO_ProcessDocument answer len = 59 [19:30:35]SAM_PROTO_ProcessDocument done [19:30:35]SetTLVBufToDocument [19:30:35]Processing tag 1209 (04B9) [19:30:35]Malloc new data [19:30:35]Processing tag 1041 (0411) [19:30:35]Processing tag 1040 (0410) [19:30:35]Malloc new data [19:30:35]Processing tag 1038 (040E) [19:30:35]Malloc new data [19:30:35]Processing tag 1042 (0412) [19:30:35]Malloc new data [19:30:35]Processing tag 1077 (0435) [19:30:35]Malloc new data [19:30:35]SetTLVBufToDocument err=0 [19:30:35]KKMLoadAndSignReceiptData store KKM data [19:30:35]KKMLoadAndSignReceiptData err=0 [19:30:35]wFMCommunicate request_size=4 [19:30:35]MH_SAM_APDU [19:30:35]CAPDU: 80 11 00 00 [19:30:35]Write to MH i2c: E2 08 00 C0 00 80 11 00 00 00 00 00 00 3A [19:30:35]Write i2c OK [19:30:35]MH_I2C_Read... [19:30:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:36]Read from MH i2c: E2 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 17 00 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 17 00 C0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 8C [19:30:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:30:36]wFMCommunicate OK [19:30:36]Счет N : (1)918757 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 12 Товар: 2710124500 Аи-95-К-5 4.050 * 74.20 = 300.51 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 181 17.10.2024 19:30 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82255 ФПД: 89060482651106 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T193035&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82255&fm=89060482651106&tin=02508201610067®Number=0000000000091680&sum=30000 [19:30:36]StoreToDocumentArchive [19:30:36]shift 525 fd 82255 [19:30:36]save to /storage/0525/doc_00082255 [19:30:36]save last doc name /storage/0525/doc_00082255 to /storage/kkm_last_doc_name [19:30:36]save OK [19:30:36]Clear old archive folders... [19:30:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:30:36]tlvbuf is 003A9470 [19:30:36]SAM_PROTO_ClearQueue [19:30:36]wFMCommunicate request_size=4 [19:30:36]MH_SAM_APDU [19:30:36]CAPDU: 80 09 00 00 [19:30:36]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [19:30:36]Write i2c OK [19:30:36]MH_I2C_Read... [19:30:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:30:36]Read from MH i2c: E2 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 03 00 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [19:30:36]RAPDU: 90 00 [19:30:36]wFMCommunicate OK [19:30:36]SAM_PROTO_ClearQueue done [19:30:36]KKMCreateOFDPacket [19:30:36]OFDProtocolAddRootSTLVToBuf [19:30:36]FM_MakeSignedData [19:30:36]FM_MakeSignedData [19:30:36]SAM_PROTO_SignData [19:30:36]wFMCommunicate request_size=4 [19:30:36]MH_SAM_APDU [19:30:36]CAPDU: 80 0D 01 02 [19:30:36]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [19:30:36]Write i2c OK [19:30:36]MH_I2C_Read... [19:30:36]OFD Sender: No OFD packet to send [19:30:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:30:36]Read from MH i2c: E2 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 03 00 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [19:30:36]RAPDU: 90 00 [19:30:36]wFMCommunicate OK [19:30:36]wFMCommunicate request_size=255 [19:30:36]MH_SAM_APDU [19:30:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 DB 65 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4F 41 01 00 35 04 06 00 51 [19:30:36]Write to MH i2c: E2 02 01 C3 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 DB 65 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 4F 41 01 00 35 04 06 00 51 00 00 4E [19:30:36]Write i2c OK [19:30:36]MH_I2C_Read... [19:30:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:36]Read from MH i2c: E2 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 03 00 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [19:30:36]RAPDU: 90 00 [19:30:36]wFMCommunicate OK [19:30:36]wFMCommunicate request_size=10 [19:30:36]MH_SAM_APDU [19:30:36]CAPDU: 80 0D 02 02 05 00 02 6E 93 E2 [19:30:36]Write to MH i2c: E2 0D 00 C4 00 80 0D 02 02 05 00 00 02 6E 93 E2 00 00 2D [19:30:36]Write i2c OK [19:30:36]MH_I2C_Read... [19:30:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:36]Read from MH i2c: E2 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 03 00 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [19:30:36]RAPDU: 90 00 [19:30:36]wFMCommunicate OK [19:30:36]wFMCommunicate request_size=4 [19:30:36]MH_SAM_APDU [19:30:36]CAPDU: 80 0D 03 02 [19:30:36]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [19:30:36]Write i2c OK [19:30:36]MH_I2C_Read... [19:30:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:30:36]Read from MH i2c: E2 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 0B 00 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 0B 00 C5 00 00 E9 59 C1 01 96 5A 1A 1E 90 00 6D [19:30:36]RAPDU: E9 59 C1 01 96 5A 1A 1E 90 00 [19:30:36]wFMCommunicate OK [19:30:36]SAM_PROTO_SignData done [19:30:36]FM_MakeSignedData done [19:30:36]CreateOFDProtocolMessage [19:30:36]wFMCommunicate request_size=4 [19:30:36]MH_SAM_APDU [19:30:36]CAPDU: 80 11 00 00 [19:30:36]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [19:30:36]Write i2c OK [19:30:36]MH_I2C_Read... [19:30:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:36]Read from MH i2c: E2 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 17 00 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 17 00 C6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 92 [19:30:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:30:36]wFMCommunicate OK [19:30:36]CreateOFDProtocolMessage done [19:30:36]OFDSenderStorePacket 82255 [19:30:36]StoreOFDPacket docnum=82255 [19:30:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82255,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [19:30:39]free response buf [19:30:39]execute_script done [19:30:39]execute_script returns [19:30:39]free content buf [19:30:39]Sock 10.Close socket [19:30:39]Sock 10.Thread stoped [19:30:43]OFD Sender: No OFD packet to send [19:30:46]recv_with_timeout no data received [19:30:48]OFD Sender: No OFD packet to send [19:30:53]OFD Sender: No OFD packet to send [19:30:56]recv_with_timeout no data received [19:30:58]OFD Sender: No OFD packet to send [19:31:03]OFD Sender: No OFD packet to send [19:31:08]OFD Sender: No OFD packet to send [19:31:13]OFD Sender: No OFD packet to send [19:31:18]OFD Sender: No OFD packet to send [19:31:23]OFD Sender: No OFD packet to send [19:31:28]OFD Sender: No OFD packet to send [19:31:33]OFD Sender: No OFD packet to send [19:31:38]OFD Sender: No OFD packet to send [19:31:43]OFD Sender: No OFD packet to send [19:31:48]OFD Sender: No OFD packet to send [19:31:53]OFD Sender: No OFD packet to send [19:31:58]OFD Sender: No OFD packet to send [19:32:03]OFD Sender: No OFD packet to send [19:32:08]OFD Sender: No OFD packet to send [19:32:13]OFD Sender: No OFD packet to send [19:32:18]OFD Sender: No OFD packet to send [19:32:23]OFD Sender: No OFD packet to send [19:32:28]OFD Sender: No OFD packet to send [19:32:33]OFD Sender: No OFD packet to send [19:32:38]OFD Sender: No OFD packet to send [19:32:43]OFD Sender: No OFD packet to send [19:32:48]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:38]OFD Sender: No OFD packet to send [19:34:43]OFD Sender: No OFD packet to send [19:34:48]OFD Sender: No OFD packet to send [19:34:53]OFD Sender: No OFD packet to send [19:34:58]OFD Sender: No OFD packet to send [19:35:03]OFD Sender: No OFD packet to send [19:35:08]OFD Sender: No OFD packet to send [19:35:13]OFD Sender: No OFD packet to send [19:35:18]OFD Sender: No OFD packet to send [19:35:23]OFD Sender: No OFD packet to send [19:35:28]OFD Sender: No OFD packet to send [19:35:33]OFD Sender: No OFD packet to send [19:35:38]OFD Sender: No OFD packet to send [19:35:43]OFD Sender: No OFD packet to send [19:35:48]OFD Sender: No OFD packet to send [19:35:53]OFD Sender: No OFD packet to send [19:35:58]OFD Sender: No OFD packet to send [19:36:03]OFD Sender: No OFD packet to send [19:36:05]accept exits with 9 [19:36:05]New connection [19:36:05]New thread 3066793316 created [19:36:05]Thread 3066936676 joined [19:36:05]Waiting for new connection... [19:36:05] Sock 9.Parse request [19:36:05]Sock 9.Check first char [19:36:05]Sock 9.First char is OK [19:36:05]request: POST /json_proto HTTP/1.0 [19:36:05]Method: POST [19:36:05]URL: /json_proto [19:36:05]Method is POST - this is cgi request [19:36:05]url: /json_proto [19:36:05]query_string will be loaded in cgi processing [19:36:05]execute_cgi json_proto POST (null) [19:36:05]execute_cgi path=json_proto method=POST [19:36:05]POST find Content-Length [19:36:05]Host: 172.17.44.67:8080 [19:36:05]Content-Length: 677 [19:36:05]Content-Type: application/json [19:36:05] [19:36:05]POST finish read [19:36:05]Found Content-Length = 677 [19:36:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:05]execute_script... [19:36:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:05]POST & json_proto [19:36:05]process_json_proto [19:36:05]json parsed OK: [19:36:05]protocol is kg_v1.0 [19:36:05]action value=close_receipt [19:36:05]process_action close_receipt [19:36:05]cmd_close_receipt [19:36:05]MH_GetDate [19:36:05]Write to MH i2c: F0 00 00 FE 00 ED [19:36:05]Write i2c OK [19:36:05]MH_I2C_Read... [19:36:05]Read from MH i2c: F0 [19:36:05]MH_I2C_Read... [19:36:05]Read from MH i2c: F0 09 00 [19:36:05]MH_I2C_Read... [19:36:05]Read from MH i2c: F0 09 00 FE 00 00 25 67 11 67 F1 C7 6B 64 81 [19:36:05]GetLastDocTimeStamp 1729193435 [19:36:05]current date 1729193765 [19:36:05]FM_GetShiftState [19:36:05]SAM_PROTO_GetShiftState [19:36:05]wFMCommunicate request_size=4 [19:36:05]MH_SAM_APDU [19:36:05]CAPDU: 80 13 01 00 [19:36:05]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [19:36:05]Write i2c OK [19:36:05]MH_I2C_Read... [19:36:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:05]Read from MH i2c: E2 [19:36:05]MH_I2C_Read... [19:36:05]Read from MH i2c: E2 0E 00 [19:36:05]MH_I2C_Read... [19:36:05]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 84 [19:36:05]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [19:36:05]wFMCommunicate OK [19:36:05]SAM_PROTO_GetShiftState done [19:36:05]FM_GetShiftState done [19:36:05]opened in 1729125927 [19:36:05]opened+sec_in_day 1729212327 [19:36:05]quantity*price = 50010 [19:36:05]sum+1 = 50012 [19:36:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 182 17.10.2024 19:36 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82256 ФПД: 104994850013929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T193605&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82256&fm=104994850013929&tin=02508201610067®Number=0000000000091680&sum=50000 [19:36:06]StoreToDocumentArchive [19:36:06]shift 525 fd 82256 [19:36:06]save to /storage/0525/doc_00082256 [19:36:06]save last doc name /storage/0525/doc_00082256 to /storage/kkm_last_doc_name [19:36:06]save OK [19:36:06]Clear old archive folders... [19:36:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:36:06]tlvbuf is 003268F0 [19:36:06]SAM_PROTO_ClearQueue [19:36:06]wFMCommunicate request_size=4 [19:36:06]MH_SAM_APDU [19:36:06]CAPDU: 80 09 00 00 [19:36:06]Write to MH i2c: E2 08 00 0C 01 80 09 00 00 00 00 00 00 7F [19:36:06]Write i2c OK [19:36:06]MH_I2C_Read... [19:36:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:36:06]Read from MH i2c: E2 [19:36:06]MH_I2C_Read... [19:36:06]Read from MH i2c: E2 03 00 [19:36:06]MH_I2C_Read... [19:36:06]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [19:36:06]RAPDU: 90 00 [19:36:06]wFMCommunicate OK [19:36:06]SAM_PROTO_ClearQueue done [19:36:06]KKMCreateOFDPacket [19:36:06]OFDProtocolAddRootSTLVToBuf [19:36:06]FM_MakeSignedData [19:36:06]FM_MakeSignedData [19:36:06]SAM_PROTO_SignData [19:36:06]wFMCommunicate request_size=4 [19:36:06]MH_SAM_APDU [19:36:06]CAPDU: 80 0D 01 02 [19:36:06]Write to MH i2c: E2 08 00 0D 01 80 0D 01 02 00 00 00 00 87 [19:36:06]Write i2c OK [19:36:06]MH_I2C_Read... [19:36:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:36:06]Read from MH i2c: E2 [19:36:06]MH_I2C_Read... [19:36:06]Read from MH i2c: E2 03 00 [19:36:06]MH_I2C_Read... [19:36:06]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [19:36:06]RAPDU: 90 00 [19:36:06]wFMCommunicate OK [19:36:06]wFMCommunicate request_size=255 [19:36:06]MH_SAM_APDU [19:36:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 25 67 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 50 41 01 00 35 04 06 00 5F [19:36:06]Write to MH i2c: E2 02 01 0E 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 25 67 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 50 41 01 00 35 04 06 00 5F 00 00 A6 [19:36:06]Write i2c OK [19:36:06]MH_I2C_Read... [19:36:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:07]Read from MH i2c: E2 [19:36:07]MH_I2C_Read... [19:36:07]Read from MH i2c: E2 03 00 [19:36:07]MH_I2C_Read... [19:36:07]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [19:36:07]RAPDU: 90 00 [19:36:07]wFMCommunicate OK [19:36:07]wFMCommunicate request_size=10 [19:36:07]MH_SAM_APDU [19:36:07]CAPDU: 80 0D 02 02 05 7E 04 BD 02 E9 [19:36:07]Write to MH i2c: E2 0D 00 0F 01 80 0D 02 02 05 00 7E 04 BD 02 E9 00 00 BE [19:36:07]Write i2c OK [19:36:07]MH_I2C_Read... [19:36:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:07]Read from MH i2c: E2 [19:36:07]MH_I2C_Read... [19:36:07]Read from MH i2c: E2 03 00 [19:36:07]MH_I2C_Read... [19:36:07]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [19:36:07]RAPDU: 90 00 [19:36:07]wFMCommunicate OK [19:36:07]wFMCommunicate request_size=4 [19:36:07]MH_SAM_APDU [19:36:07]CAPDU: 80 0D 03 02 [19:36:07]Write to MH i2c: E2 08 00 10 01 80 0D 03 02 00 00 00 00 8C [19:36:07]Write i2c OK [19:36:07]MH_I2C_Read... [19:36:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:36:07]Read from MH i2c: E2 [19:36:07]MH_I2C_Read... [19:36:07]Read from MH i2c: E2 0B 00 [19:36:07]MH_I2C_Read... [19:36:07]Read from MH i2c: E2 0B 00 10 01 00 DE 5B E5 4E 0F D4 B5 5B 90 00 EC [19:36:07]RAPDU: DE 5B E5 4E 0F D4 B5 5B 90 00 [19:36:07]wFMCommunicate OK [19:36:07]SAM_PROTO_SignData done [19:36:07]FM_MakeSignedData done [19:36:07]CreateOFDProtocolMessage [19:36:07]wFMCommunicate request_size=4 [19:36:07]MH_SAM_APDU [19:36:07]CAPDU: 80 11 00 00 [19:36:07]Write to MH i2c: E2 08 00 11 01 80 11 00 00 00 00 00 00 8C [19:36:07]Write i2c OK [19:36:07]MH_I2C_Read... [19:36:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:07]Read from MH i2c: E2 [19:36:07]MH_I2C_Read... [19:36:07]Read from MH i2c: E2 17 00 [19:36:07]MH_I2C_Read... [19:36:07]Read from MH i2c: E2 17 00 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DE [19:36:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:36:07]wFMCommunicate OK [19:36:07]CreateOFDProtocolMessage done [19:36:07]OFDSenderStorePacket 82256 [19:36:07]StoreOFDPacket docnum=82256 [19:36:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 C9 BF 07 01 3C E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 25 67 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 50 41 01 00 35 04 06 00 5F 7E 04 BD 02 E9 DE 5B E5 4E 0F D4 B5 5B [19:36:07]CheckFolder [19:36:07]dirname=/storage/ofd_packets [19:36:07]CheckFolder done [19:36:07]ProducePacketName [19:36:07]name=ofd_packets/00082256 [19:36:07]NVStorageSaveData ofd_packets/00082256 [19:36:07]File name is /storage/ofd_packets/00082256 [19:36:07]Write 301 bytes [19:36:07]NVStorageSaveData done [19:36:07]OFDSenderStorePacket done [19:36:07]KKMCreateOFDPacket done [19:36:07]NVStorageSaveData kkm_last_timestamp [19:36:07]File name is /storage/kkm_last_timestamp [19:36:07]Write 4 bytes [19:36:07]NVStorageSaveData done [19:36:07]ExternCall_PrintAddStr [19:36:07]wPrintStart [19:36:07]Write to MH i2c: 01 00 00 12 01 13 [19:36:07]Write i2c OK [19:36:07]MH_I2C_Read... [19:36:07]Read from MH i2c: 01 [19:36:07]MH_I2C_Read... [19:36:07]Read from MH i2c: 01 07 00 [19:36:07]MH_I2C_Read... [19:36:07]Read from MH i2c: 01 07 00 12 01 00 00 00 00 00 FF 0F 28 [19:36:07]RasterBufferAndPrint [19:36:07]line Счет N : (1)918758 [19:36:07]line ИНН: 02508201610067 [19:36:07]line Контрольно-Кассовый Чек [19:36:07]line ПРОДАЖА [19:36:07]line ТРК (МРК, ГНК) : 12 [19:36:07]line Товар: 2710124500 [19:36:07]line Аи-95-К-5 [19:36:07]line 6.740 * 74.20 [19:36:07]line = 500.11 [19:36:07]line НДС 12% НСП 1% [19:36:07]line > о реализуемом товаре [19:36:07]line ОКРУГЛЕНИЕ: -0.11 [19:36:07]line ИТОГО: 500.00 [19:36:07]line Внесено: 500.00 [19:36:07]line СДАЧА: 0.00 [19:36:07]line НСП 1% : 4.43 [19:36:07]line НДС 12% : 53.11 [19:36:07]line Наличными: 500.00 [19:36:07]line Безнал.: 0.00 [19:36:07]line Место: АЗС № 114 "Партнер Нефть" [19:36:07]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [19:36:07]line СНО: Общий режим [19:36:07]line Чек 182 17.10.2024 19:36 [19:36:07]line Смена: 525 ФФД: 1.0 [19:36:07]line ЗНМ: 0300000086 [19:36:07]line РНМ: 0000000000091680 [19:36:07]line Версия ККМ: 001 [19:36:07]line ФМ: 0000000000871843 [19:36:07]line ФД: 82256 [19:36:07]line ФПД: 104994850013929 [19:36:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T193605&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82256&fm=104994850013929&tin=02508201610067®Number=0000000000091680&sum=50000 [19:36:07]OFD Sender: Processing packet 82256 [packets to send 254, broken 253] [19:36:07]ProducePacketName [19:36:07]name=ofd_packets/00082256 [19:36:07]OFD Sender: To server: pG, [19:36:07]CommunicateWithHost lk.salyk.kg:30040 [19:36:07]ConnectInit lk.salyk.kg [19:36:07]written 0, free lines is 4095 [19:36:08]Write to MH i2c: 01 00 00 3D 01 3E [19:36:08]Write i2c OK [19:36:08]MH_I2C_Read... [19:36:08]Read from MH i2c: 01 [19:36:08]MH_I2C_Read... [19:36:08]Read from MH i2c: 01 07 00 [19:36:08]MH_I2C_Read... [19:36:08]Read from MH i2c: 01 07 00 3D 01 00 00 00 00 00 D1 0C 22 [19:36:08]RasterBufferAndPrint [19:36:08]line [19:36:08]line [19:36:08]line [19:36:08]line [19:36:08]line [19:36:08]written 0, free lines is 3289 [19:36:08]MH_Cut [19:36:08]Write to MH i2c: D1 01 00 44 01 01 17 [19:36:08]Write i2c OK [19:36:08]MH_I2C_Read... [19:36:08]Read from MH i2c: D1 [19:36:08]MH_I2C_Read... [19:36:08]Read from MH i2c: D1 01 00 [19:36:08]MH_I2C_Read... [19:36:08]Read from MH i2c: D1 01 00 44 01 00 16 [19:36:08]Write to MH i2c: 01 00 00 45 01 46 [19:36:08]Write i2c OK [19:36:08]MH_I2C_Read... [19:36:08]*** Cut start [19:36:08]*** Partial cut [19:36:08]*** CUTSNS_PIN = 1 [19:36:08]*** CUTSNS_PIN = 0 [19:36:09]*** Brake cut motor [19:36:09]Read from MH i2c: 01 [19:36:09]MH_I2C_Read... [19:36:09]*** Stop cut motor [19:36:09]*** Cut end [19:36:09]Read from MH i2c: 01 07 00 [19:36:09]MH_I2C_Read... [19:36:09]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [19:36:09]process_action close_receipt done [19:36:09]requested_data is exist [19:36:09]produce_requested_data [19:36:09]requested_item fm.sn is exist - process it [19:36:09]wFMCommunicate request_size=4 [19:36:09]MH_SAM_APDU [19:36:09]CAPDU: 80 11 00 00 [19:36:09]Write to MH i2c: E2 08 00 46 01 80 11 00 00 00 00 00 00 C1 [19:36:09]Write i2c OK [19:36:09]MH_I2C_Read... [19:36:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:09]Read from MH i2c: E2 [19:36:09]MH_I2C_Read... [19:36:09]Read from MH i2c: E2 17 00 [19:36:09]MH_I2C_Read... [19:36:09]Read from MH i2c: E2 17 00 46 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 13 [19:36:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:36:09]wFMCommunicate OK [19:36:09]requested_item fd.num is exist - process it [19:36:09]SAM_PROTO_GetFieldsCounters [19:36:09]wFMCommunicate request_size=4 [19:36:09]MH_SAM_APDU [19:36:09]CAPDU: 80 13 00 00 [19:36:09]Write to MH i2c: E2 08 00 47 01 80 13 00 00 00 00 00 00 C4 [19:36:09]Write i2c OK [19:36:09]MH_I2C_Read... [19:36:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:36:09]Read from MH i2c: E2 [19:36:09]MH_I2C_Read... [19:36:09]Read from MH i2c: E2 62 00 [19:36:09]MH_I2C_Read... [19:36:09]Read from MH i2c: E2 62 00 47 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 50 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [19:36:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 50 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:36:09]wFMCommunicate OK [19:36:09]SAM_PROTO_GetFieldsCounters done [19:36:09]requested_item shift.num is exist - process it [19:36:09]requested_item shift.opened is exist - process it [19:36:09]req_shift_opened [19:36:09]FM_GetShiftState [19:36:09]SAM_PROTO_GetShiftState [19:36:09]wFMCommunicate request_size=4 [19:36:09]MH_SAM_APDU [19:36:09]CAPDU: 80 13 01 00 [19:36:09]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [19:36:09]Write i2c OK [19:36:09]MH_I2C_Read... [19:36:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:09]Read from MH i2c: E2 [19:36:09]MH_I2C_Read... [19:36:09]Read from MH i2c: E2 0E 00 [19:36:09]MH_I2C_Read... [19:36:09]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 CE [19:36:09]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [19:36:09]wFMCommunicate OK [19:36:09]SAM_PROTO_GetShiftState done [19:36:09]FM_GetShiftState done [19:36:09]req_shift_opened done [19:36:09]requested_item shift.open_date is exist - process it [19:36:09]req_shift_open_date [19:36:09]req_shift_open_date done [19:36:09]produce_requested_data done [19:36:09]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82256,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [19:36:09]process_action_free close_receipt [19:36:09]json_value_free [19:36:09]json_value_free done [19:36:09]process_json_proto returns [19:36:09]Send response to host [19:36:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82256,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [19:36:09]free response buf [19:36:09]execute_script done [19:36:09]execute_script returns [19:36:09]free content buf [19:36:09]Sock 9.Close socket [19:36:09]Sock 9.Thread stoped [19:36:12]ConnectInit Can't take IP for lk.salyk.kg [19:36:12]CommunicateWithHost connect error [19:36:12]CommunicateWithHost err = -1 [19:36:12]OFD Sender: Server communicate error [19:36:17]OFD Sender: Processing packet 82256 [packets to send 254, broken 253] [19:36:17]ProducePacketName [19:36:17]name=ofd_packets/00082256 [19:36:17]OFD Sender: To server: pG, [19:36:17]CommunicateWithHost lk.salyk.kg:30040 [19:36:17]ConnectInit lk.salyk.kg [19:36:22]ConnectInit Can't take IP for lk.salyk.kg [19:36:22]CommunicateWithHost connect error [19:36:22]CommunicateWithHost err = -1 [19:36:22]OFD Sender: Server communicate error [19:36:27]OFD Sender: Processing packet 82256 [packets to send 254, broken 253] [19:36:27]ProducePacketName [19:36:27]name=ofd_packets/00082256 [19:36:27]OFD Sender: To server: pG, [19:36:27]CommunicateWithHost lk.salyk.kg:30040 [19:36:27]ConnectInit lk.salyk.kg [19:36:32]ConnectInit Can't take IP for lk.salyk.kg [19:36:32]CommunicateWithHost connect error [19:36:32]CommunicateWithHost err = -1 [19:36:32]OFD Sender: Server communicate error [19:36:37]OFD Sender: Processing packet 82256 [packets to send 254, broken 253] [19:36:37]ProducePacketName [19:36:37]name=ofd_packets/00082256 [19:36:37]OFD Sender: To server: pG, [19:36:37]CommunicateWithHost lk.salyk.kg:30040 [19:36:37]ConnectInit lk.salyk.kg [19:36:42]ConnectInit Can't take IP for lk.salyk.kg [19:36:42]CommunicateWithHost connect error [19:36:42]CommunicateWithHost err = -1 [19:36:42]OFD Sender: Server communicate error [19:36:47]OFD Sender: Processing packet 82256 [packets to send 254, broken 253] [19:36:47]ProducePacketName [19:36:47]name=ofd_packets/00082256 [19:36:47]OFD Sender: To server: pG, [19:36:47]CommunicateWithHost lk.salyk.kg:30040 [19:36:47]ConnectInit lk.salyk.kg [19:36:52]ConnectInit Can't take IP for lk.salyk.kg [19:36:52]CommunicateWithHost connect error [19:36:52]CommunicateWithHost err = -1 [19:36:52]OFD Sender: Server communicate error [19:36:57]OFD Sender: Processing packet 82256 [packets to send 254, broken 253] [19:36:57]ProducePacketName [19:36:57]name=ofd_packets/00082256 [19:36:57]OFD Sender: To server: pG, [19:36:57]CommunicateWithHost lk.salyk.kg:30040 [19:36:57]ConnectInit lk.salyk.kg [19:36:58]Connected sock=7 [19:36:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 C9 BF 07 01 3C E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 25 67 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 50 41 01 00 35 04 06 00 5F 7E 04 BD 02 E9 DE 5B E5 4E 0F D4 B5 5B [19:36:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 D7 7A 47 00 1A ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 50 41 01 00 F4 03 04 00 95 0C 11 67 B6 04 01 00 00 E8 18 9C C5 BC A1 FA 87 [19:36:59]CommunicateWithHost err = 0 [19:36:59]CheckOFDResponse [19:36:59]1017 (14) - 77093643461234 [19:36:59]1041 (16) - 0000000000871843 [19:36:59]1040 (4) - 82256 [19:36:59]1012 (4) - 17.10.2024 13:09 [19:36:59]1206 (1) - 0 [19:36:59]OFD Sender: Remove packet 82256 [19:36:59]ProducePacketName [19:36:59]name=ofd_packets/00082256 [19:36:59]NVStorageDeleteData [19:36:59]OFD Sender: No OFD packet to send [19:37:04]OFD Sender: No OFD packet to send [19:37:09]OFD Sender: No OFD packet to send [19:37:14]OFD Sender: No OFD packet to send [19:37:19]OFD Sender: No OFD packet to send [19:37:24]OFD Sender: No OFD packet to send [19:37:29]OFD Sender: No OFD packet to send [19:37:34]OFD Sender: No OFD packet to send [19:37:39]OFD Sender: No OFD packet to send [19:37:44]OFD Sender: No OFD packet to send [19:37:49]OFD Sender: No OFD packet to send [19:37:54]OFD Sender: No OFD packet to send [19:37:59]OFD Sender: No OFD packet to send [19:38:04]OFD Sender: No OFD packet to send [19:38:09]OFD Sender: No OFD packet to send [19:38:14]OFD Sender: No OFD packet to send [19:38:19]OFD Sender: No OFD packet to send [19:38:24]OFD Sender: No OFD packet to send [19:38:29]OFD Sender: No OFD packet to send [19:38:34]OFD Sender: No OFD packet to send [19:38:39]OFD Sender: No OFD packet to send [19:38:44]OFD Sender: No OFD packet to send [19:38:49]OFD Sender: No OFD packet to send [19:38:54]OFD Sender: No OFD packet to send [19:38:59]OFD Sender: No OFD packet to send [19:39:04]OFD Sender: No OFD packet to send [19:39:09]OFD Sender: No OFD packet to send [19:39:14]OFD Sender: No OFD packet to send [19:39:19]OFD Sender: No OFD packet to send [19:39:24]OFD Sender: No OFD packet to send [19:39:29]OFD Sender: No OFD packet to send [19:39:34]OFD Sender: No OFD packet to send [19:39:39]OFD Sender: No OFD packet to send [19:39:44]OFD Sender: No OFD packet to send [19:39:49]OFD Sender: No OFD packet to send [19:39:54]OFD Sender: No OFD packet to send [19:39:59]OFD Sender: No OFD packet to send [19:40:04]OFD Sender: No OFD packet to send [19:40:09]OFD Sender: No OFD packet to send [19:40:14]OFD Sender: No OFD packet to send [19:40:19]OFD Sender: No OFD packet to send [19:40:24]OFD Sender: No OFD packet to send [19:40:29]OFD Sender: No OFD packet to send [19:40:34]OFD Sender: No OFD packet to send [19:40:39]OFD Sender: No OFD packet to send [19:40:44]OFD Sender: No OFD packet to send [19:40:49]OFD Sender: No OFD packet to send [19:40:54]OFD Sender: No OFD packet to send [19:40:59]OFD Sender: No OFD packet to send [19:41:05]OFD Sender: No OFD packet to send [19:41:10]OFD Sender: No OFD packet to send [19:41:15]OFD Sender: No OFD packet to send [19:41:20]OFD Sender: No OFD packet to send [19:41:25]OFD Sender: No OFD packet to send [19:41:30]OFD Sender: No OFD packet to send [19:41:35]OFD Sender: No OFD packet to send [19:41:40]OFD Sender: No OFD packet to send [19:41:45]OFD Sender: No OFD packet to send [19:41:50]OFD Sender: No OFD packet to send [19:41:55]OFD Sender: No OFD packet to send [19:42:00]OFD Sender: No OFD packet to send [19:42:05]OFD Sender: No OFD packet to send [19:42:10]OFD Sender: No OFD packet to send [19:42:15]OFD Sender: No OFD packet to send [19:42:20]OFD Sender: No OFD packet to send [19:42:25]OFD Sender: No OFD packet to send [19:42:30]OFD Sender: No OFD packet to send [19:42:35]OFD Sender: No OFD packet to send [19:42:40]OFD Sender: No OFD packet to send [19:42:45]OFD Sender: No OFD packet to send [19:42:50]OFD Sender: No OFD packet to send [19:42:55]OFD Sender: No OFD packet to send [19:43:00]OFD Sender: No OFD packet to send [19:43:05]OFD Sender: No OFD packet to send [19:43:10]OFD Sender: No OFD packet to send [19:43:15]OFD Sender: No OFD packet to send [19:43:20]OFD Sender: No OFD packet to send [19:43:25]OFD Sender: No OFD packet to send [19:43:30]OFD Sender: No OFD packet to send [19:43:35]OFD Sender: No OFD packet to send [19:43:40]OFD Sender: No OFD packet to send [19:43:45]OFD Sender: No OFD packet to send [19:43:50]OFD Sender: No OFD packet to send [19:43:55]OFD Sender: No OFD packet to send [19:44:00]OFD Sender: No OFD packet to send [19:44:05]OFD Sender: No OFD packet to send [19:44:10]OFD Sender: No OFD packet to send [19:44:15]OFD Sender: No OFD packet to send [19:44:20]OFD Sender: No OFD packet to send [19:44:25]OFD Sender: No OFD packet to send [19:44:30]OFD Sender: No OFD packet to send [19:44:35]OFD Sender: No OFD packet to send [19:44:40]OFD Sender: No OFD packet to send [19:44:45]OFD Sender: No OFD packet to send [19:44:50]OFD Sender: No OFD packet to send [19:44:55]OFD Sender: No OFD packet to send [19:45:00]OFD Sender: No OFD packet to send [19:45:05]OFD Sender: No OFD packet to send [19:45:10]OFD Sender: No OFD packet to send [19:45:15]OFD Sender: No OFD packet to send [19:45:20]OFD Sender: No OFD packet to send [19:45:25]OFD Sender: No OFD packet to send [19:45:30]OFD Sender: No OFD packet to send [19:45:35]OFD Sender: No OFD packet to send [19:45:40]OFD Sender: No OFD packet to send [19:45:45]OFD Sender: No OFD packet to send [19:45:50]OFD Sender: No OFD packet to send [19:45:55]OFD Sender: No OFD packet to send [19:46:00]OFD Sender: No OFD packet to send [19:46:05]OFD Sender: No OFD packet to send [19:46:10]OFD Sender: No OFD packet to send [19:46:15]OFD Sender: No OFD packet to send [19:46:20]OFD Sender: No OFD packet to send [19:46:25]OFD Sender: No OFD packet to send [19:46:30]OFD Sender: No OFD packet to send [19:46:35]OFD Sender: No OFD packet to send [19:46:40]OFD Sender: No OFD packet to send [19:46:45]OFD Sender: No OFD packet to send [19:46:50]OFD Sender: No OFD packet to send [19:46:55]OFD Sender: No OFD packet to send [19:47:00]OFD Sender: No OFD packet to send [19:47:05]OFD Sender: No OFD packet to send [19:47:10]OFD Sender: No OFD packet to send [19:47:15]OFD Sender: No OFD packet to send [19:47:20]OFD Sender: No OFD packet to send [19:47:25]OFD Sender: No OFD packet to send [19:47:30]OFD Sender: No OFD packet to send [19:47:35]OFD Sender: No OFD packet to send [19:47:40]OFD Sender: No OFD packet to send [19:47:45]OFD Sender: No OFD packet to send [19:47:50]OFD Sender: No OFD packet to send [19:47:55]OFD Sender: No OFD packet to send [19:48:00]OFD Sender: No OFD packet to send [19:48:05]OFD Sender: No OFD packet to send [19:48:10]OFD Sender: No OFD packet to send [19:48:15]OFD Sender: No OFD packet to send [19:48:20]OFD Sender: No OFD packet to send [19:48:25]OFD Sender: No OFD packet to send [19:48:30]OFD Sender: No OFD packet to send [19:48:35]OFD Sender: No OFD packet to send [19:48:40]OFD Sender: No OFD packet to send [19:48:45]OFD Sender: No OFD packet to send [19:48:50]OFD Sender: No OFD packet to send [19:48:55]OFD Sender: No OFD packet to send [19:49:00]OFD Sender: No OFD packet to send [19:49:05]OFD Sender: No OFD packet to send [19:49:10]OFD Sender: No OFD packet to send [19:49:13]accept exits with 10 [19:49:13]New connection [19:49:13]New thread 3066936676 created [19:49:13]Thread 3066793316 joined [19:49:13]Waiting for new connection... [19:49:13] Sock 10.Parse request [19:49:13]Sock 10.Check first char [19:49:13]Sock 10.First char is OK [19:49:13]request: POST /json_proto HTTP/1.0 [19:49:13]Method: POST [19:49:13]URL: /json_proto [19:49:13]Method is POST - this is cgi request [19:49:13]url: /json_proto [19:49:13]query_string will be loaded in cgi processing [19:49:13]execute_cgi json_proto POST (null) [19:49:13]execute_cgi path=json_proto method=POST [19:49:13]POST find Content-Length [19:49:13]Host: 172.17.44.67:8080 [19:49:13]Content-Length: 682 [19:49:13]Content-Type: application/json [19:49:13] [19:49:13]POST finish read [19:49:13]Found Content-Length = 682 [19:49:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:13]execute_script... [19:49:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:13]POST & json_proto [19:49:13]process_json_proto [19:49:13]json parsed OK: [19:49:13]protocol is kg_v1.0 [19:49:13]action value=close_receipt [19:49:13]process_action close_receipt [19:49:13]cmd_close_receipt [19:49:13]MH_GetDate [19:49:13]Write to MH i2c: F0 00 00 49 01 39 [19:49:13]Write i2c OK [19:49:13]MH_I2C_Read... [19:49:13]Read from MH i2c: F0 [19:49:13]MH_I2C_Read... [19:49:13]Read from MH i2c: F0 09 00 [19:49:13]MH_I2C_Read... [19:49:13]Read from MH i2c: F0 09 00 49 01 00 39 6A 11 67 F1 C7 6B 64 E4 [19:49:13]GetLastDocTimeStamp 1729193765 [19:49:13]current date 1729194553 [19:49:13]FM_GetShiftState [19:49:13]SAM_PROTO_GetShiftState [19:49:13]wFMCommunicate request_size=4 [19:49:13]MH_SAM_APDU [19:49:13]CAPDU: 80 13 01 00 [19:49:13]Write to MH i2c: E2 08 00 4A 01 80 13 01 00 00 00 00 00 C8 [19:49:13]Write i2c OK [19:49:13]MH_I2C_Read... [19:49:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:13]Read from MH i2c: E2 [19:49:13]MH_I2C_Read... [19:49:13]Read from MH i2c: E2 0E 00 [19:49:13]MH_I2C_Read... [19:49:13]Read from MH i2c: E2 0E 00 4A 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 D0 [19:49:13]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [19:49:13]wFMCommunicate OK [19:49:13]SAM_PROTO_GetShiftState done [19:49:13]FM_GetShiftState done [19:49:13]opened in 1729125927 [19:49:13]opened+sec_in_day 1729212327 [19:49:13]quantity*price = 100015 [19:49:13]sum+1 = 100017 [19:49:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 183 17.10.2024 19:49 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82257 ФПД: 138502992502782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T194914&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82257&fm=138502992502782&tin=02508201610067®Number=0000000000091680&sum=100000 [19:49:14]StoreToDocumentArchive [19:49:14]shift 525 fd 82257 [19:49:14]save to /storage/0525/doc_00082257 [19:49:14]save last doc name /storage/0525/doc_00082257 to /storage/kkm_last_doc_name [19:49:14]save OK [19:49:14]Clear old archive folders... [19:49:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:49:14]tlvbuf is 00328230 [19:49:14]SAM_PROTO_ClearQueue [19:49:14]wFMCommunicate request_size=4 [19:49:14]MH_SAM_APDU [19:49:14]CAPDU: 80 09 00 00 [19:49:14]Write to MH i2c: E2 08 00 57 01 80 09 00 00 00 00 00 00 CA [19:49:14]Write i2c OK [19:49:14]MH_I2C_Read... [19:49:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:49:14]Read from MH i2c: E2 [19:49:14]MH_I2C_Read... [19:49:14]Read from MH i2c: E2 03 00 [19:49:14]MH_I2C_Read... [19:49:14]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [19:49:14]RAPDU: 90 00 [19:49:14]wFMCommunicate OK [19:49:14]SAM_PROTO_ClearQueue done [19:49:14]KKMCreateOFDPacket [19:49:14]OFDProtocolAddRootSTLVToBuf [19:49:14]FM_MakeSignedData [19:49:14]FM_MakeSignedData [19:49:14]SAM_PROTO_SignData [19:49:14]wFMCommunicate request_size=4 [19:49:14]MH_SAM_APDU [19:49:14]CAPDU: 80 0D 01 02 [19:49:14]Write to MH i2c: E2 08 00 58 01 80 0D 01 02 00 00 00 00 D2 [19:49:14]Write i2c OK [19:49:14]MH_I2C_Read... [19:49:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:49:14]Read from MH i2c: E2 [19:49:14]MH_I2C_Read... [19:49:14]Read from MH i2c: E2 03 00 [19:49:14]MH_I2C_Read... [19:49:14]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [19:49:14]RAPDU: 90 00 [19:49:14]wFMCommunicate OK [19:49:14]wFMCommunicate request_size=255 [19:49:14]MH_SAM_APDU [19:49:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 3A 6A 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 51 41 01 00 35 04 06 00 7D [19:49:14]Write to MH i2c: E2 02 01 59 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 3A 6A 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 51 41 01 00 35 04 06 00 7D 00 00 4A [19:49:14]Write i2c OK [19:49:14]MH_I2C_Read... [19:49:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:15]Read from MH i2c: E2 [19:49:15]MH_I2C_Read... [19:49:15]Read from MH i2c: E2 03 00 [19:49:15]MH_I2C_Read... [19:49:15]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [19:49:15]RAPDU: 90 00 [19:49:15]wFMCommunicate OK [19:49:15]wFMCommunicate request_size=10 [19:49:15]MH_SAM_APDU [19:49:15]CAPDU: 80 0D 02 02 05 F7 BD AB 1F FE [19:49:15]Write to MH i2c: E2 0D 00 5A 01 80 0D 02 02 05 00 F7 BD AB 1F FE 00 00 5B [19:49:15]Write i2c OK [19:49:15]MH_I2C_Read... [19:49:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:15]Read from MH i2c: E2 [19:49:15]MH_I2C_Read... [19:49:15]Read from MH i2c: E2 03 00 [19:49:15]MH_I2C_Read... [19:49:15]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [19:49:15]RAPDU: 90 00 [19:49:15]wFMCommunicate OK [19:49:15]wFMCommunicate request_size=4 [19:49:15]MH_SAM_APDU [19:49:15]CAPDU: 80 0D 03 02 [19:49:15]Write to MH i2c: E2 08 00 5B 01 80 0D 03 02 00 00 00 00 D7 [19:49:15]Write i2c OK [19:49:15]MH_I2C_Read... [19:49:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:49:15]Read from MH i2c: E2 [19:49:15]MH_I2C_Read... [19:49:15]Read from MH i2c: E2 0B 00 [19:49:15]MH_I2C_Read... [19:49:15]Read from MH i2c: E2 0B 00 5B 01 00 F7 2E 05 BB 52 01 00 BC 90 00 CC [19:49:15]RAPDU: F7 2E 05 BB 52 01 00 BC 90 00 [19:49:15]wFMCommunicate OK [19:49:15]SAM_PROTO_SignData done [19:49:15]FM_MakeSignedData done [19:49:15]CreateOFDProtocolMessage [19:49:15]wFMCommunicate request_size=4 [19:49:15]MH_SAM_APDU [19:49:15]CAPDU: 80 11 00 00 [19:49:15]Write to MH i2c: E2 08 00 5C 01 80 11 00 00 00 00 00 00 D7 [19:49:15]Write i2c OK [19:49:15]MH_I2C_Read... [19:49:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:15]Read from MH i2c: E2 [19:49:15]MH_I2C_Read... [19:49:15]Read from MH i2c: E2 17 00 [19:49:15]MH_I2C_Read... [19:49:15]Read from MH i2c: E2 17 00 5C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 29 [19:49:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:49:15]wFMCommunicate OK [19:49:15]CreateOFDProtocolMessage done [19:49:15]OFDSenderStorePacket 82257 [19:49:15]StoreOFDPacket docnum=82257 [19:49:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 40 EB 07 01 56 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 3A 6A 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 51 41 01 00 35 04 06 00 7D F7 BD AB 1F FE F7 2E 05 BB 52 01 00 BC [19:49:15]CheckFolder [19:49:15]dirname=/storage/ofd_packets [19:49:15]CheckFolder done [19:49:15]ProducePacketName [19:49:15]name=ofd_packets/00082257 [19:49:15]NVStorageSaveData ofd_packets/00082257 [19:49:15]File name is /storage/ofd_packets/00082257 [19:49:15]Write 301 bytes [19:49:15]NVStorageSaveData done [19:49:15]OFDSenderStorePacket done [19:49:15]KKMCreateOFDPacket done [19:49:15]NVStorageSaveData kkm_last_timestamp [19:49:15]File name is /storage/kkm_last_timestamp [19:49:15]Write 4 bytes [19:49:15]NVStorageSaveData done [19:49:15]ExternCall_PrintAddStr [19:49:15]wPrintStart [19:49:15]Write to MH i2c: 01 00 00 5D 01 5E [19:49:15]Write i2c OK [19:49:15]MH_I2C_Read... [19:49:15]Read from MH i2c: 01 [19:49:15]MH_I2C_Read... [19:49:15]Read from MH i2c: 01 07 00 [19:49:15]MH_I2C_Read... [19:49:15]Read from MH i2c: 01 07 00 5D 01 00 00 00 00 00 FF 0F 73 [19:49:15]RasterBufferAndPrint [19:49:15]line Счет N : (1)918759 [19:49:15]line ИНН: 02508201610067 [19:49:15]line Контрольно-Кассовый Чек [19:49:15]line ПРОДАЖА [19:49:15]line ТРК (МРК, ГНК) : 22 [19:49:15]line Товар: 2710124130 [19:49:15]line Аи-92-К-4 [19:49:15]line 14.950 * 66.90 [19:49:15]line = 1000.16 [19:49:15]line НДС 12% НСП 1% [19:49:15]line > о реализуемом товаре [19:49:15]line ОКРУГЛЕНИЕ: -0.16 [19:49:15]line ИТОГО: 1000.00 [19:49:15]line Внесено: 1000.00 [19:49:15]line СДАЧА: 0.00 [19:49:15]line НСП 1% : 8.85 [19:49:15]line НДС 12% : 106.21 [19:49:15]line Наличными: 1000.00 [19:49:15]line Безнал.: 0.00 [19:49:15]line Место: АЗС № 114 "Партнер Нефть" [19:49:15]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [19:49:15]line СНО: Общий режим [19:49:15]line Чек 183 17.10.2024 19:49 [19:49:15]line Смена: 525 ФФД: 1.0 [19:49:15]line ЗНМ: 0300000086 [19:49:15]line РНМ: 0000000000091680 [19:49:15]line Версия ККМ: 001 [19:49:15]line ФМ: 0000000000871843 [19:49:15]line ФД: 82257 [19:49:15]line ФПД: 138502992502782 [19:49:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T194914&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82257&fm=138502992502782&tin=02508201610067®Number=0000000000091680&sum=100000 [19:49:15]OFD Sender: Processing packet 82257 [packets to send 254, broken 253] [19:49:15]ProducePacketName [19:49:15]name=ofd_packets/00082257 [19:49:15]OFD Sender: To server: pG, [19:49:15]CommunicateWithHost lk.salyk.kg:30040 [19:49:15]ConnectInit lk.salyk.kg [19:49:15]written 0, free lines is 4095 [19:49:16]Write to MH i2c: 01 00 00 88 01 89 [19:49:16]Write i2c OK [19:49:16]MH_I2C_Read... [19:49:16]Read from MH i2c: 01 [19:49:16]MH_I2C_Read... [19:49:16]Read from MH i2c: 01 07 00 [19:49:16]MH_I2C_Read... [19:49:16]Read from MH i2c: 01 07 00 88 01 00 00 00 00 00 D8 0C 74 [19:49:16]RasterBufferAndPrint [19:49:16]line [19:49:16]line [19:49:16]line [19:49:16]line [19:49:16]line [19:49:16]written 0, free lines is 3297 [19:49:16]MH_Cut [19:49:16]Write to MH i2c: D1 01 00 8F 01 01 62 [19:49:16]Write i2c OK [19:49:16]MH_I2C_Read... [19:49:16]Read from MH i2c: D1 [19:49:16]MH_I2C_Read... [19:49:16]Read from MH i2c: D1 01 00 [19:49:16]MH_I2C_Read... [19:49:16]Read from MH i2c: D1 01 00 8F 01 00 61 [19:49:16]Write to MH i2c: 01 00 00 90 01 91 [19:49:16]Write i2c OK [19:49:16]MH_I2C_Read... [19:49:16]*** Cut start [19:49:16]*** Partial cut [19:49:16]*** CUTSNS_PIN = 1 [19:49:16]*** CUTSNS_PIN = 0 [19:49:17]Connected sock=7 [19:49:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 40 EB 07 01 56 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 3A 6A 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 51 41 01 00 35 04 06 00 7D F7 BD AB 1F FE F7 2E 05 BB 52 01 00 BC [19:49:17]*** Brake cut motor [19:49:17]Read from MH i2c: 01 [19:49:17]MH_I2C_Read... [19:49:17]*** Stop cut motor [19:49:17]*** Cut end [19:49:17]Read from MH i2c: 01 07 00 [19:49:17]MH_I2C_Read... [19:49:17]Read from MH i2c: 01 07 00 90 01 00 00 00 00 00 FF 0F A6 [19:49:17]process_action close_receipt done [19:49:17]requested_data is exist [19:49:17]produce_requested_data [19:49:17]requested_item fm.sn is exist - process it [19:49:17]wFMCommunicate request_size=4 [19:49:17]MH_SAM_APDU [19:49:17]CAPDU: 80 11 00 00 [19:49:17]Write to MH i2c: E2 08 00 91 01 80 11 00 00 00 00 00 00 0C [19:49:17]Write i2c OK [19:49:17]MH_I2C_Read... [19:49:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:17]Read from MH i2c: E2 [19:49:17]MH_I2C_Read... [19:49:17]Read from MH i2c: E2 17 00 [19:49:17]MH_I2C_Read... [19:49:17]Read from MH i2c: E2 17 00 91 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 5E [19:49:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:49:17]wFMCommunicate OK [19:49:17]requested_item fd.num is exist - process it [19:49:17]SAM_PROTO_GetFieldsCounters [19:49:17]wFMCommunicate request_size=4 [19:49:17]MH_SAM_APDU [19:49:17]CAPDU: 80 13 00 00 [19:49:17]Write to MH i2c: E2 08 00 92 01 80 13 00 00 00 00 00 00 0F [19:49:17]Write i2c OK [19:49:17]MH_I2C_Read... [19:49:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 93 23 47 00 57 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 51 41 01 00 F4 03 04 00 78 0F 11 67 B6 04 01 00 00 3D 26 94 F2 69 3A DC AD [19:49:17]CommunicateWithHost err = 0 [19:49:17]CheckOFDResponse [19:49:17]1017 (14) - 77093643461234 [19:49:17]1041 (16) - 0000000000871843 [19:49:17]1040 (4) - 82257 [19:49:17]1012 (4) - 17.10.2024 13:22 [19:49:17]1206 (1) - 0 [19:49:17]OFD Sender: Remove packet 82257 [19:49:17]ProducePacketName [19:49:17]name=ofd_packets/00082257 [19:49:17]NVStorageDeleteData [19:49:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:49:17]Read from MH i2c: E2 [19:49:17]MH_I2C_Read... [19:49:17]Read from MH i2c: E2 62 00 [19:49:17]MH_I2C_Read... [19:49:17]Read from MH i2c: E2 62 00 92 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 51 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [19:49:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 51 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:49:17]wFMCommunicate OK [19:49:17]SAM_PROTO_GetFieldsCounters done [19:49:17]requested_item shift.num is exist - process it [19:49:17]requested_item shift.opened is exist - process it [19:49:17]req_shift_opened [19:49:17]FM_GetShiftState [19:49:17]SAM_PROTO_GetShiftState [19:49:17]wFMCommunicate request_size=4 [19:49:17]MH_SAM_APDU [19:49:17]CAPDU: 80 13 01 00 [19:49:17]Write to MH i2c: E2 08 00 93 01 80 13 01 00 00 00 00 00 11 [19:49:17]Write i2c OK [19:49:17]MH_I2C_Read... [19:49:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:17]Read from MH i2c: E2 [19:49:17]MH_I2C_Read... [19:49:17]Read from MH i2c: E2 0E 00 [19:49:17]MH_I2C_Read... [19:49:17]Read from MH i2c: E2 0E 00 93 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 19 [19:49:17]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [19:49:17]wFMCommunicate OK [19:49:17]SAM_PROTO_GetShiftState done [19:49:17]FM_GetShiftState done [19:49:17]req_shift_opened done [19:49:17]requested_item shift.open_date is exist - process it [19:49:17]req_shift_open_date [19:49:17]req_shift_open_date done [19:49:17]produce_requested_data done [19:49:17]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82257,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [19:49:17]process_action_free close_receipt [19:49:17]json_value_free [19:49:17]json_value_free done [19:49:17]process_json_proto returns [19:49:17]Send response to host [19:49:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82257,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [19:49:17]free response buf [19:49:17]execute_script done [19:49:17]execute_script returns [19:49:17]free content buf [19:49:17]Sock 10.Close socket [19:49:17]Sock 10.Thread stoped [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:32]recv_with_timeout no data received [19:49:33]OFD Sender: No OFD packet to send [19:49:38]OFD Sender: No OFD packet to send [19:49:43]OFD Sender: No OFD packet to send [19:49:48]OFD Sender: No OFD packet to send [19:49:53]OFD Sender: No OFD packet to send [19:49:58]OFD Sender: No OFD packet to send [19:50:03]OFD Sender: No OFD packet to send [19:50:08]OFD Sender: No OFD packet to send [19:50:13]OFD Sender: No OFD packet to send [19:50:18]OFD Sender: No OFD packet to send [19:50:23]OFD Sender: No OFD packet to send [19:50:28]OFD Sender: No OFD packet to send [19:50:33]OFD Sender: No OFD packet to send [19:50:38]OFD Sender: No OFD packet to send [19:50:43]OFD Sender: No OFD packet to send [19:50:48]OFD Sender: No OFD packet to send [19:50:53]OFD Sender: No OFD packet to send [19:50:58]OFD Sender: No OFD packet to send [19:51:03]OFD Sender: No OFD packet to send [19:51:08]OFD Sender: No OFD packet to send [19:51:13]OFD Sender: No OFD packet to send [19:51:18]OFD Sender: No OFD packet to send [19:51:23]OFD Sender: No OFD packet to send [19:51:28]OFD Sender: No OFD packet to send [19:51:33]OFD Sender: No OFD packet to send [19:51:38]OFD Sender: No OFD packet to send [19:51:43]OFD Sender: No OFD packet to send [19:51:48]OFD Sender: No OFD packet to send [19:51:53]OFD Sender: No OFD packet to send [19:51:58]OFD Sender: No OFD packet to send [19:52:03]OFD Sender: No OFD packet to send [19:52:08]OFD Sender: No OFD packet to send [19:52:13]OFD Sender: No OFD packet to send [19:52:18]OFD Sender: No OFD packet to send [19:52:23]OFD Sender: No OFD packet to send [19:52:28]OFD Sender: No OFD packet to send [19:52:33]OFD Sender: No OFD packet to send [19:52:38]OFD Sender: No OFD packet to send [19:52:43]OFD Sender: No OFD packet to send [19:52:48]OFD Sender: No OFD packet to send [19:52:53]OFD Sender: No OFD packet to send [19:52:58]OFD Sender: No OFD packet to send [19:53:03]OFD Sender: No OFD packet to send [19:53:08]OFD Sender: No OFD packet to send [19:53:13]OFD Sender: No OFD packet to send [19:53:18]OFD Sender: No OFD packet to send [19:53:23]OFD Sender: No OFD packet to send [19:53:28]OFD Sender: No OFD packet to send [19:53:33]OFD Sender: No OFD packet to send [19:53:38]OFD Sender: No OFD packet to send [19:53:43]OFD Sender: No OFD packet to send [19:53:48]OFD Sender: No OFD packet to send [19:53:53]OFD Sender: No OFD packet to send [19:53:58]OFD Sender: No OFD packet to send [19:54:03]OFD Sender: No OFD packet to send [19:54:08]OFD Sender: No OFD packet to send [19:54:13]OFD Sender: No OFD packet to send [19:54:18]OFD Sender: No OFD packet to send [19:54:23]OFD Sender: No OFD packet to send [19:54:28]OFD Sender: No OFD packet to send [19:54:33]OFD Sender: No OFD packet to send [19:54:38]OFD Sender: No OFD packet to send [19:54:43]OFD Sender: No OFD packet to send [19:54:48]OFD Sender: No OFD packet to send [19:54:53]OFD Sender: No OFD packet to send [19:54:58]OFD Sender: No OFD packet to send [19:55:03]OFD Sender: No OFD packet to send [19:55:08]OFD Sender: No OFD packet to send [19:55:13]OFD Sender: No OFD packet to send [19:55:18]OFD Sender: No OFD packet to send [19:55:23]OFD Sender: No OFD packet to send [19:55:28]OFD Sender: No OFD packet to send [19:55:33]OFD Sender: No OFD packet to send [19:55:38]OFD Sender: No OFD packet to send [19:55:43]OFD Sender: No OFD packet to send [19:55:48]OFD Sender: No OFD packet to send [19:55:53]OFD Sender: No OFD packet to send [19:55:58]OFD Sender: No OFD packet to send [19:56:03]OFD Sender: No OFD packet to send [19:56:08]OFD Sender: No OFD packet to send [19:56:13]OFD Sender: No OFD packet to send [19:56:18]OFD Sender: No OFD packet to send [19:56:23]OFD Sender: No OFD packet to send [19:56:28]OFD Sender: No OFD packet to send [19:56:33]OFD Sender: No OFD packet to send [19:56:38]OFD Sender: No OFD packet to send [19:56:43]OFD Sender: No OFD packet to send [19:56:48]OFD Sender: No OFD packet to send [19:56:53]OFD Sender: No OFD packet to send [19:56:58]OFD Sender: No OFD packet to send [19:57:03]OFD Sender: No OFD packet to send [19:57:08]OFD Sender: No OFD packet to send [19:57:13]OFD Sender: No OFD packet to send [19:57:18]OFD Sender: No OFD packet to send [19:57:23]OFD Sender: No OFD packet to send [19:57:28]OFD Sender: No OFD packet to send [19:57:33]OFD Sender: No OFD packet to send [19:57:35]accept exits with 9 [19:57:35]New connection [19:57:35]New thread 3066793316 created [19:57:35]Thread 3066936676 joined [19:57:35]Waiting for new connection... [19:57:35] Sock 9.Parse request [19:57:35]Sock 9.Check first char [19:57:35]Sock 9.First char is OK [19:57:35]request: POST /json_proto HTTP/1.0 [19:57:35]Method: POST [19:57:35]URL: /json_proto [19:57:35]Method is POST - this is cgi request [19:57:35]url: /json_proto [19:57:35]query_string will be loaded in cgi processing [19:57:35]execute_cgi json_proto POST (null) [19:57:35]execute_cgi path=json_proto method=POST [19:57:35]POST find Content-Length [19:57:35]Host: 172.17.44.67:8080 [19:57:35]Content-Length: 678 [19:57:35]Content-Type: application/json [19:57:35] [19:57:35]POST finish read [19:57:35]Found Content-Length = 678 [19:57:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:35]execute_script... [19:57:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:35]POST & json_proto [19:57:35]process_json_proto [19:57:35]json parsed OK: [19:57:35]protocol is kg_v1.0 [19:57:35]action value=close_receipt [19:57:35]process_action close_receipt [19:57:35]cmd_close_receipt [19:57:35]MH_GetDate [19:57:35]Write to MH i2c: F0 00 00 94 01 84 [19:57:35]Write i2c OK [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: F0 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: F0 09 00 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: F0 09 00 94 01 00 30 6C 11 67 F1 C7 6B 64 28 [19:57:35]GetLastDocTimeStamp 1729194554 [19:57:35]current date 1729195056 [19:57:35]FM_GetShiftState [19:57:35]SAM_PROTO_GetShiftState [19:57:35]wFMCommunicate request_size=4 [19:57:35]MH_SAM_APDU [19:57:35]CAPDU: 80 13 01 00 [19:57:35]Write to MH i2c: E2 08 00 95 01 80 13 01 00 00 00 00 00 13 [19:57:35]Write i2c OK [19:57:35]MH_I2C_Read... [19:57:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:35]Read from MH i2c: E2 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: E2 0E 00 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: E2 0E 00 95 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 1B [19:57:35]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [19:57:35]wFMCommunicate OK [19:57:35]SAM_PROTO_GetShiftState done [19:57:35]FM_GetShiftState done [19:57:35]opened in 1729125927 [19:57:35]opened+sec_in_day 1729212327 [19:57:35]quantity*price = 70044 [19:57:35]sum+1 = 70045 [19:57:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 184 17.10.2024 19:57 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82258 ФПД: 280455137077815 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T195736&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82258&fm=280455137077815&tin=02508201610067®Number=0000000000091680&sum=70000 [19:57:36]StoreToDocumentArchive [19:57:36]shift 525 fd 82258 [19:57:36]save to /storage/0525/doc_00082258 [19:57:36]save last doc name /storage/0525/doc_00082258 to /storage/kkm_last_doc_name [19:57:36]save OK [19:57:36]Clear old archive folders... [19:57:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:57:36]tlvbuf is 003258F0 [19:57:36]SAM_PROTO_ClearQueue [19:57:36]wFMCommunicate request_size=4 [19:57:36]MH_SAM_APDU [19:57:36]CAPDU: 80 09 00 00 [19:57:36]Write to MH i2c: E2 08 00 A2 01 80 09 00 00 00 00 00 00 15 [19:57:36]Write i2c OK [19:57:36]MH_I2C_Read... [19:57:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:57:36]Read from MH i2c: E2 [19:57:36]MH_I2C_Read... [19:57:36]Read from MH i2c: E2 03 00 [19:57:36]MH_I2C_Read... [19:57:36]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [19:57:36]RAPDU: 90 00 [19:57:36]wFMCommunicate OK [19:57:36]SAM_PROTO_ClearQueue done [19:57:36]KKMCreateOFDPacket [19:57:36]OFDProtocolAddRootSTLVToBuf [19:57:36]FM_MakeSignedData [19:57:36]FM_MakeSignedData [19:57:36]SAM_PROTO_SignData [19:57:36]wFMCommunicate request_size=4 [19:57:36]MH_SAM_APDU [19:57:36]CAPDU: 80 0D 01 02 [19:57:36]Write to MH i2c: E2 08 00 A3 01 80 0D 01 02 00 00 00 00 1D [19:57:36]Write i2c OK [19:57:36]MH_I2C_Read... [19:57:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:57:36]Read from MH i2c: E2 [19:57:36]MH_I2C_Read... [19:57:36]Read from MH i2c: E2 03 00 [19:57:36]MH_I2C_Read... [19:57:36]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [19:57:36]RAPDU: 90 00 [19:57:36]wFMCommunicate OK [19:57:36]wFMCommunicate request_size=255 [19:57:36]MH_SAM_APDU [19:57:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 30 6C 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 52 41 01 00 35 04 06 00 FF [19:57:36]Write to MH i2c: E2 02 01 A4 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 30 6C 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 52 41 01 00 35 04 06 00 FF 00 00 27 [19:57:36]Write i2c OK [19:57:36]MH_I2C_Read... [19:57:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:37]Read from MH i2c: E2 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: E2 03 00 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [19:57:37]RAPDU: 90 00 [19:57:37]wFMCommunicate OK [19:57:37]wFMCommunicate request_size=10 [19:57:37]MH_SAM_APDU [19:57:37]CAPDU: 80 0D 02 02 05 12 8C D2 2A 37 [19:57:37]Write to MH i2c: E2 0D 00 A5 01 80 0D 02 02 05 00 12 8C D2 2A 37 00 00 FB [19:57:37]Write i2c OK [19:57:37]MH_I2C_Read... [19:57:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:37]Read from MH i2c: E2 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: E2 03 00 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: E2 03 00 A5 01 00 90 00 1A [19:57:37]RAPDU: 90 00 [19:57:37]wFMCommunicate OK [19:57:37]wFMCommunicate request_size=4 [19:57:37]MH_SAM_APDU [19:57:37]CAPDU: 80 0D 03 02 [19:57:37]Write to MH i2c: E2 08 00 A6 01 80 0D 03 02 00 00 00 00 22 [19:57:37]Write i2c OK [19:57:37]MH_I2C_Read... [19:57:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:57:37]Read from MH i2c: E2 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: E2 0B 00 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: E2 0B 00 A6 01 00 EF DC AE ED 5C ED 7A 2E 90 00 7A [19:57:37]RAPDU: EF DC AE ED 5C ED 7A 2E 90 00 [19:57:37]wFMCommunicate OK [19:57:37]SAM_PROTO_SignData done [19:57:37]FM_MakeSignedData done [19:57:37]CreateOFDProtocolMessage [19:57:37]wFMCommunicate request_size=4 [19:57:37]MH_SAM_APDU [19:57:37]CAPDU: 80 11 00 00 [19:57:37]Write to MH i2c: E2 08 00 A7 01 80 11 00 00 00 00 00 00 22 [19:57:37]Write i2c OK [19:57:37]MH_I2C_Read... [19:57:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:37]Read from MH i2c: E2 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: E2 17 00 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: E2 17 00 A7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 74 [19:57:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:57:37]wFMCommunicate OK [19:57:37]CreateOFDProtocolMessage done [19:57:37]OFDSenderStorePacket 82258 [19:57:37]StoreOFDPacket docnum=82258 [19:57:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 4B F4 07 01 79 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 30 6C 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 52 41 01 00 35 04 06 00 FF 12 8C D2 2A 37 EF DC AE ED 5C ED 7A 2E [19:57:37]CheckFolder [19:57:37]dirname=/storage/ofd_packets [19:57:37]CheckFolder done [19:57:37]ProducePacketName [19:57:37]name=ofd_packets/00082258 [19:57:37]NVStorageSaveData ofd_packets/00082258 [19:57:37]File name is /storage/ofd_packets/00082258 [19:57:37]Write 301 bytes [19:57:37]NVStorageSaveData done [19:57:37]OFDSenderStorePacket done [19:57:37]KKMCreateOFDPacket done [19:57:37]NVStorageSaveData kkm_last_timestamp [19:57:37]File name is /storage/kkm_last_timestamp [19:57:37]Write 4 bytes [19:57:37]NVStorageSaveData done [19:57:37]ExternCall_PrintAddStr [19:57:37]wPrintStart [19:57:37]Write to MH i2c: 01 00 00 A8 01 A9 [19:57:37]Write i2c OK [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: 01 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: 01 07 00 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: 01 07 00 A8 01 00 00 00 00 00 FF 0F BE [19:57:37]RasterBufferAndPrint [19:57:37]line Счет N : (1)918760 [19:57:37]line ИНН: 02508201610067 [19:57:37]line Контрольно-Кассовый Чек [19:57:37]line ПРОДАЖА [19:57:37]line ТРК (МРК, ГНК) : 22 [19:57:37]line Товар: 2710124130 [19:57:37]line Аи-92-К-4 [19:57:37]line 10.470 * 66.90 [19:57:37]line = 700.44 [19:57:37]line НДС 12% НСП 1% [19:57:37]line > о реализуемом товаре [19:57:37]line ОКРУГЛЕНИЕ: -0.44 [19:57:37]line ИТОГО: 700.00 [19:57:37]line Внесено: 700.00 [19:57:37]line СДАЧА: 0.00 [19:57:37]line НСП 1% : 6.20 [19:57:37]line НДС 12% : 74.38 [19:57:37]line Наличными: 700.00 [19:57:37]line Безнал.: 0.00 [19:57:37]line Место: АЗС № 114 "Партнер Нефть" [19:57:37]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [19:57:37]line СНО: Общий режим [19:57:37]line Чек 184 17.10.2024 19:57 [19:57:37]line Смена: 525 ФФД: 1.0 [19:57:37]line ЗНМ: 0300000086 [19:57:37]line РНМ: 0000000000091680 [19:57:37]line Версия ККМ: 001 [19:57:37]line ФМ: 0000000000871843 [19:57:37]line ФД: 82258 [19:57:37]line ФПД: 280455137077815 [19:57:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T195736&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82258&fm=280455137077815&tin=02508201610067®Number=0000000000091680&sum=70000 [19:57:37]OFD Sender: Processing packet 82258 [packets to send 254, broken 253] [19:57:37]ProducePacketName [19:57:37]name=ofd_packets/00082258 [19:57:37]OFD Sender: To server: pG, [19:57:37]CommunicateWithHost lk.salyk.kg:30040 [19:57:37]ConnectInit lk.salyk.kg [19:57:37]written 0, free lines is 4095 [19:57:38]Write to MH i2c: 01 00 00 D3 01 D4 [19:57:38]Write i2c OK [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: 01 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: 01 07 00 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: 01 07 00 D3 01 00 00 00 00 00 D9 0C C0 [19:57:38]RasterBufferAndPrint [19:57:38]line [19:57:38]line [19:57:38]line [19:57:38]line [19:57:38]line [19:57:38]written 0, free lines is 3296 [19:57:38]MH_Cut [19:57:38]Write to MH i2c: D1 01 00 DA 01 01 AD [19:57:38]Write i2c OK [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: D1 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: D1 01 00 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: D1 01 00 DA 01 00 AC [19:57:38]Write to MH i2c: 01 00 00 DB 01 DC [19:57:38]Write i2c OK [19:57:38]MH_I2C_Read... [19:57:38]Connected sock=10 [19:57:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 4B F4 07 01 79 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 30 6C 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 52 41 01 00 35 04 06 00 FF 12 8C D2 2A 37 EF DC AE ED 5C ED 7A 2E [19:57:38]*** Cut start [19:57:38]*** Partial cut [19:57:38]*** CUTSNS_PIN = 1 [19:57:39]*** CUTSNS_PIN = 0 [19:57:39]*** Brake cut motor [19:57:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 2C 1D 47 00 83 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 52 41 01 00 F4 03 04 00 6E 11 11 67 B6 04 01 00 00 09 67 6B AD 0D D7 EE 82 [19:57:39]CommunicateWithHost err = 0 [19:57:39]CheckOFDResponse [19:57:39]1017 (14) - 77093643461234 [19:57:39]1041 (16) - 0000000000871843 [19:57:39]1040 (4) - 82258 [19:57:39]1012 (4) - 17.10.2024 13:30 [19:57:39]1206 (1) - 0 [19:57:39]OFD Sender: Remove packet 82258 [19:57:39]ProducePacketName [19:57:39]name=ofd_packets/00082258 [19:57:39]NVStorageDeleteData [19:57:39]Read from MH i2c: 01 [19:57:39]MH_I2C_Read... [19:57:39]*** Stop cut motor [19:57:39]*** Cut end [19:57:39]Read from MH i2c: 01 07 00 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: 01 07 00 DB 01 00 00 00 00 00 FF 0F F1 [19:57:39]process_action close_receipt done [19:57:39]requested_data is exist [19:57:39]produce_requested_data [19:57:39]requested_item fm.sn is exist - process it [19:57:39]wFMCommunicate request_size=4 [19:57:39]MH_SAM_APDU [19:57:39]CAPDU: 80 11 00 00 [19:57:39]Write to MH i2c: E2 08 00 DC 01 80 11 00 00 00 00 00 00 57 [19:57:39]Write i2c OK [19:57:39]MH_I2C_Read... [19:57:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:39]Read from MH i2c: E2 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: E2 17 00 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: E2 17 00 DC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 A9 [19:57:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:57:39]wFMCommunicate OK [19:57:39]requested_item fd.num is exist - process it [19:57:39]SAM_PROTO_GetFieldsCounters [19:57:39]wFMCommunicate request_size=4 [19:57:39]MH_SAM_APDU [19:57:39]CAPDU: 80 13 00 00 [19:57:39]Write to MH i2c: E2 08 00 DD 01 80 13 00 00 00 00 00 00 5A [19:57:39]Write i2c OK [19:57:39]MH_I2C_Read... [19:57:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:57:39]Read from MH i2c: E2 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: E2 62 00 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: E2 62 00 DD 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 52 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [19:57:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 52 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:57:39]wFMCommunicate OK [19:57:39]SAM_PROTO_GetFieldsCounters done [19:57:39]requested_item shift.num is exist - process it [19:57:39]requested_item shift.opened is exist - process it [19:57:39]req_shift_opened [19:57:39]FM_GetShiftState [19:57:39]SAM_PROTO_GetShiftState [19:57:39]wFMCommunicate request_size=4 [19:57:39]MH_SAM_APDU [19:57:39]CAPDU: 80 13 01 00 [19:57:39]Write to MH i2c: E2 08 00 DE 01 80 13 01 00 00 00 00 00 5C [19:57:39]Write i2c OK [19:57:39]MH_I2C_Read... [19:57:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:39]Read from MH i2c: E2 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: E2 0E 00 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: E2 0E 00 DE 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 64 [19:57:39]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [19:57:39]wFMCommunicate OK [19:57:39]SAM_PROTO_GetShiftState done [19:57:39]FM_GetShiftState done [19:57:39]req_shift_opened done [19:57:39]requested_item shift.open_date is exist - process it [19:57:39]req_shift_open_date [19:57:39]req_shift_open_date done [19:57:39]produce_requested_data done [19:57:39]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82258,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [19:57:39]process_action_free close_receipt [19:57:39]json_value_free [19:57:39]json_value_free done [19:57:39]process_json_proto returns [19:57:39]Send response to host [19:57:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82258,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [19:57:39]free response buf [19:57:39]execute_script done [19:57:39]execute_script returns [19:57:39]free content buf [19:57:39]Sock 9.Close socket [19:57:39]Sock 9.Thread stoped [19:57:39]OFD Sender: No OFD packet to send [19:57:44]OFD Sender: No OFD packet to send [19:57:49]OFD Sender: No OFD packet to send [19:57:54]OFD Sender: No OFD packet to send [19:57:59]OFD Sender: No OFD packet to send [19:58: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:42]recv_with_timeout no data received [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:55]OFD Sender: No OFD packet to send [20:03:00]OFD Sender: No OFD packet to send [20:03:01]accept exits with 7 [20:03:01]New connection [20:03:01]New thread 3066936676 created [20:03:01]Thread 3066793316 joined [20:03:01]Waiting for new connection... [20:03:01] Sock 7.Parse request [20:03:01]Sock 7.Check first char [20:03:01]Sock 7.First char is OK [20:03:01]request: POST /json_proto HTTP/1.0 [20:03:01]Method: POST [20:03:01]URL: /json_proto [20:03:01]Method is POST - this is cgi request [20:03:01]url: /json_proto [20:03:01]query_string will be loaded in cgi processing [20:03:01]execute_cgi json_proto POST (null) [20:03:01]execute_cgi path=json_proto method=POST [20:03:01]POST find Content-Length [20:03:01]Host: 172.17.44.67:8080 [20:03:01]Content-Length: 677 [20:03:01]Content-Type: application/json [20:03:01] [20:03:01]POST finish read [20:03:01]Found Content-Length = 677 [20:03:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 1.950, "sum" : 130.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 130.00, "total" : 130.00, "payments": [ { "type": 0, "sum" : 130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:03:01]execute_script... [20:03:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 1.950, "sum" : 130.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 130.00, "total" : 130.00, "payments": [ { "type": 0, "sum" : 130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:03:01]POST & json_proto [20:03:01]process_json_proto [20:03:01]json parsed OK: [20:03:01]protocol is kg_v1.0 [20:03:01]action value=close_receipt [20:03:01]process_action close_receipt [20:03:01]cmd_close_receipt [20:03:01]MH_GetDate [20:03:01]Write to MH i2c: F0 00 00 DF 01 CF [20:03:01]Write i2c OK [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: F0 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: F0 09 00 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: F0 09 00 DF 01 00 75 6D 11 67 F1 C7 6B 64 B9 [20:03:01]GetLastDocTimeStamp 1729195056 [20:03:01]current date 1729195381 [20:03:01]FM_GetShiftState [20:03:01]SAM_PROTO_GetShiftState [20:03:01]wFMCommunicate request_size=4 [20:03:01]MH_SAM_APDU [20:03:01]CAPDU: 80 13 01 00 [20:03:01]Write to MH i2c: E2 08 00 E0 01 80 13 01 00 00 00 00 00 5E [20:03:01]Write i2c OK [20:03:01]MH_I2C_Read... [20:03:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:01]Read from MH i2c: E2 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: E2 0E 00 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: E2 0E 00 E0 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 66 [20:03:01]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [20:03:01]wFMCommunicate OK [20:03:01]SAM_PROTO_GetShiftState done [20:03:01]FM_GetShiftState done [20:03:01]opened in 1729125927 [20:03:01]opened+sec_in_day 1729212327 [20:03:01]quantity*price = 13045 [20:03:01]sum+1 = 13047 [20:03:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 130.00 Внесено: 130.00 СДАЧА: 0.00 НСП 1% : 1.15 НДС 12% : 13.85 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 185 17.10.2024 20:03 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82259 ФПД: 166704776348505 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T200301&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82259&fm=166704776348505&tin=02508201610067®Number=0000000000091680&sum=13000 [20:03:02]StoreToDocumentArchive [20:03:02]shift 525 fd 82259 [20:03:02]save to /storage/0525/doc_00082259 [20:03:02]save last doc name /storage/0525/doc_00082259 to /storage/kkm_last_doc_name [20:03:02]save OK [20:03:02]Clear old archive folders... [20:03:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:03:02]tlvbuf is 003271F0 [20:03:02]SAM_PROTO_ClearQueue [20:03:02]wFMCommunicate request_size=4 [20:03:02]MH_SAM_APDU [20:03:02]CAPDU: 80 09 00 00 [20:03:02]Write to MH i2c: E2 08 00 ED 01 80 09 00 00 00 00 00 00 60 [20:03:02]Write i2c OK [20:03:02]MH_I2C_Read... [20:03:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:03:02]Read from MH i2c: E2 [20:03:02]MH_I2C_Read... [20:03:02]Read from MH i2c: E2 03 00 [20:03:02]MH_I2C_Read... [20:03:02]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [20:03:02]RAPDU: 90 00 [20:03:02]wFMCommunicate OK [20:03:02]SAM_PROTO_ClearQueue done [20:03:02]KKMCreateOFDPacket [20:03:02]OFDProtocolAddRootSTLVToBuf [20:03:02]FM_MakeSignedData [20:03:02]FM_MakeSignedData [20:03:02]SAM_PROTO_SignData [20:03:02]wFMCommunicate request_size=4 [20:03:02]MH_SAM_APDU [20:03:02]CAPDU: 80 0D 01 02 [20:03:02]Write to MH i2c: E2 08 00 EE 01 80 0D 01 02 00 00 00 00 68 [20:03:02]Write i2c OK [20:03:02]MH_I2C_Read... [20:03:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:03:02]Read from MH i2c: E2 [20:03:02]MH_I2C_Read... [20:03:02]Read from MH i2c: E2 03 00 [20:03:02]MH_I2C_Read... [20:03:02]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [20:03:02]RAPDU: 90 00 [20:03:02]wFMCommunicate OK [20:03:02]wFMCommunicate request_size=255 [20:03:02]MH_SAM_APDU [20:03:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 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 69 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 B9 00 00 00 F4 03 04 00 75 6D 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 53 41 01 00 35 04 06 00 97 [20:03:02]Write to MH i2c: E2 02 01 EF 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 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 69 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 B9 00 00 00 F4 03 04 00 75 6D 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 53 41 01 00 35 04 06 00 97 00 00 9B [20:03:02]Write i2c OK [20:03:02]MH_I2C_Read... [20:03:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:02]Read from MH i2c: E2 [20:03:02]MH_I2C_Read... [20:03:02]Read from MH i2c: E2 03 00 [20:03:02]MH_I2C_Read... [20:03:02]Read from MH i2c: E2 03 00 EF 01 00 90 00 64 [20:03:02]RAPDU: 90 00 [20:03:02]wFMCommunicate OK [20:03:02]wFMCommunicate request_size=10 [20:03:02]MH_SAM_APDU [20:03:02]CAPDU: 80 0D 02 02 05 9D FA FA 03 59 [20:03:02]Write to MH i2c: E2 0D 00 F0 01 80 0D 02 02 05 00 9D FA FA 03 59 00 00 62 [20:03:02]Write i2c OK [20:03:02]MH_I2C_Read... [20:03:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:02]Read from MH i2c: E2 [20:03:02]MH_I2C_Read... [20:03:02]Read from MH i2c: E2 03 00 [20:03:02]MH_I2C_Read... [20:03:02]Read from MH i2c: E2 03 00 F0 01 00 90 00 65 [20:03:02]RAPDU: 90 00 [20:03:02]wFMCommunicate OK [20:03:02]wFMCommunicate request_size=4 [20:03:02]MH_SAM_APDU [20:03:02]CAPDU: 80 0D 03 02 [20:03:02]Write to MH i2c: E2 08 00 F1 01 80 0D 03 02 00 00 00 00 6D [20:03:02]Write i2c OK [20:03:02]MH_I2C_Read... [20:03:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:03:02]Read from MH i2c: E2 [20:03:02]MH_I2C_Read... [20:03:02]Read from MH i2c: E2 0B 00 [20:03:02]MH_I2C_Read... [20:03:02]Read from MH i2c: E2 0B 00 F1 01 00 AB 16 9D 4F 78 72 48 44 90 00 91 [20:03:02]RAPDU: AB 16 9D 4F 78 72 48 44 90 00 [20:03:02]wFMCommunicate OK [20:03:02]SAM_PROTO_SignData done [20:03:02]FM_MakeSignedData done [20:03:02]CreateOFDProtocolMessage [20:03:02]wFMCommunicate request_size=4 [20:03:02]MH_SAM_APDU [20:03:02]CAPDU: 80 11 00 00 [20:03:02]Write to MH i2c: E2 08 00 F2 01 80 11 00 00 00 00 00 00 6D [20:03:02]Write i2c OK [20:03:02]MH_I2C_Read... [20:03:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:02]Read from MH i2c: E2 [20:03:02]MH_I2C_Read... [20:03:02]Read from MH i2c: E2 17 00 [20:03:02]MH_I2C_Read... [20:03:02]Read from MH i2c: E2 17 00 F2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 BF [20:03:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:03:02]wFMCommunicate OK [20:03:02]CreateOFDProtocolMessage done [20:03:02]OFDSenderStorePacket 82259 [20:03:02]StoreOFDPacket docnum=82259 [20:03:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 B3 82 07 01 87 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 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 69 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 B9 00 00 00 F4 03 04 00 75 6D 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 53 41 01 00 35 04 06 00 97 9D FA FA 03 59 AB 16 9D 4F 78 72 48 44 [20:03:02]CheckFolder [20:03:02]dirname=/storage/ofd_packets [20:03:02]CheckFolder done [20:03:02]ProducePacketName [20:03:02]name=ofd_packets/00082259 [20:03:02]NVStorageSaveData ofd_packets/00082259 [20:03:02]File name is /storage/ofd_packets/00082259 [20:03:02]Write 301 bytes [20:03:02]NVStorageSaveData done [20:03:02]OFDSenderStorePacket done [20:03:02]KKMCreateOFDPacket done [20:03:02]NVStorageSaveData kkm_last_timestamp [20:03:02]File name is /storage/kkm_last_timestamp [20:03:02]Write 4 bytes [20:03:02]NVStorageSaveData done [20:03:02]ExternCall_PrintAddStr [20:03:02]wPrintStart [20:03:02]Write to MH i2c: 01 00 00 F3 01 F4 [20:03:02]Write i2c OK [20:03:02]MH_I2C_Read... [20:03:02]Read from MH i2c: 01 [20:03:02]MH_I2C_Read... [20:03:02]Read from MH i2c: 01 07 00 [20:03:02]MH_I2C_Read... [20:03:02]Read from MH i2c: 01 07 00 F3 01 00 00 00 00 00 FF 0F 09 [20:03:02]RasterBufferAndPrint [20:03:02]line Счет N : (1)918761 [20:03:02]line ИНН: 02508201610067 [20:03:02]line Контрольно-Кассовый Чек [20:03:02]line ПРОДАЖА [20:03:02]line ТРК (МРК, ГНК) : 22 [20:03:02]line Товар: 2710124130 [20:03:02]line Аи-92-К-4 [20:03:02]line 1.950 * 66.90 [20:03:02]line = 130.46 [20:03:02]line НДС 12% НСП 1% [20:03:02]line > о реализуемом товаре [20:03:02]line ОКРУГЛЕНИЕ: -0.46 [20:03:02]line ИТОГО: 130.00 [20:03:02]line Внесено: 130.00 [20:03:02]line СДАЧА: 0.00 [20:03:02]line НСП 1% : 1.15 [20:03:02]line НДС 12% : 13.85 [20:03:02]line Наличными: 130.00 [20:03:02]line Безнал.: 0.00 [20:03:02]line Место: АЗС № 114 "Партнер Нефть" [20:03:02]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [20:03:02]line СНО: Общий режим [20:03:02]line Чек 185 17.10.2024 20:03 [20:03:02]line Смена: 525 ФФД: 1.0 [20:03:02]line ЗНМ: 0300000086 [20:03:02]line РНМ: 0000000000091680 [20:03:02]line Версия ККМ: 001 [20:03:02]line ФМ: 0000000000871843 [20:03:02]line ФД: 82259 [20:03:02]line ФПД: 166704776348505 [20:03:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T200301&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82259&fm=166704776348505&tin=02508201610067®Number=0000000000091680&sum=13000 [20:03:03]OFD Sender: Processing packet 82259 [packets to send 254, broken 253] [20:03:03]ProducePacketName [20:03:03]name=ofd_packets/00082259 [20:03:03]OFD Sender: To server: pG, [20:03:03]CommunicateWithHost lk.salyk.kg:30040 [20:03:03]ConnectInit lk.salyk.kg [20:03:03]written 0, free lines is 4095 [20:03:03]Write to MH i2c: 01 00 00 1E 02 20 [20:03:03]Write i2c OK [20:03:03]MH_I2C_Read... [20:03:03]Read from MH i2c: 01 [20:03:03]MH_I2C_Read... [20:03:03]Read from MH i2c: 01 07 00 [20:03:03]MH_I2C_Read... [20:03:03]Read from MH i2c: 01 07 00 1E 02 00 00 00 00 00 D2 0C 05 [20:03:03]RasterBufferAndPrint [20:03:03]line [20:03:03]line [20:03:03]line [20:03:03]line [20:03:03]line [20:03:03]written 0, free lines is 3287 [20:03:03]MH_Cut [20:03:03]Write to MH i2c: D1 01 00 25 02 01 F9 [20:03:03]Write i2c OK [20:03:03]MH_I2C_Read... [20:03:03]Read from MH i2c: D1 [20:03:03]MH_I2C_Read... [20:03:03]Read from MH i2c: D1 01 00 [20:03:03]MH_I2C_Read... [20:03:03]Read from MH i2c: D1 01 00 25 02 00 F8 [20:03:03]Write to MH i2c: 01 00 00 26 02 28 [20:03:03]Write i2c OK [20:03:03]MH_I2C_Read... [20:03:04]*** Cut start [20:03:04]*** Partial cut [20:03:04]*** CUTSNS_PIN = 1 [20:03:04]*** CUTSNS_PIN = 0 [20:03:04]*** Brake cut motor [20:03:05]Read from MH i2c: 01 [20:03:05]MH_I2C_Read... [20:03:05]*** Stop cut motor [20:03:05]*** Cut end [20:03:05]Read from MH i2c: 01 07 00 [20:03:05]MH_I2C_Read... [20:03:05]Read from MH i2c: 01 07 00 26 02 00 00 00 00 00 FF 0F 3D [20:03:05]process_action close_receipt done [20:03:05]requested_data is exist [20:03:05]produce_requested_data [20:03:05]requested_item fm.sn is exist - process it [20:03:05]wFMCommunicate request_size=4 [20:03:05]MH_SAM_APDU [20:03:05]CAPDU: 80 11 00 00 [20:03:05]Write to MH i2c: E2 08 00 27 02 80 11 00 00 00 00 00 00 A3 [20:03:05]Write i2c OK [20:03:05]MH_I2C_Read... [20:03:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:05]Read from MH i2c: E2 [20:03:05]MH_I2C_Read... [20:03:05]Read from MH i2c: E2 17 00 [20:03:05]MH_I2C_Read... [20:03:05]Read from MH i2c: E2 17 00 27 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 F5 [20:03:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:03:05]wFMCommunicate OK [20:03:05]requested_item fd.num is exist - process it [20:03:05]SAM_PROTO_GetFieldsCounters [20:03:05]wFMCommunicate request_size=4 [20:03:05]MH_SAM_APDU [20:03:05]CAPDU: 80 13 00 00 [20:03:05]Write to MH i2c: E2 08 00 28 02 80 13 00 00 00 00 00 00 A6 [20:03:05]Write i2c OK [20:03:05]MH_I2C_Read... [20:03:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:03:05]Read from MH i2c: E2 [20:03:05]MH_I2C_Read... [20:03:05]Read from MH i2c: E2 62 00 [20:03:05]MH_I2C_Read... [20:03:05]Read from MH i2c: E2 62 00 28 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 53 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [20:03:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 53 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:03:05]wFMCommunicate OK [20:03:05]SAM_PROTO_GetFieldsCounters done [20:03:05]requested_item shift.num is exist - process it [20:03:05]requested_item shift.opened is exist - process it [20:03:05]req_shift_opened [20:03:05]FM_GetShiftState [20:03:05]SAM_PROTO_GetShiftState [20:03:05]wFMCommunicate request_size=4 [20:03:05]MH_SAM_APDU [20:03:05]CAPDU: 80 13 01 00 [20:03:05]Write to MH i2c: E2 08 00 29 02 80 13 01 00 00 00 00 00 A8 [20:03:05]Write i2c OK [20:03:05]MH_I2C_Read... [20:03:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:05]Read from MH i2c: E2 [20:03:05]MH_I2C_Read... [20:03:05]Read from MH i2c: E2 0E 00 [20:03:05]MH_I2C_Read... [20:03:05]Read from MH i2c: E2 0E 00 29 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 B0 [20:03:05]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [20:03:05]wFMCommunicate OK [20:03:05]SAM_PROTO_GetShiftState done [20:03:05]FM_GetShiftState done [20:03:05]req_shift_opened done [20:03:05]requested_item shift.open_date is exist - process it [20:03:05]req_shift_open_date [20:03:05]req_shift_open_date done [20:03:05]produce_requested_data done [20:03:05]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82259,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [20:03:05]process_action_free close_receipt [20:03:05]json_value_free [20:03:05]json_value_free done [20:03:05]process_json_proto returns [20:03:05]Send response to host [20:03:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82259,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [20:03:05]free response buf [20:03:05]execute_script done [20:03:05]execute_script returns [20:03:05]free content buf [20:03:05]Sock 7.Close socket [20:03:05]Sock 7.Thread stoped [20:05:16]ConnectInit Can't connect to host [20:05:16]CommunicateWithHost connect error [20:05:16]CommunicateWithHost err = -1 [20:05:16]OFD Sender: Server communicate error [20:05:21]OFD Sender: Processing packet 82259 [packets to send 254, broken 253] [20:05:21]ProducePacketName [20:05:21]name=ofd_packets/00082259 [20:05:21]OFD Sender: To server: pG, [20:05:21]CommunicateWithHost lk.salyk.kg:30040 [20:05:21]ConnectInit lk.salyk.kg [20:05:22]Connected sock=10 [20:05:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 B3 82 07 01 87 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 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 69 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 B9 00 00 00 F4 03 04 00 75 6D 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 53 41 01 00 35 04 06 00 97 9D FA FA 03 59 AB 16 9D 4F 78 72 48 44 [20:05:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 6D AC 47 00 8E 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 53 41 01 00 F4 03 04 00 3E 13 11 67 B6 04 01 00 00 F5 2A 84 4F BC 41 51 B3 [20:05:23]CommunicateWithHost err = 0 [20:05:23]CheckOFDResponse [20:05:23]1017 (14) - 77093643461234 [20:05:23]1041 (16) - 0000000000871843 [20:05:23]1040 (4) - 82259 [20:05:23]1012 (4) - 17.10.2024 13:38 [20:05:23]1206 (1) - 0 [20:05:23]OFD Sender: Remove packet 82259 [20:05:23]ProducePacketName [20:05:23]name=ofd_packets/00082259 [20:05:23]NVStorageDeleteData [20:05:23]OFD Sender: No OFD packet to send [20:05:28]OFD Sender: No OFD packet to send [20:05:33]OFD Sender: No OFD packet to send [20:05:38]OFD Sender: No OFD packet to send [20:05:43]OFD Sender: No OFD packet to send [20:05:48]OFD Sender: No OFD packet to send [20:05:53]OFD Sender: No OFD packet to send [20:05:58]OFD Sender: No OFD packet to send [20:06:04]OFD Sender: No OFD packet to send [20:06:09]OFD Sender: No OFD packet to send [20:06:14]OFD Sender: No OFD packet to send [20:06:19]OFD Sender: No OFD packet to send [20:06:24]OFD Sender: No OFD packet to send [20:06:29]OFD Sender: No OFD packet to send [20:06:34]OFD Sender: No OFD packet to send [20:06:39]OFD Sender: No OFD packet to send [20:06:44]OFD Sender: No OFD packet to send [20:06:49]OFD Sender: No OFD packet to send [20:06:54]OFD Sender: No OFD packet to send [20:06:59]OFD Sender: No OFD packet to send [20:07:04]OFD Sender: No OFD packet to send [20:07:09]OFD Sender: No OFD packet to send [20:07:14]OFD Sender: No OFD packet to send [20:07:19]OFD Sender: No OFD packet to send [20:07:24]OFD Sender: No OFD packet to send [20:07:29]OFD Sender: No OFD packet to send [20:07:34]OFD Sender: No OFD packet to send [20:07:39]OFD Sender: No OFD packet to send [20:07:44]OFD Sender: No OFD packet to send [20:07:49]OFD Sender: No OFD packet to send [20:07:54]OFD Sender: No OFD packet to send [20:07:59]OFD Sender: No OFD packet to send [20:08:04]OFD Sender: No OFD packet to send [20:08:09]OFD Sender: No OFD packet to send [20:08:14]OFD Sender: No OFD packet to send [20:08:19]OFD Sender: No OFD packet to send [20:08:24]OFD Sender: No OFD packet to send [20:08:29]OFD Sender: No OFD packet to send [20:08:34]OFD Sender: No OFD packet to send [20:08:39]OFD Sender: No OFD packet to send [20:08:44]OFD Sender: No OFD packet to send [20:08:49]OFD Sender: No OFD packet to send [20:08:54]OFD Sender: No OFD packet to send [20:08:59]OFD Sender: No OFD packet to send [20:09:04]OFD Sender: No OFD packet to send [20:09:09]OFD Sender: No OFD packet to send [20:09:14]OFD Sender: No OFD packet to send [20:09:19]OFD Sender: No OFD packet to send [20:09:24]OFD Sender: No OFD packet to send [20:09:29]OFD Sender: No OFD packet to send [20:09:34]OFD Sender: No OFD packet to send [20:09:39]OFD Sender: No OFD packet to send [20:09:44]OFD Sender: No OFD packet to send [20:09:49]OFD Sender: No OFD packet to send [20:09:54]OFD Sender: No OFD packet to send [20:09:59]OFD Sender: No OFD packet to send [20:10:04]OFD Sender: No OFD packet to send [20:10:09]OFD Sender: No OFD packet to send [20:10:14]OFD Sender: No OFD packet to send [20:10:19]OFD Sender: No OFD packet to send [20:10:24]OFD Sender: No OFD packet to send [20:10:29]OFD Sender: No OFD packet to send [20:10:34]OFD Sender: No OFD packet to send [20:10:39]OFD Sender: No OFD packet to send [20:10:44]OFD Sender: No OFD packet to send [20:10:49]OFD Sender: No OFD packet to send [20:10:54]OFD Sender: No OFD packet to send [20:10:59]OFD Sender: No OFD packet to send [20:11:04]OFD Sender: No OFD packet to send [20:11:09]OFD Sender: No OFD packet to send [20:11:14]OFD Sender: No OFD packet to send [20:11:19]OFD Sender: No OFD packet to send [20:11:24]OFD Sender: No OFD packet to send [20:11:29]OFD Sender: No OFD packet to send [20:11:34]OFD Sender: No OFD packet to send [20:11:39]OFD Sender: No OFD packet to send [20:11:44]OFD Sender: No OFD packet to send [20:11:49]OFD Sender: No OFD packet to send [20:11:54]OFD Sender: No OFD packet to send [20:11:59]OFD Sender: No OFD packet to send [20:12:04]OFD Sender: No OFD packet to send [20:12:09]OFD Sender: No OFD packet to send [20:12:14]OFD Sender: No OFD packet to send [20:12:19]OFD Sender: No OFD packet to send [20:12:24]OFD Sender: No OFD packet to send [20:12:29]OFD Sender: No OFD packet to send [20:12:34]OFD Sender: No OFD packet to send [20:12:39]OFD Sender: No OFD packet to send [20:12:44]OFD Sender: No OFD packet to send [20:12:49]OFD Sender: No OFD packet to send [20:12:54]OFD Sender: No OFD packet to send [20:12:59]OFD Sender: No OFD packet to send [20:13:04]OFD Sender: No OFD packet to send [20:13:09]OFD Sender: No OFD packet to send [20:13:14]OFD Sender: No OFD packet to send [20:13:19]OFD Sender: No OFD packet to send [20:13:24]OFD Sender: No OFD packet to send [20:13:29]OFD Sender: No OFD packet to send [20:13:34]OFD Sender: No OFD packet to send [20:13:39]OFD Sender: No OFD packet to send [20:13:44]OFD Sender: No OFD packet to send [20:13:49]OFD Sender: No OFD packet to send [20:13:54]OFD Sender: No OFD packet to send [20:13:59]OFD Sender: No OFD packet to send [20:14:04]OFD Sender: No OFD packet to send [20:14:09]OFD Sender: No OFD packet to send [20:14:14]OFD Sender: No OFD packet to send [20:14:19]OFD Sender: No OFD packet to send [20:14:24]OFD Sender: No OFD packet to send [20:14:29]OFD Sender: No OFD packet to send [20:14:34]OFD Sender: No OFD packet to send [20:14:39]OFD Sender: No OFD packet to send [20:14:44]OFD Sender: No OFD packet to send [20:14:49]OFD Sender: No OFD packet to send [20:14:54]OFD Sender: No OFD packet to send [20:14:59]OFD Sender: No OFD packet to send [20:15:04]OFD Sender: No OFD packet to send [20:15:09]OFD Sender: No OFD packet to send [20:15:14]OFD Sender: No OFD packet to send [20:15:19]OFD Sender: No OFD packet to send [20:15:24]OFD Sender: No OFD packet to send [20:15:29]OFD Sender: No OFD packet to send [20:15:34]OFD Sender: No OFD packet to send [20:15:39]OFD Sender: No OFD packet to send [20:15:44]OFD Sender: No OFD packet to send [20:15:49]OFD Sender: No OFD packet to send [20:15:54]OFD Sender: No OFD packet to send [20:15:59]OFD Sender: No OFD packet to send [20:16:04]OFD Sender: No OFD packet to send [20:16:09]OFD Sender: No OFD packet to send [20:16:15]OFD Sender: No OFD packet to send [20:16:20]OFD Sender: No OFD packet to send [20:16:25]OFD Sender: No OFD packet to send [20:16:30]OFD Sender: No OFD packet to send [20:16:35]OFD Sender: No OFD packet to send [20:16:40]OFD Sender: No OFD packet to send [20:16:45]OFD Sender: No OFD packet to send [20:16:50]OFD Sender: No OFD packet to send [20:16:55]OFD Sender: No OFD packet to send [20:17:00]OFD Sender: No OFD packet to send [20:17:05]OFD Sender: No OFD packet to send [20:17:10]OFD Sender: No OFD packet to send [20:17:15]OFD Sender: No OFD packet to send [20:17:20]OFD Sender: No OFD packet to send [20:17:25]OFD Sender: No OFD packet to send [20:17:30]OFD Sender: No OFD packet to send [20:17:35]OFD Sender: No OFD packet to send [20:17:40]OFD Sender: No OFD packet to send [20:17:45]OFD Sender: No OFD packet to send [20:17:50]OFD Sender: No OFD packet to send [20:17:55]OFD Sender: No OFD packet to send [20:18:00]OFD Sender: No OFD packet to send [20:18:05]OFD Sender: No OFD packet to send [20:18:10]OFD Sender: No OFD packet to send [20:18:15]OFD Sender: No OFD packet to send [20:18:20]OFD Sender: No OFD packet to send [20:18:25]OFD Sender: No OFD packet to send [20:18:30]OFD Sender: No OFD packet to send [20:18:35]OFD Sender: No OFD packet to send [20:18:40]OFD Sender: No OFD packet to send [20:18:45]OFD Sender: No OFD packet to send [20:18:50]OFD Sender: No OFD packet to send [20:18:55]OFD Sender: No OFD packet to send [20:19:00]OFD Sender: No OFD packet to send [20:19:05]OFD Sender: No OFD packet to send [20:19:10]OFD Sender: No OFD packet to send [20:19:15]OFD Sender: No OFD packet to send [20:19:20]OFD Sender: No OFD packet to send [20:19:25]OFD Sender: No OFD packet to send [20:19:30]OFD Sender: No OFD packet to send [20:19:35]OFD Sender: No OFD packet to send [20:19:40]OFD Sender: No OFD packet to send [20:19:45]OFD Sender: No OFD packet to send [20:19:50]OFD Sender: No OFD packet to send [20:19:55]OFD Sender: No OFD packet to send [20:20:00]OFD Sender: No OFD packet to send [20:20:05]OFD Sender: No OFD packet to send [20:20:10]OFD Sender: No OFD packet to send [20:20:15]OFD Sender: No OFD packet to send [20:20:20]OFD Sender: No OFD packet to send [20:20:25]OFD Sender: No OFD packet to send [20:20:30]OFD Sender: No OFD packet to send [20:20:35]OFD Sender: No OFD packet to send [20:20:40]OFD Sender: No OFD packet to send [20:20:45]OFD Sender: No OFD packet to send [20:20:50]OFD Sender: No OFD packet to send [20:20:55]OFD Sender: No OFD packet to send [20:21:00]OFD Sender: No OFD packet to send [20:21:05]OFD Sender: No OFD packet to send [20:21:10]OFD Sender: No OFD packet to send [20:21:15]OFD Sender: No OFD packet to send [20:21:20]OFD Sender: No OFD packet to send [20:21:25]OFD Sender: No OFD packet to send [20:21:30]OFD Sender: No OFD packet to send [20:21:35]OFD Sender: No OFD packet to send [20:21:40]OFD Sender: No OFD packet to send [20:21:45]OFD Sender: No OFD packet to send [20:21:50]OFD Sender: No OFD packet to send [20:21:55]OFD Sender: No OFD packet to send [20:22:00]OFD Sender: No OFD packet to send [20:22:05]OFD Sender: No OFD packet to send [20:22:10]OFD Sender: No OFD packet to send [20:22:15]OFD Sender: No OFD packet to send [20:22:20]OFD Sender: No OFD packet to send [20:22:25]OFD Sender: No OFD packet to send [20:22:30]OFD Sender: No OFD packet to send [20:22:35]OFD Sender: No OFD packet to send [20:22:40]OFD Sender: No OFD packet to send [20:22:45]OFD Sender: No OFD packet to send [20:22:50]OFD Sender: No OFD packet to send [20:22:52]accept exits with 9 [20:22:52]New connection [20:22:52]New thread 3066793316 created [20:22:52]Thread 3066936676 joined [20:22:52]Waiting for new connection... [20:22:52] Sock 9.Parse request [20:22:52]Sock 9.Check first char [20:22:52]Sock 9.First char is OK [20:22:52]request: POST /json_proto HTTP/1.0 [20:22:52]Method: POST [20:22:52]URL: /json_proto [20:22:52]Method is POST - this is cgi request [20:22:52]url: /json_proto [20:22:52]query_string will be loaded in cgi processing [20:22:52]execute_cgi json_proto POST (null) [20:22:52]execute_cgi path=json_proto method=POST [20:22:52]POST find Content-Length [20:22:52]Host: 172.17.44.67:8080 [20:22:52]Content-Length: 677 [20:22:52]Content-Type: application/json [20:22:52] [20:22:52]POST finish read [20:22:52]Found Content-Length = 677 [20:22:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:22:52]execute_script... [20:22:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:22:52]POST & json_proto [20:22:52]process_json_proto [20:22:52]json parsed OK: [20:22:52]protocol is kg_v1.0 [20:22:52]action value=close_receipt [20:22:52]process_action close_receipt [20:22:52]cmd_close_receipt [20:22:52]MH_GetDate [20:22:52]Write to MH i2c: F0 00 00 2A 02 1B [20:22:52]Write i2c OK [20:22:52]MH_I2C_Read... [20:22:52]Read from MH i2c: F0 [20:22:52]MH_I2C_Read... [20:22:52]Read from MH i2c: F0 09 00 [20:22:52]MH_I2C_Read... [20:22:52]Read from MH i2c: F0 09 00 2A 02 00 1D 72 11 67 F1 C7 6B 64 B2 [20:22:52]GetLastDocTimeStamp 1729195381 [20:22:52]current date 1729196573 [20:22:52]FM_GetShiftState [20:22:52]SAM_PROTO_GetShiftState [20:22:52]wFMCommunicate request_size=4 [20:22:52]MH_SAM_APDU [20:22:52]CAPDU: 80 13 01 00 [20:22:52]Write to MH i2c: E2 08 00 2B 02 80 13 01 00 00 00 00 00 AA [20:22:52]Write i2c OK [20:22:52]MH_I2C_Read... [20:22:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:22:53]Read from MH i2c: E2 [20:22:53]MH_I2C_Read... [20:22:53]Read from MH i2c: E2 0E 00 [20:22:53]MH_I2C_Read... [20:22:53]Read from MH i2c: E2 0E 00 2B 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 B2 [20:22:53]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [20:22:53]wFMCommunicate OK [20:22:53]SAM_PROTO_GetShiftState done [20:22:53]FM_GetShiftState done [20:22:53]opened in 1729125927 [20:22:53]opened+sec_in_day 1729212327 [20:22:53]quantity*price = 35055 [20:22:53]sum+1 = 35057 [20:22:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 186 17.10.2024 20:22 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82260 ФПД: 145178979998939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T202253&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82260&fm=145178979998939&tin=02508201610067®Number=0000000000091680&sum=35000 [20:22:54]StoreToDocumentArchive [20:22:54]shift 525 fd 82260 [20:22:54]save to /storage/0525/doc_00082260 [20:22:54]save last doc name /storage/0525/doc_00082260 to /storage/kkm_last_doc_name [20:22:54]save OK [20:22:54]Clear old archive folders... [20:22:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:22:54]tlvbuf is 003258F0 [20:22:54]SAM_PROTO_ClearQueue [20:22:54]wFMCommunicate request_size=4 [20:22:54]MH_SAM_APDU [20:22:54]CAPDU: 80 09 00 00 [20:22:54]Write to MH i2c: E2 08 00 38 02 80 09 00 00 00 00 00 00 AC [20:22:54]Write i2c OK [20:22:54]MH_I2C_Read... [20:22:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:22:54]Read from MH i2c: E2 [20:22:54]MH_I2C_Read... [20:22:54]Read from MH i2c: E2 03 00 [20:22:54]MH_I2C_Read... [20:22:54]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [20:22:54]RAPDU: 90 00 [20:22:54]wFMCommunicate OK [20:22:54]SAM_PROTO_ClearQueue done [20:22:54]KKMCreateOFDPacket [20:22:54]OFDProtocolAddRootSTLVToBuf [20:22:54]FM_MakeSignedData [20:22:54]FM_MakeSignedData [20:22:54]SAM_PROTO_SignData [20:22:54]wFMCommunicate request_size=4 [20:22:54]MH_SAM_APDU [20:22:54]CAPDU: 80 0D 01 02 [20:22:54]Write to MH i2c: E2 08 00 39 02 80 0D 01 02 00 00 00 00 B4 [20:22:54]Write i2c OK [20:22:54]MH_I2C_Read... [20:22:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:22:54]Read from MH i2c: E2 [20:22:54]MH_I2C_Read... [20:22:54]Read from MH i2c: E2 03 00 [20:22:54]MH_I2C_Read... [20:22:54]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [20:22:54]RAPDU: 90 00 [20:22:54]wFMCommunicate OK [20:22:54]wFMCommunicate request_size=255 [20:22:54]MH_SAM_APDU [20:22:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 1D 72 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 54 41 01 00 35 04 06 00 84 [20:22:54]Write to MH i2c: E2 02 01 3A 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 1D 72 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 54 41 01 00 35 04 06 00 84 00 00 35 [20:22:54]Write i2c OK [20:22:54]MH_I2C_Read... [20:22:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:22:54]Read from MH i2c: E2 [20:22:54]MH_I2C_Read... [20:22:54]Read from MH i2c: E2 03 00 [20:22:54]MH_I2C_Read... [20:22:54]Read from MH i2c: E2 03 00 3A 02 00 90 00 B0 [20:22:54]RAPDU: 90 00 [20:22:54]wFMCommunicate OK [20:22:54]wFMCommunicate request_size=10 [20:22:54]MH_SAM_APDU [20:22:54]CAPDU: 80 0D 02 02 05 0A 1D 88 1C DB [20:22:54]Write to MH i2c: E2 0D 00 3B 02 80 0D 02 02 05 00 0A 1D 88 1C DB 00 00 67 [20:22:54]Write i2c OK [20:22:54]MH_I2C_Read... [20:22:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:22:54]Read from MH i2c: E2 [20:22:54]MH_I2C_Read... [20:22:54]Read from MH i2c: E2 03 00 [20:22:54]MH_I2C_Read... [20:22:54]Read from MH i2c: E2 03 00 3B 02 00 90 00 B1 [20:22:54]RAPDU: 90 00 [20:22:54]wFMCommunicate OK [20:22:54]wFMCommunicate request_size=4 [20:22:54]MH_SAM_APDU [20:22:54]CAPDU: 80 0D 03 02 [20:22:54]Write to MH i2c: E2 08 00 3C 02 80 0D 03 02 00 00 00 00 B9 [20:22:54]Write i2c OK [20:22:54]MH_I2C_Read... [20:22:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:22:54]Read from MH i2c: E2 [20:22:54]MH_I2C_Read... [20:22:54]Read from MH i2c: E2 0B 00 [20:22:54]MH_I2C_Read... [20:22:54]Read from MH i2c: E2 0B 00 3C 02 00 7A 46 17 E7 F7 82 0D 7A 90 00 78 [20:22:54]RAPDU: 7A 46 17 E7 F7 82 0D 7A 90 00 [20:22:54]wFMCommunicate OK [20:22:54]SAM_PROTO_SignData done [20:22:54]FM_MakeSignedData done [20:22:54]CreateOFDProtocolMessage [20:22:54]wFMCommunicate request_size=4 [20:22:54]MH_SAM_APDU [20:22:54]CAPDU: 80 11 00 00 [20:22:54]Write to MH i2c: E2 08 00 3D 02 80 11 00 00 00 00 00 00 B9 [20:22:54]Write i2c OK [20:22:54]MH_I2C_Read... [20:22:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:22:54]Read from MH i2c: E2 [20:22:54]MH_I2C_Read... [20:22:54]Read from MH i2c: E2 17 00 [20:22:54]MH_I2C_Read... [20:22:54]Read from MH i2c: E2 17 00 3D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 0B [20:22:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:22:54]wFMCommunicate OK [20:22:54]CreateOFDProtocolMessage done [20:22:54]OFDSenderStorePacket 82260 [20:22:54]StoreOFDPacket docnum=82260 [20:22:58]1017 (14) - 77093643461234 [20:22:58]1041 (16) - 0000000000871843 [20:22:58]1040 (4) - 82260 [20:22:58]1012 (4) - 17.10.2024 13:55 [20:22:58]1206 (1) - 0 [20:22:58]OFD Sender: Remove packet 82260 [20:22:58]ProducePacketName [20:22:58]name=ofd_packets/00082260 [20:22:58]NVStorageDeleteData [20:22:58]OFD Sender: No OFD packet to send [20:23:03]recv_with_timeout no data received [20:23:03]OFD Sender: No OFD packet to send [20:23:08]OFD Sender: No OFD packet to send [20:23:13]OFD Sender: No OFD packet to send [20:23:18]OFD Sender: No OFD packet to send [20:23:18]recv_with_timeout no data received [20:23:23]OFD Sender: No OFD packet to send [20:23:28]OFD Sender: No OFD packet to send [20:23:33]OFD Sender: No OFD packet to send [20:23:38]OFD Sender: No OFD packet to send [20:23:39]recv_with_timeout no data received [20:23:43]OFD Sender: No OFD packet to send [20:22:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 8E CE 07 01 B5 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 1D 72 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 54 41 01 00 35 04 06 00 84 0A 1D 88 1C DB 7A 46 17 E7 F7 82 0D 7A [20:22:54]CheckFolder [20:22:54]dirname=/storage/ofd_packets [20:22:54]CheckFolder done [20:22:54]ProducePacketName [20:22:54]name=ofd_packets/00082260 [20:22:54]NVStorageSaveData ofd_packets/00082260 [20:22:54]File name is /storage/ofd_packets/00082260 [20:22:54]Write 301 bytes [20:22:54]NVStorageSaveData done [20:22:54]OFDSenderStorePacket done [20:22:54]KKMCreateOFDPacket done [20:22:54]NVStorageSaveData kkm_last_timestamp [20:22:54]File name is /storage/kkm_last_timestamp [20:22:54]Write 4 bytes [20:22:54]NVStorageSaveData done [20:22:54]ExternCall_PrintAddStr [20:22:54]wPrintStart [20:22:54]Write to MH i2c: 01 00 00 3E 02 40 [20:22:54]Write i2c OK [20:22:54]MH_I2C_Read... [20:22:54]Read from MH i2c: 01 [20:22:54]MH_I2C_Read... [20:22:54]Read from MH i2c: 01 07 00 [20:22:54]MH_I2C_Read... [20:22:54]Read from MH i2c: 01 07 00 3E 02 00 00 00 00 00 FF 0F 55 [20:22:54]RasterBufferAndPrint [20:22:54]line Счет N : (1)918763 [20:22:54]line ИНН: 02508201610067 [20:22:54]line Контрольно-Кассовый Чек [20:22:54]line ПРОДАЖА [20:22:54]line ТРК (МРК, ГНК) : 22 [20:22:54]line Товар: 2710124130 [20:22:54]line Аи-92-К-4 [20:22:54]line 5.240 * 66.90 [20:22:54]line = 350.56 [20:22:54]line НДС 12% НСП 1% [20:22:54]line > о реализуемом товаре [20:22:54]line ОКРУГЛЕНИЕ: -0.56 [20:22:54]line ИТОГО: 350.00 [20:22:54]line Внесено: 350.00 [20:22:54]line СДАЧА: 0.00 [20:22:54]line НСП 1% : 3.10 [20:22:54]line НДС 12% : 37.23 [20:22:54]line Наличными: 350.00 [20:22:54]line Безнал.: 0.00 [20:22:54]line Место: АЗС № 114 "Партнер Нефть" [20:22:54]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [20:22:54]line СНО: Общий режим [20:22:54]line Чек 186 17.10.2024 20:22 [20:22:54]line Смена: 525 ФФД: 1.0 [20:22:54]line ЗНМ: 0300000086 [20:22:54]line РНМ: 0000000000091680 [20:22:54]line Версия ККМ: 001 [20:22:54]line ФМ: 0000000000871843 [20:22:54]line ФД: 82260 [20:22:54]line ФПД: 145178979998939 [20:22:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T202253&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82260&fm=145178979998939&tin=02508201610067®Number=0000000000091680&sum=35000 [20:22:54]OFD Sender: Processing packet 82260 [packets to send 254, broken 253] [20:22:54]ProducePacketName [20:22:54]name=ofd_packets/00082260 [20:22:54]written 0, free lines is 4095 [20:22:54]OFD Sender: To server: pG, [20:22:54]CommunicateWithHost lk.salyk.kg:30040 [20:22:55]ConnectInit lk.salyk.kg [20:22:55]Write to MH i2c: 01 00 00 69 02 6B [20:22:55]Write i2c OK [20:22:55]MH_I2C_Read... [20:22:55]Read from MH i2c: 01 [20:22:55]MH_I2C_Read... [20:22:55]Read from MH i2c: 01 07 00 [20:22:55]MH_I2C_Read... [20:22:55]Read from MH i2c: 01 07 00 69 02 00 00 00 00 00 DE 0C 5C [20:22:55]RasterBufferAndPrint [20:22:55]line [20:22:55]line [20:22:55]line [20:22:55]line [20:22:55]line [20:22:55]written 0, free lines is 3300 [20:22:55]MH_Cut [20:22:55]Write to MH i2c: D1 01 00 70 02 01 44 [20:22:55]Write i2c OK [20:22:55]MH_I2C_Read... [20:22:55]Read from MH i2c: D1 [20:22:55]MH_I2C_Read... [20:22:55]Read from MH i2c: D1 01 00 [20:22:55]MH_I2C_Read... [20:22:55]Read from MH i2c: D1 01 00 70 02 00 43 [20:22:55]Write to MH i2c: 01 00 00 71 02 73 [20:22:55]Write i2c OK [20:22:55]MH_I2C_Read... [20:22:55]*** Cut start [20:22:55]*** Partial cut [20:22:55]*** CUTSNS_PIN = 1 [20:22:56]*** CUTSNS_PIN = 0 [20:22:56]*** Brake cut motor [20:22:56]Read from MH i2c: 01 [20:22:56]MH_I2C_Read... [20:22:56]*** Stop cut motor [20:22:56]*** Cut end [20:22:56]Read from MH i2c: 01 07 00 [20:22:56]MH_I2C_Read... [20:22:56]Read from MH i2c: 01 07 00 71 02 00 00 00 00 00 FF 0F 88 [20:22:56]process_action close_receipt done [20:22:56]requested_data is exist [20:22:56]produce_requested_data [20:22:56]requested_item fm.sn is exist - process it [20:22:56]wFMCommunicate request_size=4 [20:22:56]MH_SAM_APDU [20:22:56]CAPDU: 80 11 00 00 [20:22:56]Write to MH i2c: E2 08 00 72 02 80 11 00 00 00 00 00 00 EE [20:22:56]Write i2c OK [20:22:56]MH_I2C_Read... [20:22:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:22:56]Read from MH i2c: E2 [20:22:56]MH_I2C_Read... [20:22:56]Read from MH i2c: E2 17 00 [20:22:56]MH_I2C_Read... [20:22:56]Read from MH i2c: E2 17 00 72 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 40 [20:22:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:22:56]wFMCommunicate OK [20:22:56]requested_item fd.num is exist - process it [20:22:56]SAM_PROTO_GetFieldsCounters [20:22:56]wFMCommunicate request_size=4 [20:22:56]MH_SAM_APDU [20:22:56]CAPDU: 80 13 00 00 [20:22:56]Write to MH i2c: E2 08 00 73 02 80 13 00 00 00 00 00 00 F1 [20:22:56]Write i2c OK [20:22:56]MH_I2C_Read... [20:22:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:22:56]Read from MH i2c: E2 [20:22:56]MH_I2C_Read... [20:22:56]Read from MH i2c: E2 62 00 [20:22:56]MH_I2C_Read... [20:22:56]Read from MH i2c: E2 62 00 73 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 54 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [20:22:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 54 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:22:56]wFMCommunicate OK [20:22:56]SAM_PROTO_GetFieldsCounters done [20:22:56]requested_item shift.num is exist - process it [20:22:56]requested_item shift.opened is exist - process it [20:22:56]req_shift_opened [20:22:56]FM_GetShiftState [20:22:56]SAM_PROTO_GetShiftState [20:22:56]wFMCommunicate request_size=4 [20:22:56]MH_SAM_APDU [20:22:56]CAPDU: 80 13 01 00 [20:22:56]Write to MH i2c: E2 08 00 74 02 80 13 01 00 00 00 00 00 F3 [20:22:56]Write i2c OK [20:22:56]MH_I2C_Read... [20:22:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:22:56]Read from MH i2c: E2 [20:22:56]MH_I2C_Read... [20:22:56]Read from MH i2c: E2 0E 00 [20:22:56]MH_I2C_Read... [20:22:56]Read from MH i2c: E2 0E 00 74 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 FB [20:22:56]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [20:22:56]wFMCommunicate OK [20:22:56]SAM_PROTO_GetShiftState done [20:22:56]FM_GetShiftState done [20:22:56]req_shift_opened done [20:22:56]requested_item shift.open_date is exist - process it [20:22:56]req_shift_open_date [20:22:56]req_shift_open_date done [20:22:56]produce_requested_data done [20:22:56]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82260,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [20:22:56]process_action_free close_receipt [20:22:56]json_value_free [20:22:56]json_value_free done [20:22:56]process_json_proto returns [20:22:56]Send response to host [20:22:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82260,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [20:22:56]free response buf [20:22:56]execute_script done [20:22:56]execute_script returns [20:22:56]free content buf [20:22:56]Sock 9.Close socket [20:22:56]Sock 9.Thread stoped [20:22:57]Connected sock=10 [20:22:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 8E CE 07 01 B5 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 1D 72 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 54 41 01 00 35 04 06 00 84 0A 1D 88 1C DB 7A 46 17 E7 F7 82 0D 7A [20:22:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 04 EE 47 00 3F 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 54 41 01 00 F4 03 04 00 5C 17 11 67 B6 04 01 00 00 D2 23 54 8B C0 69 55 AC [20:22:58]CommunicateWithHost err = 0 [20:22:58]CheckOFDResponse [20:23:48]OFD Sender: No OFD packet to send [20:23:53]OFD Sender: No OFD packet to send [20:23:58]OFD Sender: No OFD packet to send [20:24:03]OFD Sender: No OFD packet to send [20:24:08]OFD Sender: No OFD packet to send [20:24:13]OFD Sender: No OFD packet to send [20:24:18]accept exits with 7 [20:24:18]New connection [20:24:18]New thread 3066936676 created [20:24:18]Thread 3066793316 joined [20:24:18]Waiting for new connection... [20:24:18] Sock 7.Parse request [20:24:18]Sock 7.Check first char [20:24:18]Sock 7.First char is OK [20:24:18]request: POST /json_proto HTTP/1.0 [20:24:18]Method: POST [20:24:18]URL: /json_proto [20:24:18]Method is POST - this is cgi request [20:24:18]url: /json_proto [20:24:18]query_string will be loaded in cgi processing [20:24:18]execute_cgi json_proto POST (null) [20:24:18]execute_cgi path=json_proto method=POST [20:24:18]POST find Content-Length [20:24:18]Host: 172.17.44.67:8080 [20:24:18]Content-Length: 688 [20:24:18]Content-Type: application/json [20:24:18] [20:24:18]POST finish read [20:24:18]Found Content-Length = 688 [20:24:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 64.770, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:24:18]execute_script... [20:24:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 64.770, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:24:18]POST & json_proto [20:24:18]process_json_proto [20:24:18]json parsed OK: [20:24:18]protocol is kg_v1.0 [20:24:18]action value=close_receipt [20:24:18]process_action close_receipt [20:24:18]cmd_close_receipt [20:24:18]MH_GetDate [20:24:18]Write to MH i2c: F0 00 00 75 02 66 [20:24:18]Write i2c OK [20:24:18]MH_I2C_Read... [20:24:18]Read from MH i2c: F0 [20:24:18]MH_I2C_Read... [20:24:18]Read from MH i2c: F0 09 00 [20:24:18]MH_I2C_Read... [20:24:18]Read from MH i2c: F0 09 00 75 02 00 72 72 11 67 F1 C7 6B 64 52 [20:24:18]GetLastDocTimeStamp 1729196573 [20:24:18]current date 1729196658 [20:24:18]FM_GetShiftState [20:24:18]SAM_PROTO_GetShiftState [20:24:18]wFMCommunicate request_size=4 [20:24:18]MH_SAM_APDU [20:24:18]CAPDU: 80 13 01 00 [20:24:18]Write to MH i2c: E2 08 00 76 02 80 13 01 00 00 00 00 00 F5 [20:24:18]Write i2c OK [20:24:18]MH_I2C_Read... [20:24:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:24:18]Read from MH i2c: E2 [20:24:18]MH_I2C_Read... [20:24:18]Read from MH i2c: E2 0E 00 [20:24:18]MH_I2C_Read... [20:24:18]Read from MH i2c: E2 0E 00 76 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 FD [20:24:18]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [20:24:18]wFMCommunicate OK [20:24:18]SAM_PROTO_GetShiftState done [20:24:18]FM_GetShiftState done [20:24:18]opened in 1729125927 [20:24:18]opened+sec_in_day 1729212327 [20:24:18]quantity*price = 500024 [20:24:18]sum+1 = 500025 [20:24:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 187 17.10.2024 20:24 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82261 ФПД: 255449716229258 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T202418&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82261&fm=255449716229258&tin=02508201610067®Number=0000000000091680&sum=500000 [20:24:19]StoreToDocumentArchive [20:24:19]shift 525 fd 82261 [20:24:19]save to /storage/0525/doc_00082261 [20:24:19]save last doc name /storage/0525/doc_00082261 to /storage/kkm_last_doc_name [20:24:19]save OK [20:24:19]Clear old archive folders... [20:24:19]ProcessDocumentItem done err = 0, tmpTLVsize=257 [20:24:19]tlvbuf is 003A4380 [20:24:19]SAM_PROTO_ClearQueue [20:24:19]wFMCommunicate request_size=4 [20:24:19]MH_SAM_APDU [20:24:19]CAPDU: 80 09 00 00 [20:24:19]Write to MH i2c: E2 08 00 83 02 80 09 00 00 00 00 00 00 F7 [20:24:19]Write i2c OK [20:24:19]MH_I2C_Read... [20:24:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:24:19]Read from MH i2c: E2 [20:24:19]MH_I2C_Read... [20:24:19]Read from MH i2c: E2 03 00 [20:24:19]MH_I2C_Read... [20:24:19]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [20:24:19]RAPDU: 90 00 [20:24:19]wFMCommunicate OK [20:24:19]SAM_PROTO_ClearQueue done [20:24:19]KKMCreateOFDPacket [20:24:19]OFDProtocolAddRootSTLVToBuf [20:24:19]FM_MakeSignedData [20:24:19]FM_MakeSignedData [20:24:19]SAM_PROTO_SignData [20:24:19]wFMCommunicate request_size=4 [20:24:19]MH_SAM_APDU [20:24:19]CAPDU: 80 0D 01 02 [20:24:19]Write to MH i2c: E2 08 00 84 02 80 0D 01 02 00 00 00 00 FF [20:24:19]Write i2c OK [20:24:19]MH_I2C_Read... [20:24:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:24:19]Read from MH i2c: E2 [20:24:19]MH_I2C_Read... [20:24:19]Read from MH i2c: E2 03 00 [20:24:19]MH_I2C_Read... [20:24:19]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [20:24:19]RAPDU: 90 00 [20:24:19]wFMCommunicate OK [20:24:19]wFMCommunicate request_size=255 [20:24:19]MH_SAM_APDU [20:24:19]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 02 FD 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 72 72 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 55 41 01 [20:24:19]Write to MH i2c: E2 02 01 85 02 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 02 FD 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 72 72 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 55 41 01 00 00 3B [20:24:19]Write i2c OK [20:24:19]MH_I2C_Read... [20:24:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:24:19]Read from MH i2c: E2 [20:24:19]MH_I2C_Read... [20:24:19]Read from MH i2c: E2 03 00 [20:24:19]MH_I2C_Read... [20:24:19]Read from MH i2c: E2 03 00 85 02 00 90 00 FB [20:24:19]RAPDU: 90 00 [20:24:19]wFMCommunicate OK [20:24:19]wFMCommunicate request_size=16 [20:24:19]MH_SAM_APDU [20:24:19]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E8 54 85 98 04 8A [20:24:19]Write to MH i2c: E2 13 00 86 02 80 0D 02 02 0B 00 00 35 04 06 00 E8 54 85 98 04 8A 00 00 3E [20:24:19]Write i2c OK [20:24:19]MH_I2C_Read... [20:24:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:24:19]Read from MH i2c: E2 [20:24:19]MH_I2C_Read... [20:24:19]Read from MH i2c: E2 03 00 [20:24:19]MH_I2C_Read... [20:24:19]Read from MH i2c: E2 03 00 86 02 00 90 00 FC [20:24:19]RAPDU: 90 00 [20:24:19]wFMCommunicate OK [20:24:19]wFMCommunicate request_size=4 [20:24:19]MH_SAM_APDU [20:24:19]CAPDU: 80 0D 03 02 [20:24:19]Write to MH i2c: E2 08 00 87 02 80 0D 03 02 00 00 00 00 04 [20:24:19]Write i2c OK [20:24:19]MH_I2C_Read... [20:24:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:24:19]Read from MH i2c: E2 [20:24:19]MH_I2C_Read... [20:24:19]Read from MH i2c: E2 0B 00 [20:24:19]MH_I2C_Read... [20:24:19]Read from MH i2c: E2 0B 00 87 02 00 13 D3 B8 FA 0D 90 35 1D 90 00 8C [20:24:19]RAPDU: 13 D3 B8 FA 0D 90 35 1D 90 00 [20:24:19]wFMCommunicate OK [20:24:19]SAM_PROTO_SignData done [20:24:19]FM_MakeSignedData done [20:24:19]CreateOFDProtocolMessage [20:24:19]wFMCommunicate request_size=4 [20:24:19]MH_SAM_APDU [20:24:19]CAPDU: 80 11 00 00 [20:24:19]Write to MH i2c: E2 08 00 88 02 80 11 00 00 00 00 00 00 04 [20:24:19]Write i2c OK [20:24:19]MH_I2C_Read... [20:24:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:19]Read from MH i2c: E2 [20:24:19]MH_I2C_Read... [20:24:19]Read from MH i2c: E2 17 00 [20:24:19]MH_I2C_Read... [20:24:19]Read from MH i2c: E2 17 00 88 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 56 [20:24:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:24:19]wFMCommunicate OK [20:24:19]CreateOFDProtocolMessage done [20:24:19]OFDSenderStorePacket 82261 [20:24:19]StoreOFDPacket docnum=82261 [20:24:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 F7 5B 0D 01 9E 2A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 02 FD 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 72 72 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 55 41 01 00 35 04 06 00 E8 54 85 98 04 8A 13 D3 B8 FA 0D 90 35 1D [20:24:19]CheckFolder [20:24:19]dirname=/storage/ofd_packets [20:24:19]CheckFolder done [20:24:19]ProducePacketName [20:24:19]name=ofd_packets/00082261 [20:24:19]NVStorageSaveData ofd_packets/00082261 [20:24:19]File name is /storage/ofd_packets/00082261 [20:24:19]Write 307 bytes [20:24:19]NVStorageSaveData done [20:24:19]OFDSenderStorePacket done [20:24:19]KKMCreateOFDPacket done [20:24:19]NVStorageSaveData kkm_last_timestamp [20:24:19]File name is /storage/kkm_last_timestamp [20:24:19]Write 4 bytes [20:24:19]NVStorageSaveData done [20:24:19]ExternCall_PrintAddStr [20:24:19]wPrintStart [20:24:19]Write to MH i2c: 01 00 00 89 02 8B [20:24:19]Write i2c OK [20:24:19]MH_I2C_Read... [20:24:19]Read from MH i2c: 01 [20:24:19]MH_I2C_Read... [20:24:19]Read from MH i2c: 01 07 00 [20:24:19]MH_I2C_Read... [20:24:19]Read from MH i2c: 01 07 00 89 02 00 00 00 00 00 FF 0F A0 [20:24:19]RasterBufferAndPrint [20:24:19]line Счет N : (1)918762 [20:24:19]line ИНН: 02508201610067 [20:24:19]line Контрольно-Кассовый Чек [20:24:19]line ПРОДАЖА [20:24:19]line ТРК (МРК, ГНК) : 21 [20:24:19]line Товар: 2710194800 [20:24:19]line D-Energy ДТ-К-2 [20:24:19]line 64.770 * 77.20 [20:24:19]line = 5000.24 [20:24:19]line НДС 12% НСП 1% [20:24:19]line > о реализуемом товаре [20:24:19]line ОКРУГЛЕНИЕ: -0.24 [20:24:19]line ИТОГО: 5000.00 [20:24:19]line Внесено: 5000.00 [20:24:19]line СДАЧА: 0.00 [20:24:19]line НСП 1% : 44.25 [20:24:19]line НДС 12% : 531.00 [20:24:19]line Наличными: 5000.00 [20:24:19]line Безнал.: 0.00 [20:24:19]line Место: АЗС № 114 "Партнер Нефть" [20:24:19]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [20:24:19]line СНО: Общий режим [20:24:19]line Чек 187 17.10.2024 20:24 [20:24:19]line Смена: 525 ФФД: 1.0 [20:24:19]line ЗНМ: 0300000086 [20:24:19]line РНМ: 0000000000091680 [20:24:19]line Версия ККМ: 001 [20:24:19]line ФМ: 0000000000871843 [20:24:19]line ФД: 82261 [20:24:19]line ФПД: 255449716229258 [20:24:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T202418&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82261&fm=255449716229258&tin=02508201610067®Number=0000000000091680&sum=500000 [20:24:19]written 0, free lines is 4095 [20:24:19]OFD Sender: Processing packet 82261 [packets to send 254, broken 253] [20:24:19]ProducePacketName [20:24:19]name=ofd_packets/00082261 [20:24:19]OFD Sender: To server: pG, [20:24:19]CommunicateWithHost lk.salyk.kg:30040 [20:24:19]ConnectInit lk.salyk.kg [20:24:20]Write to MH i2c: 01 00 00 B4 02 B6 [20:24:20]Write i2c OK [20:24:20]MH_I2C_Read... [20:24:20]Read from MH i2c: 01 [20:24:20]MH_I2C_Read... [20:24:20]Read from MH i2c: 01 07 00 [20:24:20]MH_I2C_Read... [20:24:20]Read from MH i2c: 01 07 00 B4 02 00 00 00 00 00 F1 0C BA [20:24:20]RasterBufferAndPrint [20:24:20]line [20:24:20]line [20:24:20]line [20:24:20]line [20:24:20]line [20:24:20]written 0, free lines is 3319 [20:24:20]MH_Cut [20:24:20]Write to MH i2c: D1 01 00 BB 02 01 8F [20:24:20]Write i2c OK [20:24:20]MH_I2C_Read... [20:24:20]Read from MH i2c: D1 [20:24:20]MH_I2C_Read... [20:24:20]Read from MH i2c: D1 01 00 [20:24:20]MH_I2C_Read... [20:24:20]Read from MH i2c: D1 01 00 BB 02 00 8E [20:24:20]Write to MH i2c: 01 00 00 BC 02 BE [20:24:20]Write i2c OK [20:24:20]MH_I2C_Read... [20:24:20]*** Cut start [20:24:20]*** Partial cut [20:24:20]*** CUTSNS_PIN = 1 [20:24:21]*** CUTSNS_PIN = 0 [20:24:21]*** Brake cut motor [20:24:21]Read from MH i2c: 01 [20:24:21]MH_I2C_Read... [20:24:21]*** Stop cut motor [20:24:21]*** Cut end [20:24:21]Read from MH i2c: 01 07 00 [20:24:21]MH_I2C_Read... [20:24:21]Read from MH i2c: 01 07 00 BC 02 00 00 00 00 00 FF 0F D3 [20:24:21]process_action close_receipt done [20:24:21]requested_data is exist [20:24:21]produce_requested_data [20:24:21]requested_item fm.sn is exist - process it [20:24:21]wFMCommunicate request_size=4 [20:24:21]MH_SAM_APDU [20:24:21]CAPDU: 80 11 00 00 [20:24:21]Write to MH i2c: E2 08 00 BD 02 80 11 00 00 00 00 00 00 39 [20:24:21]Write i2c OK [20:24:21]MH_I2C_Read... [20:24:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:21]Read from MH i2c: E2 [20:24:21]MH_I2C_Read... [20:24:21]Read from MH i2c: E2 17 00 [20:24:21]MH_I2C_Read... [20:24:21]Read from MH i2c: E2 17 00 BD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 8B [20:24:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:24:21]wFMCommunicate OK [20:24:21]requested_item fd.num is exist - process it [20:24:21]SAM_PROTO_GetFieldsCounters [20:24:21]wFMCommunicate request_size=4 [20:24:21]MH_SAM_APDU [20:24:21]CAPDU: 80 13 00 00 [20:24:21]Write to MH i2c: E2 08 00 BE 02 80 13 00 00 00 00 00 00 3C [20:24:21]Write i2c OK [20:24:21]MH_I2C_Read... [20:24:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:24:21]Read from MH i2c: E2 [20:24:21]MH_I2C_Read... [20:24:21]Read from MH i2c: E2 62 00 [20:24:21]MH_I2C_Read... [20:24:21]Read from MH i2c: E2 62 00 BE 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 55 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [20:24:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 55 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:24:21]wFMCommunicate OK [20:24:21]SAM_PROTO_GetFieldsCounters done [20:24:21]requested_item shift.num is exist - process it [20:24:21]requested_item shift.opened is exist - process it [20:24:21]req_shift_opened [20:24:21]FM_GetShiftState [20:24:21]SAM_PROTO_GetShiftState [20:24:21]wFMCommunicate request_size=4 [20:24:21]MH_SAM_APDU [20:24:21]CAPDU: 80 13 01 00 [20:24:21]Write to MH i2c: E2 08 00 BF 02 80 13 01 00 00 00 00 00 3E [20:24:21]Write i2c OK [20:24:21]MH_I2C_Read... [20:24:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:24:21]Read from MH i2c: E2 [20:24:21]MH_I2C_Read... [20:24:21]Read from MH i2c: E2 0E 00 [20:24:21]MH_I2C_Read... [20:24:21]Read from MH i2c: E2 0E 00 BF 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 46 [20:24:21]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [20:24:21]wFMCommunicate OK [20:24:21]SAM_PROTO_GetShiftState done [20:24:21]FM_GetShiftState done [20:24:21]req_shift_opened done [20:24:21]requested_item shift.open_date is exist - process it [20:24:21]req_shift_open_date [20:24:21]req_shift_open_date done [20:24:21]produce_requested_data done [20:24:21]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82261,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [20:24:21]process_action_free close_receipt [20:24:21]json_value_free [20:24:21]json_value_free done [20:24:21]process_json_proto returns [20:24:21]Send response to host [20:24:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82261,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [20:24:21]free response buf [20:24:21]execute_script done [20:24:21]execute_script returns [20:24:21]free content buf [20:24:21]Sock 7.Close socket [20:24:21]Sock 7.Thread stoped [20:24:24]ConnectInit Can't take IP for lk.salyk.kg [20:24:24]CommunicateWithHost connect error [20:24:24]CommunicateWithHost err = -1 [20:24:24]OFD Sender: Server communicate error [20:24:29]OFD Sender: Processing packet 82261 [packets to send 254, broken 253] [20:24:29]ProducePacketName [20:24:29]name=ofd_packets/00082261 [20:24:29]OFD Sender: To server: pG, [20:24:29]CommunicateWithHost lk.salyk.kg:30040 [20:24:29]ConnectInit lk.salyk.kg [20:24:34]Connected sock=7 [20:24:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 F7 5B 0D 01 9E 2A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 02 FD 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 72 72 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 55 41 01 00 35 04 06 00 E8 54 85 98 04 8A 13 D3 B8 FA 0D 90 35 1D [20:24:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 9D 3F 47 00 1D 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 55 41 01 00 F4 03 04 00 BE 17 11 67 B6 04 01 00 00 35 6A 70 6D 83 2D 25 87 [20:24:35]CommunicateWithHost err = 0 [20:24:35]CheckOFDResponse [20:24:35]1017 (14) - 77093643461234 [20:24:35]1041 (16) - 0000000000871843 [20:24:35]1040 (4) - 82261 [20:24:35]1012 (4) - 17.10.2024 13:57 [20:24:35]1206 (1) - 0 [20:24:35]OFD Sender: Remove packet 82261 [20:24:35]ProducePacketName [20:24:35]name=ofd_packets/00082261 [20:24:35]NVStorageDeleteData [20:24:36]OFD Sender: No OFD packet to send [20:24:41]OFD Sender: No OFD packet to send [20:24:44]recv_with_timeout no data received [20:24:46]OFD Sender: No OFD packet to send [20:24:51]OFD Sender: No OFD packet to send [20:24:55]recv_with_timeout no data received [20:24:56]OFD Sender: No OFD packet to send [20:25:01]OFD Sender: No OFD packet to send [20:25:05]recv_with_timeout no data received [20:25:06]OFD Sender: No OFD packet to send [20:25:11]OFD Sender: No OFD packet to send [20:25:16]OFD Sender: No OFD packet to send [20:25:21]OFD Sender: No OFD packet to send [20:25:26]OFD Sender: No OFD packet to send [20:25:31]OFD Sender: No OFD packet to send [20:25:31]recv_with_timeout no data received [20:25:36]OFD Sender: No OFD packet to send [20:25:41]OFD Sender: No OFD packet to send [20:25:46]OFD Sender: No OFD packet to send [20:25:51]OFD Sender: No OFD packet to send [20:25:56]OFD Sender: No OFD packet to send [20:26:01]OFD Sender: No OFD packet to send [20:26:06]OFD Sender: No OFD packet to send [20:26:11]OFD Sender: No OFD packet to send [20:26:16]OFD Sender: No OFD packet to send [20:26:21]OFD Sender: No OFD packet to send [20:26:26]OFD Sender: No OFD packet to send [20:26:31]OFD Sender: No OFD packet to send [20:26:36]OFD Sender: No OFD packet to send [20:26:41]OFD Sender: No OFD packet to send [20:26:46]OFD Sender: No OFD packet to send [20:26:51]OFD Sender: No OFD packet to send [20:26:56]OFD Sender: No OFD packet to send [20:27:01]OFD Sender: No OFD packet to send [20:27:06]OFD Sender: No OFD packet to send [20:27:11]OFD Sender: No OFD packet to send [20:27:16]OFD Sender: No OFD packet to send [20:27:21]OFD Sender: No OFD packet to send [20:27:26]OFD Sender: No OFD packet to send [20:27:31]OFD Sender: No OFD packet to send [20:27:36]OFD Sender: No OFD packet to send [20:27:41]OFD Sender: No OFD packet to send [20:27:46]OFD Sender: No OFD packet to send [20:27:49]accept exits with 10 [20:27:49]New connection [20:27:49]New thread 3066793316 created [20:27:49]Thread 3066936676 joined [20:27:49]Waiting for new connection... [20:27:49] Sock 10.Parse request [20:27:49]Sock 10.Check first char [20:27:49]Sock 10.First char is OK [20:27:49]request: POST /json_proto HTTP/1.0 [20:27:49]Method: POST [20:27:49]URL: /json_proto [20:27:49]Method is POST - this is cgi request [20:27:49]url: /json_proto [20:27:49]query_string will be loaded in cgi processing [20:27:49]execute_cgi json_proto POST (null) [20:27:49]execute_cgi path=json_proto method=POST [20:27:49]POST find Content-Length [20:27:49]Host: 172.17.44.67:8080 [20:27:49]Content-Length: 754 [20:27:49]Content-Type: application/json [20:27:49] [20:27:49]POST finish read [20:27:49]Found Content-Length = 754 [20:27:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30021903", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:49]execute_script... [20:27:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30021903", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:49]POST & json_proto [20:27:49]process_json_proto [20:27:49]json parsed OK: [20:27:49]protocol is kg_v1.0 [20:27:49]action value=close_receipt [20:27:49]process_action close_receipt [20:27:49]cmd_close_receipt [20:27:49]MH_GetDate [20:27:49]Write to MH i2c: F0 00 00 C0 02 B1 [20:27:49]Write i2c OK [20:27:49]MH_I2C_Read... [20:27:49]Read from MH i2c: F0 [20:27:49]MH_I2C_Read... [20:27:49]Read from MH i2c: F0 09 00 [20:27:49]MH_I2C_Read... [20:27:49]Read from MH i2c: F0 09 00 C0 02 00 46 73 11 67 F1 C7 6B 64 72 [20:27:49]GetLastDocTimeStamp 1729196658 [20:27:49]current date 1729196870 [20:27:49]FM_GetShiftState [20:27:49]SAM_PROTO_GetShiftState [20:27:49]wFMCommunicate request_size=4 [20:27:49]MH_SAM_APDU [20:27:49]CAPDU: 80 13 01 00 [20:27:49]Write to MH i2c: E2 08 00 C1 02 80 13 01 00 00 00 00 00 40 [20:27:49]Write i2c OK [20:27:49]MH_I2C_Read... [20:27:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:49]Read from MH i2c: E2 [20:27:49]MH_I2C_Read... [20:27:49]Read from MH i2c: E2 0E 00 [20:27:49]MH_I2C_Read... [20:27:49]Read from MH i2c: E2 0E 00 C1 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 48 [20:27:49]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [20:27:49]wFMCommunicate OK [20:27:49]SAM_PROTO_GetShiftState done [20:27:49]FM_GetShiftState done [20:27:49]opened in 1729125927 [20:27:49]opened+sec_in_day 1729212327 [20:27:49]quantity*price = 0 [20:27:49]sum+1 = 1 [20:27:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 188 17.10.2024 20:27 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30021903 ФМ: 0000000000871843 ФД: 82262 ФПД: 144620131395003 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T202750&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82262&fm=144620131395003&tin=02508201610067®Number=0000000000091680&sum=0 [20:27:51]StoreToDocumentArchive [20:27:51]shift 525 fd 82262 [20:27:51]save to /storage/0525/doc_00082262 [20:27:51]save last doc name /storage/0525/doc_00082262 to /storage/kkm_last_doc_name [20:27:51]save OK [20:27:51]Clear old archive folders... [20:27:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:27:51]tlvbuf is 003258C0 [20:27:51]SAM_PROTO_ClearQueue [20:27:51]wFMCommunicate request_size=4 [20:27:51]MH_SAM_APDU [20:27:51]CAPDU: 80 09 00 00 [20:27:51]Write to MH i2c: E2 08 00 CE 02 80 09 00 00 00 00 00 00 42 [20:27:51]Write i2c OK [20:27:51]MH_I2C_Read... [20:27:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:27:51]Read from MH i2c: E2 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: E2 03 00 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [20:27:51]RAPDU: 90 00 [20:27:51]wFMCommunicate OK [20:27:51]SAM_PROTO_ClearQueue done [20:27:51]KKMCreateOFDPacket [20:27:51]OFDProtocolAddRootSTLVToBuf [20:27:51]FM_MakeSignedData [20:27:51]FM_MakeSignedData [20:27:51]SAM_PROTO_SignData [20:27:51]wFMCommunicate request_size=4 [20:27:51]MH_SAM_APDU [20:27:51]CAPDU: 80 0D 01 02 [20:27:51]Write to MH i2c: E2 08 00 CF 02 80 0D 01 02 00 00 00 00 4A [20:27:51]Write i2c OK [20:27:51]MH_I2C_Read... [20:27:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:27:51]Read from MH i2c: E2 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: E2 03 00 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: E2 03 00 CF 02 00 90 00 45 [20:27:51]RAPDU: 90 00 [20:27:51]wFMCommunicate OK [20:27:51]wFMCommunicate request_size=255 [20:27:51]MH_SAM_APDU [20:27:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 46 73 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 56 41 01 00 35 04 06 00 83 [20:27:51]Write to MH i2c: E2 02 01 D0 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 46 73 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 56 41 01 00 35 04 06 00 83 00 00 D6 [20:27:51]Write i2c OK [20:27:51]MH_I2C_Read... [20:27:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:51]Read from MH i2c: E2 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: E2 03 00 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: E2 03 00 D0 02 00 90 00 46 [20:27:51]RAPDU: 90 00 [20:27:51]wFMCommunicate OK [20:27:51]wFMCommunicate request_size=10 [20:27:51]MH_SAM_APDU [20:27:51]CAPDU: 80 0D 02 02 05 87 FF 8F 25 BB [20:27:51]Write to MH i2c: E2 0D 00 D1 02 80 0D 02 02 05 00 87 FF 8F 25 BB 00 00 4C [20:27:51]Write i2c OK [20:27:51]MH_I2C_Read... [20:27:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:51]Read from MH i2c: E2 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: E2 03 00 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: E2 03 00 D1 02 00 90 00 47 [20:27:51]RAPDU: 90 00 [20:27:51]wFMCommunicate OK [20:27:51]wFMCommunicate request_size=4 [20:27:51]MH_SAM_APDU [20:27:51]CAPDU: 80 0D 03 02 [20:27:51]Write to MH i2c: E2 08 00 D2 02 80 0D 03 02 00 00 00 00 4F [20:27:51]Write i2c OK [20:27:51]MH_I2C_Read... [20:27:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:27:51]Read from MH i2c: E2 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: E2 0B 00 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: E2 0B 00 D2 02 00 8D 60 88 EE 8F A7 2A 78 90 00 8B [20:27:51]RAPDU: 8D 60 88 EE 8F A7 2A 78 90 00 [20:27:51]wFMCommunicate OK [20:27:51]SAM_PROTO_SignData done [20:27:51]FM_MakeSignedData done [20:27:51]CreateOFDProtocolMessage [20:27:51]wFMCommunicate request_size=4 [20:27:51]MH_SAM_APDU [20:27:51]CAPDU: 80 11 00 00 [20:27:51]Write to MH i2c: E2 08 00 D3 02 80 11 00 00 00 00 00 00 4F [20:27:51]Write i2c OK [20:27:51]MH_I2C_Read... [20:27:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:51]Read from MH i2c: E2 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: E2 17 00 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: E2 17 00 D3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 A1 [20:27:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:27:51]wFMCommunicate OK [20:27:51]CreateOFDProtocolMessage done [20:27:51]OFDSenderStorePacket 82262 [20:27:51]StoreOFDPacket docnum=82262 [20:27:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 CD 00 07 01 6C 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 46 73 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 56 41 01 00 35 04 06 00 83 87 FF 8F 25 BB 8D 60 88 EE 8F A7 2A 78 [20:27:51]CheckFolder [20:27:51]dirname=/storage/ofd_packets [20:27:51]CheckFolder done [20:27:51]ProducePacketName [20:27:51]name=ofd_packets/00082262 [20:27:51]NVStorageSaveData ofd_packets/00082262 [20:27:51]File name is /storage/ofd_packets/00082262 [20:27:51]Write 301 bytes [20:27:51]NVStorageSaveData done [20:27:51]OFDSenderStorePacket done [20:27:51]KKMCreateOFDPacket done [20:27:51]NVStorageSaveData kkm_last_timestamp [20:27:51]File name is /storage/kkm_last_timestamp [20:27:51]Write 4 bytes [20:27:51]NVStorageSaveData done [20:27:51]ExternCall_PrintAddStr [20:27:51]wPrintStart [20:27:51]Write to MH i2c: 01 00 00 D4 02 D6 [20:27:51]Write i2c OK [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: 01 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: 01 07 00 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: 01 07 00 D4 02 00 00 00 00 00 FF 0F EB [20:27:51]RasterBufferAndPrint [20:27:51]line Счет N : (1)918764 [20:27:51]line ИНН: 02508201610067 [20:27:51]line Контрольно-Кассовый Чек [20:27:51]line ПРОДАЖА [20:27:51]line ТРК (МРК, ГНК) : 11 [20:27:51]line Товар: 2710124130 [20:27:51]line Аи-92-К-4 [20:27:51]line 20.000 * 0.00 [20:27:51]line = 0.00 [20:27:51]line НДС 12% НСП 1% [20:27:51]line > о реализуемом товаре [20:27:51]line ИТОГО: 0.00 [20:27:51]line НСП 1% : 0.00 [20:27:51]line НДС 12% : 0.00 [20:27:51]line Наличными: 0.00 [20:27:51]line Безнал.: 0.00 [20:27:51]line Место: АЗС № 114 "Партнер Нефть" [20:27:51]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [20:27:51]line СНО: Общий режим [20:27:51]line Чек 188 17.10.2024 20:27 [20:27:51]line Смена: 525 ФФД: 1.0 [20:27:51]line ЗНМ: 0300000086 [20:27:51]line РНМ: 0000000000091680 [20:27:51]line Версия ККМ: 001 [20:27:51]line Талоны: ТК ГПНА Online [20:27:51]line 30021903 [20:27:51]line ФМ: 0000000000871843 [20:27:51]line ФД: 82262 [20:27:51]line ФПД: 144620131395003 [20:27:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T202750&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82262&fm=144620131395003&tin=02508201610067®Number=0000000000091680&sum=0 [20:27:51]written 0, free lines is 4095 [20:27:51]OFD Sender: Processing packet 82262 [packets to send 254, broken 253] [20:27:51]ProducePacketName [20:27:51]name=ofd_packets/00082262 [20:27:51]OFD Sender: To server: pG, [20:27:51]CommunicateWithHost lk.salyk.kg:30040 [20:27:51]ConnectInit lk.salyk.kg [20:27:52]Write to MH i2c: 01 00 00 FE 02 00 [20:27:52]Write i2c OK [20:27:52]MH_I2C_Read... [20:27:52]Read from MH i2c: 01 [20:27:52]MH_I2C_Read... [20:27:52]Read from MH i2c: 01 07 00 [20:27:52]MH_I2C_Read... [20:27:52]Read from MH i2c: 01 07 00 FE 02 00 00 00 00 00 E9 0C FC [20:27:52]RasterBufferAndPrint [20:27:52]line [20:27:52]line [20:27:52]line [20:27:52]line [20:27:52]line [20:27:52]written 0, free lines is 3312 [20:27:52]MH_Cut [20:27:52]Write to MH i2c: D1 01 00 05 03 01 DA [20:27:52]Write i2c OK [20:27:52]MH_I2C_Read... [20:27:52]Read from MH i2c: D1 [20:27:52]MH_I2C_Read... [20:27:52]Read from MH i2c: D1 01 00 [20:27:52]MH_I2C_Read... [20:27:52]Read from MH i2c: D1 01 00 05 03 00 D9 [20:27:52]Write to MH i2c: 01 00 00 06 03 09 [20:27:52]Write i2c OK [20:27:52]MH_I2C_Read... [20:27:52]Connected sock=9 [20:27:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 CD 00 07 01 6C 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 46 73 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 56 41 01 00 35 04 06 00 83 87 FF 8F 25 BB 8D 60 88 EE 8F A7 2A 78 [20:27:53]*** Cut start [20:27:53]*** Partial cut [20:27:53]*** CUTSNS_PIN = 1 [20:27:53]*** CUTSNS_PIN = 0 [20:27:53]*** Brake cut motor [20:27:53]Read from MH i2c: 01 [20:27:53]MH_I2C_Read... [20:27:53]*** Stop cut motor [20:27:53]*** Cut end [20:27:53]Read from MH i2c: 01 07 00 [20:27:53]MH_I2C_Read... [20:27:53]Read from MH i2c: 01 07 00 06 03 00 00 00 00 00 FF 0F 1E [20:27:53]process_action close_receipt done [20:27:53]requested_data is exist [20:27:53]produce_requested_data [20:27:53]requested_item fm.sn is exist - process it [20:27:53]wFMCommunicate request_size=4 [20:27:53]MH_SAM_APDU [20:27:53]CAPDU: 80 11 00 00 [20:27:53]Write to MH i2c: E2 08 00 07 03 80 11 00 00 00 00 00 00 84 [20:27:53]Write i2c OK [20:27:53]MH_I2C_Read... [20:27:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 1C 78 47 00 19 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 56 41 01 00 F4 03 04 00 84 18 11 67 B6 04 01 00 00 E7 D1 B3 F0 CC 8F 71 52 [20:27:53]CommunicateWithHost err = 0 [20:27:53]CheckOFDResponse [20:27:53]1017 (14) - 77093643461234 [20:27:53]1041 (16) - 0000000000871843 [20:27:53]1040 (4) - 82262 [20:27:53]1012 (4) - 17.10.2024 14:00 [20:27:53]1206 (1) - 0 [20:27:53]OFD Sender: Remove packet 82262 [20:27:53]ProducePacketName [20:27:53]name=ofd_packets/00082262 [20:27:53]NVStorageDeleteData [20:27:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:53]Read from MH i2c: E2 [20:27:53]MH_I2C_Read... [20:27:53]Read from MH i2c: E2 17 00 [20:27:53]MH_I2C_Read... [20:27:53]Read from MH i2c: E2 17 00 07 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D6 [20:27:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:27:53]wFMCommunicate OK [20:27:53]requested_item fd.num is exist - process it [20:27:53]SAM_PROTO_GetFieldsCounters [20:27:53]wFMCommunicate request_size=4 [20:27:53]MH_SAM_APDU [20:27:53]CAPDU: 80 13 00 00 [20:27:53]Write to MH i2c: E2 08 00 08 03 80 13 00 00 00 00 00 00 87 [20:27:53]Write i2c OK [20:27:53]MH_I2C_Read... [20:27:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:27:53]Read from MH i2c: E2 [20:27:53]MH_I2C_Read... [20:27:53]Read from MH i2c: E2 62 00 [20:27:53]MH_I2C_Read... [20:27:53]Read from MH i2c: E2 62 00 08 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 56 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [20:27:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 56 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:27:53]wFMCommunicate OK [20:27:53]SAM_PROTO_GetFieldsCounters done [20:27:53]requested_item shift.num is exist - process it [20:27:53]requested_item shift.opened is exist - process it [20:27:53]req_shift_opened [20:27:53]FM_GetShiftState [20:27:53]SAM_PROTO_GetShiftState [20:27:53]wFMCommunicate request_size=4 [20:27:53]MH_SAM_APDU [20:27:53]CAPDU: 80 13 01 00 [20:27:53]Write to MH i2c: E2 08 00 09 03 80 13 01 00 00 00 00 00 89 [20:27:53]Write i2c OK [20:27:53]MH_I2C_Read... [20:27:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:53]Read from MH i2c: E2 [20:27:53]MH_I2C_Read... [20:27:53]Read from MH i2c: E2 0E 00 [20:27:53]MH_I2C_Read... [20:27:53]Read from MH i2c: E2 0E 00 09 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 91 [20:27:53]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [20:27:53]wFMCommunicate OK [20:27:53]SAM_PROTO_GetShiftState done [20:27:53]FM_GetShiftState done [20:27:53]req_shift_opened done [20:27:53]requested_item shift.open_date is exist - process it [20:27:53]req_shift_open_date [20:27:53]req_shift_open_date done [20:27:53]produce_requested_data done [20:27:53]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82262,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [20:27:53]process_action_free close_receipt [20:27:53]json_value_free [20:27:53]json_value_free done [20:27:53]process_json_proto returns [20:27:53]Send response to host [20:27:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82262,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [20:27:53]free response buf [20:27:53]execute_script done [20:27:53]execute_script returns [20:27:53]free content buf [20:27:53]Sock 10.Close socket [20:27:53]Sock 10.Thread stoped [20:27:54]OFD Sender: No OFD packet to send [20:27:59]OFD Sender: No OFD packet to send [20:28:04]OFD Sender: No OFD packet to send [20:28:09]recv_with_timeout no data received [20:28:09]OFD Sender: No OFD packet to send [20:28:14]OFD Sender: No OFD packet to send [20:28:16]accept exits with 7 [20:28:16]New connection [20:28:16]New thread 3066936676 created [20:28:16]Thread 3066793316 joined [20:28:16]Waiting for new connection... [20:28:16] Sock 7.Parse request [20:28:16]Sock 7.Check first char [20:28:16]Sock 7.First char is OK [20:28:16]request: POST /json_proto HTTP/1.0 [20:28:16]Method: POST [20:28:16]URL: /json_proto [20:28:16]Method is POST - this is cgi request [20:28:16]url: /json_proto [20:28:16]query_string will be loaded in cgi processing [20:28:16]execute_cgi json_proto POST (null) [20:28:16]execute_cgi path=json_proto method=POST [20:28:16]POST find Content-Length [20:28:16]Host: 172.17.44.67:8080 [20:28:16]Content-Length: 677 [20:28:16]Content-Type: application/json [20:28:16] [20:28:16]POST finish read [20:28:16]Found Content-Length = 677 [20:28:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:16]execute_script... [20:28:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:16]POST & json_proto [20:28:16]process_json_proto [20:28:16]json parsed OK: [20:28:16]protocol is kg_v1.0 [20:28:16]action value=close_receipt [20:28:16]process_action close_receipt [20:28:16]cmd_close_receipt [20:28:16]MH_GetDate [20:28:16]Write to MH i2c: F0 00 00 0A 03 FC [20:28:16]Write i2c OK [20:28:16]MH_I2C_Read... [20:28:16]Read from MH i2c: F0 [20:28:16]MH_I2C_Read... [20:28:16]Read from MH i2c: F0 09 00 [20:28:16]MH_I2C_Read... [20:28:16]Read from MH i2c: F0 09 00 0A 03 00 61 73 11 67 F1 C7 6B 64 D8 [20:28:16]GetLastDocTimeStamp 1729196870 [20:28:16]current date 1729196897 [20:28:16]FM_GetShiftState [20:28:16]SAM_PROTO_GetShiftState [20:28:16]wFMCommunicate request_size=4 [20:28:16]MH_SAM_APDU [20:28:16]CAPDU: 80 13 01 00 [20:28:16]Write to MH i2c: E2 08 00 0B 03 80 13 01 00 00 00 00 00 8B [20:28:16]Write i2c OK [20:28:16]MH_I2C_Read... [20:28:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:16]Read from MH i2c: E2 [20:28:16]MH_I2C_Read... [20:28:16]Read from MH i2c: E2 0E 00 [20:28:16]MH_I2C_Read... [20:28:16]Read from MH i2c: E2 0E 00 0B 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 93 [20:28:16]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [20:28:16]wFMCommunicate OK [20:28:16]SAM_PROTO_GetShiftState done [20:28:16]FM_GetShiftState done [20:28:16]opened in 1729125927 [20:28:16]opened+sec_in_day 1729212327 [20:28:16]quantity*price = 50041 [20:28:16]sum+1 = 50042 [20:28:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 189 17.10.2024 20:28 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82263 ФПД: 17357193376918 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T202817&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82263&fm=17357193376918&tin=02508201610067®Number=0000000000091680&sum=50000 [20:28:17]StoreToDocumentArchive [20:28:17]shift 525 fd 82263 [20:28:17]save to /storage/0525/doc_00082263 [20:28:17]save last doc name /storage/0525/doc_00082263 to /storage/kkm_last_doc_name [20:28:17]save OK [20:28:17]Clear old archive folders... [20:28:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:28:17]tlvbuf is 003A5CD0 [20:28:17]SAM_PROTO_ClearQueue [20:28:17]wFMCommunicate request_size=4 [20:28:17]MH_SAM_APDU [20:28:17]CAPDU: 80 09 00 00 [20:28:17]Write to MH i2c: E2 08 00 18 03 80 09 00 00 00 00 00 00 8D [20:28:17]Write i2c OK [20:28:17]MH_I2C_Read... [20:28:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:28:17]Read from MH i2c: E2 [20:28:17]MH_I2C_Read... [20:28:17]Read from MH i2c: E2 03 00 [20:28:17]MH_I2C_Read... [20:28:17]Read from MH i2c: E2 03 00 18 03 00 90 00 8F [20:28:17]RAPDU: 90 00 [20:28:17]wFMCommunicate OK [20:28:17]SAM_PROTO_ClearQueue done [20:28:17]KKMCreateOFDPacket [20:28:17]OFDProtocolAddRootSTLVToBuf [20:28:17]FM_MakeSignedData [20:28:17]FM_MakeSignedData [20:28:17]SAM_PROTO_SignData [20:28:17]wFMCommunicate request_size=4 [20:28:17]MH_SAM_APDU [20:28:17]CAPDU: 80 0D 01 02 [20:28:17]Write to MH i2c: E2 08 00 19 03 80 0D 01 02 00 00 00 00 95 [20:28:17]Write i2c OK [20:28:17]MH_I2C_Read... [20:28:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:28:18]Read from MH i2c: E2 [20:28:18]MH_I2C_Read... [20:28:18]Read from MH i2c: E2 03 00 [20:28:18]MH_I2C_Read... [20:28:18]Read from MH i2c: E2 03 00 19 03 00 90 00 90 [20:28:18]RAPDU: 90 00 [20:28:18]wFMCommunicate OK [20:28:18]wFMCommunicate request_size=255 [20:28:18]MH_SAM_APDU [20:28:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 61 73 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 57 41 01 00 35 04 06 00 0F [20:28:18]Write to MH i2c: E2 02 01 1A 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 61 73 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 57 41 01 00 35 04 06 00 0F 00 00 E1 [20:28:18]Write i2c OK [20:28:18]MH_I2C_Read... [20:28:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:18]Read from MH i2c: E2 [20:28:18]MH_I2C_Read... [20:28:18]Read from MH i2c: E2 03 00 [20:28:18]MH_I2C_Read... [20:28:18]Read from MH i2c: E2 03 00 1A 03 00 90 00 91 [20:28:18]RAPDU: 90 00 [20:28:18]wFMCommunicate OK [20:28:18]wFMCommunicate request_size=10 [20:28:18]MH_SAM_APDU [20:28:18]CAPDU: 80 0D 02 02 05 C9 49 58 74 96 [20:28:18]Write to MH i2c: E2 0D 00 1B 03 80 0D 02 02 05 00 C9 49 58 74 96 00 00 16 [20:28:18]Write i2c OK [20:28:18]MH_I2C_Read... [20:28:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:18]Read from MH i2c: E2 [20:28:18]MH_I2C_Read... [20:28:18]Read from MH i2c: E2 03 00 [20:28:18]MH_I2C_Read... [20:28:18]Read from MH i2c: E2 03 00 1B 03 00 90 00 92 [20:28:18]RAPDU: 90 00 [20:28:18]wFMCommunicate OK [20:28:18]wFMCommunicate request_size=4 [20:28:18]MH_SAM_APDU [20:28:18]CAPDU: 80 0D 03 02 [20:28:18]Write to MH i2c: E2 08 00 1C 03 80 0D 03 02 00 00 00 00 9A [20:28:18]Write i2c OK [20:28:18]MH_I2C_Read... [20:28:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:28:18]Read from MH i2c: E2 [20:28:18]MH_I2C_Read... [20:28:18]Read from MH i2c: E2 0B 00 [20:28:18]MH_I2C_Read... [20:28:18]Read from MH i2c: E2 0B 00 1C 03 00 52 B5 F7 5C 73 78 49 82 90 00 AB [20:28:18]RAPDU: 52 B5 F7 5C 73 78 49 82 90 00 [20:28:18]wFMCommunicate OK [20:28:18]SAM_PROTO_SignData done [20:28:18]FM_MakeSignedData done [20:28:18]CreateOFDProtocolMessage [20:28:18]wFMCommunicate request_size=4 [20:28:18]MH_SAM_APDU [20:28:18]CAPDU: 80 11 00 00 [20:28:18]Write to MH i2c: E2 08 00 1D 03 80 11 00 00 00 00 00 00 9A [20:28:18]Write i2c OK [20:28:18]MH_I2C_Read... [20:28:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:18]Read from MH i2c: E2 [20:28:18]MH_I2C_Read... [20:28:18]Read from MH i2c: E2 17 00 [20:28:18]MH_I2C_Read... [20:28:18]Read from MH i2c: E2 17 00 1D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 EC [20:28:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:28:18]wFMCommunicate OK [20:28:18]CreateOFDProtocolMessage done [20:28:18]OFDSenderStorePacket 82263 [20:28:18]StoreOFDPacket docnum=82263 [20:28:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 27 3D 07 01 6A C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 61 73 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 57 41 01 00 35 04 06 00 0F C9 49 58 74 96 52 B5 F7 5C 73 78 49 82 [20:28:18]CheckFolder [20:28:18]dirname=/storage/ofd_packets [20:28:18]CheckFolder done [20:28:18]ProducePacketName [20:28:18]name=ofd_packets/00082263 [20:28:18]NVStorageSaveData ofd_packets/00082263 [20:28:18]File name is /storage/ofd_packets/00082263 [20:28:18]Write 301 bytes [20:28:18]NVStorageSaveData done [20:28:18]OFDSenderStorePacket done [20:28:18]KKMCreateOFDPacket done [20:28:18]NVStorageSaveData kkm_last_timestamp [20:28:18]File name is /storage/kkm_last_timestamp [20:28:18]Write 4 bytes [20:28:18]NVStorageSaveData done [20:28:18]ExternCall_PrintAddStr [20:28:18]wPrintStart [20:28:18]Write to MH i2c: 01 00 00 1E 03 21 [20:28:18]Write i2c OK [20:28:18]MH_I2C_Read... [20:28:18]Read from MH i2c: 01 [20:28:18]MH_I2C_Read... [20:28:18]Read from MH i2c: 01 07 00 [20:28:18]MH_I2C_Read... [20:28:18]Read from MH i2c: 01 07 00 1E 03 00 00 00 00 00 FF 0F 36 [20:28:18]RasterBufferAndPrint [20:28:18]line Счет N : (1)918765 [20:28:18]line ИНН: 02508201610067 [20:28:18]line Контрольно-Кассовый Чек [20:28:18]line ПРОДАЖА [20:28:18]line ТРК (МРК, ГНК) : 22 [20:28:18]line Товар: 2710124130 [20:28:18]line Аи-92-К-4 [20:28:18]line 7.480 * 66.90 [20:28:18]line = 500.41 [20:28:18]line НДС 12% НСП 1% [20:28:18]line > о реализуемом товаре [20:28:18]line ОКРУГЛЕНИЕ: -0.41 [20:28:18]line ИТОГО: 500.00 [20:28:18]line Внесено: 500.00 [20:28:18]line СДАЧА: 0.00 [20:28:18]line НСП 1% : 4.43 [20:28:18]line НДС 12% : 53.14 [20:28:18]line Наличными: 500.00 [20:28:18]line Безнал.: 0.00 [20:28:18]line Место: АЗС № 114 "Партнер Нефть" [20:28:18]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [20:28:18]line СНО: Общий режим [20:28:18]line Чек 189 17.10.2024 20:28 [20:28:18]line Смена: 525 ФФД: 1.0 [20:28:18]line ЗНМ: 0300000086 [20:28:18]line РНМ: 0000000000091680 [20:28:18]line Версия ККМ: 001 [20:28:18]line ФМ: 0000000000871843 [20:28:18]line ФД: 82263 [20:28:18]line ФПД: 17357193376918 [20:28:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T202817&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82263&fm=17357193376918&tin=02508201610067®Number=0000000000091680&sum=50000 [20:28:18]OFD Sender: Processing packet 82263 [packets to send 254, broken 253] [20:28:18]ProducePacketName [20:28:18]name=ofd_packets/00082263 [20:28:18]OFD Sender: To server: pG, [20:28:18]CommunicateWithHost lk.salyk.kg:30040 [20:28:18]ConnectInit lk.salyk.kg [20:28:18]written 0, free lines is 4095 [20:28:19]Write to MH i2c: 01 00 00 49 03 4C [20:28:19]Write i2c OK [20:28:19]MH_I2C_Read... [20:28:19]Read from MH i2c: 01 [20:28:19]MH_I2C_Read... [20:28:19]Read from MH i2c: 01 07 00 [20:28:19]MH_I2C_Read... [20:28:19]Read from MH i2c: 01 07 00 49 03 00 00 00 00 00 DE 0C 3D [20:28:19]RasterBufferAndPrint [20:28:19]line [20:28:19]line [20:28:19]line [20:28:19]line [20:28:19]line [20:28:19]written 0, free lines is 3300 [20:28:19]MH_Cut [20:28:19]Write to MH i2c: D1 01 00 50 03 01 25 [20:28:19]Write i2c OK [20:28:19]MH_I2C_Read... [20:28:19]Read from MH i2c: D1 [20:28:19]MH_I2C_Read... [20:28:19]Read from MH i2c: D1 01 00 [20:28:19]MH_I2C_Read... [20:28:19]Read from MH i2c: D1 01 00 50 03 00 24 [20:28:19]Write to MH i2c: 01 00 00 51 03 54 [20:28:19]Write i2c OK [20:28:19]MH_I2C_Read... [20:28:20]*** Cut start [20:28:20]*** Partial cut [20:28:20]*** CUTSNS_PIN = 1 [20:28:20]*** CUTSNS_PIN = 0 [20:28:20]*** Brake cut motor [20:28:20]Read from MH i2c: 01 [20:28:20]MH_I2C_Read... [20:28:20]*** Stop cut motor [20:28:20]*** Cut end [20:28:20]Read from MH i2c: 01 07 00 [20:28:20]MH_I2C_Read... [20:28:20]Read from MH i2c: 01 07 00 51 03 00 00 00 00 00 FF 0F 69 [20:28:20]process_action close_receipt done [20:28:20]requested_data is exist [20:28:20]produce_requested_data [20:28:20]requested_item fm.sn is exist - process it [20:28:20]wFMCommunicate request_size=4 [20:28:20]MH_SAM_APDU [20:28:20]CAPDU: 80 11 00 00 [20:28:20]Write to MH i2c: E2 08 00 52 03 80 11 00 00 00 00 00 00 CF [20:28:20]Write i2c OK [20:28:20]MH_I2C_Read... [20:28:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:20]Read from MH i2c: E2 [20:28:20]MH_I2C_Read... [20:28:20]Read from MH i2c: E2 17 00 [20:28:20]MH_I2C_Read... [20:28:20]Read from MH i2c: E2 17 00 52 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 21 [20:28:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:28:20]wFMCommunicate OK [20:28:20]requested_item fd.num is exist - process it [20:28:20]SAM_PROTO_GetFieldsCounters [20:28:20]wFMCommunicate request_size=4 [20:28:20]MH_SAM_APDU [20:28:20]CAPDU: 80 13 00 00 [20:28:20]Write to MH i2c: E2 08 00 53 03 80 13 00 00 00 00 00 00 D2 [20:28:20]Write i2c OK [20:28:20]MH_I2C_Read... [20:28:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:28:20]Read from MH i2c: E2 [20:28:20]MH_I2C_Read... [20:28:20]Read from MH i2c: E2 62 00 [20:28:20]MH_I2C_Read... [20:28:20]Read from MH i2c: E2 62 00 53 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 57 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [20:28:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 57 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:28:20]wFMCommunicate OK [20:28:20]SAM_PROTO_GetFieldsCounters done [20:28:20]requested_item shift.num is exist - process it [20:28:20]requested_item shift.opened is exist - process it [20:28:20]req_shift_opened [20:28:20]FM_GetShiftState [20:28:20]SAM_PROTO_GetShiftState [20:28:20]wFMCommunicate request_size=4 [20:28:20]MH_SAM_APDU [20:28:20]CAPDU: 80 13 01 00 [20:28:20]Write to MH i2c: E2 08 00 54 03 80 13 01 00 00 00 00 00 D4 [20:28:20]Write i2c OK [20:28:20]MH_I2C_Read... [20:28:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:20]Read from MH i2c: E2 [20:28:20]MH_I2C_Read... [20:28:20]Read from MH i2c: E2 0E 00 [20:28:20]MH_I2C_Read... [20:28:20]Read from MH i2c: E2 0E 00 54 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 DC [20:28:20]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [20:28:20]wFMCommunicate OK [20:28:20]SAM_PROTO_GetShiftState done [20:28:20]FM_GetShiftState done [20:28:20]req_shift_opened done [20:28:20]requested_item shift.open_date is exist - process it [20:28:20]req_shift_open_date [20:28:20]req_shift_open_date done [20:28:20]produce_requested_data done [20:28:20]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82263,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [20:28:20]process_action_free close_receipt [20:28:20]json_value_free [20:28:20]json_value_free done [20:28:20]process_json_proto returns [20:28:20]Send response to host [20:28:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82263,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [20:28:20]free response buf [20:28:20]execute_script done [20:28:20]execute_script returns [20:28:20]free content buf [20:28:20]Sock 7.Close socket [20:28:20]Sock 7.Thread stoped [20:28:21]Connected sock=11 [20:28:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 27 3D 07 01 6A C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 61 73 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 57 41 01 00 35 04 06 00 0F C9 49 58 74 96 52 B5 F7 5C 73 78 49 82 [20:28:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 80 E4 47 00 2C A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 57 41 01 00 F4 03 04 00 A0 18 11 67 B6 04 01 00 00 86 15 74 E3 DD 75 64 92 [20:28:21]CommunicateWithHost err = 0 [20:28:21]CheckOFDResponse [20:28:21]1017 (14) - 77093643461234 [20:28:21]1041 (16) - 0000000000871843 [20:28:21]1040 (4) - 82263 [20:28:21]1012 (4) - 17.10.2024 14:01 [20:28:21]1206 (1) - 0 [20:28:21]OFD Sender: Remove packet 82263 [20:28:21]ProducePacketName [20:28:21]name=ofd_packets/00082263 [20:28:21]NVStorageDeleteData [20:28:22]OFD Sender: No OFD packet to send [20:28:27]OFD Sender: No OFD packet to send [20:28:30]recv_with_timeout no data received [20:28:32]OFD Sender: No OFD packet to send [20:28:37]OFD Sender: No OFD packet to send [20:28:41]recv_with_timeout no data received [20:28:42]OFD Sender: No OFD packet to send [20:28:47]OFD Sender: No OFD packet to send [20:28:52]OFD Sender: No OFD packet to send [20:28:52]recv_with_timeout no data received [20:28:57]OFD Sender: No OFD packet to send [20:29:02]OFD Sender: No OFD packet to send [20:29:07]OFD Sender: No OFD packet to send [20:29:12]OFD Sender: No OFD packet to send [20:29:17]OFD Sender: No OFD packet to send [20:29:22]OFD Sender: No OFD packet to send [20:29:27]OFD Sender: No OFD packet to send [20:29:32]OFD Sender: No OFD packet to send [20:29:37]OFD Sender: No OFD packet to send [20:29:42]OFD Sender: No OFD packet to send [20:29:47]OFD Sender: No OFD packet to send [20:29:52]OFD Sender: No OFD packet to send [20:29:57]OFD Sender: No OFD packet to send [20:30:02]OFD Sender: No OFD packet to send [20:30:07]OFD Sender: No OFD packet to send [20:30:12]OFD Sender: No OFD packet to send [20:30:13]recv_with_timeout no data received [20:30:17]OFD Sender: No OFD packet to send [20:30:22]OFD Sender: No OFD packet to send [20:30:27]OFD Sender: No OFD packet to send [20:30:32]OFD Sender: No OFD packet to send [20:30:37]OFD Sender: No OFD packet to send [20:30:42]OFD Sender: No OFD packet to send [20:30:47]OFD Sender: No OFD packet to send [20:30:52]OFD Sender: No OFD packet to send [20:30:57]OFD Sender: No OFD packet to send [20:30:59]recv_with_timeout no data received [20:31:02]OFD Sender: No OFD packet to send [20:31:07]OFD Sender: No OFD packet to send [20:31:12]OFD Sender: No OFD packet to send [20:31:17]OFD Sender: No OFD packet to send [20:31:22]OFD Sender: No OFD packet to send [20:31:24]recv_with_timeout no data received [20:31:27]OFD Sender: No OFD packet to send [20:31:32]OFD Sender: No OFD packet to send [20:31:37]OFD Sender: No OFD packet to send [20:31:42]OFD Sender: No OFD packet to send [20:31:47]OFD Sender: No OFD packet to send [20:31:52]OFD Sender: No OFD packet to send [20:31:57]OFD Sender: No OFD packet to send [20:32:02]OFD Sender: No OFD packet to send [20:32:07]OFD Sender: No OFD packet to send [20:32:12]OFD Sender: No OFD packet to send [20:32:17]OFD Sender: No OFD packet to send [20:32:22]OFD Sender: No OFD packet to send [20:32:27]OFD Sender: No OFD packet to send [20:32:32]OFD Sender: No OFD packet to send [20:32:37]OFD Sender: No OFD packet to send [20:32:42]OFD Sender: No OFD packet to send [20:32:47]OFD Sender: No OFD packet to send [20:32:52]OFD Sender: No OFD packet to send [20:32:57]OFD Sender: No OFD packet to send [20:33:02]OFD Sender: No OFD packet to send [20:33:04]recv_with_timeout no data received [20:33:07]OFD Sender: No OFD packet to send [20:33:12]OFD Sender: No OFD packet to send [20:33:17]OFD Sender: No OFD packet to send [20:33:21]recv_with_timeout no data received [20:33:22]OFD Sender: No OFD packet to send [20:33:27]OFD Sender: No OFD packet to send [20:33:32]OFD Sender: No OFD packet to send [20:33:37]OFD Sender: No OFD packet to send [20:33:42]OFD Sender: No OFD packet to send [20:33:47]OFD Sender: No OFD packet to send [20:33:52]OFD Sender: No OFD packet to send [20:33:57]OFD Sender: No OFD packet to send [20:34:02]OFD Sender: No OFD packet to send [20:34:07]OFD Sender: No OFD packet to send [20:34:12]OFD Sender: No OFD packet to send [20:34:17]OFD Sender: No OFD packet to send [20:34:22]OFD Sender: No OFD packet to send [20:34:27]OFD Sender: No OFD packet to send [20:34:32]OFD Sender: No OFD packet to send [20:34:37]OFD Sender: No OFD packet to send [20:34:42]OFD Sender: No OFD packet to send [20:34:47]OFD Sender: No OFD packet to send [20:34:52]OFD Sender: No OFD packet to send [20:34:57]OFD Sender: No OFD packet to send [20:35:02]OFD Sender: No OFD packet to send [20:35:07]OFD Sender: No OFD packet to send [20:35:12]OFD Sender: No OFD packet to send [20:35:17]OFD Sender: No OFD packet to send [20:35:22]OFD Sender: No OFD packet to send [20:35:28]OFD Sender: No OFD packet to send [20:35:43]OFD Sender: No OFD packet to send [20:35:48]OFD Sender: No OFD packet to send [20:35:53]OFD Sender: No OFD packet to send [20:35:53]recv_with_timeout no data received [20:35:58]OFD Sender: No OFD packet to send [20:36:03]OFD Sender: No OFD packet to send [20:36:08]OFD Sender: No OFD packet to send [20:36:11]recv_with_timeout no data received [20:36:13]OFD Sender: No OFD packet to send [20:36:18]OFD Sender: No OFD packet to send [20:36:21]recv_with_timeout no data received [20:36:23]OFD Sender: No OFD packet to send [20:36:28]OFD Sender: No OFD packet to send [20:36:33]OFD Sender: No OFD packet to send [20:36:38]OFD Sender: No OFD packet to send [20:36:43]OFD Sender: No OFD packet to send [20:36:48]OFD Sender: No OFD packet to send [20:36:53]OFD Sender: No OFD packet to send [20:36:58]OFD Sender: No OFD packet to send [20:37:03]OFD Sender: No OFD packet to send [20:37:08]OFD Sender: No OFD packet to send [20:37:13]OFD Sender: No OFD packet to send [20:37:18]OFD Sender: No OFD packet to send [20:37:23]OFD Sender: No OFD packet to send [20:37:28]OFD Sender: No OFD packet to send [20:37:33]OFD Sender: No OFD packet to send [20:37:38]OFD Sender: No OFD packet to send [20:37:43]OFD Sender: No OFD packet to send [20:37:48]OFD Sender: No OFD packet to send [20:37:53]OFD Sender: No OFD packet to send [20:37:58]OFD Sender: No OFD packet to send [20:38:03]OFD Sender: No OFD packet to send [20:38:08]OFD Sender: No OFD packet to send [20:38:13]OFD Sender: No OFD packet to send [20:38:18]OFD Sender: No OFD packet to send [20:38:23]OFD Sender: No OFD packet to send [20:38:28]OFD Sender: No OFD packet to send [20:38:33]OFD Sender: No OFD packet to send [20:38:38]OFD Sender: No OFD packet to send [20:38:43]OFD Sender: No OFD packet to send [20:38:48]OFD Sender: No OFD packet to send [20:38:53]OFD Sender: No OFD packet to send [20:38:58]OFD Sender: No OFD packet to send [20:39:03]OFD Sender: No OFD packet to send [20:39:08]OFD Sender: No OFD packet to send [20:39:13]OFD Sender: No OFD packet to send [20:39:18]OFD Sender: No OFD packet to send [20:39:23]OFD Sender: No OFD packet to send [20:39:28]OFD Sender: No OFD packet to send [20:39:33]OFD Sender: No OFD packet to send [20:39:38]OFD Sender: No OFD packet to send [20:39:43]OFD Sender: No OFD packet to send [20:39:48]OFD Sender: No OFD packet to send [20:39:53]OFD Sender: No OFD packet to send [20:39:58]OFD Sender: No OFD packet to send [20:40:03]OFD Sender: No OFD packet to send [20:40:08]OFD Sender: No OFD packet to send [20:40:13]OFD Sender: No OFD packet to send [20:40:18]OFD Sender: No OFD packet to send [20:40:23]OFD Sender: No OFD packet to send [20:40:28]OFD Sender: No OFD packet to send [20:40:33]OFD Sender: No OFD packet to send [20:40:38]OFD Sender: No OFD packet to send [20:40:43]OFD Sender: No OFD packet to send [20:40:48]OFD Sender: No OFD packet to send [20:40:53]OFD Sender: No OFD packet to send [20:40:58]OFD Sender: No OFD packet to send [20:41:03]OFD Sender: No OFD packet to send [20:41:08]OFD Sender: No OFD packet to send [20:41:13]OFD Sender: No OFD packet to send [20:41:18]OFD Sender: No OFD packet to send [20:41:23]OFD Sender: No OFD packet to send [20:41:28]OFD Sender: No OFD packet to send [20:41:33]OFD Sender: No OFD packet to send [20:41:38]OFD Sender: No OFD packet to send [20:41:43]OFD Sender: No OFD packet to send [20:41:48]OFD Sender: No OFD packet to send [20:41:53]OFD Sender: No OFD packet to send [20:41:58]OFD Sender: No OFD packet to send [20:42:03]OFD Sender: No OFD packet to send [20:42:08]OFD Sender: No OFD packet to send [20:42:13]OFD Sender: No OFD packet to send [20:42:18]OFD Sender: No OFD packet to send [20:42:23]OFD Sender: No OFD packet to send [20:42:28]OFD Sender: No OFD packet to send [20:42:29]recv_with_timeout no data received [20:42:33]OFD Sender: No OFD packet to send [20:42:38]OFD Sender: No OFD packet to send [20:42:43]OFD Sender: No OFD packet to send [20:42:48]OFD Sender: No OFD packet to send [20:42:53]OFD Sender: No OFD packet to send [20:42:58]OFD Sender: No OFD packet to send [20:43:03]OFD Sender: No OFD packet to send [20:43:08]OFD Sender: No OFD packet to send [20:43:13]OFD Sender: No OFD packet to send [20:43:18]recv_with_timeout no data received [20:43:18]OFD Sender: No OFD packet to send [20:43:23]OFD Sender: No OFD packet to send [20:43:28]OFD Sender: No OFD packet to send [20:43:33]OFD Sender: No OFD packet to send [20:43:38]OFD Sender: No OFD packet to send [20:43:43]OFD Sender: No OFD packet to send [20:43:48]OFD Sender: No OFD packet to send [20:43:53]OFD Sender: No OFD packet to send [20:43:58]OFD Sender: No OFD packet to send [20:44:03]OFD Sender: No OFD packet to send [20:44:04]recv_with_timeout no data received [20:44:08]OFD Sender: No OFD packet to send [20:44:12]accept exits with 10 [20:44:12]New connection [20:44:12]New thread 3066793316 created [20:44:12]Thread 3066936676 joined [20:44:12]Waiting for new connection... [20:44:12] Sock 10.Parse request [20:44:12]Sock 10.Check first char [20:44:12]Sock 10.First char is OK [20:44:12]request: POST /json_proto HTTP/1.0 [20:44:12]Method: POST [20:44:12]URL: /json_proto [20:44:12]Method is POST - this is cgi request [20:44:12]url: /json_proto [20:44:12]query_string will be loaded in cgi processing [20:44:12]execute_cgi json_proto POST (null) [20:44:12]execute_cgi path=json_proto method=POST [20:44:12]POST find Content-Length [20:44:12]Host: 172.17.44.67:8080 [20:44:12]Content-Length: 682 [20:44:12]Content-Type: application/json [20:44:12] [20:44:12]POST finish read [20:44:12]Found Content-Length = 682 [20:44:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 59.800, "sum" : 4000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:12]execute_script... [20:44:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 59.800, "sum" : 4000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:12]POST & json_proto [20:44:12]process_json_proto [20:44:12]json parsed OK: [20:44:12]protocol is kg_v1.0 [20:44:12]action value=close_receipt [20:44:12]process_action close_receipt [20:44:12]cmd_close_receipt [20:44:12]MH_GetDate [20:44:12]Write to MH i2c: F0 00 00 55 03 47 [20:44:12]Write i2c OK [20:44:12]MH_I2C_Read... [20:44:12]Read from MH i2c: F0 [20:44:12]MH_I2C_Read... [20:44:12]Read from MH i2c: F0 09 00 [20:44:12]MH_I2C_Read... [20:44:12]Read from MH i2c: F0 09 00 55 03 00 1C 77 11 67 F1 C7 6B 64 E2 [20:44:12]GetLastDocTimeStamp 1729196897 [20:44:12]current date 1729197852 [20:44:12]FM_GetShiftState [20:44:12]SAM_PROTO_GetShiftState [20:44:12]wFMCommunicate request_size=4 [20:44:12]MH_SAM_APDU [20:44:12]CAPDU: 80 13 01 00 [20:44:12]Write to MH i2c: E2 08 00 56 03 80 13 01 00 00 00 00 00 D6 [20:44:12]Write i2c OK [20:44:12]MH_I2C_Read... [20:44:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:12]Read from MH i2c: E2 [20:44:12]MH_I2C_Read... [20:44:12]Read from MH i2c: E2 0E 00 [20:44:12]MH_I2C_Read... [20:44:12]Read from MH i2c: E2 0E 00 56 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 DE [20:44:12]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [20:44:12]wFMCommunicate OK [20:44:12]SAM_PROTO_GetShiftState done [20:44:12]FM_GetShiftState done [20:44:12]opened in 1729125927 [20:44:12]opened+sec_in_day 1729212327 [20:44:12]quantity*price = 400062 [20:44:12]sum+1 = 400063 [20:44:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.84 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 190 17.10.2024 20:44 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82264 ФПД: 263034830771766 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T204413&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82264&fm=263034830771766&tin=02508201610067®Number=0000000000091680&sum=400000 [20:44:13]StoreToDocumentArchive [20:44:13]shift 525 fd 82264 [20:44:13]save to /storage/0525/doc_00082264 [20:44:13]save last doc name /storage/0525/doc_00082264 to /storage/kkm_last_doc_name [20:44:13]save OK [20:44:13]Clear old archive folders... [20:44:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:44:13]tlvbuf is 0032AAA0 [20:44:13]SAM_PROTO_ClearQueue [20:44:13]wFMCommunicate request_size=4 [20:44:13]MH_SAM_APDU [20:44:13]CAPDU: 80 09 00 00 [20:44:13]Write to MH i2c: E2 08 00 63 03 80 09 00 00 00 00 00 00 D8 [20:44:13]Write i2c OK [20:44:13]MH_I2C_Read... [20:44:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:44:13]Read from MH i2c: E2 [20:44:13]MH_I2C_Read... [20:44:13]Read from MH i2c: E2 03 00 [20:44:13]MH_I2C_Read... [20:44:13]Read from MH i2c: E2 03 00 63 03 00 90 00 DA [20:44:13]RAPDU: 90 00 [20:44:13]wFMCommunicate OK [20:44:13]SAM_PROTO_ClearQueue done [20:44:13]KKMCreateOFDPacket [20:44:13]OFDProtocolAddRootSTLVToBuf [20:44:13]FM_MakeSignedData [20:44:13]FM_MakeSignedData [20:44:13]SAM_PROTO_SignData [20:44:13]wFMCommunicate request_size=4 [20:44:13]MH_SAM_APDU [20:44:13]CAPDU: 80 0D 01 02 [20:44:13]Write to MH i2c: E2 08 00 64 03 80 0D 01 02 00 00 00 00 E0 [20:44:13]Write i2c OK [20:44:13]MH_I2C_Read... [20:44:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:44:13]Read from MH i2c: E2 [20:44:13]MH_I2C_Read... [20:44:13]Read from MH i2c: E2 03 00 [20:44:13]MH_I2C_Read... [20:44:13]Read from MH i2c: E2 03 00 64 03 00 90 00 DB [20:44:13]RAPDU: 90 00 [20:44:13]wFMCommunicate OK [20:44:13]wFMCommunicate request_size=255 [20:44:13]MH_SAM_APDU [20:44:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 98 E9 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BE 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 1D 77 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 58 41 01 00 35 04 06 00 EF [20:44:13]Write to MH i2c: E2 02 01 65 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 98 E9 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BE 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 1D 77 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 58 41 01 00 35 04 06 00 EF 00 00 9E [20:44:13]Write i2c OK [20:44:13]MH_I2C_Read... [20:44:13]OFD Sender: No OFD packet to send [20:44:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:13]Read from MH i2c: E2 [20:44:13]MH_I2C_Read... [20:44:13]Read from MH i2c: E2 03 00 [20:44:13]MH_I2C_Read... [20:44:13]Read from MH i2c: E2 03 00 65 03 00 90 00 DC [20:44:13]RAPDU: 90 00 [20:44:13]wFMCommunicate OK [20:44:13]wFMCommunicate request_size=10 [20:44:13]MH_SAM_APDU [20:44:13]CAPDU: 80 0D 02 02 05 3A 91 A6 D6 36 [20:44:13]Write to MH i2c: E2 0D 00 66 03 80 0D 02 02 05 00 3A 91 A6 D6 36 00 00 6A [20:44:13]Write i2c OK [20:44:13]MH_I2C_Read... [20:44:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:13]Read from MH i2c: E2 [20:44:13]MH_I2C_Read... [20:44:13]Read from MH i2c: E2 03 00 [20:44:13]MH_I2C_Read... [20:44:13]Read from MH i2c: E2 03 00 66 03 00 90 00 DD [20:44:13]RAPDU: 90 00 [20:44:13]wFMCommunicate OK [20:44:13]wFMCommunicate request_size=4 [20:44:13]MH_SAM_APDU [20:44:13]CAPDU: 80 0D 03 02 [20:44:13]Write to MH i2c: E2 08 00 67 03 80 0D 03 02 00 00 00 00 E5 [20:44:13]Write i2c OK [20:44:13]MH_I2C_Read... [20:44:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:44:13]Read from MH i2c: E2 [20:44:13]MH_I2C_Read... [20:44:13]Read from MH i2c: E2 0B 00 [20:44:13]MH_I2C_Read... [20:44:13]Read from MH i2c: E2 0B 00 67 03 00 02 C0 5F 5D 98 78 C4 5D 90 00 95 [20:44:13]RAPDU: 02 C0 5F 5D 98 78 C4 5D 90 00 [20:44:14]wFMCommunicate OK [20:44:14]SAM_PROTO_SignData done [20:44:14]FM_MakeSignedData done [20:44:14]CreateOFDProtocolMessage [20:44:14]wFMCommunicate request_size=4 [20:44:14]MH_SAM_APDU [20:44:14]CAPDU: 80 11 00 00 [20:44:14]Write to MH i2c: E2 08 00 68 03 80 11 00 00 00 00 00 00 E5 [20:44:14]Write i2c OK [20:44:14]MH_I2C_Read... [20:44:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:14]Read from MH i2c: E2 [20:44:14]MH_I2C_Read... [20:44:14]Read from MH i2c: E2 17 00 [20:44:14]MH_I2C_Read... [20:44:14]Read from MH i2c: E2 17 00 68 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 37 [20:44:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:44:14]wFMCommunicate OK [20:44:14]CreateOFDProtocolMessage done [20:44:14]OFDSenderStorePacket 82264 [20:44:14]StoreOFDPacket docnum=82264 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 53 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725AE (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 44413365+1684785137=1729198502 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 54 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 A7 79 11 67 F1 C7 6B 64 1E [20:55:03]Current date/time: 17.10.2024 20:55 [20:55:03]FM_Init [20:55:03]wFMConnect [20:55:03]MH_SAM_On [20:55:03]Write to MH i2c: E0 00 00 08 00 E7 [20:55:03]Write i2c OK [20:55:03]MH_I2C_Read... [20:55:03]*** iso7816_init finished! [20:55:03]*** atr: [20:55:03]*** 0F 3B D5 18 FF 81 91 FE [20:55:03]*** 1F C3 80 73 C8 21 10 0A [20:55:03]*** 00 00 00 00 00 00 00 00 [20:55:03]*** 00 00 00 00 00 00 00 00 [20:55:03]*** 00 00 00 00 00 00 00 00 [20:55:03]*** 00 00 00 00 00 00 00 00 [20:55:03]*** 00 00 00 00 00 00 00 00 [20:55:03]*** 00 00 00 00 00 00 00 00 [20:55:03]Read from MH i2c: E0 [20:55:03]MH_I2C_Read... [20:55:03]Read from MH i2c: E0 10 00 [20:55:03]MH_I2C_Read... [20:55:03]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [20:55:03]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [20:55:03]wFMCommunicate request_size=10 [20:55:03]MH_SAM_APDU [20:55:03]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [20:55:03]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [20:55:03]Write i2c OK [20:55:03]MH_I2C_Read... [20:55:03]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [20:55:03]Read from MH i2c: E2 [20:55:03]MH_I2C_Read... [20:55:03]Read from MH i2c: E2 03 00 [20:55:03]MH_I2C_Read... [20:55:03]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [20:55:03]RAPDU: 90 00 [20:55:03]wFMCommunicate OK [20:55:03]wFMCommunicate request_size=4 [20:55:03]MH_SAM_APDU [20:55:03]CAPDU: 80 11 00 00 [20:55:03]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [20:55:03]Write i2c OK [20:55:03]MH_I2C_Read... [20:55:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:03]Read from MH i2c: E2 [20:55:03]MH_I2C_Read... [20:55:03]Read from MH i2c: E2 17 00 [20:55:03]MH_I2C_Read... [20:55:03]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D6 [20:55:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:55:03]wFMCommunicate OK [20:55:03]Detected FM SN is 0000000000871843 [20:55:03]Stored FM SN is 0000000000871843 [20:55:03]wFMCommunicate request_size=9 [20:55:03]MH_SAM_APDU [20:55:03]CAPDU: 80 16 00 00 04 C3 A3 00 00 [20:55:03]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 C3 A3 00 00 00 00 F8 [20:55:03]Write i2c OK [20:55:03]MH_I2C_Read... [20:55:03]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [20:55:03]Read from MH i2c: E2 [20:55:03]MH_I2C_Read... [20:55:03]Read from MH i2c: E2 03 00 [20:55:03]MH_I2C_Read... [20:55:03]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [20:55:03]RAPDU: 90 00 [20:55:03]wFMCommunicate OK [20:55:03]FM PIN OK [20:55:03]wFMCommunicate request_size=8 [20:55:03]MH_SAM_APDU [20:55:03]CAPDU: 80 14 04 00 03 02 00 01 [20:55:03]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [20:55:03]Write i2c OK [20:55:03]MH_I2C_Read... [20:55:03]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [20:55:03]Read from MH i2c: E2 [20:55:03]MH_I2C_Read... [20:55:03]Read from MH i2c: E2 03 00 [20:55:03]MH_I2C_Read... [20:55:03]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [20:55:03]RAPDU: 90 00 [20:55:03]wFMCommunicate OK [20:55:03]wFMCommunicate request_size=13 [20:55:03]MH_SAM_APDU [20:55:03]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [20:55:03]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [20:55:03]Write i2c OK [20:55:03]MH_I2C_Read... [20:55:03]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [20:55:03]Read from MH i2c: E2 [20:55:03]MH_I2C_Read... [20:55:03]Read from MH i2c: E2 03 00 [20:55:03]MH_I2C_Read... [20:55:03]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [20:55:03]RAPDU: 90 00 [20:55:03]wFMCommunicate OK [20:55:03]wFMCommunicate request_size=4 [20:55:03]MH_SAM_APDU [20:55:03]CAPDU: 80 11 00 00 [20:55:03]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [20:55:03]Write i2c OK [20:55:03]MH_I2C_Read... [20:55:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:03]Read from MH i2c: E2 [20:55:03]MH_I2C_Read... [20:55:03]Read from MH i2c: E2 17 00 [20:55:03]MH_I2C_Read... [20:55:03]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DA [20:55:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:55:03]wFMCommunicate OK [20:55:03]DocumentArchiveInit [20:55:03]Start Httpd... [20:55:03]Httpd thread 3067559268 created [20:55:03]Write to MH i2c: 01 00 00 0F 00 0F [20:55:03]Write i2c OK [20:55:03]MH_I2C_Read... [20:55:03]Read from MH i2c: 01 [20:55:03]MH_I2C_Read... [20:55:03]Read from MH i2c: 01 07 00 [20:55:03]MH_I2C_Read... [20:55:03]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [20:55:03]MH Int Process started [20:55:03]Allocated Socket 8 [20:55:03]Bind OK [20:55:03]Listen OK [20:55:03]httpd running on port 8080 [20:55:03]Waiting for new connection... [20:55:03]OFD Sender: Processing packet 82264 [packets to send 254, broken 253] [20:55:03]ProducePacketName [20:55:03]name=ofd_packets/00082264 [20:55:03]OFD Sender: To server: pG, [20:55:03]CommunicateWithHost lk.salyk.kg:30040 [20:55:03]ConnectInit lk.salyk.kg [20:55:04]accept exits with 9 [20:55:04]New connection [20:55:04]New thread 3067272548 created [20:55:04]Waiting for new connection... [20:55:04] Sock 9.Parse request [20:55:04]Sock 9.Check first char [20:55:04]Sock 9.First char is OK [20:55:04]request: POST /json_proto HTTP/1.0 [20:55:04]Method: POST [20:55:04]URL: /json_proto [20:55:04]Method is POST - this is cgi request [20:55:04]url: /json_proto [20:55:04]query_string will be loaded in cgi processing [20:55:04]execute_cgi json_proto POST (null) [20:55:04]execute_cgi path=json_proto method=POST [20:55:04]POST find Content-Length [20:55:04]Host: 172.17.44.67:8080 [20:55:04]Content-Length: 215 [20:55:04]Content-Type: application/json [20:55:04] [20:55:04]POST finish read [20:55:04]Found Content-Length = 215 [20:55: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" ] } } [20:55:04]execute_script... [20:55: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" ] } } [20:55:04]POST & json_proto [20:55:04]process_json_proto [20:55:04]json parsed OK: [20:55:04]protocol is kg_v1.0 [20:55:04]action value=get_value [20:55:04]process_action get_value [20:55:04]cmd_get_value [20:55:04]process_action get_value done [20:55:04]requested_data is exist [20:55:04]produce_requested_data [20:55:04]requested_item kkm.sn is exist - process it [20:55:04]requested_item kkm.ver is exist - process it [20:55:04]requested_item fm.sn is exist - process it [20:55:04]wFMCommunicate request_size=4 [20:55:04]MH_SAM_APDU [20:55:04]CAPDU: 80 11 00 00 [20:55:04]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [20:55:04]Write i2c OK [20:55:04]MH_I2C_Read... [20:55:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:04]Read from MH i2c: E2 [20:55:04]MH_I2C_Read... [20:55:04]Read from MH i2c: E2 17 00 [20:55:04]MH_I2C_Read... [20:55:04]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DC [20:55:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:55:04]wFMCommunicate OK [20:55:04]requested_item fd.num is exist - process it [20:55:04]SAM_PROTO_GetFieldsCounters [20:55:04]wFMCommunicate request_size=4 [20:55:04]MH_SAM_APDU [20:55:04]CAPDU: 80 13 00 00 [20:55:04]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [20:55:04]Write i2c OK [20:55:04]MH_I2C_Read... [20:55:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:55:04]Read from MH i2c: E2 [20:55:04]MH_I2C_Read... [20:55:04]Read from MH i2c: E2 62 00 [20:55:04]MH_I2C_Read... [20:55:04]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 58 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [20:55:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 58 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:55:04]wFMCommunicate OK [20:55:04]SAM_PROTO_GetFieldsCounters done [20:55:04]requested_item shift.num is exist - process it [20:55:04]requested_item shift.opened is exist - process it [20:55:04]req_shift_opened [20:55:04]FM_GetShiftState [20:55:04]SAM_PROTO_GetShiftState [20:55:04]wFMCommunicate request_size=4 [20:55:04]MH_SAM_APDU [20:55:04]CAPDU: 80 13 01 00 [20:55:04]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [20:55:04]Write i2c OK [20:55:04]MH_I2C_Read... [20:55:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:04]Read from MH i2c: E2 [20:55:04]MH_I2C_Read... [20:55:04]Read from MH i2c: E2 0E 00 [20:55:04]MH_I2C_Read... [20:55:04]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 97 [20:55:04]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [20:55:04]wFMCommunicate OK [20:55:04]SAM_PROTO_GetShiftState done [20:55:04]FM_GetShiftState done [20:55:04]req_shift_opened done [20:55:04]requested_item shift.open_date is exist - process it [20:55:04]req_shift_open_date [20:55:04]req_shift_open_date done [20:55:04]produce_requested_data done [20:55:04]produce_requested_data return {"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82264,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [20:55:04]process_action_free get_value [20:55:04]json_value_free [20:55:04]json_value_free done [20:55:04]process_json_proto returns [20:55:04]Send response to host [20:55:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82264,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [20:55:04]free response buf [20:55:04]execute_script done [20:55:04]execute_script returns [20:55:04]free content buf [20:55:04]Sock 9.Close socket [20:55:04]Sock 9.Thread stoped [20:55:04]accept exits with 11 [20:55:04]New connection [20:55:04]New thread 3067129188 created [20:55:04]Thread 3067272548 joined [20:55:04]Waiting for new connection... [20:55:04] Sock 11.Parse request [20:55:04]Sock 11.Check first char [20:55:04]Sock 11.First char is OK [20:55:04]request: POST /json_proto HTTP/1.0 [20:55:04]Method: POST [20:55:04]URL: /json_proto [20:55:04]Method is POST - this is cgi request [20:55:04]url: /json_proto [20:55:04]query_string will be loaded in cgi processing [20:55:04]execute_cgi json_proto POST (null) [20:55:04]execute_cgi path=json_proto method=POST [20:55:04]POST find Content-Length [20:55:04]Host: 172.17.44.67:8080 [20:55:04]Content-Length: 331 [20:55:04]Content-Type: application/json [20:55:04] [20:55:04]POST finish read [20:55:04]Found Content-Length = 331 [20:55: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" ] } } [20:55:04]execute_script... [20:55: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" ] } } [20:55:04]POST & json_proto [20:55:04]process_json_proto [20:55:04]json parsed OK: [20:55:04]protocol is kg_v1.0 [20:55:04]action value=get_value [20:55:04]process_action get_value [20:55:04]cmd_get_value [20:55:04]process_action get_value done [20:55:04]requested_data is exist [20:55:04]produce_requested_data [20:55:04]requested_item fm.sale.total is exist - process it [20:55:04]SAM_PROTO_GetFMData [20:55:04]wFMCommunicate request_size=4 [20:55:04]MH_SAM_APDU [20:55:04]CAPDU: 80 13 03 00 [20:55:04]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [20:55:04]Write i2c OK [20:55:04]MH_I2C_Read... [20:55:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [20:55:05]Read from MH i2c: E2 [20:55:05]MH_I2C_Read... [20:55:05]Read from MH i2c: E2 FD 00 [20:55:05]MH_I2C_Read... [20:55:05]Read from MH i2c: E2 FD 00 13 00 00 C7 04 85 04 C3 04 6E 04 04 00 3E 3D 01 00 69 04 A3 00 6F 04 04 00 A6 3A 01 00 B1 04 05 00 D5 36 33 7B 01 70 04 05 00 A0 02 16 41 01 72 04 04 00 35 34 1D 3A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 E2 5E 48 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 F0 49 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 98 02 00 00 B1 04 04 00 70 95 0F 13 70 04 04 00 08 53 0F 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AD 37 06 02 EF 90 00 9E [20:55:05]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 3E 3D 01 00 69 04 A3 00 6F 04 04 00 A6 3A 01 00 B1 04 05 00 D5 36 33 7B 01 70 04 05 00 A0 02 16 41 01 72 04 04 00 35 34 1D 3A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 E2 5E 48 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 F0 49 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 98 02 00 00 B1 04 04 00 70 95 0F 13 70 04 04 00 08 53 0F 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AD 37 06 02 EF 90 00 [20:55:05]wFMCommunicate OK [20:55:05]wFMCommunicate request_size=4 [20:55:05]MH_SAM_APDU [20:55:05]CAPDU: 80 17 00 00 [20:55:05]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [20:55:05]Write i2c OK [20:55:05]MH_I2C_Read... [20:55:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:55:05]Read from MH i2c: E2 [20:55:05]MH_I2C_Read... [20:55:05]Read from MH i2c: E2 FD 00 [20:55:05]MH_I2C_Read... [20:55:05]Read from MH i2c: E2 FD 00 14 00 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0A 2F 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 90 00 05 [20:55:05]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0A 2F 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 90 00 [20:55:05]wFMCommunicate OK [20:55:05]wFMCommunicate request_size=4 [20:55:05]MH_SAM_APDU [20:55:05]CAPDU: 80 17 00 00 [20:55:05]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [20:55:05]Write i2c OK [20:55:05]MH_I2C_Read... [20:55:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:55:05]Read from MH i2c: E2 [20:55:05]MH_I2C_Read... [20:55:05]Read from MH i2c: E2 FD 00 [20:55:05]MH_I2C_Read... [20:55:05]Read from MH i2c: E2 FD 00 15 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 6D [20:55:05]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [20:55:05]wFMCommunicate OK [20:55:05]wFMCommunicate request_size=4 [20:55:05]MH_SAM_APDU [20:55:05]CAPDU: 80 17 00 00 [20:55:05]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [20:55:05]Write i2c OK [20:55:05]MH_I2C_Read... [20:55:05]Connected sock=7 [20:55:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 B0 3F 07 01 0B 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 98 E9 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BE 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 1D 77 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 58 41 01 00 35 04 06 00 EF 3A 91 A6 D6 36 02 C0 5F 5D 98 78 C4 5D [20:55:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:55:06]Read from MH i2c: E2 [20:55:06]MH_I2C_Read... [20:55:06]Read from MH i2c: E2 FD 00 [20:55:06]MH_I2C_Read... [20:55:06]Read from MH i2c: E2 FD 00 16 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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 11 [20:55:06]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [20:55:06]wFMCommunicate OK [20:55:06]wFMCommunicate request_size=4 [20:55:06]MH_SAM_APDU [20:55:06]CAPDU: 80 17 00 00 [20:55:06]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [20:55:06]Write i2c OK [20:55:06]MH_I2C_Read... [20:55:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [20:55:06]Read from MH i2c: E2 [20:55:06]MH_I2C_Read... [20:55:06]Read from MH i2c: E2 E4 00 [20:55:06]MH_I2C_Read... [20:55:06]Read from MH i2c: E2 E4 00 17 00 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 77 [20:55:06]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [20:55:06]wFMCommunicate OK [20:55:06]SAM_PROTO_GetFMData done [20:55:06]requested_item fm.sale_refund.total is exist - process it [20:55:06]requested_item fm.buy.total is exist - process it [20:55:06]requested_item shift.sale.total is exist - process it [20:55:06]SAM_PROTO_GetShiftData [20:55:06]wFMCommunicate request_size=4 [20:55:06]MH_SAM_APDU [20:55:06]CAPDU: 80 13 02 00 [20:55:06]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [20:55:06]Write i2c OK [20:55:06]MH_I2C_Read... [20:55:06]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [20:55:06]Read from MH i2c: E2 [20:55:06]MH_I2C_Read... [20:55:06]Read from MH i2c: E2 FD 00 [20:55:06]MH_I2C_Read... [20:55:06]Read from MH i2c: E2 FD 00 18 00 00 BA 04 AA 04 B6 04 6E 04 04 00 BE 00 00 00 69 04 9C 00 6F 04 04 00 BB 00 00 00 B1 04 03 00 BC 9D A8 70 04 03 00 64 33 81 72 04 03 00 58 6A 27 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 3A E9 11 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 16 7E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 FC 0A 70 04 03 00 80 FC 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BD 2A 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 DD [20:55:06]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 BE 00 00 00 69 04 9C 00 6F 04 04 00 BB 00 00 00 B1 04 03 00 BC 9D A8 70 04 03 00 64 33 81 72 04 03 00 58 6A 27 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 3A E9 11 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 16 7E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 FC 0A 70 04 03 00 80 FC 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BD 2A 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [20:55:06]wFMCommunicate OK [20:55:06]wFMCommunicate request_size=4 [20:55:06]MH_SAM_APDU [20:55:06]CAPDU: 80 17 00 00 [20:55:06]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [20:55:06]Write i2c OK [20:55:06]MH_I2C_Read... [20:55:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:55:07]Read from MH i2c: E2 [20:55:07]MH_I2C_Read... [20:55:07]Read from MH i2c: E2 FD 00 [20:55:07]MH_I2C_Read... [20:55:07]Read from MH i2c: E2 FD 00 19 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 3F [20:55:07]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 [20:55:07]wFMCommunicate OK [20:55:07]wFMCommunicate request_size=4 [20:55:07]MH_SAM_APDU [20:55:07]CAPDU: 80 17 00 00 [20:55:07]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [20:55:07]Write i2c OK [20:55:07]MH_I2C_Read... [20:55:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:55:07]Read from MH i2c: E2 [20:55:07]MH_I2C_Read... [20:55:07]Read from MH i2c: E2 FD 00 [20:55:07]MH_I2C_Read... [20:55:07]Read from MH i2c: E2 FD 00 1A 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 Received data: F7 87 03 95 00 F6 00 70 EF 47 03 2C 09 01 00 F6 00 03 30 01 30 00 30 05 30 F7 30 03 00 30 00 30 EF 30 30 03 30 09 38 37 00 31 F6 38 34 03 01 33 00 4F 06 00 F7 00 03 00 00 3B 63 00 47 6D 00 04 1F 4C CE 02 A5 78 07 04 01 04 00 00 07 00 00 00 3B 00 00 00 F9 79 03 0E 04 00 8D 37 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 37 00 30 00 39 EF 33 03 36 09 34 00 33 F6 34 03 36 01 31 00 32 03 33 F7 34 03 11 00 04 00 10 EF 00 03 30 09 30 00 30 F6 30 03 30 01 30 00 30 04 30 F7 30 03 30 00 38 90 37 00 31 C6 38 [20:55:07]34 RAPDU: 33 04 10 75 04 00 04 EE 00 03 58 09 41 00 01 F2 00 03 F4 01 03 00 04 00 00 F3 E5 03 1E 00 00 11 EE 67 03 B6 09 04 00 01 F2 00 03 00 01 43 00 C3 01 F8 F3 A0 03 63 00 6A 00 D3 EF C0 03 [20:55:07]09 CommunicateWithHost err = 0 [20:55:07]00 CheckOFDResponse [20:55:07]F6 1017 (14) - 77093643461234 [20:55:07]03 1041 (16) - 0000000000871843 [20:55:07]01 1040 (4) - 82264 [20:55:07]00 1012 (4) - 17.10.2024 14:27 [20:55:07]00 1206 (1) - 0 [20:55:07]F7 OFD Sender: Remove packet 82264 [20:55:07]03 ProducePacketName [20:55:07]00 name=ofd_packets/00082264 [20:55:07]00 NVStorageDeleteData [20:55:07]EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 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 [20:55:07]wFMCommunicate OK [20:55:07]wFMCommunicate request_size=4 [20:55:07]MH_SAM_APDU [20:55:07]CAPDU: 80 17 00 00 [20:55:07]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [20:55:07]Write i2c OK [20:55:07]MH_I2C_Read... [20:55:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:55:07]Read from MH i2c: E2 [20:55:07]MH_I2C_Read... [20:55:07]Read from MH i2c: E2 FD 00 [20:55:07]MH_I2C_Read... [20:55:07]Read from MH i2c: E2 FD 00 1B 00 00 00 EF 03 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 13 [20:55:07]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 [20:55:08]wFMCommunicate OK [20:55:08]wFMCommunicate request_size=4 [20:55:08]MH_SAM_APDU [20:55:08]CAPDU: 80 17 00 00 [20:55:08]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [20:55:08]Write i2c OK [20:55:08]MH_I2C_Read... [20:55:08]OFD Sender: No OFD packet to send [20:55:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [20:55:08]Read from MH i2c: E2 [20:55:08]MH_I2C_Read... [20:55:08]Read from MH i2c: E2 D7 00 [20:55:08]MH_I2C_Read... [20:55:08]Read from MH i2c: E2 D7 00 1C 00 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 7F [20:55:08]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 [20:55:08]wFMCommunicate OK [20:55:08]SAM_PROTO_GetShiftData done [20:55:08]requested_item shift.sale.total_cash is exist - process it [20:55:08]requested_item shift.sale_refund.total is exist - process it [20:55:08]requested_item shift.sale_refund.total_cash is exist - process it [20:55:08]requested_item shift.buy.total is exist - process it [20:55:08]requested_item shift.buy.total_cash is exist - process it [20:55:08]produce_requested_data done [20:55:08]produce_requested_data return {"fm.sale.total":63619212.37,"fm.sale_refund.total":3197884.00,"fm.buy.total":0.00,"shift.sale.total":110504.28,"shift.sale.total_cash":84673.00,"shift.sale_refund.total":7200.00,"shift.sale_refund.total_cash":7200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [20:55:08]process_action_free get_value [20:55:08]json_value_free [20:55:08]json_value_free done [20:55:08]process_json_proto returns [20:55:08]Send response to host [20:55:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":63619212.37,"fm.sale_refund.total":3197884.00,"fm.buy.total":0.00,"shift.sale.total":110504.28,"shift.sale.total_cash":84673.00,"shift.sale_refund.total":7200.00,"shift.sale_refund.total_cash":7200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [20:55:08]free response buf [20:55:08]execute_script done [20:55:08]execute_script returns [20:55:08]free content buf [20:55:08]Sock 11.Close socket [20:55:08]Sock 11.Thread stoped [20:55:08]accept exits with 9 [20:55:08]New connection [20:55:08]New thread 3067272548 created [20:55:08]Thread 3067129188 joined [20:55:08]Waiting for new connection... [20:55:08] Sock 9.Parse request [20:55:08]Sock 9.Check first char [20:55:08]Sock 9.First char is OK [20:55:08]request: POST /json_proto HTTP/1.0 [20:55:08]Method: POST [20:55:08]URL: /json_proto [20:55:08]Method is POST - this is cgi request [20:55:08]url: /json_proto [20:55:08]query_string will be loaded in cgi processing [20:55:08]execute_cgi json_proto POST (null) [20:55:08]execute_cgi path=json_proto method=POST [20:55:08]POST find Content-Length [20:55:08]Host: 172.17.44.67:8080 [20:55:08]Content-Length: 754 [20:55:08]Content-Type: application/json [20:55:08] [20:55:08]POST finish read [20:55:08]Found Content-Length = 754 [20:55:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30135174", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:55:08]execute_script... [20:55:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30135174", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:55:08]POST & json_proto [20:55:08]process_json_proto [20:55:08]json parsed OK: [20:55:08]protocol is kg_v1.0 [20:55:08]action value=close_receipt [20:55:08]process_action close_receipt [20:55:08]cmd_close_receipt [20:55:08]MH_GetDate [20:55:08]Write to MH i2c: F0 00 00 1D 00 0C [20:55:08]Write i2c OK [20:55:08]MH_I2C_Read... [20:55:08]Read from MH i2c: F0 [20:55:08]MH_I2C_Read... [20:55:08]Read from MH i2c: F0 09 00 [20:55:08]MH_I2C_Read... [20:55:08]Read from MH i2c: F0 09 00 1D 00 00 AD 79 11 67 F1 C7 6B 64 3A [20:55:08]GetLastDocTimeStamp 1729197853 [20:55:08]current date 1729198509 [20:55:08]FM_GetShiftState [20:55:08]SAM_PROTO_GetShiftState [20:55:08]wFMCommunicate request_size=4 [20:55:08]MH_SAM_APDU [20:55:08]CAPDU: 80 13 01 00 [20:55:08]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [20:55:08]Write i2c OK [20:55:08]MH_I2C_Read... [20:55:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:08]Read from MH i2c: E2 [20:55:08]MH_I2C_Read... [20:55:08]Read from MH i2c: E2 0E 00 [20:55:08]MH_I2C_Read... [20:55:08]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 A3 [20:55:08]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [20:55:08]wFMCommunicate OK [20:55:08]SAM_PROTO_GetShiftState done [20:55:08]FM_GetShiftState done [20:55:08]opened in 1729125927 [20:55:08]opened+sec_in_day 1729212327 [20:55:08]quantity*price = 0 [20:55:08]sum+1 = 1 [20:55:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 191 17.10.2024 20:55 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30135174 ФМ: 0000000000871843 ФД: 82265 ФПД: 123925651127987 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T205509&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82265&fm=123925651127987&tin=02508201610067®Number=0000000000091680&sum=0 [20:55:10]StoreToDocumentArchive [20:55:10]shift 525 fd 82265 [20:55:10]save to /storage/0525/doc_00082265 [20:55:10]save last doc name /storage/0525/doc_00082265 to /storage/kkm_last_doc_name [20:55:10]save OK [20:55:10]Clear old archive folders... [20:55:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:55:10]tlvbuf is 01B15BB0 [20:55:10]SAM_PROTO_ClearQueue [20:55:10]wFMCommunicate request_size=4 [20:55:10]MH_SAM_APDU [20:55:10]CAPDU: 80 09 00 00 [20:55:10]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [20:55:10]Write i2c OK [20:55:10]MH_I2C_Read... [20:55:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:55:10]Read from MH i2c: E2 [20:55:10]MH_I2C_Read... [20:55:10]Read from MH i2c: E2 03 00 [20:55:10]MH_I2C_Read... [20:55:10]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [20:55:10]RAPDU: 90 00 [20:55:10]wFMCommunicate OK [20:55:10]SAM_PROTO_ClearQueue done [20:55:10]KKMCreateOFDPacket [20:55:10]OFDProtocolAddRootSTLVToBuf [20:55:10]FM_MakeSignedData [20:55:10]FM_MakeSignedData [20:55:10]SAM_PROTO_SignData [20:55:10]wFMCommunicate request_size=4 [20:55:10]MH_SAM_APDU [20:55:10]CAPDU: 80 0D 01 02 [20:55:10]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [20:55:10]Write i2c OK [20:55:10]MH_I2C_Read... [20:55:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:55:10]Read from MH i2c: E2 [20:55:10]MH_I2C_Read... [20:55:10]Read from MH i2c: E2 03 00 [20:55:10]MH_I2C_Read... [20:55:10]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [20:55:10]RAPDU: 90 00 [20:55:10]wFMCommunicate OK [20:55:10]wFMCommunicate request_size=255 [20:55:10]MH_SAM_APDU [20:55:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 AD 79 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 59 41 01 00 35 04 06 00 70 [20:55:10]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 AD 79 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 59 41 01 00 35 04 06 00 70 00 00 91 [20:55:10]Write i2c OK [20:55:10]MH_I2C_Read... [20:55:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:10]Read from MH i2c: E2 [20:55:10]MH_I2C_Read... [20:55:10]Read from MH i2c: E2 03 00 [20:55:10]MH_I2C_Read... [20:55:10]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [20:55:10]RAPDU: 90 00 [20:55:10]wFMCommunicate OK [20:55:10]wFMCommunicate request_size=10 [20:55:10]MH_SAM_APDU [20:55:10]CAPDU: 80 0D 02 02 05 B5 B0 69 FE B3 [20:55:10]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 B5 B0 69 FE B3 00 00 31 [20:55:10]Write i2c OK [20:55:10]MH_I2C_Read... [20:55:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:10]Read from MH i2c: E2 [20:55:10]MH_I2C_Read... [20:55:10]Read from MH i2c: E2 03 00 [20:55:10]MH_I2C_Read... [20:55:10]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [20:55:10]RAPDU: 90 00 [20:55:10]wFMCommunicate OK [20:55:10]wFMCommunicate request_size=4 [20:55:10]MH_SAM_APDU [20:55:10]CAPDU: 80 0D 03 02 [20:55:10]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [20:55:10]Write i2c OK [20:55:10]MH_I2C_Read... [20:55:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:55:10]Read from MH i2c: E2 [20:55:10]MH_I2C_Read... [20:55:10]Read from MH i2c: E2 0B 00 [20:55:10]MH_I2C_Read... [20:55:10]Read from MH i2c: E2 0B 00 2F 00 00 C3 64 3A 81 6E 2C 27 92 90 00 E0 [20:55:10]RAPDU: C3 64 3A 81 6E 2C 27 92 90 00 [20:55:10]wFMCommunicate OK [20:55:10]SAM_PROTO_SignData done [20:55:10]FM_MakeSignedData done [20:55:10]CreateOFDProtocolMessage [20:55:10]wFMCommunicate request_size=4 [20:55:10]MH_SAM_APDU [20:55:10]CAPDU: 80 11 00 00 [20:55:10]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [20:55:10]Write i2c OK [20:55:10]MH_I2C_Read... [20:55:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:10]Read from MH i2c: E2 [20:55:10]MH_I2C_Read... [20:55:10]Read from MH i2c: E2 17 00 [20:55:10]MH_I2C_Read... [20:55:10]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 FC [20:55:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:55:11]wFMCommunicate OK [20:55:11]CreateOFDProtocolMessage done [20:55:11]OFDSenderStorePacket 82265 [20:55:11]StoreOFDPacket docnum=82265 [20:55:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 B3 18 07 01 E7 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 AD 79 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 59 41 01 00 35 04 06 00 70 B5 B0 69 FE B3 C3 64 3A 81 6E 2C 27 92 [20:55:11]CheckFolder [20:55:11]dirname=/storage/ofd_packets [20:55:11]CheckFolder done [20:55:11]ProducePacketName [20:55:11]name=ofd_packets/00082265 [20:55:11]NVStorageSaveData ofd_packets/00082265 [20:55:11]File name is /storage/ofd_packets/00082265 [20:55:11]Write 301 bytes [20:55:11]NVStorageSaveData done [20:55:11]OFDSenderStorePacket done [20:55:11]KKMCreateOFDPacket done [20:55:11]NVStorageSaveData kkm_last_timestamp [20:55:11]File name is /storage/kkm_last_timestamp [20:55:11]Write 4 bytes [20:55:11]NVStorageSaveData done [20:55:11]ExternCall_PrintAddStr [20:55:11]wPrintStart [20:55:11]Write to MH i2c: 01 00 00 31 00 31 [20:55:11]Write i2c OK [20:55:11]MH_I2C_Read... [20:55:11]Read from MH i2c: 01 [20:55:11]MH_I2C_Read... [20:55:11]Read from MH i2c: 01 07 00 [20:55:11]MH_I2C_Read... [20:55:11]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [20:55:11]RasterBufferAndPrint [20:55:11]line Счет N : (1)918767 [20:55:11]line ИНН: 02508201610067 [20:55:11]line Контрольно-Кассовый Чек [20:55:11]line ПРОДАЖА [20:55:11]line ТРК (МРК, ГНК) : 11 [20:55:11]line Товар: 2710124130 [20:55:11]line Аи-92-К-4 [20:55:11]line 20.000 * 0.00 [20:55:11]line = 0.00 [20:55:11]line НДС 12% НСП 1% [20:55:11]line > о реализуемом товаре [20:55:11]line ИТОГО: 0.00 [20:55:11]line НСП 1% : 0.00 [20:55:11]line НДС 12% : 0.00 [20:55:11]line Наличными: 0.00 [20:55:11]line Безнал.: 0.00 [20:55:11]line Место: АЗС № 114 "Партнер Нефть" [20:55:11]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [20:55:11]line СНО: Общий режим [20:55:11]line Чек 191 17.10.2024 20:55 [20:55:11]line Смена: 525 ФФД: 1.0 [20:55:11]line ЗНМ: 0300000086 [20:55:11]line РНМ: 0000000000091680 [20:55:11]line Версия ККМ: 001 [20:55:11]line Талоны: ТК ГПНА Online [20:55:11]line 30135174 [20:55:11]line ФМ: 0000000000871843 [20:55:11]line ФД: 82265 [20:55:11]line ФПД: 123925651127987 [20:55:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T205509&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82265&fm=123925651127987&tin=02508201610067®Number=0000000000091680&sum=0 [20:55:11]written 0, free lines is 4095 [20:55:11]OFD Sender: Processing packet 82265 [packets to send 254, broken 253] [20:55:11]ProducePacketName [20:55:11]name=ofd_packets/00082265 [20:55:11]OFD Sender: To server: pG, [20:55:11]CommunicateWithHost lk.salyk.kg:30040 [20:55:11]ConnectInit lk.salyk.kg [20:55:11]Connected sock=10 [20:55:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 B3 18 07 01 E7 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 AD 79 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 59 41 01 00 35 04 06 00 70 B5 B0 69 FE B3 C3 64 3A 81 6E 2C 27 92 [20:55:11]Write to MH i2c: 01 00 00 5B 00 5B [20:55:11]Write i2c OK [20:55:11]MH_I2C_Read... [20:55:11]Read from MH i2c: 01 [20:55:11]MH_I2C_Read... [20:55:11]Read from MH i2c: 01 07 00 [20:55:11]MH_I2C_Read... [20:55:11]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 F2 0D 61 [20:55:11]RasterBufferAndPrint [20:55:11]line [20:55:11]line [20:55:11]line [20:55:11]line [20:55:11]line [20:55:11]written 0, free lines is 3589 [20:55:11]MH_Cut [20:55:11]Write to MH i2c: D1 01 00 62 00 01 34 [20:55:11]Write i2c OK [20:55:11]MH_I2C_Read... [20:55:11]Read from MH i2c: D1 [20:55:11]MH_I2C_Read... [20:55:11]Read from MH i2c: D1 01 00 [20:55:11]MH_I2C_Read... [20:55:11]Read from MH i2c: D1 01 00 62 00 00 33 [20:55:11]Write to MH i2c: 01 00 00 63 00 63 [20:55:11]Write i2c OK [20:55:11]MH_I2C_Read... [20:55:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 11 B6 47 00 C4 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 59 41 01 00 F4 03 04 00 EA 1E 11 67 B6 04 01 00 00 C8 F3 22 B4 AA 49 97 B2 [20:55:12]CommunicateWithHost err = 0 [20:55:12]CheckOFDResponse [20:55:12]1017 (14) - 77093643461234 [20:55:12]1041 (16) - 0000000000871843 [20:55:12]1040 (4) - 82265 [20:55:12]1012 (4) - 17.10.2024 14:27 [20:55:12]1206 (1) - 0 [20:55:12]OFD Sender: Remove packet 82265 [20:55:12]ProducePacketName [20:55:12]name=ofd_packets/00082265 [20:55:12]NVStorageDeleteData [20:55:12]*** Cut start [20:55:12]*** Partial cut [20:55:12]*** CUTSNS_PIN = 1 [20:55:12]*** CUTSNS_PIN = 0 [20:55:12]*** Brake cut motor [20:55:12]OFD Sender: No OFD packet to send [20:55:12]Read from MH i2c: 01 [20:55:12]MH_I2C_Read... [20:55:12]*** Stop cut motor [20:55:12]*** Cut end [20:55:12]Read from MH i2c: 01 07 00 [20:55:12]MH_I2C_Read... [20:55:12]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [20:55:12]process_action close_receipt done [20:55:12]requested_data is exist [20:55:12]produce_requested_data [20:55:12]requested_item fm.sn is exist - process it [20:55:12]wFMCommunicate request_size=4 [20:55:12]MH_SAM_APDU [20:55:12]CAPDU: 80 11 00 00 [20:55:12]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [20:55:12]Write i2c OK [20:55:12]MH_I2C_Read... [20:55:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:12]Read from MH i2c: E2 [20:55:12]MH_I2C_Read... [20:55:12]Read from MH i2c: E2 17 00 [20:55:12]MH_I2C_Read... [20:55:12]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 30 [20:55:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:55:12]wFMCommunicate OK [20:55:12]requested_item fd.num is exist - process it [20:55:12]SAM_PROTO_GetFieldsCounters [20:55:12]wFMCommunicate request_size=4 [20:55:12]MH_SAM_APDU [20:55:12]CAPDU: 80 13 00 00 [20:55:12]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [20:55:13]Write i2c OK [20:55:13]MH_I2C_Read... [20:55:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:55:13]Read from MH i2c: E2 [20:55:13]MH_I2C_Read... [20:55:13]Read from MH i2c: E2 62 00 [20:55:13]MH_I2C_Read... [20:55:13]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 59 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [20:55:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 59 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:55:13]wFMCommunicate OK [20:55:13]SAM_PROTO_GetFieldsCounters done [20:55:13]requested_item shift.num is exist - process it [20:55:13]requested_item shift.opened is exist - process it [20:55:13]req_shift_opened [20:55:13]FM_GetShiftState [20:55:13]SAM_PROTO_GetShiftState [20:55:13]wFMCommunicate request_size=4 [20:55:13]MH_SAM_APDU [20:55:13]CAPDU: 80 13 01 00 [20:55:13]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [20:55:13]Write i2c OK [20:55:13]MH_I2C_Read... [20:55:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:13]Read from MH i2c: E2 [20:55:13]MH_I2C_Read... [20:55:13]Read from MH i2c: E2 0E 00 [20:55:13]MH_I2C_Read... [20:55:13]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 EB [20:55:13]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [20:55:13]wFMCommunicate OK [20:55:13]SAM_PROTO_GetShiftState done [20:55:13]FM_GetShiftState done [20:55:13]req_shift_opened done [20:55:13]requested_item shift.open_date is exist - process it [20:55:13]req_shift_open_date [20:55:13]req_shift_open_date done [20:55:13]produce_requested_data done [20:55:13]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82265,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [20:55:13]process_action_free close_receipt [20:55:13]json_value_free [20:55:13]json_value_free done [20:55:13]process_json_proto returns [20:55:13]Send response to host [20:55:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82265,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [20:55:13]free response buf [20:55:13]execute_script done [20:55:13]execute_script returns [20:55:13]free content buf [20:55:13]Sock 9.Close socket [20:55:13]Sock 9.Thread stoped [20:55:17]OFD Sender: No OFD packet to send [20:55:22]OFD Sender: No OFD packet to send [20:55:27]OFD Sender: No OFD packet to send [20:55:28]recv_with_timeout no data received [20:55:32]OFD Sender: No OFD packet to send [20:55:37]OFD Sender: No OFD packet to send [20:55:42]OFD Sender: No OFD packet to send [20:55:43]accept exits with 7 [20:55:43]New connection [20:55:43]New thread 3067129188 created [20:55:43]Thread 3067272548 joined [20:55:43]Waiting for new connection... [20:55:43] Sock 7.Parse request [20:55:43]Sock 7.Check first char [20:55:43]Sock 7.First char is OK [20:55:43]request: POST /json_proto HTTP/1.0 [20:55:43]Method: POST [20:55:43]URL: /json_proto [20:55:43]Method is POST - this is cgi request [20:55:43]url: /json_proto [20:55:43]query_string will be loaded in cgi processing [20:55:43]execute_cgi json_proto POST (null) [20:55:43]execute_cgi path=json_proto method=POST [20:55:43]POST find Content-Length [20:55:43]Host: 172.17.44.67:8080 [20:55:43]Content-Length: 753 [20:55:43]Content-Type: application/json [20:55:43] [20:55:43]POST finish read [20:55:43]Found Content-Length = 753 [20:55:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100517", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:55:43]execute_script... [20:55:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100517", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:55:43]POST & json_proto [20:55:43]process_json_proto [20:55:43]json parsed OK: [20:55:43]protocol is kg_v1.0 [20:55:43]action value=close_receipt [20:55:43]process_action close_receipt [20:55:43]cmd_close_receipt [20:55:43]MH_GetDate [20:55:43]Write to MH i2c: F0 00 00 67 00 56 [20:55:43]Write i2c OK [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: F0 [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: F0 09 00 [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: F0 09 00 67 00 00 D0 79 11 67 F1 C7 6B 64 A7 [20:55:43]GetLastDocTimeStamp 1729198509 [20:55:43]current date 1729198544 [20:55:43]FM_GetShiftState [20:55:43]SAM_PROTO_GetShiftState [20:55:43]wFMCommunicate request_size=4 [20:55:43]MH_SAM_APDU [20:55:43]CAPDU: 80 13 01 00 [20:55:43]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [20:55:43]Write i2c OK [20:55:43]MH_I2C_Read... [20:55:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:43]Read from MH i2c: E2 [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: E2 0E 00 [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 ED [20:55:43]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [20:55:43]wFMCommunicate OK [20:55:43]SAM_PROTO_GetShiftState done [20:55:43]FM_GetShiftState done [20:55:43]opened in 1729125927 [20:55:43]opened+sec_in_day 1729212327 [20:55:43]quantity*price = 0 [20:55:43]sum+1 = 1 [20:55:43]Check (price>sum+1) || (price+1 о реализуемом товаре [20:55:45]line ИТОГО: 0.00 [20:55:45]line НСП 1% : 0.00 [20:55:45]line НДС 12% : 0.00 [20:55:45]line Наличными: 0.00 [20:55:45]line Безнал.: 0.00 [20:55:45]line Место: АЗС № 114 "Партнер Нефть" [20:55:45]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [20:55:45]line СНО: Общий режим [20:55:45]line Чек 192 17.10.2024 20:55 [20:55:45]line Смена: 525 ФФД: 1.0 [20:55:45]line ЗНМ: 0300000086 [20:55:45]line РНМ: 0000000000091680 [20:55:45]line Версия ККМ: 001 [20:55:45]line Талоны: ТК ГПНА Online [20:55:45]line 30100517 [20:55:45]line ФМ: 0000000000871843 [20:55:45]line ФД: 82266 [20:55:45]line ФПД: 182777754598890 [20:55:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T205544&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82266&fm=182777754598890&tin=02508201610067®Number=0000000000091680&sum=0 [20:55:45]written 0, free lines is 4095 [20:55:45]OFD Sender: Processing packet 82266 [packets to send 254, broken 253] [20:55:45]ProducePacketName [20:55:45]name=ofd_packets/00082266 [20:55:45]OFD Sender: To server: pG, [20:55:45]CommunicateWithHost lk.salyk.kg:30040 [20:55:45]ConnectInit lk.salyk.kg [20:55:45]Write to MH i2c: 01 00 00 A5 00 A5 [20:55:45]Write i2c OK [20:55:45]MH_I2C_Read... [20:55:45]Read from MH i2c: 01 [20:55:45]MH_I2C_Read... [20:55:45]Read from MH i2c: 01 07 00 [20:55:45]MH_I2C_Read... [20:55:45]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 ED 0C A5 [20:55:45]RasterBufferAndPrint [20:55:45]line [20:55:45]line [20:55:45]line [20:55:45]line [20:55:45]line [20:55:45]written 0, free lines is 3321 [20:55:45]MH_Cut [20:55:45]Write to MH i2c: D1 01 00 AC 00 01 7E [20:55:45]Write i2c OK [20:55:45]MH_I2C_Read... [20:55:45]Read from MH i2c: D1 [20:55:45]MH_I2C_Read... [20:55:45]Read from MH i2c: D1 01 00 [20:55:45]MH_I2C_Read... [20:55:45]Read from MH i2c: D1 01 00 AC 00 00 7D [20:55:45]Write to MH i2c: 01 00 00 AD 00 AD [20:55:45]Write i2c OK [20:55:45]MH_I2C_Read... [20:55:46]Connected sock=11 [20:55:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 B4 DC 07 01 32 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 D0 79 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5A 41 01 00 35 04 06 00 A6 3C 43 22 BD EA EB 83 85 52 53 F6 74 12 [20:55:46]*** Cut start [20:55:46]*** Partial cut [20:55:46]*** CUTSNS_PIN = 1 [20:55:46]*** CUTSNS_PIN = 0 [20:55:46]*** Brake cut motor [20:55:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 30 BF 47 00 2A F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5A 41 01 00 F4 03 04 00 0D 1F 11 67 B6 04 01 00 00 08 EB F9 02 C5 93 B1 A6 [20:55:47]CommunicateWithHost err = 0 [20:55:47]CheckOFDResponse [20:55:47]1017 (14) - 77093643461234 [20:55:47]1041 (16) - 0000000000871843 [20:55:47]1040 (4) - 82266 [20:55:47]1012 (4) - 17.10.2024 14:28 [20:55:47]1206 (1) - 0 [20:55:47]OFD Sender: Remove packet 82266 [20:55:47]ProducePacketName [20:55:47]name=ofd_packets/00082266 [20:55:47]NVStorageDeleteData [20:55:47]Read from MH i2c: 01 [20:55:47]MH_I2C_Read... [20:55:47]*** Stop cut motor [20:55:47]*** Cut end [20:55:47]Read from MH i2c: 01 07 00 [20:55:47]MH_I2C_Read... [20:55:47]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [20:55:47]process_action close_receipt done [20:55:47]requested_data is exist [20:55:47]produce_requested_data [20:55:47]requested_item fm.sn is exist - process it [20:55:47]wFMCommunicate request_size=4 [20:55:47]MH_SAM_APDU [20:55:47]CAPDU: 80 11 00 00 [20:55:47]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [20:55:47]Write i2c OK [20:55:47]MH_I2C_Read... [20:55:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:47]Read from MH i2c: E2 [20:55:47]MH_I2C_Read... [20:55:47]Read from MH i2c: E2 17 00 [20:55:47]MH_I2C_Read... [20:55:47]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 7A [20:55:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:55:47]wFMCommunicate OK [20:55:47]requested_item fd.num is exist - process it [20:55:47]SAM_PROTO_GetFieldsCounters [20:55:47]wFMCommunicate request_size=4 [20:55:47]MH_SAM_APDU [20:55:47]CAPDU: 80 13 00 00 [20:55:47]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [20:55:47]Write i2c OK [20:55:47]MH_I2C_Read... [20:55:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:55:47]Read from MH i2c: E2 [20:55:47]MH_I2C_Read... [20:55:47]Read from MH i2c: E2 62 00 [20:55:47]MH_I2C_Read... [20:55:47]Read from MH i2c: E2 62 00 AF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 5A 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [20:55:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 5A 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:55:47]wFMCommunicate OK [20:55:47]SAM_PROTO_GetFieldsCounters done [20:55:47]requested_item shift.num is exist - process it [20:55:47]requested_item shift.opened is exist - process it [20:55:47]req_shift_opened [20:55:47]FM_GetShiftState [20:55:47]SAM_PROTO_GetShiftState [20:55:47]wFMCommunicate request_size=4 [20:55:47]MH_SAM_APDU [20:55:47]CAPDU: 80 13 01 00 [20:55:47]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [20:55:47]Write i2c OK [20:55:47]MH_I2C_Read... [20:55:47]OFD Sender: No OFD packet to send [20:55:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:47]Read from MH i2c: E2 [20:55:47]MH_I2C_Read... [20:55:47]Read from MH i2c: E2 0E 00 [20:55:47]MH_I2C_Read... [20:55:47]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 35 [20:55:47]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [20:55:47]wFMCommunicate OK [20:55:47]SAM_PROTO_GetShiftState done [20:55:47]FM_GetShiftState done [20:55:47]req_shift_opened done [20:55:47]requested_item shift.open_date is exist - process it [20:55:47]req_shift_open_date [20:55:47]req_shift_open_date done [20:55:47]produce_requested_data done [20:55:47]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82266,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [20:55:47]process_action_free close_receipt [20:55:47]json_value_free [20:55:47]json_value_free done [20:55:47]process_json_proto returns [20:55:47]Send response to host [20:55:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82266,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [20:55:47]free response buf [20:55:47]execute_script done [20:55:47]execute_script returns [20:55:47]free content buf [20:55:47]Sock 7.Close socket [20:55:47]Sock 7.Thread stoped [20:55:52]OFD Sender: No OFD packet to send [20:55:57]OFD Sender: No OFD packet to send [20:55:58]recv_with_timeout no data received [20:56:02]OFD Sender: No OFD packet to send [20:56:07]OFD Sender: No OFD packet to send [20:56:11]recv_with_timeout no data received [20:56:12]OFD Sender: No OFD packet to send [20:56:17]OFD Sender: No OFD packet to send [20:56:22]OFD Sender: No OFD packet to send [20:56:27]OFD Sender: No OFD packet to send [20:56:32]OFD Sender: No OFD packet to send [20:56:33]recv_with_timeout no data received [20:56:37]OFD Sender: No OFD packet to send [20:56:42]OFD Sender: No OFD packet to send [20:56:47]OFD Sender: No OFD packet to send [20:56:52]OFD Sender: No OFD packet to send [20:56:53]recv_with_timeout no data received [20:56:57]OFD Sender: No OFD packet to send [20:57:02]OFD Sender: No OFD packet to send [20:57:04]recv_with_timeout no data received [20:57:07]OFD Sender: No OFD packet to send [20:57:12]OFD Sender: No OFD packet to send [20:57:17]OFD Sender: No OFD packet to send [20:57:22]OFD Sender: No OFD packet to send [20:57:27]OFD Sender: No OFD packet to send [20:57:32]OFD Sender: No OFD packet to send [20:57:37]OFD Sender: No OFD packet to send [20:57:42]OFD Sender: No OFD packet to send [20:57:46]recv_with_timeout no data received [20:57:47]OFD Sender: No OFD packet to send [20:57:52]OFD Sender: No OFD packet to send [20:57:57]OFD Sender: No OFD packet to send [20:58:02]OFD Sender: No OFD packet to send [20:58:07]OFD Sender: No OFD packet to send [20:58:12]OFD Sender: No OFD packet to send [20:58:17]OFD Sender: No OFD packet to send [20:58:22]OFD Sender: No OFD packet to send [20:58:25]recv_with_timeout no data received [20:58:27]OFD Sender: No OFD packet to send [20:58:47]OFD Sender: No OFD packet to send [20:58:52]OFD Sender: No OFD packet to send [20:58:57]OFD Sender: No OFD packet to send [20:59:02]OFD Sender: No OFD packet to send [20:59:07]OFD Sender: No OFD packet to send [20:59:12]OFD Sender: No OFD packet to send [20:59:17]OFD Sender: No OFD packet to send [20:59:18]recv_with_timeout no data received [20:59:22]OFD Sender: No OFD packet to send [20:59:27]OFD Sender: No OFD packet to send [20:59:32]OFD Sender: No OFD packet to send [20:59:37]OFD Sender: No OFD packet to send [20:59:42]OFD Sender: No OFD packet to send [20:59:43]recv_with_timeout no data received [20:59:47]OFD Sender: No OFD packet to send [20:55:43]Malloc new data [20:55:43]Malloc new data [20:55:43]KKMSetReceiptItemData err=0 [20:55:43]KKMAddReceiptItem [20:55:43]LoadAmountFromDocumentTag total=0 [20:55:43]LoadAmountFromDocumentTag cost=0 [20:55:43]SetAmountToDocument total=0 [20:55:43]Malloc new data [20:55:43]cost*persent_nds=0 [20:55:43]+500=500 [20:55:43]tax_nds_amount=0 [20:55:43]cost*persent_nds=0 [20:55:43]+500=500 [20:55:43]tax_nsp_amount=0 [20:55:43]Load OK [20:55:43]Load OK [20:55:43]Malloc new data [20:55:43]Malloc new data [20:55:43]Load OK [20:55:43]Load OK [20:55:43]Malloc new data [20:55:43]Malloc new data [20:55:43]free (receipt_item_data.pre_item_text) [20:55:43]free (receipt_item_data.post_item_text) [20:55:43]done [20:55:43]Malloc new data [20:55:43]Malloc new data [20:55:43]Malloc new data [20:55:43]KKMSetReceiptData OK [20:55:43]ProcessDocumentItem done err = 0, tmpTLVsize=111 [20:55:43]tlvbuf is 01A8BEF0 [20:55:43]KKMLoadAndSignReceiptData [20:55:43]SAM_PROTO_ProcessDocument [20:55:43]wFMCommunicate request_size=9 [20:55:43]MH_SAM_APDU [20:55:43]CAPDU: 80 15 01 00 04 03 00 6F 00 [20:55:43]Write to MH i2c: E2 0C 00 6A 00 80 15 01 00 04 00 03 00 6F 00 00 00 63 [20:55:43]Write i2c OK [20:55:43]MH_I2C_Read... [20:55:43]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [20:55:43]Read from MH i2c: E2 [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: E2 03 00 [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: E2 03 00 6A 00 00 90 00 DE [20:55:43]RAPDU: 90 00 [20:55:43]wFMCommunicate OK [20:55:43]wFMCommunicate request_size=10 [20:55:43]MH_SAM_APDU [20:55:43]CAPDU: 80 15 02 00 05 1E 04 01 00 01 [20:55:43]Write to MH i2c: E2 0D 00 6B 00 80 15 02 00 05 00 1E 04 01 00 01 00 00 19 [20:55:43]Write i2c OK [20:55:43]MH_I2C_Read... [20:55:43]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [20:55:43]Read from MH i2c: E2 [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: E2 03 00 [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: E2 03 00 6B 00 00 90 00 DF [20:55:43]RAPDU: 90 00 [20:55:43]wFMCommunicate OK [20:55:43]wFMCommunicate request_size=15 [20:55:43]MH_SAM_APDU [20:55:43]CAPDU: 80 15 02 00 0A FC 03 06 00 00 00 00 00 00 00 [20:55:43]Write to MH i2c: E2 12 00 6C 00 80 15 02 00 0A 00 FC 03 06 00 00 00 00 00 00 00 00 00 05 [20:55:43]Write i2c OK [20:55:43]MH_I2C_Read... [20:55:43]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [20:55:43]Read from MH i2c: E2 [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: E2 03 00 [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: E2 03 00 6C 00 00 90 00 E0 [20:55:43]RAPDU: 90 00 [20:55:43]wFMCommunicate OK [20:55:43]wFMCommunicate request_size=47 [20:55:43]MH_SAM_APDU [20:55:43]CAPDU: 80 15 02 00 2A EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 [20:55:43]Write to MH i2c: E2 32 00 6D 00 80 15 02 00 2A 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 00 00 44 [20:55:44]Write i2c OK [20:55:44]MH_I2C_Read... [20:55:44]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [20:55:44]Read from MH i2c: E2 [20:55:44]MH_I2C_Read... [20:55:44]Read from MH i2c: E2 03 00 [20:55:44]MH_I2C_Read... [20:55:44]Read from MH i2c: E2 03 00 6D 00 00 90 00 E1 [20:55:44]RAPDU: 90 00 [20:55:44]wFMCommunicate OK [20:55:44]wFMCommunicate request_size=15 [20:55:44]MH_SAM_APDU [20:55:44]CAPDU: 80 15 02 00 0A 07 04 06 00 00 00 00 00 00 00 [20:55:44]Write to MH i2c: E2 12 00 6E 00 80 15 02 00 0A 00 07 04 06 00 00 00 00 00 00 00 00 00 13 [20:55:44]Write i2c OK [20:55:44]MH_I2C_Read... [20:55:44]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [20:55:44]Read from MH i2c: E2 [20:55:44]MH_I2C_Read... [20:55:44]Read from MH i2c: E2 03 00 [20:55:44]MH_I2C_Read... [20:55:44]Read from MH i2c: E2 03 00 6E 00 00 90 00 E2 [20:55:44]RAPDU: 90 00 [20:55:44]wFMCommunicate OK [20:55:44]wFMCommunicate request_size=15 [20:55:44]MH_SAM_APDU [20:55:44]CAPDU: 80 15 02 00 0A 39 04 06 00 00 00 00 00 00 00 [20:55:44]Write to MH i2c: E2 12 00 6F 00 80 15 02 00 0A 00 39 04 06 00 00 00 00 00 00 00 00 00 46 [20:55:44]Write i2c OK [20:55:44]MH_I2C_Read... [20:55:44]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [20:55:44]Read from MH i2c: E2 [20:55:44]MH_I2C_Read... [20:55:44]Read from MH i2c: E2 03 00 [20:55:44]MH_I2C_Read... [20:55:44]Read from MH i2c: E2 03 00 6F 00 00 90 00 E3 [20:55:44]RAPDU: 90 00 [20:55:44]wFMCommunicate OK [20:55:44]wFMCommunicate request_size=11 [20:55:44]MH_SAM_APDU [20:55:44]CAPDU: 80 15 02 00 06 1F 04 02 00 01 00 [20:55:44]Write to MH i2c: E2 0E 00 70 00 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 22 [20:55:44]Write i2c OK [20:55:44]MH_I2C_Read... [20:55:44]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [20:55:44]Read from MH i2c: E2 [20:55:44]MH_I2C_Read... [20:55:44]Read from MH i2c: E2 03 00 [20:55:44]MH_I2C_Read... [20:55:44]Read from MH i2c: E2 03 00 70 00 00 90 00 E4 [20:55:44]RAPDU: 90 00 [20:55:44]wFMCommunicate OK [20:55:44]wFMCommunicate request_size=13 [20:55:44]MH_SAM_APDU [20:55:44]CAPDU: 80 15 02 00 08 F4 03 04 00 D0 79 11 67 [20:55:44]Write to MH i2c: E2 10 00 71 00 80 15 02 00 08 003 04 00 C7 7A 11 67 [20:59:51]Write to MH i2c: E2 10 00 BB 00 80 15 02 00 08 00 F4 03 04 00 C7 7A 11 67 00 00 FF [20:59:51]Write i2c OK [20:59:51]MH_I2C_Read... [20:59:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [20:59:51]Read from MH i2c: E2 [20:59:51]MH_I2C_Read... [20:59:51]Read from MH i2c: E2 03 00 [20:59:51]MH_I2C_Read... [20:59:51]Read from MH i2c: E2 03 00 BB 00 00 90 00 2F [20:59:51]RAPDU: 90 00 [20:59:51]wFMCommunicate OK [20:59:51]wFMCommunicate request_size=25 [20:59:51]MH_SAM_APDU [20:59:51]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 [20:59:51]Write to MH i2c: E2 1C 00 BC 00 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 00 00 9D [20:59:51]Write i2c OK [20:59:51]MH_I2C_Read... [20:59:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [20:59:51]Read from MH i2c: E2 [20:59:51]MH_I2C_Read... [20:59:51]Read from MH i2c: E2 03 00 [20:59:51]MH_I2C_Read... [20:59:51]Read from MH i2c: E2 03 00 BC 00 00 90 00 30 [20:59:51]RAPDU: 90 00 [20:59:51]wFMCommunicate OK [20:59:51]wFMCommunicate request_size=4 [20:59:51]MH_SAM_APDU [20:59:51]CAPDU: 80 15 03 00 [20:59:51]Write to MH i2c: E2 08 00 BD 00 80 15 03 00 00 00 00 00 3E [20:59:51]Write i2c OK [20:59:51]MH_I2C_Read... [20:59:51]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [20:59:51]Read from MH i2c: E2 [20:59:51]MH_I2C_Read... [20:59:51]Read from MH i2c: E2 40 00 [20:59:51]MH_I2C_Read... [20:59:51]Read from MH i2c: E2 40 00 BD 00 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5B 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 C1 00 00 00 35 04 06 00 A5 60 23 4D 68 CA 90 00 47 [20:59:51]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5B 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 C1 00 00 00 35 04 06 00 A5 60 23 4D 68 CA 90 00 [20:59:51]wFMCommunicate OK [20:59:51]SAM_PROTO_ProcessDocument answer len = 59 [20:59:51]SAM_PROTO_ProcessDocument done [20:59:51]SetTLVBufToDocument [20:59:51]Processing tag 1209 (04B9) [20:59:51]Malloc new data [20:59:51]Processing tag 1041 (0411) [20:59:51]Processing tag 1040 (0410) [20:59:51]Malloc new data [20:59:51]Processing tag 1038 (040E) [20:59:51]Malloc new data [20:59:51]Processing tag 1042 (0412) [20:59:51]Malloc new data [20:59:51]Processing tag 1077 (0435) [20:59:51]Malloc new data [20:59:51]SetTLVBufToDocument err=0 [20:59:51]KKMLoadAndSignReceiptData store KKM data [20:59:51]KKMLoadAndSignReceiptData err=0 [20:59:51]wFMCommunicate request_size=4 [20:59:51]MH_SAM_APDU [20:59:51]CAPDU: 80 11 00 00 [20:59:51]Write to MH i2c: E2 08 00 BE 00 80 11 00 00 00 00 00 00 38 [20:59:51]Write i2c OK [20:59:51]MH_I2C_Read... [20:59:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:51]Read from MH i2c: E2 [20:59:51]MH_I2C_Read... [20:59:51]Read from MH i2c: E2 17 00 [20:59:51]MH_I2C_Read... [20:59:51]Read from MH i2c: E2 17 00 BE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 8A [20:59:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:59:51]wFMCommunicate OK [20:59:51]Счет N : (1)918769 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 22 Товар: 2710124130 Аи-92-К-4 10.000 * 0.00 = 0.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 193 17.10.2024 20:59 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30100442 ФМ: 0000000000871843 ФД: 82267 ФПД: 181832327719114 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T205951&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82267&fm=181832327719114&tin=02508201610067®Number=0000000000091680&sum=0 [20:59:51]StoreToDocumentArchive [20:59:51]shift 525 fd 82267 [20:59:51]save to /storage/0525/doc_00082267 [20:59:51]save last doc name /storage/0525/doc_00082267 to /storage/kkm_last_doc_name [20:59:51]save OK [20:59:51]Clear old archive folders... [20:59:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:59:51]tlvbuf is 01AAB090 [20:59:51]SAM_PROTO_ClearQueue [20:59:51]wFMCommunicate request_size=4 [20:59:51]MH_SAM_APDU [20:59:51]CAPDU: 80 09 00 00 [20:59:51]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [20:59:51]Write i2c OK [20:59:51]MH_I2C_Read... [20:59:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:59:51]Read from MH i2c: E2 [20:59:51]MH_I2C_Read... [20:59:51]Read from MH i2c: E2 03 00 [20:59:51]MH_I2C_Read... [20:59:51]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [20:59:51]RAPDU: 90 00 [20:59:51]wFMCommunicate OK [20:59:51]SAM_PROTO_ClearQueue done [20:59:51]KKMCreateOFDPacket [20:59:51]OFDProtocolAddRootSTLVToBuf [20:59:51]FM_MakeSignedData [20:59:51]FM_MakeSignedData [20:59:51]SAM_PROTO_SignData [20:59:51]wFMCommunicate request_size=4 [20:59:51]MH_SAM_APDU [20:59:51]CAPDU: 80 0D 01 02 [20:59:51]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [20:59:51]Write i2c OK [20:59:51]MH_I2C_Read... [20:59:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:59:51]Read from MH i2c: E2 [20:59:51]MH_I2C_Read... [20:59:51]Read from MH i2c: E2 03 00 [20:59:51]MH_I2C_Read... [20:59:51]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [20:59:51]RAPDU: 90 00 [20:59:51]wFMCommunicate OK [20:59:51]wFMCommunicate request_size=255 [20:59:51]MH_SAM_APDU [20:59:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 C7 7A 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5B 41 01 00 35 04 06 00 A5 [20:59:51]Write to MH i2c: E2 02 01 C1 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 C7 7A 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5B 41 01 00 35 04 06 00 A5 00 00 42 [20:59:51]Write i2c OK [20:59:51]MH_I2C_Read... [20:59:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:59:51]Read from MH i2c: E2 [20:59:51]MH_I2C_Read... [20:59:51]Read from MH i2c: E2 03 00 [20:59:51]MH_I2C_Read... [20:59:51]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [20:59:51]RAPDU: 90 00 [20:59:51]wFMCommunicate OK [20:59:51]wFMCommunicate request_size=10 [20:59:51]MH_SAM_APDU [20:59:51]CAPDU: 80 0D 02 02 05 60 23 4D 68 CA [20:59:51]Write to MH i2c: E2 0D 00 C2 00 80 0D 02 02 05 00 60 23 4D 68 CA 00 00 48 [20:59:51]Write i2c OK [20:59:51]MH_I2C_Read... [20:59:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:59:51]Read from MH i2c: E2 [20:59:51]MH_I2C_Read... [20:59:51]Read from MH i2c: E2 03 00 [20:59:51]MH_I2C_Read... [20:59:51]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [20:59:51]RAPDU: 90 00 [20:59:51]wFMCommunicate OK [20:59:51]wFMCommunicate request_size=4 [20:59:51]MH_SAM_APDU [20:59:51]CAPDU: 80 0D 03 02 [20:59:51]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [20:59:51]Write i2c OK [20:59:51]MH_I2C_Read... [20:59:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:59:51]Read from MH i2c: E2 [20:59:51]MH_I2C_Read... [20:59:51]Read from MH i2c: E2 0B 00 [20:59:51]MH_I2C_Read... [20:59:51]Read from MH i2c: E2 0B 00 C3 00 00 6A 1C AE 0F 6A 98 C5 E3 90 00 2C [20:59:51]RAPDU: 6A 1C AE 0F 6A 98 C5 E3 90 00 [20:59:51]wFMCommunicate OK [20:59:51]SAM_PROTO_SignData done [20:59:51]FM_MakeSignedData done [20:59:51]CreateOFDProtocolMessage [20:59:51]wFMCommunicate request_size=4 [20:59:51]MH_SAM_APDU [20:59:51]CAPDU: 80 11 00 00 [20:59:51]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [20:59:51]Write i2c OK [20:59:51]MH_I2C_Read... [20:59:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:51]Read from MH i2c: E2 [20:59:51]MH_I2C_Read... [20:59:51]Read from MH i2c: E2 17 00 [20:59:51]MH_I2C_Read... [20:59:51]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 90 [20:59:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:59:51]wFMCommunicate OK [20:59:52]CreateOFDProtocolMessage done [20:59:52]OFDSenderStorePacket 82267 [20:59:52]StoreOFDPacket docnum=82267 [20:59:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 00 4A 07 01 71 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 C7 7A 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5B 41 01 00 35 04 06 00 A5 60 23 4D 68 CA 6A 1C AE 0F 6A 98 C5 E3 [20:59:52]CheckFolder [20:59:52]dirname=/storage/ofd_packets [20:59:52]CheckFolder done [20:59:52]ProducePacketName [20:59:52]name=ofd_packets/00082267 [20:59:52]NVStorageSaveData ofd_packets/00082267 [20:59:52]File name is /storage/ofd_packets/00082267 [20:59:52]Write 301 bytes [20:59:52]NVStorageSaveData done [20:59:52]OFDSenderStorePacket done [20:59:52]KKMCreateOFDPacket done [20:59:52]NVStorageSaveData kkm_last_timestamp [20:59:52]File name is /storage/kkm_last_timestamp [20:59:52]Write 4 bytes [20:59:52]NVStorageSaveData done [20:59:52]OFD Sender: Processing packet 82267 [packets to send 254, broken 253] [20:59:52]ProducePacketName [20:59:52]name=ofd_packets/00082267 [20:59:52]OFD Sender: To server: pG, [20:59:52]CommunicateWithHost lk.salyk.kg:30040 [20:59:52]ConnectInit lk.salyk.kg [20:59:52]ExternCall_PrintAddStr [20:59:52]wPrintStart [20:59:52]Write to MH i2c: 01 00 00 C5 00 C5 [20:59:52]Write i2c OK [20:59:52]MH_I2C_Read... [20:59:52]Read from MH i2c: 01 [20:59:52]MH_I2C_Read... [20:59:52]Read from MH i2c: 01 07 00 [20:59:52]MH_I2C_Read... [20:59:52]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [20:59:52]RasterBufferAndPrint [20:59:52]line Счет N : (1)918769 [20:59:52]line ИНН: 02508201610067 [20:59:52]line Контрольно-Кассовый Чек [20:59:52]line ПРОДАЖА [20:59:52]line ТРК (МРК, ГНК) : 22 [20:59:52]line Товар: 2710124130 [20:59:52]line Аи-92-К-4 [20:59:52]line 10.000 * 0.00 [20:59:52]line = 0.00 [20:59:52]line НДС 12% НСП 1% [20:59:52]line > о реализуемом товаре [20:59:52]line ИТОГО: 0.00 [20:59:52]line НСП 1% : 0.00 [20:59:52]line НДС 12% : 0.00 [20:59:52]line Наличными: 0.00 [20:59:52]line Безнал.: 0.00 [20:59:52]line Место: АЗС № 114 "Партнер Нефть" [20:59:52]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [20:59:52]line СНО: Общий режим [20:59:52]line Чек 193 17.10.2024 20:59 [20:59:52]line Смена: 525 ФФД: 1.0 [20:59:52]line ЗНМ: 0300000086 [20:59:52]line РНМ: 0000000000091680 [20:59:52]line Версия ККМ: 001 [20:59:52]line Талоны: ТК ГПНА Online [20:59:52]line 30100442 [20:59:52]line ФМ: 0000000000871843 [20:59:52]line ФД: 82267 [20:59:52]line ФПД: 181832327719114 [20:59:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T205951&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82267&fm=181832327719114&tin=02508201610067®Number=0000000000091680&sum=0 [20:59:52]written 0, free lines is 4095 [20:59:52]Write to MH i2c: 01 00 00 EF 00 EF [20:59:52]Write i2c OK [20:59:52]MH_I2C_Read... [20:59:52]Read from MH i2c: 01 [20:59:52]MH_I2C_Read... [20:59:52]Read from MH i2c: 01 07 00 [20:59:52]MH_I2C_Read... [20:59:52]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 E2 0C E4 [20:59:52]RasterBufferAndPrint [20:59:52]line [20:59:52]line [20:59:52]line [20:59:52]line [20:59:52]line [20:59:52]written 0, free lines is 3304 [20:59:52]MH_Cut [20:59:52]Write to MH i2c: D1 01 00 F6 00 01 C8 [20:59:52]Write i2c OK [20:59:52]MH_I2C_Read... [20:59:52]Read from MH i2c: D1 [20:59:52]MH_I2C_Read... [20:59:52]Read from MH i2c: D1 01 00 [20:59:52]MH_I2C_Read... [20:59:52]Read from MH i2c: D1 01 00 F6 00 00 C7 [20:59:52]Write to MH i2c: 01 00 00 F7 00 F7 [20:59:52]Write i2c OK [20:59:52]MH_I2C_Read... [20:59:53]*** Cut start [20:59:53]*** Partial cut [20:59:53]*** CUTSNS_PIN = 1 [20:59:53]*** CUTSNS_PIN = 0 [20:59:53]*** Brake cut motor [20:59:54]Read from MH i2c: 01 [20:59:54]MH_I2C_Read... [20:59:54]*** Stop cut motor [20:59:54]*** Cut end [20:59:54]Read from MH i2c: 01 07 00 [20:59:54]MH_I2C_Read... [20:59:54]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [20:59:54]process_action close_receipt done [20:59:54]requested_data is exist [20:59:54]produce_requested_data [20:59:54]requested_item fm.sn is exist - process it [20:59:54]wFMCommunicate request_size=4 [20:59:54]MH_SAM_APDU [20:59:54]CAPDU: 80 11 00 00 [20:59:54]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [20:59:54]Write i2c OK [20:59:54]MH_I2C_Read... [20:59:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:54]Read from MH i2c: E2 [20:59:54]MH_I2C_Read... [20:59:54]Read from MH i2c: E2 17 00 [20:59:54]MH_I2C_Read... [20:59:54]Read from MH i2c: E2 17 00 F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C4 [20:59:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:59:54]wFMCommunicate OK [20:59:54]requested_item fd.num is exist - process it [20:59:54]SAM_PROTO_GetFieldsCounters [20:59:54]wFMCommunicate request_size=4 [20:59:54]MH_SAM_APDU [20:59:54]CAPDU: 80 13 00 00 [20:59:54]Write to MH i2c: E2 08 00 F9 00 80 13 00 00 00 00 00 00 75 [20:59:54]Write i2c OK [20:59:54]MH_I2C_Read... [20:59:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:59:54]Read from MH i2c: E2 [20:59:54]MH_I2C_Read... [20:59:54]Read from MH i2c: E2 62 00 [20:59:54]MH_I2C_Read... [20:59:54]Read from MH i2c: E2 62 00 F9 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 5B 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [20:59:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 5B 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:59:54]wFMCommunicate OK [20:59:54]SAM_PROTO_GetFieldsCounters done [20:59:54]requested_item shift.num is exist - process it [20:59:54]requested_item shift.opened is exist - process it [20:59:54]req_shift_opened [20:59:54]FM_GetShiftState [20:59:54]SAM_PROTO_GetShiftState [20:59:54]wFMCommunicate request_size=4 [20:59:54]MH_SAM_APDU [20:59:54]CAPDU: 80 13 01 00 [20:59:54]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [20:59:54]Write i2c OK [20:59:54]MH_I2C_Read... [20:59:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:59:54]Read from MH i2c: E2 [20:59:54]MH_I2C_Read... [20:59:54]Read from MH i2c: E2 0E 00 [20:59:54]MH_I2C_Read... [20:59:54]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 7F [20:59:54]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [20:59:54]wFMCommunicate OK [20:59:54]SAM_PROTO_GetShiftState done [20:59:54]FM_GetShiftState done [20:59:54]req_shift_opened done [20:59:54]requested_item shift.open_date is exist - process it [20:59:54]req_shift_open_date [20:59:54]req_shift_open_date done [20:59:54]produce_requested_data done [20:59:54]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82267,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [20:59:54]process_action_free close_receipt [20:59:54]json_value_free [20:59:54]json_value_free done [20:59:54]process_json_proto returns [20:59:54]Send response to host [20:59:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82267,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [20:59:54]free response buf [20:59:54]execute_script done [20:59:54]execute_script returns [20:59:54]free content buf [20:59:54]Sock 10.Close socket [20:59:54]Sock 10.Thread stoped [20:59:57]ConnectInit Can't take IP for lk.salyk.kg [20:59:57]CommunicateWithHost connect error [20:59:57]CommunicateWithHost err = -1 [20:59:57]OFD Sender: Server communicate error [21:00:02]OFD Sender: Processing packet 82267 [packets to send 254, broken 253] [21:00:02]ProducePacketName [21:00:02]name=ofd_packets/00082267 [21:00:02]OFD Sender: To server: pG, [21:00:02]CommunicateWithHost lk.salyk.kg:30040 [21:00:02]ConnectInit lk.salyk.kg [21:00:07]ConnectInit Can't take IP for lk.salyk.kg [21:00:07]CommunicateWithHost connect error [21:00:07]CommunicateWithHost err = -1 [21:00:07]OFD Sender: Server communicate error [21:00:12]OFD Sender: Processing packet 82267 [packets to send 254, broken 253] [21:00:12]ProducePacketName [21:00:12]name=ofd_packets/00082267 [21:00:12]OFD Sender: To server: pG, [21:00:12]CommunicateWithHost lk.salyk.kg:30040 [21:00:12]ConnectInit lk.salyk.kg [21:00:17]ConnectInit Can't take IP for lk.salyk.kg [21:00:17]CommunicateWithHost connect error [21:00:17]CommunicateWithHost err = -1 [21:00:17]OFD Sender: Server communicate error [21:00:22]OFD Sender: Processing packet 82267 [packets to send 254, broken 253] [21:00:22]ProducePacketName [21:00:22]name=ofd_packets/00082267 [21:00:22]OFD Sender: To server: pG, [21:00:22]CommunicateWithHost lk.salyk.kg:30040 [21:00:22]ConnectInit lk.salyk.kg [21:00:27]ConnectInit Can't take IP for lk.salyk.kg [21:00:27]CommunicateWithHost connect error [21:00:27]CommunicateWithHost err = -1 [21:00:27]OFD Sender: Server communicate error [21:00:27]recv_with_timeout no data received [21:00:32]OFD Sender: Processing packet 82267 [packets to send 254, broken 253] [21:00:32]ProducePacketName [21:00:32]name=ofd_packets/00082267 [21:00:32]OFD Sender: To server: pG, [21:00:32]CommunicateWithHost lk.salyk.kg:30040 [21:00:32]ConnectInit lk.salyk.kg [21:00:37]ConnectInit Can't take IP for lk.salyk.kg [21:00:37]CommunicateWithHost connect error [21:00:37]CommunicateWithHost err = -1 [21:00:37]OFD Sender: Server communicate error [21:00:42]OFD Sender: Processing packet 82267 [packets to send 254, broken 253] [21:00:42]ProducePacketName [21:00:42]name=ofd_packets/00082267 [21:00:42]OFD Sender: To server: pG, [21:00:42]CommunicateWithHost lk.salyk.kg:30040 [21:00:42]ConnectInit lk.salyk.kg [21:00:47]ConnectInit Can't take IP for lk.salyk.kg [21:00:47]CommunicateWithHost connect error [21:00:47]CommunicateWithHost err = -1 [21:00:47]OFD Sender: Server communicate error [21:00:52]OFD Sender: Processing packet 82267 [packets to send 254, broken 253] [21:00:52]ProducePacketName [21:00:52]name=ofd_packets/00082267 [21:00:52]OFD Sender: To server: pG, [21:00:52]CommunicateWithHost lk.salyk.kg:30040 [21:00:52]ConnectInit lk.salyk.kg [21:00:57]ConnectInit Can't take IP for lk.salyk.kg [21:00:57]CommunicateWithHost connect error [21:00:57]CommunicateWithHost err = -1 [21:00:57]OFD Sender: Server communicate error [21:01:02]OFD Sender: Processing packet 82267 [packets to send 254, broken 253] [21:01:02]ProducePacketName [21:01:02]name=ofd_packets/00082267 [21:01:02]OFD Sender: To server: pG, [21:01:02]CommunicateWithHost lk.salyk.kg:30040 [21:01:02]ConnectInit lk.salyk.kg [21:01:07]ConnectInit Can't take IP for lk.salyk.kg [21:01:07]CommunicateWithHost connect error [21:01:07]CommunicateWithHost err = -1 [21:01:07]OFD Sender: Server communicate error [21:01:12]OFD Sender: Processing packet 82267 [packets to send 254, broken 253] [21:01:12]ProducePacketName [21:01:12]name=ofd_packets/00082267 [21:01:12]OFD Sender: To server: pG, [21:01:12]CommunicateWithHost lk.salyk.kg:30040 [21:01:12]ConnectInit lk.salyk.kg [21:01:16]recv_with_timeout no data received [21:01:17]ConnectInit Can't take IP for lk.salyk.kg [21:01:17]CommunicateWithHost connect error [21:01:17]CommunicateWithHost err = -1 [21:01:17]OFD Sender: Server communicate error [21:01:22]OFD Sender: Processing packet 82267 [packets to send 254, broken 253] [21:01:22]ProducePacketName [21:01:22]name=ofd_packets/00082267 [21:01:22]OFD Sender: To server: pG, [21:01:22]CommunicateWithHost lk.salyk.kg:30040 [21:01:22]ConnectInit lk.salyk.kg [21:01:27]ConnectInit Can't take IP for lk.salyk.kg [21:01:27]CommunicateWithHost connect error [21:01:27]CommunicateWithHost err = -1 [21:01:27]OFD Sender: Server communicate error [21:01:32]OFD Sender: Processing packet 82267 [packets to send 254, broken 253] [21:01:32]ProducePacketName [21:01:32]name=ofd_packets/00082267 [21:01:32]OFD Sender: To server: pG, [21:01:32]CommunicateWithHost lk.salyk.kg:30040 [21:01:32]ConnectInit lk.salyk.kg [21:01:37]ConnectInit Can't take IP for lk.salyk.kg [21:01:37]CommunicateWithHost connect error [21:01:37]CommunicateWithHost err = -1 [21:01:37]OFD Sender: Server communicate error [21:01:42]OFD Sender: Processing packet 82267 [packets to send 254, broken 253] [21:01:42]ProducePacketName [21:01:42]name=ofd_packets/00082267 [21:01:42]OFD Sender: To server: pG, [21:01:42]CommunicateWithHost lk.salyk.kg:30040 [21:01:42]ConnectInit lk.salyk.kg [21:01:47]ConnectInit Can't take IP for lk.salyk.kg [21:01:47]CommunicateWithHost connect error [21:01:47]CommunicateWithHost err = -1 [21:01:47]OFD Sender: Server communicate error [21:01:52]OFD Sender: Processing packet 82267 [packets to send 254, broken 253] [21:01:52]ProducePacketName [21:01:52]name=ofd_packets/00082267 [21:01:52]OFD Sender: To server: pG, [21:01:52]CommunicateWithHost lk.salyk.kg:30040 [21:01:52]ConnectInit lk.salyk.kg [21:01:57]ConnectInit Can't take IP for lk.salyk.kg [21:01:57]CommunicateWithHost connect error [21:01:57]CommunicateWithHost err = -1 [21:01:57]OFD Sender: Server communicate error [21:02:02]OFD Sender: Processing packet 82267 [packets to send 254, broken 253] [21:02:02]ProducePacketName [21:02:02]name=ofd_packets/00082267 [21:02:02]OFD Sender: To server: pG, [21:02:02]CommunicateWithHost lk.salyk.kg:30040 [21:02:02]ConnectInit lk.salyk.kg [21:02:07]ConnectInit Can't take IP for lk.salyk.kg [21:02:07]CommunicateWithHost connect error [21:02:07]CommunicateWithHost err = -1 [21:02:07]OFD Sender: Server communicate error [21:02:12]OFD Sender: Processing packet 82267 [packets to send 254, broken 253] [21:02:12]ProducePacketName [21:02:12]name=ofd_packets/00082267 [21:02:12]OFD Sender: To server: pG, [21:02:12]CommunicateWithHost lk.salyk.kg:30040 [21:02:12]ConnectInit lk.salyk.kg [21:02:17]ConnectInit Can't take IP for lk.salyk.kg [21:02:17]CommunicateWithHost connect error [21:02:17]CommunicateWithHost err = -1 [21:02:17]OFD Sender: Server communicate error [21:02:22]OFD Sender: Processing packet 82267 [packets to send 254, broken 253] [21:02:22]ProducePacketName [21:02:22]name=ofd_packets/00082267 [21:02:22]OFD Sender: To server: pG, [21:02:22]CommunicateWithHost lk.salyk.kg:30040 [21:02:22]ConnectInit lk.salyk.kg [21:02:27]ConnectInit Can't take IP for lk.salyk.kg [21:02:27]CommunicateWithHost connect error [21:02:27]CommunicateWithHost err = -1 [21:02:27]OFD Sender: Server communicate error [21:02:29]recv_with_timeout no data received [21:02:32]OFD Sender: Processing packet 82267 [packets to send 254, broken 253] [21:02:32]ProducePacketName [21:02:32]name=ofd_packets/00082267 [21:02:32]OFD Sender: To server: pG, [21:02:32]CommunicateWithHost lk.salyk.kg:30040 [21:02:32]ConnectInit lk.salyk.kg [21:02:38]Connected sock=7 [21:02:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 00 4A 07 01 71 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 C7 7A 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5B 41 01 00 35 04 06 00 A5 60 23 4D 68 CA 6A 1C AE 0F 6A 98 C5 E3 [21:02:39]recv_with_timeout no data received [21:02:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 E1 51 47 00 A2 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5B 41 01 00 F4 03 04 00 AA 20 11 67 B6 04 01 00 00 13 B0 64 D7 D7 43 99 FA [21:02:39]CommunicateWithHost err = 0 [21:02:39]CheckOFDResponse [21:02:39]1017 (14) - 77093643461234 [21:02:39]1041 (16) - 0000000000871843 [21:02:39]1040 (4) - 82267 [21:02:39]1012 (4) - 17.10.2024 14:35 [21:02:39]1206 (1) - 0 [21:02:39]OFD Sender: Remove packet 82267 [21:02:39]ProducePacketName [21:02:39]name=ofd_packets/00082267 [21:02:39]NVStorageDeleteData [21:02:40]OFD Sender: No OFD packet to send [21:02:45]OFD Sender: No OFD packet to send [21:02:50]OFD Sender: No OFD packet to send [21:02:51]recv_with_timeout no data received [21:02:55]OFD Sender: No OFD packet to send [21:03:00]OFD Sender: No OFD packet to send [21:03:04]recv_with_timeout no data received [21:03:05]OFD Sender: No OFD packet to send [21:03:10]OFD Sender: No OFD packet to send [21:03:15]OFD Sender: No OFD packet to send [21:03:15]recv_with_timeout no data received [21:03:20]OFD Sender: No OFD packet to send [21:03:25]OFD Sender: No OFD packet to send [21:03:28]recv_with_timeout no data received [21:03:30]OFD Sender: No OFD packet to send [21:03:35]OFD Sender: No OFD packet to send [21:03:40]OFD Sender: No OFD packet to send [21:03:45]OFD Sender: No OFD packet to send [21:03:50]OFD Sender: No OFD packet to send [21:03:55]OFD Sender: No OFD packet to send [21:03:57]recv_with_timeout no data received [21:04:00]OFD Sender: No OFD packet to send [21:04:05]OFD Sender: No OFD packet to send [21:04:10]OFD Sender: No OFD packet to send [21:04:15]OFD Sender: No OFD packet to send [21:04:20]OFD Sender: No OFD packet to send [21:04:25]OFD Sender: No OFD packet to send [21:04:30]OFD Sender: No OFD packet to send [21:04:35]OFD Sender: No OFD packet to send [21:04:40]OFD Sender: No OFD packet to send [21:04:45]OFD Sender: No OFD packet to send [21:04:50]OFD Sender: No OFD packet to send [21:04:55]OFD Sender: No OFD packet to send [21:05:00]OFD Sender: No OFD packet to send [21:05:05]OFD Sender: No OFD packet to send [21:05:10]OFD Sender: No OFD packet to send [21:05:15]OFD Sender: No OFD packet to send [21:05:20]OFD Sender: No OFD packet to send [21:05:25]OFD Sender: No OFD packet to send [21:05:30]OFD Sender: No OFD packet to send [21:05:35]OFD Sender: No OFD packet to send [21:05:40]OFD Sender: No OFD packet to send [21:05:45]OFD Sender: No OFD packet to send [21:05:50]OFD Sender: No OFD packet to send [21:05:55]OFD Sender: No OFD packet to send [21:06:00]OFD Sender: No OFD packet to send [21:06:05]OFD Sender: No OFD packet to send [21:06:10]OFD Sender: No OFD packet to send [21:06:15]OFD Sender: No OFD packet to send [21:06:20]OFD Sender: No OFD packet to send [21:06:25]OFD Sender: No OFD packet to send [21:06:30]OFD Sender: No OFD packet to send [21:06:35]OFD Sender: No OFD packet to send [21:06:40]OFD Sender: No OFD packet to send [21:06:45]OFD Sender: No OFD packet to send [21:06:50]OFD Sender: No OFD packet to send [21:06:55]OFD Sender: No OFD packet to send [21:07:00]OFD Sender: No OFD packet to send [21:07:05]OFD Sender: No OFD packet to send [21:07:10]OFD Sender: No OFD packet to send [21:07:15]OFD Sender: No OFD packet to send [21:07:20]OFD Sender: No OFD packet to send [21:07:25]OFD Sender: No OFD packet to send [21:07:30]OFD Sender: No OFD packet to send [21:07:35]OFD Sender: No OFD packet to send [21:07:40]OFD Sender: No OFD packet to send [21:07:45]OFD Sender: No OFD packet to send [21:07:50]OFD Sender: No OFD packet to send [21:07:55]OFD Sender: No OFD packet to send [21:08:00]OFD Sender: No OFD packet to send [21:08:05]OFD Sender: No OFD packet to send [21:08:10]OFD Sender: No OFD packet to send [21:08:15]OFD Sender: No OFD packet to send [21:08:20]OFD Sender: No OFD packet to send [21:08:25]OFD Sender: No OFD packet to send [21:08:30]OFD Sender: No OFD packet to send [21:08:35]OFD Sender: No OFD packet to send [21:08:41]OFD Sender: No OFD packet to send [21:08:46]OFD Sender: No OFD packet to send [21:08:51]OFD Sender: No OFD packet to send [21:08:56]OFD Sender: No OFD packet to send [21:09:01]OFD Sender: No OFD packet to send [21:09:06]OFD Sender: No OFD packet to send [21:09:11]OFD Sender: No OFD packet to send [21:09:16]OFD Sender: No OFD packet to send [21:09:21]OFD Sender: No OFD packet to send [21:09:26]OFD Sender: No OFD packet to send [21:09:31]OFD Sender: No OFD packet to send [21:09:36]OFD Sender: No OFD packet to send [21:09:41]OFD Sender: No OFD packet to send [21:09:46]OFD Sender: No OFD packet to send [21:09:51]OFD Sender: No OFD packet to send [21:09:56]OFD Sender: No OFD packet to send [21:10:01]OFD Sender: No OFD packet to send [21:10:06]OFD Sender: No OFD packet to send [21:10:11]OFD Sender: No OFD packet to send [21:10:16]OFD Sender: No OFD packet to send [21:10:21]OFD Sender: No OFD packet to send [21:10:26]OFD Sender: No OFD packet to send [21:10:31]OFD Sender: No OFD packet to send [21:10:36]OFD Sender: No OFD packet to send [21:10:41]OFD Sender: No OFD packet to send [21:10:46]OFD Sender: No OFD packet to send [21:10:51]OFD Sender: No OFD packet to send [21:10:56]OFD Sender: No OFD packet to send [21:11:01]OFD Sender: No OFD packet to send [21:11:06]OFD Sender: No OFD packet to send [21:11:11]OFD Sender: No OFD packet to send [21:11:16]OFD Sender: No OFD packet to send [21:11:21]OFD Sender: No OFD packet to send [21:11:26]OFD Sender: No OFD packet to send [21:11:31]OFD Sender: No OFD packet to send [21:11:36]OFD Sender: No OFD packet to send [21:11:41]OFD Sender: No OFD packet to send [21:11:46]OFD Sender: No OFD packet to send [21:11:51]OFD Sender: No OFD packet to send [21:11:56]OFD Sender: No OFD packet to send [21:12:01]OFD Sender: No OFD packet to send [21:12:06]OFD Sender: No OFD packet to send [21:12:11]OFD Sender: No OFD packet to send [21:12:16]OFD Sender: No OFD packet to send [21:12:21]OFD Sender: No OFD packet to send [21:12:26]OFD Sender: No OFD packet to send [21:12:31]OFD Sender: No OFD packet to send [21:12:36]OFD Sender: No OFD packet to send [21:12:41]OFD Sender: No OFD packet to send [21:12:46]OFD Sender: No OFD packet to send [21:12:51]OFD Sender: No OFD packet to send [21:12:56]OFD Sender: No OFD packet to send [21:13:01]OFD Sender: No OFD packet to send [21:13:06]OFD Sender: No OFD packet to send [21:13:11]OFD Sender: No OFD packet to send [21:13:16]OFD Sender: No OFD packet to send [21:13:21]OFD Sender: No OFD packet to send [21:13:26]OFD Sender: No OFD packet to send [21:13:30]accept exits with 9 [21:13:30]New connection [21:13:30]New thread 3067129188 created [21:13:30]Thread 3067272548 joined [21:13:30]Waiting for new connection... [21:13:30] Sock 9.Parse request [21:13:30]Sock 9.Check first char [21:13:30]Sock 9.First char is OK [21:13:30]request: POST /json_proto HTTP/1.0 [21:13:30]Method: POST [21:13:30]URL: /json_proto [21:13:30]Method is POST - this is cgi request [21:13:30]url: /json_proto [21:13:30]query_string will be loaded in cgi processing [21:13:30]execute_cgi json_proto POST (null) [21:13:30]execute_cgi path=json_proto method=POST [21:13:30]POST find Content-Length [21:13:30]Host: 172.17.44.67:8080 [21:13:30]Content-Length: 677 [21:13:30]Content-Type: application/json [21:13:30] [21:13:30]POST finish read [21:13:30]Found Content-Length = 677 [21:13:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:13:30]execute_script... [21:13:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:13:30]POST & json_proto [21:13:30]process_json_proto [21:13:30]json parsed OK: [21:13:30]protocol is kg_v1.0 [21:13:30]action value=close_receipt [21:13:30]process_action close_receipt [21:13:30]cmd_close_receipt [21:13:30]MH_GetDate [21:13:30]Write to MH i2c: F0 00 00 FB 00 EA [21:13:30]Write i2c OK [21:13:30]MH_I2C_Read... [21:13:30]Read from MH i2c: F0 [21:13:30]MH_I2C_Read... [21:13:30]Read from MH i2c: F0 09 00 [21:13:30]MH_I2C_Read... [21:13:30]Read from MH i2c: F0 09 00 FB 00 00 FB 7D 11 67 F1 C7 6B 64 6A [21:13:30]GetLastDocTimeStamp 1729198791 [21:13:30]current date 1729199611 [21:13:30]FM_GetShiftState [21:13:30]SAM_PROTO_GetShiftState [21:13:30]wFMCommunicate request_size=4 [21:13:30]MH_SAM_APDU [21:13:30]CAPDU: 80 13 01 00 [21:13:30]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [21:13:30]Write i2c OK [21:13:30]MH_I2C_Read... [21:13:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:30]Read from MH i2c: E2 [21:13:30]MH_I2C_Read... [21:13:30]Read from MH i2c: E2 0E 00 [21:13:30]MH_I2C_Read... [21:13:30]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 81 [21:13:30]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [21:13:30]wFMCommunicate OK [21:13:30]SAM_PROTO_GetShiftState done [21:13:30]FM_GetShiftState done [21:13:30]opened in 1729125927 [21:13:30]opened+sec_in_day 1729212327 [21:13:30]quantity*price = 60009 [21:13:30]sum+1 = 60010 [21:13:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 194 17.10.2024 21:13 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82268 ФПД: 49423307775085 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T211331&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82268&fm=49423307775085&tin=02508201610067®Number=0000000000091680&sum=60000 [21:13:31]StoreToDocumentArchive [21:13:31]shift 525 fd 82268 [21:13:31]save to /storage/0525/doc_00082268 [21:13:31]save last doc name /storage/0525/doc_00082268 to /storage/kkm_last_doc_name [21:13:31]save OK [21:13:31]Clear old archive folders... [21:13:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:13:31]tlvbuf is 01AB1A20 [21:13:31]SAM_PROTO_ClearQueue [21:13:31]wFMCommunicate request_size=4 [21:13:31]MH_SAM_APDU [21:13:31]CAPDU: 80 09 00 00 [21:13:31]Write to MH i2c: E2 08 00 09 01 80 09 00 00 00 00 00 00 7C [21:13:31]Write i2c OK [21:13:31]MH_I2C_Read... [21:13:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:13:31]Read from MH i2c: E2 [21:13:31]MH_I2C_Read... [21:13:31]Read from MH i2c: E2 03 00 [21:13:31]MH_I2C_Read... [21:13:31]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [21:13:31]RAPDU: 90 00 [21:13:31]wFMCommunicate OK [21:13:31]SAM_PROTO_ClearQueue done [21:13:31]KKMCreateOFDPacket [21:13:31]OFDProtocolAddRootSTLVToBuf [21:13:31]FM_MakeSignedData [21:13:31]FM_MakeSignedData [21:13:31]SAM_PROTO_SignData [21:13:31]wFMCommunicate request_size=4 [21:13:31]MH_SAM_APDU [21:13:31]CAPDU: 80 0D 01 02 [21:13:31]Write to MH i2c: E2 08 00 0A 01 80 0D 01 02 00 00 00 00 84 [21:13:31]Write i2c OK [21:13:31]MH_I2C_Read... [21:13:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:13:31]Read from MH i2c: E2 [21:13:31]MH_I2C_Read... [21:13:31]Read from MH i2c: E2 03 00 [21:13:31]MH_I2C_Read... [21:13:31]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [21:13:31]RAPDU: 90 00 [21:13:31]wFMCommunicate OK [21:13:31]wFMCommunicate request_size=255 [21:13:31]MH_SAM_APDU [21:13:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 FB 7D 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5C 41 01 00 35 04 06 00 2C [21:13:31]Write to MH i2c: E2 02 01 0B 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 FB 7D 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5C 41 01 00 35 04 06 00 2C 00 00 78 [21:13:31]Write i2c OK [21:13:31]MH_I2C_Read... [21:13:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:32]Read from MH i2c: E2 [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: E2 03 00 [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [21:13:32]RAPDU: 90 00 [21:13:32]wFMCommunicate OK [21:13:32]wFMCommunicate request_size=10 [21:13:32]MH_SAM_APDU [21:13:32]CAPDU: 80 0D 02 02 05 F3 42 B4 1C 6D [21:13:32]Write to MH i2c: E2 0D 00 0C 01 80 0D 02 02 05 00 F3 42 B4 1C 6D 00 00 03 [21:13:32]Write i2c OK [21:13:32]MH_I2C_Read... [21:13:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:32]Read from MH i2c: E2 [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: E2 03 00 [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [21:13:32]RAPDU: 90 00 [21:13:32]wFMCommunicate OK [21:13:32]wFMCommunicate request_size=4 [21:13:32]MH_SAM_APDU [21:13:32]CAPDU: 80 0D 03 02 [21:13:32]Write to MH i2c: E2 08 00 0D 01 80 0D 03 02 00 00 00 00 89 [21:13:32]Write i2c OK [21:13:32]MH_I2C_Read... [21:13:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:13:32]Read from MH i2c: E2 [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: E2 0B 00 [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: E2 0B 00 0D 01 00 09 44 8E A6 43 8B 43 44 90 00 60 [21:13:32]RAPDU: 09 44 8E A6 43 8B 43 44 90 00 [21:13:32]wFMCommunicate OK [21:13:32]SAM_PROTO_SignData done [21:13:32]FM_MakeSignedData done [21:13:32]CreateOFDProtocolMessage [21:13:32]wFMCommunicate request_size=4 [21:13:32]MH_SAM_APDU [21:13:32]CAPDU: 80 11 00 00 [21:13:32]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [21:13:32]Write i2c OK [21:13:32]MH_I2C_Read... [21:13:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:32]Read from MH i2c: E2 [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: E2 17 00 [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: E2 17 00 0E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DB [21:13:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [21:13:32]wFMCommunicate OK [21:13:32]CreateOFDProtocolMessage done [21:13:32]OFDSenderStorePacket 82268 [21:13:32]StoreOFDPacket docnum=82268 [21:13:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 76 05 07 01 3C 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 FB 7D 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5C 41 01 00 35 04 06 00 2C F3 42 B4 1C 6D 09 44 8E A6 43 8B 43 44 [21:13:32]CheckFolder [21:13:32]dirname=/storage/ofd_packets [21:13:32]CheckFolder done [21:13:32]ProducePacketName [21:13:32]name=ofd_packets/00082268 [21:13:32]NVStorageSaveData ofd_packets/00082268 [21:13:32]File name is /storage/ofd_packets/00082268 [21:13:32]Write 301 bytes [21:13:32]NVStorageSaveData done [21:13:32]OFDSenderStorePacket done [21:13:32]KKMCreateOFDPacket done [21:13:32]NVStorageSaveData kkm_last_timestamp [21:13:32]File name is /storage/kkm_last_timestamp [21:13:32]Write 4 bytes [21:13:32]NVStorageSaveData done [21:13:32]ExternCall_PrintAddStr [21:13:32]wPrintStart [21:13:32]Write to MH i2c: 01 00 00 0F 01 10 [21:13:32]Write i2c OK [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: 01 [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: 01 07 00 [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: 01 07 00 0F 01 00 00 00 00 00 FF 0F 25 [21:13:32]RasterBufferAndPrint [21:13:32]line Счет N : (1)918770 [21:13:32]line ИНН: 02508201610067 [21:13:32]line Контрольно-Кассовый Чек [21:13:32]line ПРОДАЖА [21:13:32]line ТРК (МРК, ГНК) : 22 [21:13:32]line Товар: 2710124130 [21:13:32]line Аи-92-К-4 [21:13:32]line 8.970 * 66.90 [21:13:32]line = 600.09 [21:13:32]line НДС 12% НСП 1% [21:13:32]line > о реализуемом товаре [21:13:32]line ОКРУГЛЕНИЕ: -0.09 [21:13:32]line ИТОГО: 600.00 [21:13:32]line Внесено: 600.00 [21:13:32]line СДАЧА: 0.00 [21:13:32]line НСП 1% : 5.31 [21:13:32]line НДС 12% : 63.73 [21:13:32]line Наличными: 600.00 [21:13:32]line Безнал.: 0.00 [21:13:32]line Место: АЗС № 114 "Партнер Нефть" [21:13:32]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [21:13:32]line СНО: Общий режим [21:13:32]line Чек 194 17.10.2024 21:13 [21:13:32]line Смена: 525 ФФД: 1.0 [21:13:32]line ЗНМ: 0300000086 [21:13:32]line РНМ: 0000000000091680 [21:13:32]line Версия ККМ: 001 [21:13:32]line ФМ: 0000000000871843 [21:13:32]line ФД: 82268 [21:13:32]line ФПД: 49423307775085 [21:13:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T211331&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82268&fm=49423307775085&tin=02508201610067®Number=0000000000091680&sum=60000 [21:13:32]OFD Sender: Processing packet 82268 [packets to send 254, broken 253] [21:13:32]ProducePacketName [21:13:32]name=ofd_packets/00082268 [21:13:32]OFD Sender: To server: pG, [21:13:32]CommunicateWithHost lk.salyk.kg:30040 [21:13:32]ConnectInit lk.salyk.kg [21:13:32]written 0, free lines is 4095 [21:13:33]Write to MH i2c: 01 00 00 3A 01 3B [21:13:33]Write i2c OK [21:13:33]MH_I2C_Read... [21:13:33]Read from MH i2c: 01 [21:13:33]MH_I2C_Read... [21:13:33]Read from MH i2c: 01 07 00 [21:13:33]MH_I2C_Read... [21:13:33]Read from MH i2c: 01 07 00 3A 01 00 00 00 00 00 D7 0C 25 [21:13:33]RasterBufferAndPrint [21:13:33]line [21:13:33]line [21:13:33]line [21:13:33]line [21:13:33]line [21:13:33]written 0, free lines is 3292 [21:13:33]MH_Cut [21:13:33]Write to MH i2c: D1 01 00 41 01 01 14 [21:13:33]Write i2c OK [21:13:33]MH_I2C_Read... [21:13:33]Read from MH i2c: D1 [21:13:33]MH_I2C_Read... [21:13:33]Read from MH i2c: D1 01 00 [21:13:33]MH_I2C_Read... [21:13:33]Read from MH i2c: D1 01 00 41 01 00 13 [21:13:33]Write to MH i2c: 01 00 00 42 01 43 [21:13:33]Write i2c OK [21:13:33]MH_I2C_Read... [21:13:33]Connected sock=10 [21:13:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 76 05 07 01 3C 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 FB 7D 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5C 41 01 00 35 04 06 00 2C F3 42 B4 1C 6D 09 44 8E A6 43 8B 43 44 [21:13:33]*** Cut start [21:13:33]*** Partial cut [21:13:33]*** CUTSNS_PIN = 1 [21:13:33]*** CUTSNS_PIN = 0 [21:13:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 B0 96 47 00 0A C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5C 41 01 00 F4 03 04 00 38 23 11 67 B6 04 01 00 00 15 AE 91 24 96 8A BD 94 [21:13:34]CommunicateWithHost err = 0 [21:13:34]CheckOFDResponse [21:13:34]1017 (14) - 77093643461234 [21:13:34]1041 (16) - 0000000000871843 [21:13:34]1040 (4) - 82268 [21:13:34]1012 (4) - 17.10.2024 14:46 [21:13:34]1206 (1) - 0 [21:13:34]OFD Sender: Remove packet 82268 [21:13:34]ProducePacketName [21:13:34]name=ofd_packets/00082268 [21:13:34]NVStorageDeleteData [21:13:34]*** Brake cut motor [21:13:34]Read from MH i2c: 01 [21:13:34]MH_I2C_Read... [21:13:34]*** Stop cut motor [21:13:34]*** Cut end [21:13:34]Read from MH i2c: 01 07 00 [21:13:34]MH_I2C_Read... [21:13:34]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 FF 0F 58 [21:13:34]process_action close_receipt done [21:13:34]requested_data is exist [21:13:34]produce_requested_data [21:13:34]requested_item fm.sn is exist - process it [21:13:34]wFMCommunicate request_size=4 [21:13:34]MH_SAM_APDU [21:13:34]CAPDU: 80 11 00 00 [21:13:34]Write to MH i2c: E2 08 00 43 01 80 11 00 00 00 00 00 00 BE [21:13:34]Write i2c OK [21:13:34]MH_I2C_Read... [21:13:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:34]Read from MH i2c: E2 [21:13:34]MH_I2C_Read... [21:13:34]Read from MH i2c: E2 17 00 [21:13:34]MH_I2C_Read... [21:13:34]Read from MH i2c: E2 17 00 43 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 10 [21:13:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [21:13:34]wFMCommunicate OK [21:13:34]requested_item fd.num is exist - process it [21:13:34]SAM_PROTO_GetFieldsCounters [21:13:34]wFMCommunicate request_size=4 [21:13:34]MH_SAM_APDU [21:13:34]CAPDU: 80 13 00 00 [21:13:34]Write to MH i2c: E2 08 00 44 01 80 13 00 00 00 00 00 00 C1 [21:13:34]Write i2c OK [21:13:34]MH_I2C_Read... [21:13:34]OFD Sender: No OFD packet to send [21:13:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:13:34]Read from MH i2c: E2 [21:13:34]MH_I2C_Read... [21:13:34]Read from MH i2c: E2 62 00 [21:13:34]MH_I2C_Read... [21:13:34]Read from MH i2c: E2 62 00 44 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 5C 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [21:13:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 5C 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:13:34]wFMCommunicate OK [21:13:34]SAM_PROTO_GetFieldsCounters done [21:13:34]requested_item shift.num is exist - process it [21:13:34]requested_item shift.opened is exist - process it [21:13:34]req_shift_opened [21:13:34]FM_GetShiftState [21:13:34]SAM_PROTO_GetShiftState [21:13:34]wFMCommunicate request_size=4 [21:13:34]MH_SAM_APDU [21:13:34]CAPDU: 80 13 01 00 [21:13:34]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [21:13:34]Write i2c OK [21:13:34]MH_I2C_Read... [21:13:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:34]Read from MH i2c: E2 [21:13:34]MH_I2C_Read... [21:13:34]Read from MH i2c: E2 0E 00 [21:13:34]MH_I2C_Read... [21:13:34]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 CB [21:13:34]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [21:13:34]wFMCommunicate OK [21:13:34]SAM_PROTO_GetShiftState done [21:13:34]FM_GetShiftState done [21:13:34]req_shift_opened done [21:13:34]requested_item shift.open_date is exist - process it [21:13:34]req_shift_open_date [21:13:34]req_shift_open_date done [21:13:34]produce_requested_data done [21:13:34]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82268,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [21:13:34]process_action_free close_receipt [21:13:34]json_value_free [21:13:34]json_value_free done [21:13:34]process_json_proto returns [21:13:34]Send response to host [21:13:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82268,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [21:13:34]free response buf [21:13:34]execute_script done [21:13:34]execute_script returns [21:13:34]free content buf [21:13:34]Sock 9.Close socket [21:13:34]Sock 9.Thread stoped [21:13:39]OFD Sender: No OFD packet to send [21:13:44]OFD Sender: No OFD packet to send [21:13:48]recv_with_timeout no data received [21:13:49]OFD Sender: No OFD packet to send [21:13:54]OFD Sender: No OFD packet to send [21:13:59]recv_with_timeout no data received [21:13:59]OFD Sender: No OFD packet to send [21:14:04]OFD Sender: No OFD packet to send [21:14:09]OFD Sender: No OFD packet to send [21:14:14]OFD Sender: No OFD packet to send [21:14:19]OFD Sender: No OFD packet to send [21:14:24]OFD Sender: No OFD packet to send [21:14:29]OFD Sender: No OFD packet to send [21:14:34]OFD Sender: No OFD packet to send [21:14:39]OFD Sender: No OFD packet to send [21:14:44]OFD Sender: No OFD packet to send [21:14:49]OFD Sender: No OFD packet to send [21:14:54]OFD Sender: No OFD packet to send [21:14:59]OFD Sender: No OFD packet to send [21:15:04]OFD Sender: No OFD packet to send [21:15:09]OFD Sender: No OFD packet to send [21:15:14]OFD Sender: No OFD packet to send [21:15:19]OFD Sender: No OFD packet to send [21:15:24]OFD Sender: No OFD packet to send [21:15:29]OFD Sender: No OFD packet to send [21:15:34]OFD Sender: No OFD packet to send [21:15:39]OFD Sender: No OFD packet to send [21:15:44]OFD Sender: No OFD packet to send [21:15:49]OFD Sender: No OFD packet to send [21:15:54]OFD Sender: No OFD packet to send [21:15:59]OFD Sender: No OFD packet to send [21:16:04]OFD Sender: No OFD packet to send [21:16:09]OFD Sender: No OFD packet to send [21:16:14]OFD Sender: No OFD packet to send [21:16:19]OFD Sender: No OFD packet to send [21:16:24]OFD Sender: No OFD packet to send [21:16:29]OFD Sender: No OFD packet to send [21:16:34]OFD Sender: No OFD packet to send [21:16:39]OFD Sender: No OFD packet to send [21:16:44]OFD Sender: No OFD packet to send [21:16:49]OFD Sender: No OFD packet to send [21:16:54]OFD Sender: No OFD packet to send [21:16:59]OFD Sender: No OFD packet to send [21:17:04]OFD Sender: No OFD packet to send [21:17:09]OFD Sender: No OFD packet to send [21:17:14]OFD Sender: No OFD packet to send [21:17:19]OFD Sender: No OFD packet to send [21:17:24]OFD Sender: No OFD packet to send [21:17:29]OFD Sender: No OFD packet to send [21:17:34]OFD Sender: No OFD packet to send [21:17:39]OFD Sender: No OFD packet to send [21:17:44]OFD Sender: No OFD packet to send [21:17:49]OFD Sender: No OFD packet to send [21:17:54]OFD Sender: No OFD packet to send [21:17:59]OFD Sender: No OFD packet to send [21:18:04]OFD Sender: No OFD packet to send [21:18:09]OFD Sender: No OFD packet to send [21:18:15]OFD Sender: No OFD packet to send [21:18:20]OFD Sender: No OFD packet to send [21:18:25]OFD Sender: No OFD packet to send [21:18:30]OFD Sender: No OFD packet to send [21:18:35]OFD Sender: No OFD packet to send [21:18:40]OFD Sender: No OFD packet to send [21:18:45]OFD Sender: No OFD packet to send [21:18:50]OFD Sender: No OFD packet to send [21:18:55]OFD Sender: No OFD packet to send [21:19:00]OFD Sender: No OFD packet to send [21:19:05]OFD Sender: No OFD packet to send [21:19:10]OFD Sender: No OFD packet to send [21:19:15]OFD Sender: No OFD packet to send [21:19:20]OFD Sender: No OFD packet to send [21:19:25]OFD Sender: No OFD packet to send [21:19:30]OFD Sender: No OFD packet to send [21:19:35]OFD Sender: No OFD packet to send [21:19:40]OFD Sender: No OFD packet to send [21:19:45]OFD Sender: No OFD packet to send [21:19:50]OFD Sender: No OFD packet to send [21:19:55]OFD Sender: No OFD packet to send [21:20:00]OFD Sender: No OFD packet to send [21:20:05]OFD Sender: No OFD packet to send [21:20:10]OFD Sender: No OFD packet to send [21:20:15]OFD Sender: No OFD packet to send [21:20:20]OFD Sender: No OFD packet to send [21:20:25]OFD Sender: No OFD packet to send [21:20:29]recv_with_timeout no data received [21:20:30]OFD Sender: No OFD packet to send [21:20:35]OFD Sender: No OFD packet to send [21:20:40]OFD Sender: No OFD packet to send [21:20:45]OFD Sender: No OFD packet to send [21:20:50]OFD Sender: No OFD packet to send [21:20:55]OFD Sender: No OFD packet to send [21:21:00]OFD Sender: No OFD packet to send [21:21:05]OFD Sender: No OFD packet to send [21:21:10]OFD Sender: No OFD packet to send [21:21:15]OFD Sender: No OFD packet to send [21:21:20]OFD Sender: No OFD packet to send [21:21:25]OFD Sender: No OFD packet to send [21:21:30]OFD Sender: No OFD packet to send [21:21:35]OFD Sender: No OFD packet to send [21:21:40]OFD Sender: No OFD packet to send [21:21:45]OFD Sender: No OFD packet to send [21:21:50]OFD Sender: No OFD packet to send [21:21:55]OFD Sender: No OFD packet to send [21:22:00]OFD Sender: No OFD packet to send [21:22:05]OFD Sender: No OFD packet to send [21:22:10]OFD Sender: No OFD packet to send [21:22:15]OFD Sender: No OFD packet to send [21:22:20]OFD Sender: No OFD packet to send [21:22:25]OFD Sender: No OFD packet to send [21:22:30]OFD Sender: No OFD packet to send [21:22:35]OFD Sender: No OFD packet to send [21:22:40]OFD Sender: No OFD packet to send [21:22:45]OFD Sender: No OFD packet to send [21:22:50]OFD Sender: No OFD packet to send [21:22:55]OFD Sender: No OFD packet to send [21:23:00]OFD Sender: No OFD packet to send [21:23:05]OFD Sender: No OFD packet to send [21:23:10]OFD Sender: No OFD packet to send [21:23:15]OFD Sender: No OFD packet to send [21:23:20]OFD Sender: No OFD packet to send [21:23:25]OFD Sender: No OFD packet to send [21:23:30]OFD Sender: No OFD packet to send [21:23:35]OFD Sender: No OFD packet to send [21:23:40]OFD Sender: No OFD packet to send [21:23:45]OFD Sender: No OFD packet to send [21:23:50]OFD Sender: No OFD packet to send [21:23:55]OFD Sender: No OFD packet to send [21:24:00]OFD Sender: No OFD packet to send [21:24:05]OFD Sender: No OFD packet to send [21:24:10]OFD Sender: No OFD packet to send [21:24:15]OFD Sender: No OFD packet to send [21:24:20]OFD Sender: No OFD packet to send [21:24:25]OFD Sender: No OFD packet to send [21:24:30]OFD Sender: No OFD packet to send [21:24:35]OFD Sender: No OFD packet to send [21:24:40]OFD Sender: No OFD packet to send [21:24:45]OFD Sender: No OFD packet to send [21:24:50]OFD Sender: No OFD packet to send [21:24:55]OFD Sender: No OFD packet to send [21:25:00]OFD Sender: No OFD packet to send [21:25:05]OFD Sender: No OFD packet to send [21:25:10]OFD Sender: No OFD packet to send [21:25:15]OFD Sender: No OFD packet to send [21:25:20]OFD Sender: No OFD packet to send [21:25:25]OFD Sender: No OFD packet to send [21:25:30]OFD Sender: No OFD packet to send [21:25:35]OFD Sender: No OFD packet to send [21:25:40]OFD Sender: No OFD packet to send [21:25:45]OFD Sender: No OFD packet to send [21:25:50]OFD Sender: No OFD packet to send [21:25:55]OFD Sender: No OFD packet to send [21:26:00]OFD Sender: No OFD packet to send [21:26:05]OFD Sender: No OFD packet to send [21:26:10]OFD Sender: No OFD packet to send [21:26:15]OFD Sender: No OFD packet to send [21:26:20]OFD Sender: No OFD packet to send [21:26:25]OFD Sender: No OFD packet to send [21:26:30]OFD Sender: No OFD packet to send [21:26:35]OFD Sender: No OFD packet to send [21:26:40]OFD Sender: No OFD packet to send [21:26:45]OFD Sender: No OFD packet to send [21:26:50]OFD Sender: No OFD packet to send [21:26:55]OFD Sender: No OFD packet to send [21:27:00]OFD Sender: No OFD packet to send [21:27:05]OFD Sender: No OFD packet to send [21:27:10]OFD Sender: No OFD packet to send [21:27:15]OFD Sender: No OFD packet to send [21:27:20]OFD Sender: No OFD packet to send [21:27:25]OFD Sender: No OFD packet to send [21:27:30]OFD Sender: No OFD packet to send [21:27:35]OFD Sender: No OFD packet to send [21:27:40]OFD Sender: No OFD packet to send [21:27:45]OFD Sender: No OFD packet to send [21:27:50]OFD Sender: No OFD packet to send [21:27:55]OFD Sender: No OFD packet to send [21:28:00]OFD Sender: No OFD packet to send [21:28:05]OFD Sender: No OFD packet to send [21:28:10]OFD Sender: No OFD packet to send [21:28:15]OFD Sender: No OFD packet to send [21:28:20]OFD Sender: No OFD packet to send [21:28:26]OFD Sender: No OFD packet to send [21:28:31]OFD Sender: No OFD packet to send [21:28:36]OFD Sender: No OFD packet to send [21:28:41]OFD Sender: No OFD packet to send [21:28:46]OFD Sender: No OFD packet to send [21:28:51]OFD Sender: No OFD packet to send [21:28:56]OFD Sender: No OFD packet to send [21:29:01]OFD Sender: No OFD packet to send [21:29:06]OFD Sender: No OFD packet to send [21:29:11]OFD Sender: No OFD packet to send [21:29:16]OFD Sender: No OFD packet to send [21:29:21]OFD Sender: No OFD packet to send [21:29:26]OFD Sender: No OFD packet to send [21:29:31]OFD Sender: No OFD packet to send [21:29:36]OFD Sender: No OFD packet to send [21:29:41]OFD Sender: No OFD packet to send [21:29:46]OFD Sender: No OFD packet to send [21:29:51]OFD Sender: No OFD packet to send [21:29:56]OFD Sender: No OFD packet to send [21:30:01]OFD Sender: No OFD packet to send [21:30:06]OFD Sender: No OFD packet to send [21:30:11]OFD Sender: No OFD packet to send [21:30:16]OFD Sender: No OFD packet to send [21:30:21]OFD Sender: No OFD packet to send [21:30:26]OFD Sender: No OFD packet to send [21:30:31]OFD Sender: No OFD packet to send [21:30:36]OFD Sender: No OFD packet to send [21:30:41]OFD Sender: No OFD packet to send [21:30:46]OFD Sender: No OFD packet to send [21:30:51]OFD Sender: No OFD packet to send [21:30:56]OFD Sender: No OFD packet to send [21:31:01]OFD Sender: No OFD packet to send [21:31:06]OFD Sender: No OFD packet to send [21:31:11]OFD Sender: No OFD packet to send [21:31:16]OFD Sender: No OFD packet to send [21:31:21]OFD Sender: No OFD packet to send [21:31:26]OFD Sender: No OFD packet to send [21:31:31]OFD Sender: No OFD packet to send [21:31:36]OFD Sender: No OFD packet to send [21:31:41]OFD Sender: No OFD packet to send [21:31:46]OFD Sender: No OFD packet to send [21:31:51]OFD Sender: No OFD packet to send [21:31:56]OFD Sender: No OFD packet to send [21:32:01]OFD Sender: No OFD packet to send [21:32:06]OFD Sender: No OFD packet to send [21:32:11]OFD Sender: No OFD packet to send [21:32:16]OFD Sender: No OFD packet to send [21:32:21]OFD Sender: No OFD packet to send [21:32:26]OFD Sender: No OFD packet to send [21:32:31]OFD Sender: No OFD packet to send [21:32:36]OFD Sender: No OFD packet to send [21:32:41]OFD Sender: No OFD packet to send [21:32:46]OFD Sender: No OFD packet to send [21:32:51]OFD Sender: No OFD packet to send [21:32:56]OFD Sender: No OFD packet to send [21:33:01]OFD Sender: No OFD packet to send [21:33:06]OFD Sender: No OFD packet to send [21:33:11]OFD Sender: No OFD packet to send [21:33:16]OFD Sender: No OFD packet to send [21:33:21]OFD Sender: No OFD packet to send [21:33:26]OFD Sender: No OFD packet to send [21:33:31]OFD Sender: No OFD packet to send [21:33:36]OFD Sender: No OFD packet to send [21:33:41]OFD Sender: No OFD packet to send [21:33:46]OFD Sender: No OFD packet to send [21:33:51]OFD Sender: No OFD packet to send [21:33:56]OFD Sender: No OFD packet to send [21:34:01]OFD Sender: No OFD packet to send [21:34:06]OFD Sender: No OFD packet to send [21:34:11]OFD Sender: No OFD packet to send [21:34:16]OFD Sender: No OFD packet to send [21:34:21]OFD Sender: No OFD packet to send [21:34:26]OFD Sender: No OFD packet to send [21:34:31]OFD Sender: No OFD packet to send [21:34:36]OFD Sender: No OFD packet to send [21:34:41]OFD Sender: No OFD packet to send [21:34:46]OFD Sender: No OFD packet to send [21:34:51]OFD Sender: No OFD packet to send [21:34:56]OFD Sender: No OFD packet to send [21:35:01]OFD Sender: No OFD packet to send [21:35:06]OFD Sender: No OFD packet to send [21:35:11]OFD Sender: No OFD packet to send [21:35:16]OFD Sender: No OFD packet to send [21:35:21]OFD Sender: No OFD packet to send [21:35:26]OFD Sender: No OFD packet to send [21:35:31]OFD Sender: No OFD packet to send [21:35:36]OFD Sender: No OFD packet to send [21:35:41]OFD Sender: No OFD packet to send [21:35:46]OFD Sender: No OFD packet to send [21:35:51]OFD Sender: No OFD packet to send [21:35:56]OFD Sender: No OFD packet to send [21:36:01]OFD Sender: No OFD packet to send [21:36:06]OFD Sender: No OFD packet to send [21:36:11]OFD Sender: No OFD packet to send [21:36:16]OFD Sender: No OFD packet to send [21:36:21]OFD Sender: No OFD packet to send [21:36:26]OFD Sender: No OFD packet to send [21:36:31]OFD Sender: No OFD packet to send [21:36:36]OFD Sender: No OFD packet to send [21:36:41]OFD Sender: No OFD packet to send [21:36:46]OFD Sender: No OFD packet to send [21:36:51]OFD Sender: No OFD packet to send [21:36:56]OFD Sender: No OFD packet to send [21:37:01]OFD Sender: No OFD packet to send [21:37:06]OFD Sender: No OFD packet to send [21:37:11]OFD Sender: No OFD packet to send [21:37:16]OFD Sender: No OFD packet to send [21:37:21]OFD Sender: No OFD packet to send [21:37:26]OFD Sender: No OFD packet to send [21:37:31]OFD Sender: No OFD packet to send [21:37:36]OFD Sender: No OFD packet to send [21:37:41]OFD Sender: No OFD packet to send [21:37:46]OFD Sender: No OFD packet to send [21:37:51]OFD Sender: No OFD packet to send [21:37:56]OFD Sender: No OFD packet to send [21:38:01]OFD Sender: No OFD packet to send [21:38:06]OFD Sender: No OFD packet to send [21:38:11]OFD Sender: No OFD packet to send [21:38:16]OFD Sender: No OFD packet to send [21:38:21]OFD Sender: No OFD packet to send [21:38:26]OFD Sender: No OFD packet to send [21:38:31]OFD Sender: No OFD packet to send [21:38:36]OFD Sender: No OFD packet to send [21:38: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:38:57]accept exits with 7 [21:38:57]New connection [21:38:57]New thread 3067272548 created [21:38:57]Thread 3067129188 joined [21:38:57]Waiting for new connection... [21:38:57] Sock 7.Parse request [21:38:57]Sock 7.Check first char [21:38:57]Sock 7.First char is OK [21:38:57]request: POST /json_proto HTTP/1.0 [21:38:57]Method: POST [21:38:57]URL: /json_proto [21:38:57]Method is POST - this is cgi request [21:38:57]url: /json_proto [21:38:57]query_string will be loaded in cgi processing [21:38:57]execute_cgi json_proto POST (null) [21:38:57]execute_cgi path=json_proto method=POST [21:38:57]POST find Content-Length [21:38:57]Host: 172.17.44.67:8080 [21:38:57]Content-Length: 677 [21:38:57]Content-Type: application/json [21:38:57] [21:38:57]POST finish read [21:38:57]Found Content-Length = 677 [21:38:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:57]execute_script... [21:38:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:57]POST & json_proto [21:38:57]process_json_proto [21:38:57]json parsed OK: [21:38:57]protocol is kg_v1.0 [21:38:57]action value=close_receipt [21:38:57]process_action close_receipt [21:38:57]cmd_close_receipt [21:38:57]MH_GetDate [21:38:57]Write to MH i2c: F0 00 00 46 01 36 [21:38:57]Write i2c OK [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: F0 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: F0 09 00 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: F0 09 00 46 01 00 F2 83 11 67 F1 C7 6B 64 B3 [21:38:57]GetLastDocTimeStamp 1729199611 [21:38:57]current date 1729201138 [21:38:57]FM_GetShiftState [21:38:57]SAM_PROTO_GetShiftState [21:38:57]wFMCommunicate request_size=4 [21:38:57]MH_SAM_APDU [21:38:57]CAPDU: 80 13 01 00 [21:38:57]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [21:38:57]Write i2c OK [21:38:57]MH_I2C_Read... [21:38:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:57]Read from MH i2c: E2 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: E2 0E 00 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 CD [21:38:57]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [21:38:57]wFMCommunicate OK [21:38:57]SAM_PROTO_GetShiftState done [21:38:57]FM_GetShiftState done [21:38:57]opened in 1729125927 [21:38:57]opened+sec_in_day 1729212327 [21:38:57]quantity*price = 30038 [21:38:57]sum+1 = 30039 [21:38:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 195 17.10.2024 21:38 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82269 ФПД: 24530333803255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T213858&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82269&fm=24530333803255&tin=02508201610067®Number=0000000000091680&sum=30000 [21:38:58]StoreToDocumentArchive [21:38:58]shift 525 fd 82269 [21:38:58]save to /storage/0525/doc_00082269 [21:38:58]save last doc name /storage/0525/doc_00082269 to /storage/kkm_last_doc_name [21:38:58]save OK [21:38:58]Clear old archive folders... [21:38:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:38:58]tlvbuf is 01AB8270 [21:38:58]SAM_PROTO_ClearQueue [21:38:58]wFMCommunicate request_size=4 [21:38:58]MH_SAM_APDU [21:38:58]CAPDU: 80 09 00 00 [21:38:58]Write to MH i2c: E2 08 00 54 01 80 09 00 00 00 00 00 00 C7 [21:38:58]Write i2c OK [21:38:58]MH_I2C_Read... [21:38:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:38:58]Read from MH i2c: E2 [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: E2 03 00 [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [21:38:58]RAPDU: 90 00 [21:38:58]wFMCommunicate OK [21:38:58]SAM_PROTO_ClearQueue done [21:38:58]KKMCreateOFDPacket [21:38:58]OFDProtocolAddRootSTLVToBuf [21:38:58]FM_MakeSignedData [21:38:58]FM_MakeSignedData [21:38:58]SAM_PROTO_SignData [21:38:58]wFMCommunicate request_size=4 [21:38:58]MH_SAM_APDU [21:38:58]CAPDU: 80 0D 01 02 [21:38:58]Write to MH i2c: E2 08 00 55 01 80 0D 01 02 00 00 00 00 CF [21:38:58]Write i2c OK [21:38:58]MH_I2C_Read... [21:38:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:38:58]Read from MH i2c: E2 [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: E2 03 00 [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [21:38:58]RAPDU: 90 00 [21:38:58]wFMCommunicate OK [21:38:58]wFMCommunicate request_size=255 [21:38:58]MH_SAM_APDU [21:38:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 F2 83 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5D 41 01 00 35 04 06 00 16 [21:38:58]Write to MH i2c: E2 02 01 56 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 F2 83 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5D 41 01 00 35 04 06 00 16 00 00 C3 [21:38:58]Write i2c OK [21:38:58]MH_I2C_Read... [21:38:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:58]Read from MH i2c: E2 [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: E2 03 00 [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [21:38:58]RAPDU: 90 00 [21:38:58]wFMCommunicate OK [21:38:58]wFMCommunicate request_size=10 [21:38:58]MH_SAM_APDU [21:38:58]CAPDU: 80 0D 02 02 05 4F 69 D5 22 F7 [21:38:58]Write to MH i2c: E2 0D 00 57 01 80 0D 02 02 05 00 4F 69 D5 22 F7 00 00 82 [21:38:58]Write i2c OK [21:38:58]MH_I2C_Read... [21:38:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:58]Read from MH i2c: E2 [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: E2 03 00 [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [21:38:58]RAPDU: 90 00 [21:38:58]wFMCommunicate OK [21:38:58]wFMCommunicate request_size=4 [21:38:58]MH_SAM_APDU [21:38:58]CAPDU: 80 0D 03 02 [21:38:58]Write to MH i2c: E2 08 00 58 01 80 0D 03 02 00 00 00 00 D4 [21:38:58]Write i2c OK [21:38:58]MH_I2C_Read... [21:38:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:38:58]Read from MH i2c: E2 [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: E2 0B 00 [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: E2 0B 00 58 01 00 78 AA E6 B0 29 51 8E 6F 90 00 04 [21:38:58]RAPDU: 78 AA E6 B0 29 51 8E 6F 90 00 [21:38:58]wFMCommunicate OK [21:38:58]SAM_PROTO_SignData done [21:38:58]FM_MakeSignedData done [21:38:58]CreateOFDProtocolMessage [21:38:58]wFMCommunicate request_size=4 [21:38:58]MH_SAM_APDU [21:38:58]CAPDU: 80 11 00 00 [21:38:58]Write to MH i2c: E2 08 00 59 01 80 11 00 00 00 00 00 00 D4 [21:38:58]Write i2c OK [21:38:58]MH_I2C_Read... [21:38:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:58]Read from MH i2c: E2 [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: E2 17 00 [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: E2 17 00 59 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 26 [21:38:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [21:38:58]wFMCommunicate OK [21:38:58]CreateOFDProtocolMessage done [21:38:58]OFDSenderStorePacket 82269 [21:38:58]StoreOFDPacket docnum=82269 [21:38:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 E7 15 07 01 E2 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 F2 83 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5D 41 01 00 35 04 06 00 16 4F 69 D5 22 F7 78 AA E6 B0 29 51 8E 6F [21:38:58]CheckFolder [21:38:58]dirname=/storage/ofd_packets [21:38:58]CheckFolder done [21:38:58]ProducePacketName [21:38:58]name=ofd_packets/00082269 [21:38:58]NVStorageSaveData ofd_packets/00082269 [21:38:58]File name is /storage/ofd_packets/00082269 [21:38:58]Write 301 bytes [21:38:58]NVStorageSaveData done [21:38:58]OFDSenderStorePacket done [21:38:58]KKMCreateOFDPacket done [21:38:58]NVStorageSaveData kkm_last_timestamp [21:38:58]File name is /storage/kkm_last_timestamp [21:38:58]Write 4 bytes [21:38:58]NVStorageSaveData done [21:38:58]ExternCall_PrintAddStr [21:38:58]wPrintStart [21:38:58]Write to MH i2c: 01 00 00 5A 01 5B [21:38:58]Write i2c OK [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: 01 [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: 01 07 00 [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: 01 07 00 5A 01 00 00 00 00 00 FF 0F 70 [21:38:58]RasterBufferAndPrint [21:38:58]line Счет N : (1)918771 [21:38:58]line ИНН: 02508201610067 [21:38:58]line Контрольно-Кассовый Чек [21:38:58]line ПРОДАЖА [21:38:58]line ТРК (МРК, ГНК) : 22 [21:38:58]line Товар: 2710124130 [21:38:58]line Аи-92-К-4 [21:38:58]line 4.490 * 66.90 [21:38:58]line = 300.38 [21:38:58]line НДС 12% НСП 1% [21:38:58]line > о реализуемом товаре [21:38:58]line ОКРУГЛЕНИЕ: -0.38 [21:38:58]line ИТОГО: 300.00 [21:38:58]line Внесено: 300.00 [21:38:58]line СДАЧА: 0.00 [21:38:58]line НСП 1% : 2.66 [21:38:58]line НДС 12% : 31.90 [21:38:58]line Наличными: 300.00 [21:38:58]line Безнал.: 0.00 [21:38:58]line Место: АЗС № 114 "Партнер Нефть" [21:38:58]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [21:38:58]line СНО: Общий режим [21:38:58]line Чек 195 17.10.2024 21:38 [21:38:58]line Смена: 525 ФФД: 1.0 [21:38:58]line ЗНМ: 0300000086 [21:38:58]line РНМ: 0000000000091680 [21:38:58]line Версия ККМ: 001 [21:38:58]line ФМ: 0000000000871843 [21:38:59]line ФД: 82269 [21:38:59]line ФПД: 24530333803255 [21:38:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T213858&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82269&fm=24530333803255&tin=02508201610067®Number=0000000000091680&sum=30000 [21:38:59]OFD Sender: Processing packet 82269 [packets to send 254, broken 253] [21:38:59]ProducePacketName [21:38:59]name=ofd_packets/00082269 [21:38:59]OFD Sender: To server: pG, [21:38:59]CommunicateWithHost lk.salyk.kg:30040 [21:38:59]ConnectInit lk.salyk.kg [21:38:59]written 0, free lines is 4095 [21:38:59]Write to MH i2c: 01 00 00 85 01 86 [21:38:59]Write i2c OK [21:38:59]MH_I2C_Read... [21:38:59]Read from MH i2c: 01 [21:38:59]MH_I2C_Read... [21:38:59]Read from MH i2c: 01 07 00 [21:38:59]MH_I2C_Read... [21:38:59]Read from MH i2c: 01 07 00 85 01 00 00 00 00 00 DA 0C 73 [21:38:59]RasterBufferAndPrint [21:38:59]line [21:38:59]line [21:38:59]line [21:38:59]line [21:38:59]line [21:38:59]written 0, free lines is 3297 [21:38:59]MH_Cut [21:38:59]Write to MH i2c: D1 01 00 8C 01 01 5F [21:38:59]Write i2c OK [21:38:59]MH_I2C_Read... [21:38:59]Read from MH i2c: D1 [21:38:59]MH_I2C_Read... [21:38:59]Read from MH i2c: D1 01 00 [21:38:59]MH_I2C_Read... [21:38:59]Read from MH i2c: D1 01 00 8C 01 00 5E [21:38:59]Write to MH i2c: 01 00 00 8D 01 8E [21:38:59]Write i2c OK [21:38:59]MH_I2C_Read... [21:39:00]Connected sock=10 [21:39:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 E7 15 07 01 E2 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 F2 83 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5D 41 01 00 35 04 06 00 16 4F 69 D5 22 F7 78 AA E6 B0 29 51 8E 6F [21:39:00]*** Cut start [21:39:00]*** Partial cut [21:39:00]*** CUTSNS_PIN = 1 [21:39:00]*** CUTSNS_PIN = 0 [21:39:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 33 45 47 00 E7 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5D 41 01 00 F4 03 04 00 2F 29 11 67 B6 04 01 00 00 ED 19 52 0C B9 5E 0F DF [21:39:00]CommunicateWithHost err = 0 [21:39:00]CheckOFDResponse [21:39:00]1017 (14) - 77093643461234 [21:39:00]1041 (16) - 0000000000871843 [21:39:00]1040 (4) - 82269 [21:39:00]1012 (4) - 17.10.2024 15:11 [21:39:00]1206 (1) - 0 [21:39:00]OFD Sender: Remove packet 82269 [21:39:00]ProducePacketName [21:39:00]name=ofd_packets/00082269 [21:39:00]NVStorageDeleteData [21:39:00]*** Brake cut motor [21:39:01]Read from MH i2c: 01 [21:39:01]MH_I2C_Read... [21:39:01]*** Stop cut motor [21:39:01]*** Cut end [21:39:01]Read from MH i2c: 01 07 00 [21:39:01]MH_I2C_Read... [21:39:01]Read from MH i2c: 01 07 00 8D 01 00 00 00 00 00 FF 0F A3 [21:39:01]process_action close_receipt done [21:39:01]requested_data is exist [21:39:01]produce_requested_data [21:39:01]requested_item fm.sn is exist - process it [21:39:01]wFMCommunicate request_size=4 [21:39:01]MH_SAM_APDU [21:39:01]CAPDU: 80 11 00 00 [21:39:01]Write to MH i2c: E2 08 00 8E 01 80 11 00 00 00 00 00 00 09 [21:39:01]Write i2c OK [21:39:01]MH_I2C_Read... [21:39:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:01]OFD Sender: No OFD packet to send [21:39:01]Read from MH i2c: E2 [21:39:01]MH_I2C_Read... [21:39:01]Read from MH i2c: E2 17 00 [21:39:01]MH_I2C_Read... [21:39:01]Read from MH i2c: E2 17 00 8E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 5B [21:39:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [21:39:01]wFMCommunicate OK [21:39:01]requested_item fd.num is exist - process it [21:39:01]SAM_PROTO_GetFieldsCounters [21:39:01]wFMCommunicate request_size=4 [21:39:01]MH_SAM_APDU [21:39:01]CAPDU: 80 13 00 00 [21:39:01]Write to MH i2c: E2 08 00 8F 01 80 13 00 00 00 00 00 00 0C [21:39:01]Write i2c OK [21:39:01]MH_I2C_Read... [21:39:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:39:01]Read from MH i2c: E2 [21:39:01]MH_I2C_Read... [21:39:01]Read from MH i2c: E2 62 00 [21:39:01]MH_I2C_Read... [21:39:01]Read from MH i2c: E2 62 00 8F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 5D 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [21:39:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 5D 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:39:01]wFMCommunicate OK [21:39:01]SAM_PROTO_GetFieldsCounters done [21:39:01]requested_item shift.num is exist - process it [21:39:01]requested_item shift.opened is exist - process it [21:39:01]req_shift_opened [21:39:01]FM_GetShiftState [21:39:01]SAM_PROTO_GetShiftState [21:39:01]wFMCommunicate request_size=4 [21:39:01]MH_SAM_APDU [21:39:01]CAPDU: 80 13 01 00 [21:39:01]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [21:39:01]Write i2c OK [21:39:01]MH_I2C_Read... [21:39:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:01]Read from MH i2c: E2 [21:39:01]MH_I2C_Read... [21:39:01]Read from MH i2c: E2 0E 00 [21:39:01]MH_I2C_Read... [21:39:01]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 16 [21:39:01]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [21:39:01]wFMCommunicate OK [21:39:01]SAM_PROTO_GetShiftState done [21:39:01]FM_GetShiftState done [21:39:01]req_shift_opened done [21:39:01]requested_item shift.open_date is exist - process it [21:39:01]req_shift_open_date [21:39:01]req_shift_open_date done [21:39:01]produce_requested_data done [21:39:01]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82269,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [21:39:01]process_action_free close_receipt [21:39:01]json_value_free [21:39:01]json_value_free done [21:39:01]process_json_proto returns [21:39:01]Send response to host [21:39:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82269,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [21:39:01]free response buf [21:39:01]execute_script done [21:39:01]execute_script returns [21:39:01]free content buf [21:39:01]Sock 7.Close socket [21:39:01]Sock 7.Thread stoped [21:39:06]OFD Sender: No OFD packet to send [21:39:11]OFD Sender: No OFD packet to send [21:39:16]OFD Sender: No OFD packet to send [21:39:21]OFD Sender: No OFD packet to send [21:39:26]OFD Sender: No OFD packet to send [21:39:31]OFD Sender: No OFD packet to send [21:39:36]OFD Sender: No OFD packet to send [21:39:41]OFD Sender: No OFD packet to send [21:39:46]OFD Sender: No OFD packet to send [21:39:51]OFD Sender: No OFD packet to send [21:39:56]OFD Sender: No OFD packet to send [21:40:01]OFD Sender: No OFD packet to send [21:40:06]OFD Sender: No OFD packet to send [21:40:11]OFD Sender: No OFD packet to send [21:40:16]OFD Sender: No OFD packet to send [21:40:21]OFD Sender: No OFD packet to send [21:40:26]OFD Sender: No OFD packet to send [21:40:31]OFD Sender: No OFD packet to send [21:40:36]OFD Sender: No OFD packet to send [21:40:41]OFD Sender: No OFD packet to send [21:40:46]OFD Sender: No OFD packet to send [21:40:51]OFD Sender: No OFD packet to send [21:40:56]OFD Sender: No OFD packet to send [21:41:01]OFD Sender: No OFD packet to send [21:41:06]OFD Sender: No OFD packet to send [21:41:11]OFD Sender: No OFD packet to send [21:41:16]OFD Sender: No OFD packet to send [21:41:21]OFD Sender: No OFD packet to send [21:41:26]OFD Sender: No OFD packet to send [21:41:31]OFD Sender: No OFD packet to send [21:41:36]OFD Sender: No OFD packet to send [21:41:41]OFD Sender: No OFD packet to send [21:41:46]OFD Sender: No OFD packet to send [21:41:51]OFD Sender: No OFD packet to send [21:41:56]OFD Sender: No OFD packet to send [21:42:01]OFD Sender: No OFD packet to send [21:42:06]OFD Sender: No OFD packet to send [21:42:11]OFD Sender: No OFD packet to send [21:42:16]OFD Sender: No OFD packet to send [21:42:21]OFD Sender: No OFD packet to send [21:42:26]OFD Sender: No OFD packet to send [21:42:31]OFD Sender: No OFD packet to send [21:42:36]OFD Sender: No OFD packet to send [21:42:41]OFD Sender: No OFD packet to send [21:42:46]OFD Sender: No OFD packet to send [21:42:51]OFD Sender: No OFD packet to send [21:42:56]OFD Sender: No OFD packet to send [21:43:01]OFD Sender: No OFD packet to send [21:43:06]OFD Sender: No OFD packet to send [21:43:11]OFD Sender: No OFD packet to send [21:43:16]OFD Sender: No OFD packet to send [21:43:21]OFD Sender: No OFD packet to send [21:43:26]OFD Sender: No OFD packet to send [21:43:31]OFD Sender: No OFD packet to send [21:43:36]OFD Sender: No OFD packet to send [21:43:41]OFD Sender: No OFD packet to send [21:43:46]OFD Sender: No OFD packet to send [21:43:51]OFD Sender: No OFD packet to send [21:43:56]OFD Sender: No OFD packet to send [21:44:01]OFD Sender: No OFD packet to send [21:44:06]OFD Sender: No OFD packet to send [21:44:11]OFD Sender: No OFD packet to send [21:44:16]OFD Sender: No OFD packet to send [21:44:21]OFD Sender: No OFD packet to send [21:44:26]OFD Sender: No OFD packet to send [21:44:31]OFD Sender: No OFD packet to send [21:44:36]OFD Sender: No OFD packet to send [21:44:41]OFD Sender: No OFD packet to send [21:44:46]OFD Sender: No OFD packet to send [21:44:51]OFD Sender: No OFD packet to send [21:44:56]OFD Sender: No OFD packet to send [21:45:01]OFD Sender: No OFD packet to send [21:45:06]OFD Sender: No OFD packet to send [21:45:11]OFD Sender: No OFD packet to send [21:45:15]accept exits with 9 [21:45:15]New connection [21:45:15]New thread 3067129188 created [21:45:15]Thread 3067272548 joined [21:45:15]Waiting for new connection... [21:45:15] Sock 9.Parse request [21:45:15]Sock 9.Check first char [21:45:15]Sock 9.First char is OK [21:45:15]request: POST /json_proto HTTP/1.0 [21:45:15]Method: POST [21:45:15]URL: /json_proto [21:45:15]Method is POST - this is cgi request [21:45:15]url: /json_proto [21:45:15]query_string will be loaded in cgi processing [21:45:15]execute_cgi json_proto POST (null) [21:45:15]execute_cgi path=json_proto method=POST [21:45:15]POST find Content-Length [21:45:15]Host: 172.17.44.67:8080 [21:45:15]Content-Length: 677 [21:45:15]Content-Type: application/json [21:45:15] [21:45:15]POST finish read [21:45:15]Found Content-Length = 677 [21:45:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:45:15]execute_script... [21:45:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:45:15]POST & json_proto [21:45:15]process_json_proto [21:45:15]json parsed OK: [21:45:15]protocol is kg_v1.0 [21:45:15]action value=close_receipt [21:45:15]process_action close_receipt [21:45:15]cmd_close_receipt [21:45:15]MH_GetDate [21:45:15]Write to MH i2c: F0 00 00 91 01 81 [21:45:15]Write i2c OK [21:45:15]MH_I2C_Read... [21:45:15]Read from MH i2c: F0 [21:45:15]MH_I2C_Read... [21:45:15]Read from MH i2c: F0 09 00 [21:45:15]MH_I2C_Read... [21:45:15]Read from MH i2c: F0 09 00 91 01 00 6C 85 11 67 F1 C7 6B 64 7A [21:45:15]GetLastDocTimeStamp 1729201138 [21:45:15]current date 1729201516 [21:45:15]FM_GetShiftState [21:45:15]SAM_PROTO_GetShiftState [21:45:15]wFMCommunicate request_size=4 [21:45:15]MH_SAM_APDU [21:45:15]CAPDU: 80 13 01 00 [21:45:15]Write to MH i2c: E2 08 00 92 01 80 13 01 00 00 00 00 00 10 [21:45:15]Write i2c OK [21:45:15]MH_I2C_Read... [21:45:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:45:15]Read from MH i2c: E2 [21:45:15]MH_I2C_Read... [21:45:15]Read from MH i2c: E2 0E 00 [21:45:15]MH_I2C_Read... [21:45:15]Read from MH i2c: E2 0E 00 92 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 18 [21:45:15]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [21:45:15]wFMCommunicate OK [21:45:15]SAM_PROTO_GetShiftState done [21:45:15]FM_GetShiftState done [21:45:15]opened in 1729125927 [21:45:15]opened+sec_in_day 1729212327 [21:45:15]quantity*price = 40006 [21:45:15]sum+1 = 40007 [21:45:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 196 17.10.2024 21:45 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82270 ФПД: 49449251369222 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T214516&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82270&fm=49449251369222&tin=02508201610067®Number=0000000000091680&sum=40000 [21:45:17]StoreToDocumentArchive [21:45:17]shift 525 fd 82270 [21:45:17]save to /storage/0525/doc_00082270 [21:45:17]save last doc name /storage/0525/doc_00082270 to /storage/kkm_last_doc_name [21:45:17]save OK [21:45:17]Clear old archive folders... [21:45:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:45:17]tlvbuf is 01B1A200 [21:45:17]SAM_PROTO_ClearQueue [21:45:17]wFMCommunicate request_size=4 [21:45:17]MH_SAM_APDU [21:45:17]CAPDU: 80 09 00 00 [21:45:17]Write to MH i2c: E2 08 00 9F 01 80 09 00 00 00 00 00 00 12 [21:45:17]Write i2c OK [21:45:17]MH_I2C_Read... [21:45:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:45:17]Read from MH i2c: E2 [21:45:17]MH_I2C_Read... [21:45:17]Read from MH i2c: E2 03 00 [21:45:17]MH_I2C_Read... [21:45:17]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [21:45:17]RAPDU: 90 00 [21:45:17]wFMCommunicate OK [21:45:17]SAM_PROTO_ClearQueue done [21:45:17]KKMCreateOFDPacket [21:45:17]OFDProtocolAddRootSTLVToBuf [21:45:17]FM_MakeSignedData [21:45:17]FM_MakeSignedData [21:45:17]SAM_PROTO_SignData [21:45:17]wFMCommunicate request_size=4 [21:45:17]MH_SAM_APDU [21:45:17]CAPDU: 80 0D 01 02 [21:45:17]Write to MH i2c: E2 08 00 A0 01 80 0D 01 02 00 00 00 00 1A [21:45:17]Write i2c OK [21:45:17]MH_I2C_Read... [21:45:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:45:17]Read from MH i2c: E2 [21:45:17]MH_I2C_Read... [21:45:17]Read from MH i2c: E2 03 00 [21:45:17]MH_I2C_Read... [21:45:17]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [21:45:17]RAPDU: 90 00 [21:45:17]wFMCommunicate OK [21:45:17]wFMCommunicate request_size=255 [21:45:17]MH_SAM_APDU [21:45:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 6C 85 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5E 41 01 00 35 04 06 00 2C [21:45:17]Write to MH i2c: E2 02 01 A1 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 6C 85 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5E 41 01 00 35 04 06 00 2C 00 00 7D [21:45:17]Write i2c OK [21:45:17]MH_I2C_Read... [21:45:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:45:17]Read from MH i2c: E2 [21:45:17]MH_I2C_Read... [21:45:17]Read from MH i2c: E2 03 00 [21:45:17]MH_I2C_Read... [21:45:17]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [21:45:17]RAPDU: 90 00 [21:45:17]wFMCommunicate OK [21:45:17]wFMCommunicate request_size=10 [21:45:17]MH_SAM_APDU [21:45:17]CAPDU: 80 0D 02 02 05 F9 4D 0F F1 06 [21:45:17]Write to MH i2c: E2 0D 00 A2 01 80 0D 02 02 05 00 F9 4D 0F F1 06 00 00 73 [21:45:17]Write i2c OK [21:45:17]MH_I2C_Read... [21:45:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:45:17]Read from MH i2c: E2 [21:45:17]MH_I2C_Read... [21:45:17]Read from MH i2c: E2 03 00 [21:45:17]MH_I2C_Read... [21:45:17]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [21:45:17]RAPDU: 90 00 [21:45:17]wFMCommunicate OK [21:45:17]wFMCommunicate request_size=4 [21:45:17]MH_SAM_APDU [21:45:17]CAPDU: 80 0D 03 02 [21:45:17]Write to MH i2c: E2 08 00 A3 01 80 0D 03 02 00 00 00 00 1F [21:45:17]Write i2c OK [21:45:17]MH_I2C_Read... [21:45:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:45:17]Read from MH i2c: E2 [21:45:17]MH_I2C_Read... [21:45:17]Read from MH i2c: E2 0B 00 [21:45:17]MH_I2C_Read... [21:45:17]Read from MH i2c: E2 0B 00 A3 01 00 1C EE 1D 15 94 EE 28 CD 90 00 D3 [21:45:17]RAPDU: 1C EE 1D 15 94 EE 28 CD 90 00 [21:45:17]wFMCommunicate OK [21:45:17]SAM_PROTO_SignData done [21:45:17]FM_MakeSignedData done [21:45:17]CreateOFDProtocolMessage [21:45:17]wFMCommunicate request_size=4 [21:45:17]MH_SAM_APDU [21:45:17]CAPDU: 80 11 00 00 [21:45:17]Write to MH i2c: E2 08 00 A4 01 80 11 00 00 00 00 00 00 1F [21:45:17]Write i2c OK [21:45:17]MH_I2C_Read... [21:45:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:45:17]Read from MH i2c: E2 [21:45:17]MH_I2C_Read... [21:45:17]Read from MH i2c: E2 17 00 [21:45:17]MH_I2C_Read... [21:45:17]Read from MH i2c: E2 17 00 A4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 71 [21:45:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [21:45:17]wFMCommunicate OK [21:45:17]CreateOFDProtocolMessage done [21:45:17]OFDSenderStorePacket 82270 [21:45:17]StoreOFDPacket docnum=82270 [21:45:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 4B BF 07 01 75 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 6C 85 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5E 41 01 00 35 04 06 00 2C F9 4D 0F F1 06 1C EE 1D 15 94 EE 28 CD [21:45:17]CheckFolder [21:45:17]dirname=/storage/ofd_packets [21:45:17]CheckFolder done [21:45:17]ProducePacketName [21:45:17]name=ofd_packets/00082270 [21:45:17]NVStorageSaveData ofd_packets/00082270 [21:45:17]File name is /storage/ofd_packets/00082270 [21:45:17]Write 301 bytes [21:45:17]NVStorageSaveData done [21:45:17]OFDSenderStorePacket done [21:45:17]KKMCreateOFDPacket done [21:45:17]NVStorageSaveData kkm_last_timestamp [21:45:17]File name is /storage/kkm_last_timestamp [21:45:17]Write 4 bytes [21:45:17]NVStorageSaveData done [21:45:17]ExternCall_PrintAddStr [21:45:17]wPrintStart [21:45:17]Write to MH i2c: 01 00 00 A5 01 A6 [21:45:17]Write i2c OK [21:45:17]MH_I2C_Read... [21:45:17]Read from MH i2c: 01 [21:45:17]MH_I2C_Read... [21:45:17]Read from MH i2c: 01 07 00 [21:45:17]MH_I2C_Read... [21:45:17]Read from MH i2c: 01 07 00 A5 01 00 00 00 00 00 FF 0F BB [21:45:17]RasterBufferAndPrint [21:45:17]line Счет N : (1)918772 [21:45:17]line ИНН: 02508201610067 [21:45:17]line Контрольно-Кассовый Чек [21:45:17]line ПРОДАЖА [21:45:17]line ТРК (МРК, ГНК) : 11 [21:45:17]line Товар: 2710124130 [21:45:17]line Аи-92-К-4 [21:45:17]line 5.980 * 66.90 [21:45:17]line = 400.06 [21:45:17]line НДС 12% НСП 1% [21:45:17]line > о реализуемом товаре [21:45:17]line ОКРУГЛЕНИЕ: -0.06 [21:45:17]line ИТОГО: 400.00 [21:45:17]line Внесено: 400.00 [21:45:17]line СДАЧА: 0.00 [21:45:17]line НСП 1% : 3.54 [21:45:17]line НДС 12% : 42.48 [21:45:17]line Наличными: 400.00 [21:45:17]line Безнал.: 0.00 [21:45:17]line Место: АЗС № 114 "Партнер Нефть" [21:45:17]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [21:45:17]line СНО: Общий режим [21:45:17]line Чек 196 17.10.2024 21:45 [21:45:17]line Смена: 525 ФФД: 1.0 [21:45:17]line ЗНМ: 0300000086 [21:45:17]line РНМ: 0000000000091680 [21:45:17]line Версия ККМ: 001 [21:45:17]line ФМ: 0000000000871843 [21:45:17]line ФД: 82270 [21:45:17]line ФПД: 49449251369222 [21:45:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T214516&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82270&fm=49449251369222&tin=02508201610067®Number=0000000000091680&sum=40000 [21:45:17]OFD Sender: Processing packet 82270 [packets to send 254, broken 253] [21:45:17]ProducePacketName [21:45:17]name=ofd_packets/00082270 [21:45:17]OFD Sender: To server: pG, [21:45:17]CommunicateWithHost lk.salyk.kg:30040 [21:45:17]ConnectInit lk.salyk.kg [21:45:17]written 0, free lines is 4095 [21:45:18]Write to MH i2c: 01 00 00 D0 01 D1 [21:45:18]Write i2c OK [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: 01 [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: 01 07 00 [21:45:18]MH_I2C_Read... [21:45:18]Connected sock=10 [21:45:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 4B BF 07 01 75 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 6C 85 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5E 41 01 00 35 04 06 00 2C F9 4D 0F F1 06 1C EE 1D 15 94 EE 28 CD [21:45:18]Read from MH i2c: 01 07 00 D0 01 00 00 00 00 00 D9 0C BD [21:45:18]RasterBufferAndPrint [21:45:18]line [21:45:18]line [21:45:18]line [21:45:18]line [21:45:18]line [21:45:18]written 0, free lines is 3323 [21:45:18]MH_Cut [21:45:18]Write to MH i2c: D1 01 00 D7 01 01 AA [21:45:18]Write i2c OK [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: D1 [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: D1 01 00 [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: D1 01 00 D7 01 00 A9 [21:45:18]Write to MH i2c: 01 00 00 D8 01 D9 [21:45:18]Write i2c OK [21:45:18]MH_I2C_Read... [21:45:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 93 34 47 00 EB F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5E 41 01 00 F4 03 04 00 A9 2A 11 67 B6 04 01 00 00 51 45 93 7D 9B ED 9C 4F [21:45:18]CommunicateWithHost err = 0 [21:45:18]CheckOFDResponse [21:45:18]1017 (14) - 77093643461234 [21:45:18]1041 (16) - 0000000000871843 [21:45:18]1040 (4) - 82270 [21:45:18]1012 (4) - 17.10.2024 15:18 [21:45:18]1206 (1) - 0 [21:45:18]OFD Sender: Remove packet 82270 [21:45:18]ProducePacketName [21:45:18]name=ofd_packets/00082270 [21:45:18]NVStorageDeleteData [21:45:19]*** Cut start [21:45:19]*** Partial cut [21:45:19]*** CUTSNS_PIN = 1 [21:45:19]*** CUTSNS_PIN = 0 [21:45:19]OFD Sender: No OFD packet to send [21:45:19]*** Brake cut motor [21:45:19]Read from MH i2c: 01 [21:45:19]MH_I2C_Read... [21:45:19]*** Stop cut motor [21:45:19]*** Cut end [21:45:19]Read from MH i2c: 01 07 00 [21:45:19]MH_I2C_Read... [21:45:19]Read from MH i2c: 01 07 00 D8 01 00 00 00 00 00 FF 0F EE [21:45:19]process_action close_receipt done [21:45:19]requested_data is exist [21:45:19]produce_requested_data [21:45:19]requested_item fm.sn is exist - process it [21:45:19]wFMCommunicate request_size=4 [21:45:19]MH_SAM_APDU [21:45:19]CAPDU: 80 11 00 00 [21:45:19]Write to MH i2c: E2 08 00 D9 01 80 11 00 00 00 00 00 00 54 [21:45:19]Write i2c OK [21:45:19]MH_I2C_Read... [21:45:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:45:19]Read from MH i2c: E2 [21:45:19]MH_I2C_Read... [21:45:19]Read from MH i2c: E2 17 00 [21:45:19]MH_I2C_Read... [21:45:19]Read from MH i2c: E2 17 00 D9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 A6 [21:45:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [21:45:19]wFMCommunicate OK [21:45:19]requested_item fd.num is exist - process it [21:45:19]SAM_PROTO_GetFieldsCounters [21:45:19]wFMCommunicate request_size=4 [21:45:19]MH_SAM_APDU [21:45:19]CAPDU: 80 13 00 00 [21:45:19]Write to MH i2c: E2 08 00 DA 01 80 13 00 00 00 00 00 00 57 [21:45:19]Write i2c OK [21:45:19]MH_I2C_Read... [21:45:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:45:20]Read from MH i2c: E2 [21:45:20]MH_I2C_Read... [21:45:20]Read from MH i2c: E2 62 00 [21:45:20]MH_I2C_Read... [21:45:20]Read from MH i2c: E2 62 00 DA 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 5E 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [21:45:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 5E 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:45:20]wFMCommunicate OK [21:45:20]SAM_PROTO_GetFieldsCounters done [21:45:20]requested_item shift.num is exist - process it [21:45:20]requested_item shift.opened is exist - process it [21:45:20]req_shift_opened [21:45:20]FM_GetShiftState [21:45:20]SAM_PROTO_GetShiftState [21:45:20]wFMCommunicate request_size=4 [21:45:20]MH_SAM_APDU [21:45:20]CAPDU: 80 13 01 00 [21:45:20]Write to MH i2c: E2 08 00 DB 01 80 13 01 00 00 00 00 00 59 [21:45:20]Write i2c OK [21:45:20]MH_I2C_Read... [21:45:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:45:20]Read from MH i2c: E2 [21:45:20]MH_I2C_Read... [21:45:20]Read from MH i2c: E2 0E 00 [21:45:20]MH_I2C_Read... [21:45:20]Read from MH i2c: E2 0E 00 DB 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 61 [21:45:20]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [21:45:20]wFMCommunicate OK [21:45:20]SAM_PROTO_GetShiftState done [21:45:20]FM_GetShiftState done [21:45:20]req_shift_opened done [21:45:20]requested_item shift.open_date is exist - process it [21:45:20]req_shift_open_date [21:45:20]req_shift_open_date done [21:45:20]produce_requested_data done [21:45:20]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82270,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [21:45:20]process_action_free close_receipt [21:45:20]json_value_free [21:45:20]json_value_free done [21:45:20]process_json_proto returns [21:45:20]Send response to host [21:45:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82270,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [21:45:20]free response buf [21:45:20]execute_script done [21:45:20]execute_script returns [21:45:20]free content buf [21:45:20]Sock 9.Close socket [21:45:20]Sock 9.Thread stoped [21:45:24]OFD Sender: No OFD packet to send [21:45:29]OFD Sender: No OFD packet to send [21:45:34]OFD Sender: No OFD packet to send [21:45:39]OFD Sender: No OFD packet to send [21:45:44]OFD Sender: No OFD packet to send [21:45:46]accept exits with 7 [21:45:46]New connection [21:45:46]New thread 3067272548 created [21:45:46]Thread 3067129188 joined [21:45:46]Waiting for new connection... [21:45:46] Sock 7.Parse request [21:45:46]Sock 7.Check first char [21:45:46]Sock 7.First char is OK [21:45:46]request: POST /json_proto HTTP/1.0 [21:45:46]Method: POST [21:45:46]URL: /json_proto [21:45:46]Method is POST - this is cgi request [21:45:46]url: /json_proto [21:45:46]query_string will be loaded in cgi processing [21:45:46]execute_cgi json_proto POST (null) [21:45:46]execute_cgi path=json_proto method=POST [21:45:46]POST find Content-Length [21:45:46]Host: 172.17.44.67:8080 [21:45:46]Content-Length: 677 [21:45:46]Content-Type: application/json [21:45:46] [21:45:46]POST finish read [21:45:46]Found Content-Length = 677 [21:45:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:45:46]execute_script... [21:45:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:45:46]POST & json_proto [21:45:46]process_json_proto [21:45:46]json parsed OK: [21:45:46]protocol is kg_v1.0 [21:45:46]action value=close_receipt [21:45:46]process_action close_receipt [21:45:46]cmd_close_receipt [21:45:46]MH_GetDate [21:45:46]Write to MH i2c: F0 00 00 DC 01 CC [21:45:46]Write i2c OK [21:45:46]MH_I2C_Read... [21:45:46]Read from MH i2c: F0 [21:45:46]MH_I2C_Read... [21:45:46]Read from MH i2c: F0 09 00 [21:45:46]MH_I2C_Read... [21:45:46]Read from MH i2c: F0 09 00 DC 01 00 8B 85 11 67 F1 C7 6B 64 E4 [21:45:46]GetLastDocTimeStamp 1729201516 [21:45:46]current date 1729201547 [21:45:46]FM_GetShiftState [21:45:46]SAM_PROTO_GetShiftState [21:45:46]wFMCommunicate request_size=4 [21:45:46]MH_SAM_APDU [21:45:46]CAPDU: 80 13 01 00 [21:45:46]Write to MH i2c: E2 08 00 DD 01 80 13 01 00 00 00 00 00 5B [21:45:46]Write i2c OK [21:45:46]MH_I2C_Read... [21:45:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:45:46]Read from MH i2c: E2 [21:45:46]MH_I2C_Read... [21:45:46]Read from MH i2c: E2 0E 00 [21:45:46]MH_I2C_Read... [21:45:46]Read from MH i2c: E2 0E 00 DD 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 63 [21:45:46]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [21:45:46]wFMCommunicate OK [21:45:46]SAM_PROTO_GetShiftState done [21:45:46]FM_GetShiftState done [21:45:46]opened in 1729125927 [21:45:46]opened+sec_in_day 1729212327 [21:45:46]quantity*price = 50041 [21:45:46]sum+1 = 50042 [21:45:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 197 17.10.2024 21:45 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82271 ФПД: 185054280099482 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T214547&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82271&fm=185054280099482&tin=02508201610067®Number=0000000000091680&sum=50000 [21:45:48]StoreToDocumentArchive [21:45:48]shift 525 fd 82271 [21:45:48]save to /storage/0525/doc_00082271 [21:45:48]save last doc name /storage/0525/doc_00082271 to /storage/kkm_last_doc_name [21:45:48]save OK [21:45:48]Clear old archive folders... [21:45:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:45:48]tlvbuf is 01B1BB60 [21:45:48]SAM_PROTO_ClearQueue [21:45:48]wFMCommunicate request_size=4 [21:45:48]MH_SAM_APDU [21:45:48]CAPDU: 80 09 00 00 [21:45:48]Write to MH i2c: E2 08 00 EA 01 80 09 00 00 00 00 00 00 5D [21:45:48]Write i2c OK [21:45:48]MH_I2C_Read... [21:45:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:45:48]Read from MH i2c: E2 [21:45:48]MH_I2C_Read... [21:45:48]Read from MH i2c: E2 03 00 [21:45:48]MH_I2C_Read... [21:45:48]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [21:45:48]RAPDU: 90 00 [21:45:48]wFMCommunicate OK [21:45:48]SAM_PROTO_ClearQueue done [21:45:48]KKMCreateOFDPacket [21:45:48]OFDProtocolAddRootSTLVToBuf [21:45:48]FM_MakeSignedData [21:45:48]FM_MakeSignedData [21:45:48]SAM_PROTO_SignData [21:45:48]wFMCommunicate request_size=4 [21:45:48]MH_SAM_APDU [21:45:48]CAPDU: 80 0D 01 02 [21:45:48]Write to MH i2c: E2 08 00 EB 01 80 0D 01 02 00 00 00 00 65 [21:45:48]Write i2c OK [21:45:48]MH_I2C_Read... [21:45:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:45:48]Read from MH i2c: E2 [21:45:48]MH_I2C_Read... [21:45:48]Read from MH i2c: E2 03 00 [21:45:48]MH_I2C_Read... [21:45:48]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [21:45:48]RAPDU: 90 00 [21:45:48]wFMCommunicate OK [21:45:48]wFMCommunicate request_size=255 [21:45:48]MH_SAM_APDU [21:45: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 8B 85 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5F 41 01 00 35 04 06 00 A8 [21:45:48]Write to MH i2c: E2 02 01 EC 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 8B 85 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5F 41 01 00 35 04 06 00 A8 00 00 96 [21:45:48]Write i2c OK [21:45:48]MH_I2C_Read... [21:45:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:45:48]Read from MH i2c: E2 [21:45:48]MH_I2C_Read... [21:45:48]Read from MH i2c: E2 03 00 [21:45:48]MH_I2C_Read... [21:45:48]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [21:45:48]RAPDU: 90 00 [21:45:48]wFMCommunicate OK [21:45:48]wFMCommunicate request_size=10 [21:45:48]MH_SAM_APDU [21:45:48]CAPDU: 80 0D 02 02 05 4E 4E A1 26 9A [21:45:48]Write to MH i2c: E2 0D 00 ED 01 80 0D 02 02 05 00 4E 4E A1 26 9A 00 00 6F [21:45:48]Write i2c OK [21:45:48]MH_I2C_Read... [21:45:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:45:48]Read from MH i2c: E2 [21:45:48]MH_I2C_Read... [21:45:48]Read from MH i2c: E2 03 00 [21:45:48]MH_I2C_Read... [21:45:48]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [21:45:48]RAPDU: 90 00 [21:45:48]wFMCommunicate OK [21:45:48]wFMCommunicate request_size=4 [21:45:48]MH_SAM_APDU [21:45:48]CAPDU: 80 0D 03 02 [21:45:48]Write to MH i2c: E2 08 00 EE 01 80 0D 03 02 00 00 00 00 6A [21:45:48]Write i2c OK [21:45:48]MH_I2C_Read... [21:45:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:45:48]Read from MH i2c: E2 [21:45:48]MH_I2C_Read... [21:45:48]Read from MH i2c: E2 0B 00 [21:45:48]MH_I2C_Read... [21:45:48]Read from MH i2c: E2 0B 00 EE 01 00 24 CD 20 73 BB 4C C4 D4 90 00 8E [21:45:48]RAPDU: 24 CD 20 73 BB 4C C4 D4 90 00 [21:45:48]wFMCommunicate OK [21:45:48]SAM_PROTO_SignData done [21:45:48]FM_MakeSignedData done [21:45:48]CreateOFDProtocolMessage [21:45:48]wFMCommunicate request_size=4 [21:45:48]MH_SAM_APDU [21:45:48]CAPDU: 80 11 00 00 [21:45:48]Write to MH i2c: E2 08 00 EF 01 80 11 00 00 00 00 00 00 6A [21:45:48]Write i2c OK [21:45:48]MH_I2C_Read... [21:45:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:45:48]Read from MH i2c: E2 [21:45:48]MH_I2C_Read... [21:45:48]Read from MH i2c: E2 17 00 [21:45:48]MH_I2C_Read... [21:45:48]Read from MH i2c: E2 17 00 EF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 BC [21:45:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [21:45:48]wFMCommunicate OK [21:45:48]CreateOFDProtocolMessage done [21:45:48]OFDSenderStorePacket 82271 [21:45:48]StoreOFDPacket docnum=82271 [21:45:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 60 7C 07 01 16 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 8B 85 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5F 41 01 00 35 04 06 00 A8 4E 4E A1 26 9A 24 CD 20 73 BB 4C C4 D4 [21:45:48]CheckFolder [21:45:48]dirname=/storage/ofd_packets [21:45:48]CheckFolder done [21:45:48]ProducePacketName [21:45:48]name=ofd_packets/00082271 [21:45:48]NVStorageSaveData ofd_packets/00082271 [21:45:48]File name is /storage/ofd_packets/00082271 [21:45:48]Write 301 bytes [21:45:48]NVStorageSaveData done [21:45:48]OFDSenderStorePacket done [21:45:48]KKMCreateOFDPacket done [21:45:48]NVStorageSaveData kkm_last_timestamp [21:45:48]File name is /storage/kkm_last_timestamp [21:45:48]Write 4 bytes [21:45:48]NVStorageSaveData done [21:45:48]ExternCall_PrintAddStr [21:45:48]wPrintStart [21:45:48]Write to MH i2c: 01 00 00 F0 01 F1 [21:45:48]Write i2c OK [21:45:48]MH_I2C_Read... [21:45:48]Read from MH i2c: 01 [21:45:48]MH_I2C_Read... [21:45:48]Read from MH i2c: 01 07 00 [21:45:48]MH_I2C_Read... [21:45:48]Read from MH i2c: 01 07 00 F0 01 00 00 00 00 00 FF 0F 06 [21:45:48]RasterBufferAndPrint [21:45:48]line Счет N : (1)918773 [21:45:48]line ИНН: 02508201610067 [21:45:48]line Контрольно-Кассовый Чек [21:45:48]line ПРОДАЖА [21:45:48]line ТРК (МРК, ГНК) : 22 [21:45:48]line Товар: 2710124130 [21:45:48]line Аи-92-К-4 [21:45:48]line 7.480 * 66.90 [21:45:48]line = 500.41 [21:45:48]line НДС 12% НСП 1% [21:45:48]line > о реализуемом товаре [21:45:48]line ОКРУГЛЕНИЕ: -0.41 [21:45:48]line ИТОГО: 500.00 [21:45:48]line Внесено: 500.00 [21:45:48]line СДАЧА: 0.00 [21:45:48]line НСП 1% : 4.43 [21:45:48]line НДС 12% : 53.14 [21:45:48]line Наличными: 500.00 [21:45:48]line Безнал.: 0.00 [21:45:48]line Место: АЗС № 114 "Партнер Нефть" [21:45:48]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [21:45:48]line СНО: Общий режим [21:45:48]line Чек 197 17.10.2024 21:45 [21:45:48]line Смена: 525 ФФД: 1.0 [21:45:48]line ЗНМ: 0300000086 [21:45:48]line РНМ: 0000000000091680 [21:45:48]line Версия ККМ: 001 [21:45:48]line ФМ: 0000000000871843 [21:45:48]line ФД: 82271 [21:45:48]line ФПД: 185054280099482 [21:45:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T214547&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82271&fm=185054280099482&tin=02508201610067®Number=0000000000091680&sum=50000 [21:45:49]OFD Sender: Processing packet 82271 [packets to send 254, broken 253] [21:45:49]ProducePacketName [21:45:49]name=ofd_packets/00082271 [21:45:49]OFD Sender: To server: pG, [21:45:49]CommunicateWithHost lk.salyk.kg:30040 [21:45:49]ConnectInit lk.salyk.kg [21:45:49]written 0, free lines is 4095 [21:45:49]Write to MH i2c: 01 00 00 1B 02 1D [21:45:49]Write i2c OK [21:45:49]MH_I2C_Read... [21:45:49]Read from MH i2c: 01 [21:45:49]MH_I2C_Read... [21:45:49]Read from MH i2c: 01 07 00 [21:45:49]MH_I2C_Read... [21:45:49]Read from MH i2c: 01 07 00 1B 02 00 00 00 00 00 D2 0C 02 [21:45:49]RasterBufferAndPrint [21:45:49]line [21:45:49]line [21:45:49]line [21:45:49]line [21:45:49]line [21:45:49]written 0, free lines is 3290 [21:45:49]MH_Cut [21:45:49]Write to MH i2c: D1 01 00 22 02 01 F6 [21:45:49]Write i2c OK [21:45:49]MH_I2C_Read... [21:45:49]Read from MH i2c: D1 [21:45:49]MH_I2C_Read... [21:45:49]Read from MH i2c: D1 01 00 [21:45:49]MH_I2C_Read... [21:45:49]Read from MH i2c: D1 01 00 22 02 00 F5 [21:45:49]Write to MH i2c: 01 00 00 23 02 25 [21:45:49]Write i2c OK [21:45:49]MH_I2C_Read... [21:45:50]*** Cut start [21:45:50]*** Partial cut [21:45:50]*** CUTSNS_PIN = 1 [21:45:50]*** CUTSNS_PIN = 0 [21:45:50]Connected sock=10 [21:45:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 60 7C 07 01 16 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 8B 85 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5F 41 01 00 35 04 06 00 A8 4E 4E A1 26 9A 24 CD 20 73 BB 4C C4 D4 [21:45:50]*** Brake cut motor [21:45:50]Read from MH i2c: 01 [21:45:50]MH_I2C_Read... [21:45:50]*** Stop cut motor [21:45:50]*** Cut end [21:45:50]Read from MH i2c: 01 07 00 [21:45:50]MH_I2C_Read... [21:45:50]Read from MH i2c: 01 07 00 23 02 00 00 00 00 00 FF 0F 3A [21:45:50]process_action close_receipt done [21:45:50]requested_data is exist [21:45:50]produce_requested_data [21:45:50]requested_item fm.sn is exist - process it [21:45:50]wFMCommunicate request_size=4 [21:45:50]MH_SAM_APDU [21:45:50]CAPDU: 80 11 00 00 [21:45:50]Write to MH i2c: E2 08 00 24 02 80 11 00 00 00 00 00 00 A0 [21:45:50]Write i2c OK [21:45:50]MH_I2C_Read... [21:45:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:45:50]Read from MH i2c: E2 [21:45:50]MH_I2C_Read... [21:45:50]Read from MH i2c: E2 17 00 [21:45:50]MH_I2C_Read... [21:45:50]Read from MH i2c: E2 17 00 24 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 F2 [21:45:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [21:45:50]wFMCommunicate OK [21:45:50]requested_item fd.num is exist - process it [21:45:50]SAM_PROTO_GetFieldsCounters [21:45:50]wFMCommunicate request_size=4 [21:45:50]MH_SAM_APDU [21:45:50]CAPDU: 80 13 00 00 [21:45:50]Write to MH i2c: E2 08 00 25 02 80 13 00 00 00 00 00 00 A3 [21:45:50]Write i2c OK [21:45:50]MH_I2C_Read... [21:45:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:45:51]Read from MH i2c: E2 [21:45:51]MH_I2C_Read... [21:45:51]Read from MH i2c: E2 62 00 [21:45:51]MH_I2C_Read... [21:45:51]Read from MH i2c: E2 62 00 25 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 5F 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [21:45:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 5F 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:45:51]wFMCommunicate OK [21:45:51]SAM_PROTO_GetFieldsCounters done [21:45:51]requested_item shift.num is exist - process it [21:45:51]requested_item shift.opened is exist - process it [21:45:51]req_shift_opened [21:45:51]FM_GetShiftState [21:45:51]SAM_PROTO_GetShiftState [21:45:51]wFMCommunicate request_size=4 [21:45:51]MH_SAM_APDU [21:45:51]CAPDU: 80 13 01 00 [21:45:51]Write to MH i2c: E2 08 00 26 02 80 13 01 00 00 00 00 00 A5 [21:45:51]Write i2c OK [21:45:51]MH_I2C_Read... [21:45:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:45:51]Read from MH i2c: E2 [21:45:51]MH_I2C_Read... [21:45:51]Read from MH i2c: E2 0E 00 [21:45:51]MH_I2C_Read... [21:45:51]Read from MH i2c: E2 0E 00 26 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 AD [21:45:51]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [21:45:51]wFMCommunicate OK [21:45:51]SAM_PROTO_GetShiftState done [21:45:51]FM_GetShiftState done [21:45:51]req_shift_opened done [21:45:51]requested_item shift.open_date is exist - process it [21:45:51]req_shift_open_date [21:45:51]req_shift_open_date done [21:45:51]produce_requested_data done [21:45:51]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82271,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [21:45:51]process_action_free close_receipt [21:45:51]json_value_free [21:45:51]json_value_free done [21:45:51]process_json_proto returns [21:45:51]Send response to host [21:45:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82271,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [21:45:51]free response buf [21:45:51]execute_script done [21:45:51]execute_script returns [21:45:51]free content buf [21:45:51]Sock 7.Close socket [21:45:51]Sock 7.Thread stoped [21:45:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 7F E8 47 00 27 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 5F 41 01 00 F4 03 04 00 C9 2A 11 67 B6 04 01 00 00 C2 9F BA 73 30 5F 89 E9 [21:45:51]CommunicateWithHost err = 0 [21:45:51]CheckOFDResponse [21:45:51]1017 (14) - 77093643461234 [21:45:51]1041 (16) - 0000000000871843 [21:45:51]1040 (4) - 82271 [21:45:51]1012 (4) - 17.10.2024 15:18 [21:45:51]1206 (1) - 0 [21:45:51]OFD Sender: Remove packet 82271 [21:45:51]ProducePacketName [21:45:51]name=ofd_packets/00082271 [21:45:51]NVStorageDeleteData [21:45:51]OFD Sender: No OFD packet to send [21:45:56]OFD Sender: No OFD packet to send [21:46:01]OFD Sender: No OFD packet to send [21:46:06]OFD Sender: No OFD packet to send [21:46:11]OFD Sender: No OFD packet to send [21:46:16]OFD Sender: No OFD packet to send [21:46:21]OFD Sender: No OFD packet to send [21:46:26]OFD Sender: No OFD packet to send [21:46:31]OFD Sender: No OFD packet to send [21:46:36]OFD Sender: No OFD packet to send [21:46:41]OFD Sender: No OFD packet to send [21:46:46]OFD Sender: No OFD packet to send [21:46:51]OFD Sender: No OFD packet to send [21:46:56]OFD Sender: No OFD packet to send [21:47:01]OFD Sender: No OFD packet to send [21:47:06]OFD Sender: No OFD packet to send [21:47:11]OFD Sender: No OFD packet to send [21:47:16]OFD Sender: No OFD packet to send [21:47: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:57]OFD Sender: No OFD packet to send [21:50:02]OFD Sender: No OFD packet to send [21:50:07]OFD Sender: No OFD packet to send [21:50:12]OFD Sender: No OFD packet to send [21:50:17]OFD Sender: No OFD packet to send [21:50:22]OFD Sender: No OFD packet to send [21:50:27]OFD Sender: No OFD packet to send [21:50:32]OFD Sender: No OFD packet to send [21:50:37]OFD Sender: No OFD packet to send [21:50:42]OFD Sender: No OFD packet to send [21:50:47]OFD Sender: No OFD packet to send [21:50:52]OFD Sender: No OFD packet to send [21:50:57]OFD Sender: No OFD packet to send [21:51:02]OFD Sender: No OFD packet to send [21:51:07]OFD Sender: No OFD packet to send [21:51:12]OFD Sender: No OFD packet to send [21:51:17]OFD Sender: No OFD packet to send [21:51:22]OFD Sender: No OFD packet to send [21:51:27]OFD Sender: No OFD packet to send [21:51:32]OFD Sender: No OFD packet to send [21:51:37]OFD Sender: No OFD packet to send [21:51:42]OFD Sender: No OFD packet to send [21:51:47]OFD Sender: No OFD packet to send [21:51:52]OFD Sender: No OFD packet to send [21:51:57]OFD Sender: No OFD packet to send [21:52:02]OFD Sender: No OFD packet to send [21:52:07]OFD Sender: No OFD packet to send [21:52:12]OFD Sender: No OFD packet to send [21:52:17]OFD Sender: No OFD packet to send [21:52:22]OFD Sender: No OFD packet to send [21:52:27]OFD Sender: No OFD packet to send [21:52:32]OFD Sender: No OFD packet to send [21:52:37]OFD Sender: No OFD packet to send [21:52:42]OFD Sender: No OFD packet to send [21:52:47]OFD Sender: No OFD packet to send [21:52:52]OFD Sender: No OFD packet to send [21:52:57]OFD Sender: No OFD packet to send [21:53:02]OFD Sender: No OFD packet to send [21:53:07]OFD Sender: No OFD packet to send [21:53:12]OFD Sender: No OFD packet to send [21:53:17]OFD Sender: No OFD packet to send [21:53:22]OFD Sender: No OFD packet to send [21:53:27]OFD Sender: No OFD packet to send [21:53:32]OFD Sender: No OFD packet to send [21:53:37]OFD Sender: No OFD packet to send [21:53:42]OFD Sender: No OFD packet to send [21:53:47]OFD Sender: No OFD packet to send [21:53:52]OFD Sender: No OFD packet to send [21:53:57]OFD Sender: No OFD packet to send [21:54:02]OFD Sender: No OFD packet to send [21:54:07]OFD Sender: No OFD packet to send [21:54:12]OFD Sender: No OFD packet to send [21:54:17]OFD Sender: No OFD packet to send [21:54:22]OFD Sender: No OFD packet to send [21:54:27]OFD Sender: No OFD packet to send [21:54:32]OFD Sender: No OFD packet to send [21:54:37]OFD Sender: No OFD packet to send [21:54:42]OFD Sender: No OFD packet to send [21:54:47]OFD Sender: No OFD packet to send [21:54:52]OFD Sender: No OFD packet to send [21:54:57]OFD Sender: No OFD packet to send [21:55:02]OFD Sender: No OFD packet to send [21:55:07]OFD Sender: No OFD packet to send [21:55:12]OFD Sender: No OFD packet to send [21:55:17]OFD Sender: No OFD packet to send [21:55:22]OFD Sender: No OFD packet to send [21:55:27]OFD Sender: No OFD packet to send [21:55:32]OFD Sender: No OFD packet to send [21:55:37]OFD Sender: No OFD packet to send [21:55:42]OFD Sender: No OFD packet to send [21:55:47]OFD Sender: No OFD packet to send [21:55:52]OFD Sender: No OFD packet to send [21:55:57]OFD Sender: No OFD packet to send [21:56:02]OFD Sender: No OFD packet to send [21:56:07]OFD Sender: No OFD packet to send [21:56:12]OFD Sender: No OFD packet to send [21:56:17]OFD Sender: No OFD packet to send [21:56:22]OFD Sender: No OFD packet to send [21:56:27]OFD Sender: No OFD packet to send [21:56:32]OFD Sender: No OFD packet to send [21:56:37]OFD Sender: No OFD packet to send [21:56:42]OFD Sender: No OFD packet to send [21:56:47]OFD Sender: No OFD packet to send [21:56:52]OFD Sender: No OFD packet to send [21:56:57]OFD Sender: No OFD packet to send [21:57:02]OFD Sender: No OFD packet to send [21:57:07]OFD Sender: No OFD packet to send [21:57:12]OFD Sender: No OFD packet to send [21:57:17]OFD Sender: No OFD packet to send [21:57:22]OFD Sender: No OFD packet to send [21:57:27]OFD Sender: No OFD packet to send [21:57:33]OFD Sender: No OFD packet to send [21:57:38]OFD Sender: No OFD packet to send [21:57:43]OFD Sender: No OFD packet to send [21:57:48]OFD Sender: No OFD packet to send [21:57:53]OFD Sender: No OFD packet to send [21:57:58]OFD Sender: No OFD packet to send [21:58:03]OFD Sender: No OFD packet to send [21:58:08]OFD Sender: No OFD packet to send [21:58:13]OFD Sender: No OFD packet to send [21:58:18]OFD Sender: No OFD packet to send [21:58:23]OFD Sender: No OFD packet to send [21:58:28]OFD Sender: No OFD packet to send [21:58:33]OFD Sender: No OFD packet to send [21:58:38]OFD Sender: No OFD packet to send [21:58:43]OFD Sender: No OFD packet to send [21:58:48]OFD Sender: No OFD packet to send [21:58:53]OFD Sender: No OFD packet to send [21:58:58]OFD Sender: No OFD packet to send [21:59:03]OFD Sender: No OFD packet to send [21:59:08]OFD Sender: No OFD packet to send [21:59:13]OFD Sender: No OFD packet to send [21:59:18]OFD Sender: No OFD packet to send [21:59:23]OFD Sender: No OFD packet to send [21:59:28]OFD Sender: No OFD packet to send [21:59:33]OFD Sender: No OFD packet to send [21:59:38]OFD Sender: No OFD packet to send [21:59:43]OFD Sender: No OFD packet to send [21:59:48]OFD Sender: No OFD packet to send [21:59:53]OFD Sender: No OFD packet to send [21:59:58]OFD Sender: No OFD packet to send [22:00:03]OFD Sender: No OFD packet to send [22:00:08]OFD Sender: No OFD packet to send [22:00:13]OFD Sender: No OFD packet to send [22:00:18]OFD Sender: No OFD packet to send [22:00:23]OFD Sender: No OFD packet to send [22:00:28]OFD Sender: No OFD packet to send [22:00:33]OFD Sender: No OFD packet to send [22:00:38]OFD Sender: No OFD packet to send [22:00:43]OFD Sender: No OFD packet to send [22:00:48]OFD Sender: No OFD packet to send [22:00:53]OFD Sender: No OFD packet to send [22:00:58]OFD Sender: No OFD packet to send [22:01:03]OFD Sender: No OFD packet to send [22:01:08]OFD Sender: No OFD packet to send [22:01:13]OFD Sender: No OFD packet to send [22:01:18]OFD Sender: No OFD packet to send [22:01:23]OFD Sender: No OFD packet to send [22:01:28]OFD Sender: No OFD packet to send [22:01:33]OFD Sender: No OFD packet to send [22:01:38]OFD Sender: No OFD packet to send [22:01:43]OFD Sender: No OFD packet to send [22:01:48]OFD Sender: No OFD packet to send [22:01:53]OFD Sender: No OFD packet to send [22:01:58]OFD Sender: No OFD packet to send [22:02:03]OFD Sender: No OFD packet to send [22:02:08]OFD Sender: No OFD packet to send [22:02:13]OFD Sender: No OFD packet to send [22:02:18]OFD Sender: No OFD packet to send [22:02:23]OFD Sender: No OFD packet to send [22:02:28]OFD Sender: No OFD packet to send [22:02:33]OFD Sender: No OFD packet to send [22:02:38]OFD Sender: No OFD packet to send [22:02:43]OFD Sender: No OFD packet to send [22:02:48]OFD Sender: No OFD packet to send [22:02:53]OFD Sender: No OFD packet to send [22:02:58]OFD Sender: No OFD packet to send [22:03:03]OFD Sender: No OFD packet to send [22:03:08]OFD Sender: No OFD packet to send [22:03:13]OFD Sender: No OFD packet to send [22:03:18]OFD Sender: No OFD packet to send [22:03:23]OFD Sender: No OFD packet to send [22:03:28]OFD Sender: No OFD packet to send [22:03:33]OFD Sender: No OFD packet to send [22:03:38]OFD Sender: No OFD packet to send [22:03:43]OFD Sender: No OFD packet to send [22:03:48]OFD Sender: No OFD packet to send [22:03:53]OFD Sender: No OFD packet to send [22:03:58]OFD Sender: No OFD packet to send [22:04:03]OFD Sender: No OFD packet to send [22:04:08]OFD Sender: No OFD packet to send [22:04:13]OFD Sender: No OFD packet to send [22:04:18]OFD Sender: No OFD packet to send [22:04:23]OFD Sender: No OFD packet to send [22:04:28]OFD Sender: No OFD packet to send [22:04:33]OFD Sender: No OFD packet to send [22:04:38]OFD Sender: No OFD packet to send [22:04:43]OFD Sender: No OFD packet to send [22:04:48]OFD Sender: No OFD packet to send [22:04:53]OFD Sender: No OFD packet to send [22:04:58]OFD Sender: No OFD packet to send [22:05:03]OFD Sender: No OFD packet to send [22:05:08]OFD Sender: No OFD packet to send [22:05:13]OFD Sender: No OFD packet to send [22:05:18]OFD Sender: No OFD packet to send [22:05:23]OFD Sender: No OFD packet to send [22:05:28]OFD Sender: No OFD packet to send [22:05:33]OFD Sender: No OFD packet to send [22:05:38]OFD Sender: No OFD packet to send [22:05:43]OFD Sender: No OFD packet to send [22:05:48]OFD Sender: No OFD packet to send [22:05:53]OFD Sender: No OFD packet to send [22:05:58]OFD Sender: No OFD packet to send [22:06:03]OFD Sender: No OFD packet to send [22:06:08]OFD Sender: No OFD packet to send [22:06:13]OFD Sender: No OFD packet to send [22:06:18]OFD Sender: No OFD packet to send [22:06:23]OFD Sender: No OFD packet to send [22:06:28]OFD Sender: No OFD packet to send [22:06:33]OFD Sender: No OFD packet to send [22:06:38]OFD Sender: No OFD packet to send [22:06:43]OFD Sender: No OFD packet to send [22:06:48]OFD Sender: No OFD packet to send [22:06:53]OFD Sender: No OFD packet to send [22:06:58]OFD Sender: No OFD packet to send [22:07:03]OFD Sender: No OFD packet to send [22:07:08]OFD Sender: No OFD packet to send [22:07:13]OFD Sender: No OFD packet to send [22:07:18]OFD Sender: No OFD packet to send [22:07:23]OFD Sender: No OFD packet to send [22:07:28]OFD Sender: No OFD packet to send [22:07:33]OFD Sender: No OFD packet to send [22:07:38]OFD Sender: No OFD packet to send [22:07:44]OFD Sender: No OFD packet to send [22:07:49]OFD Sender: No OFD packet to send [22:07:54]OFD Sender: No OFD packet to send [22:07:59]OFD Sender: No OFD packet to send [22:08:04]OFD Sender: No OFD packet to send [22:08:09]OFD Sender: No OFD packet to send [22:08:14]OFD Sender: No OFD packet to send [22:08:19]OFD Sender: No OFD packet to send [22:08:24]OFD Sender: No OFD packet to send [22:08:29]OFD Sender: No OFD packet to send [22:08:34]OFD Sender: No OFD packet to send [22:08:39]OFD Sender: No OFD packet to send [22:08:44]OFD Sender: No OFD packet to send [22:08:49]OFD Sender: No OFD packet to send [22:08:54]OFD Sender: No OFD packet to send [22:08:59]OFD Sender: No OFD packet to send [22:09:04]OFD Sender: No OFD packet to send [22:09:09]OFD Sender: No OFD packet to send [22:09:14]OFD Sender: No OFD packet to send [22:09:19]OFD Sender: No OFD packet to send [22:09:24]OFD Sender: No OFD packet to send [22:09:29]OFD Sender: No OFD packet to send [22:09:34]OFD Sender: No OFD packet to send [22:09:39]OFD Sender: No OFD packet to send [22:09:44]OFD Sender: No OFD packet to send [22:09:49]OFD Sender: No OFD packet to send [22:09:54]OFD Sender: No OFD packet to send [22:09:59]OFD Sender: No OFD packet to send [22:10:04]OFD Sender: No OFD packet to send [22:10:09]OFD Sender: No OFD packet to send [22:10:14]OFD Sender: No OFD packet to send [22:10:19]OFD Sender: No OFD packet to send [22:10:24]OFD Sender: No OFD packet to send [22:10:29]OFD Sender: No OFD packet to send [22:10:34]OFD Sender: No OFD packet to send [22:10:39]OFD Sender: No OFD packet to send [22:10:44]OFD Sender: No OFD packet to send [22:10:49]OFD Sender: No OFD packet to send [22:10:54]OFD Sender: No OFD packet to send [22:10:59]OFD Sender: No OFD packet to send [22:11:04]OFD Sender: No OFD packet to send [22:11:09]OFD Sender: No OFD packet to send [22:11:14]OFD Sender: No OFD packet to send [22:11:19]OFD Sender: No OFD packet to send [22:11:24]OFD Sender: No OFD packet to send [22:11:29]OFD Sender: No OFD packet to send [22:11:34]OFD Sender: No OFD packet to send [22:11:39]OFD Sender: No OFD packet to send [22:11:44]OFD Sender: No OFD packet to send [22:11:49]OFD Sender: No OFD packet to send [22:11:54]OFD Sender: No OFD packet to send [22:11:59]OFD Sender: No OFD packet to send [22:12:04]OFD Sender: No OFD packet to send [22:12:09]OFD Sender: No OFD packet to send [22:12:14]OFD Sender: No OFD packet to send [22:12:19]accept exits with 9 [22:12:19]New connection [22:12:19]New thread 3067129188 created [22:12:19]Thread 3067272548 joined [22:12:19]Waiting for new connection... [22:12:19] Sock 9.Parse request [22:12:19]Sock 9.Check first char [22:12:19]Sock 9.First char is OK [22:12:19]request: POST /json_proto HTTP/1.0 [22:12:19]Method: POST [22:12:19]URL: /json_proto [22:12:19]Method is POST - this is cgi request [22:12:19]url: /json_proto [22:12:19]query_string will be loaded in cgi processing [22:12:19]execute_cgi json_proto POST (null) [22:12:19]execute_cgi path=json_proto method=POST [22:12:19]POST find Content-Length [22:12:19]Host: 172.17.44.67:8080 [22:12:19]Content-Length: 766 [22:12:19]Content-Type: application/json [22:12:19] [22:12:19]POST finish read [22:12:19]Found Content-Length = 766 [22:12:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 6.360, "sum" : 425.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 425.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:19]execute_script... [22:12:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 6.360, "sum" : 425.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 425.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:19]POST & json_proto [22:12:19]process_json_proto [22:12:19]json parsed OK: [22:12:19]protocol is kg_v1.0 [22:12:19]action value=close_receipt [22:12:19]process_action close_receipt [22:12:19]cmd_close_receipt [22:12:19]MH_GetDate [22:12:19]Write to MH i2c: F0 00 00 27 02 18 [22:12:19]Write i2c OK [22:12:19]MH_I2C_Read... [22:12:19]Read from MH i2c: F0 [22:12:19]MH_I2C_Read... [22:12:19]Read from MH i2c: F0 09 00 [22:12:19]MH_I2C_Read... [22:12:19]Read from MH i2c: F0 09 00 27 02 00 C4 8B 11 67 F1 C7 6B 64 6F [22:12:19]GetLastDocTimeStamp 1729201547 [22:12:19]current date 1729203140 [22:12:19]FM_GetShiftState [22:12:19]SAM_PROTO_GetShiftState [22:12:19]wFMCommunicate request_size=4 [22:12:19]MH_SAM_APDU [22:12:19]CAPDU: 80 13 01 00 [22:12:19]Write to MH i2c: E2 08 00 28 02 80 13 01 00 00 00 00 00 A7 [22:12:19]Write i2c OK [22:12:19]MH_I2C_Read... [22:12:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:19]Read from MH i2c: E2 [22:12:19]MH_I2C_Read... [22:12:19]Read from MH i2c: E2 0E 00 [22:12:19]MH_I2C_Read... [22:12:19]Read from MH i2c: E2 0E 00 28 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 AF [22:12:19]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [22:12:19]wFMCommunicate OK [22:12:19]SAM_PROTO_GetShiftState done [22:12:19]FM_GetShiftState done [22:12:19]opened in 1729125927 [22:12:19]opened+sec_in_day 1729212327 [22:12:19]quantity*price = 42548 [22:12:19]sum+1 = 42549 [22:12:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 425.48 НСП 1% : 3.76 НДС 12% : 45.18 Наличными: 0.00 Безнал.: 425.48 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 198 17.10.2024 22:12 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82272 ФПД: 232862946567038 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T221220&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82272&fm=232862946567038&tin=02508201610067®Number=0000000000091680&sum=42548 [22:12:20]StoreToDocumentArchive [22:12:20]shift 525 fd 82272 [22:12:20]save to /storage/0525/doc_00082272 [22:12:20]save last doc name /storage/0525/doc_00082272 to /storage/kkm_last_doc_name [22:12:20]save OK [22:12:20]Clear old archive folders... [22:12:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:12:20]tlvbuf is 01AAE8C0 [22:12:20]SAM_PROTO_ClearQueue [22:12:20]wFMCommunicate request_size=4 [22:12:20]MH_SAM_APDU [22:12:20]CAPDU: 80 09 00 00 [22:12:20]Write to MH i2c: E2 08 00 35 02 80 09 00 00 00 00 00 00 A9 [22:12:20]Write i2c OK [22:12:20]MH_I2C_Read... [22:12:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:12:20]Read from MH i2c: E2 [22:12:20]MH_I2C_Read... [22:12:20]Read from MH i2c: E2 03 00 [22:12:20]MH_I2C_Read... [22:12:20]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [22:12:20]RAPDU: 90 00 [22:12:20]wFMCommunicate OK [22:12:20]SAM_PROTO_ClearQueue done [22:12:20]KKMCreateOFDPacket [22:12:20]OFDProtocolAddRootSTLVToBuf [22:12:20]FM_MakeSignedData [22:12:20]FM_MakeSignedData [22:12:20]SAM_PROTO_SignData [22:12:20]wFMCommunicate request_size=4 [22:12:20]MH_SAM_APDU [22:12:20]CAPDU: 80 0D 01 02 [22:12:20]Write to MH i2c: E2 08 00 36 02 80 0D 01 02 00 00 00 00 B1 [22:12:20]Write i2c OK [22:12:20]MH_I2C_Read... [22:12:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:12:20]Read from MH i2c: E2 [22:12:20]MH_I2C_Read... [22:12:20]Read from MH i2c: E2 03 00 [22:12:20]MH_I2C_Read... [22:12:20]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [22:12:20]RAPDU: 90 00 [22:12:20]wFMCommunicate OK [22:12:20]wFMCommunicate request_size=255 [22:12:20]MH_SAM_APDU [22:12:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 34 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 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 A6 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 A6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 C4 8B 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 60 41 01 00 35 04 06 00 D3 [22:12:20]Write to MH i2c: E2 02 01 37 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 34 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 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 A6 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 A6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 C4 8B 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 60 41 01 00 35 04 06 00 D3 00 00 B3 [22:12:20]Write i2c OK [22:12:20]MH_I2C_Read... [22:12:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:20]Read from MH i2c: E2 [22:12:20]MH_I2C_Read... [22:12:20]Read from MH i2c: E2 03 00 [22:12:20]MH_I2C_Read... [22:12:20]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [22:12:20]RAPDU: 90 00 [22:12:20]wFMCommunicate OK [22:12:20]wFMCommunicate request_size=10 [22:12:20]MH_SAM_APDU [22:12:20]CAPDU: 80 0D 02 02 05 C9 A1 36 23 7E [22:12:20]Write to MH i2c: E2 0D 00 38 02 80 0D 02 02 05 00 C9 A1 36 23 7E 00 00 FF [22:12:20]Write i2c OK [22:12:20]MH_I2C_Read... [22:12:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:20]Read from MH i2c: E2 [22:12:20]MH_I2C_Read... [22:12:20]Read from MH i2c: E2 03 00 [22:12:20]MH_I2C_Read... [22:12:20]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [22:12:20]RAPDU: 90 00 [22:12:20]wFMCommunicate OK [22:12:20]wFMCommunicate request_size=4 [22:12:20]MH_SAM_APDU [22:12:20]CAPDU: 80 0D 03 02 [22:12:20]Write to MH i2c: E2 08 00 39 02 80 0D 03 02 00 00 00 00 B6 [22:12:20]Write i2c OK [22:12:20]MH_I2C_Read... [22:12:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:12:20]Read from MH i2c: E2 [22:12:20]MH_I2C_Read... [22:12:20]Read from MH i2c: E2 0B 00 [22:12:20]MH_I2C_Read... [22:12:20]Read from MH i2c: E2 0B 00 39 02 00 7B 8F E8 02 E6 FA 1D 37 90 00 DF [22:12:20]RAPDU: 7B 8F E8 02 E6 FA 1D 37 90 00 [22:12:20]wFMCommunicate OK [22:12:20]SAM_PROTO_SignData done [22:12:20]FM_MakeSignedData done [22:12:20]CreateOFDProtocolMessage [22:12:20]wFMCommunicate request_size=4 [22:12:20]MH_SAM_APDU [22:12:20]CAPDU: 80 11 00 00 [22:12:20]Write to MH i2c: E2 08 00 3A 02 80 11 00 00 00 00 00 00 B6 [22:12:20]Write i2c OK [22:12:20]MH_I2C_Read... [22:12:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:20]Read from MH i2c: E2 [22:12:20]MH_I2C_Read... [22:12:20]Read from MH i2c: E2 17 00 [22:12:20]MH_I2C_Read... [22:12:20]Read from MH i2c: E2 17 00 3A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 08 [22:12:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [22:12:20]wFMCommunicate OK [22:12:20]CreateOFDProtocolMessage done [22:12:20]OFDSenderStorePacket 82272 [22:12:20]StoreOFDPacket docnum=82272 [22:12:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 CE D4 07 01 D9 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 34 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 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 A6 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 A6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 C4 8B 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 60 41 01 00 35 04 06 00 D3 C9 A1 36 23 7E 7B 8F E8 02 E6 FA 1D 37 [22:12:20]CheckFolder [22:12:20]dirname=/storage/ofd_packets [22:12:20]CheckFolder done [22:12:20]ProducePacketName [22:12:20]name=ofd_packets/00082272 [22:12:20]NVStorageSaveData ofd_packets/00082272 [22:12:20]File name is /storage/ofd_packets/00082272 [22:12:20]Write 301 bytes [22:12:20]NVStorageSaveData done [22:12:20]OFDSenderStorePacket done [22:12:20]KKMCreateOFDPacket done [22:12:20]NVStorageSaveData kkm_last_timestamp [22:12:20]File name is /storage/kkm_last_timestamp [22:12:20]Write 4 bytes [22:12:20]NVStorageSaveData done [22:12:20]ExternCall_PrintAddStr [22:12:20]wPrintStart [22:12:20]Write to MH i2c: 01 00 00 3B 02 3D [22:12:20]Write i2c OK [22:12:20]MH_I2C_Read... [22:12:20]Read from MH i2c: 01 [22:12:20]MH_I2C_Read... [22:12:20]Read from MH i2c: 01 07 00 [22:12:20]MH_I2C_Read... [22:12:20]Read from MH i2c: 01 07 00 3B 02 00 00 00 00 00 FF 0F 52 [22:12:20]RasterBufferAndPrint [22:12:20]line Счет N : (1)918774 [22:12:20]line ИНН: 02508201610067 [22:12:20]line Контрольно-Кассовый Чек [22:12:20]line ПРОДАЖА [22:12:20]line ТРК (МРК, ГНК) : 11 [22:12:20]line Товар: 2710124130 [22:12:20]line Аи-92-К-4 [22:12:20]line 6.360 * 66.90 [22:12:20]line = 425.48 [22:12:20]line НДС 12% НСП 1% [22:12:20]line > о реализуемом товаре [22:12:20]line ИТОГО: 425.48 [22:12:20]line НСП 1% : 3.76 [22:12:20]line НДС 12% : 45.18 [22:12:20]line Наличными: 0.00 [22:12:20]line Безнал.: 425.48 [22:12:20]line Место: АЗС № 114 "Партнер Нефть" [22:12:20]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [22:12:20]line СНО: Общий режим [22:12:20]line Чек 198 17.10.2024 22:12 [22:12:20]line Смена: 525 ФФД: 1.0 [22:12:20]line ЗНМ: 0300000086 [22:12:20]line РНМ: 0000000000091680 [22:12:20]line Версия ККМ: 001 [22:12:20]line Платежная система: Mbank [22:12:20]line ФМ: 0000000000871843 [22:12:20]line ФД: 82272 [22:12:20]line ФПД: 232862946567038 [22:12:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T221220&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82272&fm=232862946567038&tin=02508201610067®Number=0000000000091680&sum=42548 [22:12:20]OFD Sender: Processing packet 82272 [packets to send 254, broken 253] [22:12:20]ProducePacketName [22:12:20]name=ofd_packets/00082272 [22:12:20]OFD Sender: To server: pG, [22:12:20]CommunicateWithHost lk.salyk.kg:30040 [22:12:20]ConnectInit lk.salyk.kg [22:12:20]written 0, free lines is 4095 [22:12:21]Write to MH i2c: 01 00 00 64 02 66 [22:12:21]Write i2c OK [22:12:21]MH_I2C_Read... [22:12:21]Read from MH i2c: 01 [22:12:21]MH_I2C_Read... [22:12:21]Read from MH i2c: 01 07 00 [22:12:21]MH_I2C_Read... [22:12:21]Read from MH i2c: 01 07 00 64 02 00 00 00 00 00 04 0D 7E [22:12:21]RasterBufferAndPrint [22:12:21]line [22:12:21]line [22:12:21]line [22:12:21]line [22:12:21]line [22:12:21]written 0, free lines is 3339 [22:12:21]MH_Cut [22:12:21]Write to MH i2c: D1 01 00 6B 02 01 3F [22:12:21]Write i2c OK [22:12:21]MH_I2C_Read... [22:12:21]Read from MH i2c: D1 [22:12:21]MH_I2C_Read... [22:12:21]Read from MH i2c: D1 01 00 [22:12:21]MH_I2C_Read... [22:12:21]Read from MH i2c: D1 01 00 6B 02 00 3E [22:12:21]Write to MH i2c: 01 00 00 6C 02 6E [22:12:21]Write i2c OK [22:12:21]MH_I2C_Read... [22:12:21]Connected sock=11 [22:12:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 CE D4 07 01 D9 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 34 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 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 A6 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 A6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 C4 8B 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 60 41 01 00 35 04 06 00 D3 C9 A1 36 23 7E 7B 8F E8 02 E6 FA 1D 37 [22:12:22]*** Cut start [22:12:22]*** Partial cut [22:12:22]*** CUTSNS_PIN = 1 [22:12:22]*** CUTSNS_PIN = 0 [22:12:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 53 3B 47 00 7F 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 60 41 01 00 F4 03 04 00 01 31 11 67 B6 04 01 00 00 F5 B2 57 6A 78 C8 C7 13 [22:12:22]CommunicateWithHost err = 0 [22:12:22]CheckOFDResponse [22:12:22]1017 (14) - 77093643461234 [22:12:22]1041 (16) - 0000000000871843 [22:12:22]1040 (4) - 82272 [22:12:22]1012 (4) - 17.10.2024 15:45 [22:12:22]1206 (1) - 0 [22:12:22]OFD Sender: Remove packet 82272 [22:12:22]ProducePacketName [22:12:22]name=ofd_packets/00082272 [22:12:22]NVStorageDeleteData [22:12:22]*** Brake cut motor [22:12:22]OFD Sender: No OFD packet to send [22:12:22]Read from MH i2c: 01 [22:12:22]MH_I2C_Read... [22:12:22]*** Stop cut motor [22:12:22]*** Cut end [22:12:22]Read from MH i2c: 01 07 00 [22:12:22]MH_I2C_Read... [22:12:22]Read from MH i2c: 01 07 00 6C 02 00 00 00 00 00 FF 0F 83 [22:12:22]process_action close_receipt done [22:12:22]requested_data is exist [22:12:22]produce_requested_data [22:12:22]requested_item fm.sn is exist - process it [22:12:22]wFMCommunicate request_size=4 [22:12:22]MH_SAM_APDU [22:12:22]CAPDU: 80 11 00 00 [22:12:22]Write to MH i2c: E2 08 00 6D 02 80 11 00 00 00 00 00 00 E9 [22:12:22]Write i2c OK [22:12:22]MH_I2C_Read... [22:12:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:22]Read from MH i2c: E2 [22:12:22]MH_I2C_Read... [22:12:22]Read from MH i2c: E2 17 00 [22:12:22]MH_I2C_Read... [22:12:22]Read from MH i2c: E2 17 00 6D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 3B [22:12:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [22:12:22]wFMCommunicate OK [22:12:22]requested_item fd.num is exist - process it [22:12:22]SAM_PROTO_GetFieldsCounters [22:12:22]wFMCommunicate request_size=4 [22:12:22]MH_SAM_APDU [22:12:22]CAPDU: 80 13 00 00 [22:12:22]Write to MH i2c: E2 08 00 6E 02 80 13 00 00 00 00 00 00 EC [22:12:22]Write i2c OK [22:12:22]MH_I2C_Read... [22:12:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:12:22]Read from MH i2c: E2 [22:12:22]MH_I2C_Read... [22:12:22]Read from MH i2c: E2 62 00 [22:12:22]MH_I2C_Read... [22:12:22]Read from MH i2c: E2 62 00 6E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 60 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [22:12:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 60 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:12:23]wFMCommunicate OK [22:12:23]SAM_PROTO_GetFieldsCounters done [22:12:23]requested_item shift.num is exist - process it [22:12:23]requested_item shift.opened is exist - process it [22:12:23]req_shift_opened [22:12:23]FM_GetShiftState [22:12:23]SAM_PROTO_GetShiftState [22:12:23]wFMCommunicate request_size=4 [22:12:23]MH_SAM_APDU [22:12:23]CAPDU: 80 13 01 00 [22:12:23]Write to MH i2c: E2 08 00 6F 02 80 13 01 00 00 00 00 00 EE [22:12:23]Write i2c OK [22:12:23]MH_I2C_Read... [22:12:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:23]Read from MH i2c: E2 [22:12:23]MH_I2C_Read... [22:12:23]Read from MH i2c: E2 0E 00 [22:12:23]MH_I2C_Read... [22:12:23]Read from MH i2c: E2 0E 00 6F 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 F6 [22:12:23]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [22:12:23]wFMCommunicate OK [22:12:23]SAM_PROTO_GetShiftState done [22:12:23]FM_GetShiftState done [22:12:23]req_shift_opened done [22:12:23]requested_item shift.open_date is exist - process it [22:12:23]req_shift_open_date [22:12:23]req_shift_open_date done [22:12:23]produce_requested_data done [22:12:23]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82272,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [22:12:23]process_action_free close_receipt [22:12:23]json_value_free [22:12:23]json_value_free done [22:12:23]process_json_proto returns [22:12:23]Send response to host [22:12:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82272,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [22:12:23]free response buf [22:12:23]execute_script done [22:12:23]execute_script returns [22:12:23]free content buf [22:12:23]Sock 9.Close socket [22:12:23]Sock 9.Thread stoped [22:12:25]recv_with_timeout no data received [22:12:27]OFD Sender: No OFD packet to send [22:12:32]OFD Sender: No OFD packet to send [22:12:35]recv_with_timeout no data received [22:12:37]OFD Sender: No OFD packet to send [22:12:38]accept exits with 7 [22:12:38]New connection [22:12:38]New thread 3067272548 created [22:12:38]Thread 3067129188 joined [22:12:38]Waiting for new connection... [22:12:38] Sock 7.Parse request [22:12:38]Sock 7.Check first char [22:12:38]Sock 7.First char is OK [22:12:38]request: POST /json_proto HTTP/1.0 [22:12:38]Method: POST [22:12:38]URL: /json_proto [22:12:38]Method is POST - this is cgi request [22:12:38]url: /json_proto [22:12:38]query_string will be loaded in cgi processing [22:12:38]execute_cgi json_proto POST (null) [22:12:38]execute_cgi path=json_proto method=POST [22:12:38]POST find Content-Length [22:12:38]Host: 172.17.44.67:8080 [22:12:38]Content-Length: 677 [22:12:38]Content-Type: application/json [22:12:38] [22:12:38]POST finish read [22:12:38]Found Content-Length = 677 [22:12:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:38]execute_script... [22:12:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:38]POST & json_proto [22:12:38]process_json_proto [22:12:38]json parsed OK: [22:12:38]protocol is kg_v1.0 [22:12:38]action value=close_receipt [22:12:38]process_action close_receipt [22:12:38]cmd_close_receipt [22:12:38]MH_GetDate [22:12:38]Write to MH i2c: F0 00 00 70 02 61 [22:12:38]Write i2c OK [22:12:38]MH_I2C_Read... [22:12:38]Read from MH i2c: F0 [22:12:38]MH_I2C_Read... [22:12:38]Read from MH i2c: F0 09 00 [22:12:38]MH_I2C_Read... [22:12:38]Read from MH i2c: F0 09 00 70 02 00 D7 8B 11 67 F1 C7 6B 64 CB [22:12:38]GetLastDocTimeStamp 1729203140 [22:12:38]current date 1729203159 [22:12:38]FM_GetShiftState [22:12:38]SAM_PROTO_GetShiftState [22:12:38]wFMCommunicate request_size=4 [22:12:38]MH_SAM_APDU [22:12:38]CAPDU: 80 13 01 00 [22:12:38]Write to MH i2c: E2 08 00 71 02 80 13 01 00 00 00 00 00 F0 [22:12:38]Write i2c OK [22:12:38]MH_I2C_Read... [22:12:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:38]Read from MH i2c: E2 [22:12:38]MH_I2C_Read... [22:12:38]Read from MH i2c: E2 0E 00 [22:12:38]MH_I2C_Read... [22:12:38]Read from MH i2c: E2 0E 00 71 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 F8 [22:12:38]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [22:12:38]wFMCommunicate OK [22:12:38]SAM_PROTO_GetShiftState done [22:12:38]FM_GetShiftState done [22:12:38]opened in 1729125927 [22:12:38]opened+sec_in_day 1729212327 [22:12:38]quantity*price = 10035 [22:12:38]sum+1 = 10036 [22:12:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 199 17.10.2024 22:12 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82273 ФПД: 104772053188471 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T221239&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82273&fm=104772053188471&tin=02508201610067®Number=0000000000091680&sum=10000 [22:12:39]StoreToDocumentArchive [22:12:39]shift 525 fd 82273 [22:12:39]save to /storage/0525/doc_00082273 [22:12:39]save last doc name /storage/0525/doc_00082273 to /storage/kkm_last_doc_name [22:12:39]save OK [22:12:39]Clear old archive folders... [22:12:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:12:39]tlvbuf is 01AB4910 [22:12:39]SAM_PROTO_ClearQueue [22:12:39]wFMCommunicate request_size=4 [22:12:39]MH_SAM_APDU [22:12:39]CAPDU: 80 09 00 00 [22:12:39]Write to MH i2c: E2 08 00 7E 02 80 09 00 00 00 00 00 00 F2 [22:12:39]Write i2c OK [22:12:39]MH_I2C_Read... [22:12:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:12:39]Read from MH i2c: E2 [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: E2 03 00 [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [22:12:39]RAPDU: 90 00 [22:12:39]wFMCommunicate OK [22:12:39]SAM_PROTO_ClearQueue done [22:12:39]KKMCreateOFDPacket [22:12:39]OFDProtocolAddRootSTLVToBuf [22:12:39]FM_MakeSignedData [22:12:39]FM_MakeSignedData [22:12:39]SAM_PROTO_SignData [22:12:39]wFMCommunicate request_size=4 [22:12:39]MH_SAM_APDU [22:12:39]CAPDU: 80 0D 01 02 [22:12:39]Write to MH i2c: E2 08 00 7F 02 80 0D 01 02 00 00 00 00 FA [22:12:39]Write i2c OK [22:12:39]MH_I2C_Read... [22:12:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:12:39]Read from MH i2c: E2 [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: E2 03 00 [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: E2 03 00 7F 02 00 90 00 F5 [22:12:39]RAPDU: 90 00 [22:12:39]wFMCommunicate OK [22:12:39]wFMCommunicate request_size=255 [22:12:39]MH_SAM_APDU [22:12:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 D7 8B 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 61 41 01 00 35 04 06 00 5F [22:12:39]Write to MH i2c: E2 02 01 80 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 D7 8B 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 61 41 01 00 35 04 06 00 5F 00 00 1F [22:12:39]Write i2c OK [22:12:39]MH_I2C_Read... [22:12:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:39]Read from MH i2c: E2 [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: E2 03 00 [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [22:12:39]RAPDU: 90 00 [22:12:39]wFMCommunicate OK [22:12:39]wFMCommunicate request_size=10 [22:12:39]MH_SAM_APDU [22:12:39]CAPDU: 80 0D 02 02 05 4A 25 03 3F 77 [22:12:39]Write to MH i2c: E2 0D 00 81 02 80 0D 02 02 05 00 4A 25 03 3F 77 00 00 2F [22:12:39]Write i2c OK [22:12:39]MH_I2C_Read... [22:12:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:39]Read from MH i2c: E2 [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: E2 03 00 [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: E2 03 00 81 02 00 90 00 F7 [22:12:39]RAPDU: 90 00 [22:12:39]wFMCommunicate OK [22:12:39]wFMCommunicate request_size=4 [22:12:39]MH_SAM_APDU [22:12:39]CAPDU: 80 0D 03 02 [22:12:39]Write to MH i2c: E2 08 00 82 02 80 0D 03 02 00 00 00 00 FF [22:12:39]Write i2c OK [22:12:39]MH_I2C_Read... [22:12:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:12:39]Read from MH i2c: E2 [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: E2 0B 00 [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: E2 0B 00 82 02 00 59 2E 33 5A 9A 42 2F 48 90 00 67 [22:12:39]RAPDU: 59 2E 33 5A 9A 42 2F 48 90 00 [22:12:39]wFMCommunicate OK [22:12:39]SAM_PROTO_SignData done [22:12:39]FM_MakeSignedData done [22:12:39]CreateOFDProtocolMessage [22:12:39]wFMCommunicate request_size=4 [22:12:39]MH_SAM_APDU [22:12:39]CAPDU: 80 11 00 00 [22:12:39]Write to MH i2c: E2 08 00 83 02 80 11 00 00 00 00 00 00 FF [22:12:39]Write i2c OK [22:12:39]MH_I2C_Read... [22:12:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:39]Read from MH i2c: E2 [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: E2 17 00 [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: E2 17 00 83 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 51 [22:12:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [22:12:39]wFMCommunicate OK [22:12:39]CreateOFDProtocolMessage done [22:12:39]OFDSenderStorePacket 82273 [22:12:39]StoreOFDPacket docnum=82273 [22:12:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 20 DE 07 01 2F 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 D7 8B 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 61 41 01 00 35 04 06 00 5F 4A 25 03 3F 77 59 2E 33 5A 9A 42 2F 48 [22:12:39]CheckFolder [22:12:39]dirname=/storage/ofd_packets [22:12:39]CheckFolder done [22:12:39]ProducePacketName [22:12:39]name=ofd_packets/00082273 [22:12:39]NVStorageSaveData ofd_packets/00082273 [22:12:39]File name is /storage/ofd_packets/00082273 [22:12:39]Write 301 bytes [22:12:39]NVStorageSaveData done [22:12:39]OFDSenderStorePacket done [22:12:39]KKMCreateOFDPacket done [22:12:39]NVStorageSaveData kkm_last_timestamp [22:12:39]File name is /storage/kkm_last_timestamp [22:12:39]Write 4 bytes [22:12:39]NVStorageSaveData done [22:12:39]ExternCall_PrintAddStr [22:12:39]wPrintStart [22:12:39]Write to MH i2c: 01 00 00 84 02 86 [22:12:39]Write i2c OK [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: 01 [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: 01 07 00 [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: 01 07 00 84 02 00 00 00 00 00 FF 0F 9B [22:12:39]RasterBufferAndPrint [22:12:39]line Счет N : (1)918775 [22:12:39]line ИНН: 02508201610067 [22:12:39]line Контрольно-Кассовый Чек [22:12:39]line ПРОДАЖА [22:12:39]line ТРК (МРК, ГНК) : 11 [22:12:39]line Товар: 2710124130 [22:12:39]line Аи-92-К-4 [22:12:39]line 1.500 * 66.90 [22:12:39]line = 100.35 [22:12:39]line НДС 12% НСП 1% [22:12:39]line > о реализуемом товаре [22:12:39]line ОКРУГЛЕНИЕ: -0.35 [22:12:39]line ИТОГО: 100.00 [22:12:39]line Внесено: 100.00 [22:12:39]line СДАЧА: 0.00 [22:12:39]line НСП 1% : 0.89 [22:12:39]line НДС 12% : 10.66 [22:12:39]line Наличными: 100.00 [22:12:39]line Безнал.: 0.00 [22:12:39]line Место: АЗС № 114 "Партнер Нефть" [22:12:39]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [22:12:39]line СНО: Общий режим [22:12:39]line Чек 199 17.10.2024 22:12 [22:12:39]line Смена: 525 ФФД: 1.0 [22:12:39]line ЗНМ: 0300000086 [22:12:39]line РНМ: 0000000000091680 [22:12:39]line Версия ККМ: 001 [22:12:39]line ФМ: 0000000000871843 [22:12:39]line ФД: 82273 [22:12:39]line ФПД: 104772053188471 [22:12:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T221239&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82273&fm=104772053188471&tin=02508201610067®Number=0000000000091680&sum=10000 [22:12:39]written 0, free lines is 4095 [22:12:39]OFD Sender: Processing packet 82273 [packets to send 254, broken 253] [22:12:39]ProducePacketName [22:12:39]name=ofd_packets/00082273 [22:12:39]OFD Sender: To server: pG, [22:12:39]CommunicateWithHost lk.salyk.kg:30040 [22:12:39]ConnectInit lk.salyk.kg [22:12:40]Write to MH i2c: 01 00 00 AF 02 B1 [22:12:40]Write i2c OK [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: 01 [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: 01 07 00 [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: 01 07 00 AF 02 00 00 00 00 00 CF 0C 93 [22:12:40]RasterBufferAndPrint [22:12:40]line [22:12:40]line [22:12:40]line [22:12:40]line [22:12:40]line [22:12:40]written 0, free lines is 3290 [22:12:40]MH_Cut [22:12:40]Write to MH i2c: D1 01 00 B6 02 01 8A [22:12:40]Write i2c OK [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: D1 [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: D1 01 00 [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: D1 01 00 B6 02 00 89 [22:12:40]Write to MH i2c: 01 00 00 B7 02 B9 [22:12:40]Write i2c OK [22:12:40]MH_I2C_Read... [22:12:41]Connected sock=10 [22:12:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 20 DE 07 01 2F 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 D7 8B 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 61 41 01 00 35 04 06 00 5F 4A 25 03 3F 77 59 2E 33 5A 9A 42 2F 48 [22:12:41]*** Cut start [22:12:41]*** Partial cut [22:12:41]*** CUTSNS_PIN = 1 [22:12:41]*** CUTSNS_PIN = 0 [22:12:41]*** Brake cut motor [22:12:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 25 E4 47 00 25 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 61 41 01 00 F4 03 04 00 14 31 11 67 B6 04 01 00 00 72 CF C8 B5 91 B1 78 68 [22:12:41]CommunicateWithHost err = 0 [22:12:41]CheckOFDResponse [22:12:41]1017 (14) - 77093643461234 [22:12:41]1041 (16) - 0000000000871843 [22:12:41]1040 (4) - 82273 [22:12:41]1012 (4) - 17.10.2024 15:45 [22:12:41]1206 (1) - 0 [22:12:41]OFD Sender: Remove packet 82273 [22:12:41]ProducePacketName [22:12:41]name=ofd_packets/00082273 [22:12:41]NVStorageDeleteData [22:12:41]Read from MH i2c: 01 [22:12:41]MH_I2C_Read... [22:12:41]*** Stop cut motor [22:12:41]*** Cut end [22:12:41]Read from MH i2c: 01 07 00 [22:12:41]MH_I2C_Read... [22:12:41]Read from MH i2c: 01 07 00 B7 02 00 00 00 00 00 FF 0F CE [22:12:41]process_action close_receipt done [22:12:41]requested_data is exist [22:12:41]produce_requested_data [22:12:41]requested_item fm.sn is exist - process it [22:12:41]wFMCommunicate request_size=4 [22:12:41]MH_SAM_APDU [22:12:41]CAPDU: 80 11 00 00 [22:12:41]Write to MH i2c: E2 08 00 B8 02 80 11 00 00 00 00 00 00 34 [22:12:41]Write i2c OK [22:12:41]MH_I2C_Read... [22:12:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:41]Read from MH i2c: E2 [22:12:41]MH_I2C_Read... [22:12:41]Read from MH i2c: E2 17 00 [22:12:41]MH_I2C_Read... [22:12:41]Read from MH i2c: E2 17 00 B8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 86 [22:12:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [22:12:41]wFMCommunicate OK [22:12:41]requested_item fd.num is exist - process it [22:12:41]SAM_PROTO_GetFieldsCounters [22:12:41]wFMCommunicate request_size=4 [22:12:41]MH_SAM_APDU [22:12:41]CAPDU: 80 13 00 00 [22:12:41]Write to MH i2c: E2 08 00 B9 02 80 13 00 00 00 00 00 00 37 [22:12:41]Write i2c OK [22:12:41]MH_I2C_Read... [22:12:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:12:41]Read from MH i2c: E2 [22:12:41]MH_I2C_Read... [22:12:41]Read from MH i2c: E2 62 00 [22:12:41]MH_I2C_Read... [22:12:41]Read from MH i2c: E2 62 00 B9 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 61 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [22:12:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 61 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:12:41]wFMCommunicate OK [22:12:41]SAM_PROTO_GetFieldsCounters done [22:12:41]requested_item shift.num is exist - process it [22:12:41]requested_item shift.opened is exist - process it [22:12:41]req_shift_opened [22:12:41]FM_GetShiftState [22:12:41]SAM_PROTO_GetShiftState [22:12:41]wFMCommunicate request_size=4 [22:12:41]MH_SAM_APDU [22:12:41]CAPDU: 80 13 01 00 [22:12:41]Write to MH i2c: E2 08 00 BA 02 80 13 01 00 00 00 00 00 39 [22:12:41]Write i2c OK [22:12:41]MH_I2C_Read... [22:12:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:42]Read from MH i2c: E2 [22:12:42]MH_I2C_Read... [22:12:42]Read from MH i2c: E2 0E 00 [22:12:42]MH_I2C_Read... [22:12:42]Read from MH i2c: E2 0E 00 BA 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 41 [22:12:42]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [22:12:42]wFMCommunicate OK [22:12:42]SAM_PROTO_GetShiftState done [22:12:42]FM_GetShiftState done [22:12:42]req_shift_opened done [22:12:42]requested_item shift.open_date is exist - process it [22:12:42]req_shift_open_date [22:12:42]req_shift_open_date done [22:12:42]produce_requested_data done [22:12:42]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82273,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [22:12:42]process_action_free close_receipt [22:12:42]json_value_free [22:12:42]json_value_free done [22:12:42]process_json_proto returns [22:12:42]Send response to host [22:12:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82273,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [22:12:42]free response buf [22:12:42]execute_script done [22:12:42]execute_script returns [22:12:42]free content buf [22:12:42]Sock 7.Close socket [22:12:42]Sock 7.Thread stoped [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:54]recv_with_timeout no data received [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:43]OFD Sender: No OFD packet to send [22:20:48]OFD Sender: No OFD packet to send [22:20:53]OFD Sender: No OFD packet to send [22:20:58]OFD Sender: No OFD packet to send [22:21:03]OFD Sender: No OFD packet to send [22:21:08]OFD Sender: No OFD packet to send [22:21:13]OFD Sender: No OFD packet to send [22:21:18]OFD Sender: No OFD packet to send [22:21:23]OFD Sender: No OFD packet to send [22:21:28]OFD Sender: No OFD packet to send [22:21:33]OFD Sender: No OFD packet to send [22:21:38]OFD Sender: No OFD packet to send [22:21:43]OFD Sender: No OFD packet to send [22:21:48]OFD Sender: No OFD packet to send [22:21:53]OFD Sender: No OFD packet to send [22:21:58]OFD Sender: No OFD packet to send [22:22:03]OFD Sender: No OFD packet to send [22:22:08]OFD Sender: No OFD packet to send [22:22:13]OFD Sender: No OFD packet to send [22:22:18]OFD Sender: No OFD packet to send [22:22:23]OFD Sender: No OFD packet to send [22:22:28]OFD Sender: No OFD packet to send [22:22:33]OFD Sender: No OFD packet to send [22:22:38]OFD Sender: No OFD packet to send [22:22:43]OFD Sender: No OFD packet to send [22:22:48]OFD Sender: No OFD packet to send [22:22:53]OFD Sender: No OFD packet to send [22:22:58]OFD Sender: No OFD packet to send [22:23:03]OFD Sender: No OFD packet to send [22:23:08]OFD Sender: No OFD packet to send [22:23:13]OFD Sender: No OFD packet to send [22:23:18]OFD Sender: No OFD packet to send [22:23:23]OFD Sender: No OFD packet to send [22:23:28]OFD Sender: No OFD packet to send [22:23:33]OFD Sender: No OFD packet to send [22:23:38]OFD Sender: No OFD packet to send [22:23:43]OFD Sender: No OFD packet to send [22:23:48]OFD Sender: No OFD packet to send [22:23:53]OFD Sender: No OFD packet to send [22:23:58]OFD Sender: No OFD packet to send [22:24:03]OFD Sender: No OFD packet to send [22:24:08]OFD Sender: No OFD packet to send [22:24:13]OFD Sender: No OFD packet to send [22:24:18]OFD Sender: No OFD packet to send [22:24:23]OFD Sender: No OFD packet to send [22:24:28]OFD Sender: No OFD packet to send [22:24:33]OFD Sender: No OFD packet to send [22:24:38]OFD Sender: No OFD packet to send [22:24:43]OFD Sender: No OFD packet to send [22:24:48]OFD Sender: No OFD packet to send [22:24:53]OFD Sender: No OFD packet to send [22:24:58]OFD Sender: No OFD packet to send [22:25:03]OFD Sender: No OFD packet to send [22:25:08]OFD Sender: No OFD packet to send [22:25:13]OFD Sender: No OFD packet to send [22:25:18]OFD Sender: No OFD packet to send [22:25:23]OFD Sender: No OFD packet to send [22:25:28]OFD Sender: No OFD packet to send [22:25:33]OFD Sender: No OFD packet to send [22:25:38]OFD Sender: No OFD packet to send [22:25:43]OFD Sender: No OFD packet to send [22:25:48]OFD Sender: No OFD packet to send [22:25:53]OFD Sender: No OFD packet to send [22:25:58]OFD Sender: No OFD packet to send [22:26:03]OFD Sender: No OFD packet to send [22:26:08]OFD Sender: No OFD packet to send [22:26:13]OFD Sender: No OFD packet to send [22:26:18]OFD Sender: No OFD packet to send [22:26:23]OFD Sender: No OFD packet to send [22:26:28]OFD Sender: No OFD packet to send [22:26:33]OFD Sender: No OFD packet to send [22:26:38]OFD Sender: No OFD packet to send [22:26:43]OFD Sender: No OFD packet to send [22:26:48]OFD Sender: No OFD packet to send [22:26:53]OFD Sender: No OFD packet to send [22:26:58]OFD Sender: No OFD packet to send [22:27:03]OFD Sender: No OFD packet to send [22:27:08]OFD Sender: No OFD packet to send [22:27:13]OFD Sender: No OFD packet to send [22:27:18]OFD Sender: No OFD packet to send [22:27:23]OFD Sender: No OFD packet to send [22:27:28]OFD Sender: No OFD packet to send [22:27:33]OFD Sender: No OFD packet to send [22:27:38]OFD Sender: No OFD packet to send [22:27:38]recv_with_timeout no data received [22:27:43]OFD Sender: No OFD packet to send [22:27:48]OFD Sender: No OFD packet to send [22:27:53]OFD Sender: No OFD packet to send [22:27:58]OFD Sender: No OFD packet to send [22:28:03]OFD Sender: No OFD packet to send [22:28:08]OFD Sender: No OFD packet to send [22:28:13]OFD Sender: No OFD packet to send [22:28:18]OFD Sender: No OFD packet to send [22:28:23]OFD Sender: No OFD packet to send [22:28:28]OFD Sender: No OFD packet to send [22:28:33]OFD Sender: No OFD packet to send [22:28:38]OFD Sender: No OFD packet to send [22:28:43]OFD Sender: No OFD packet to send [22:28:48]OFD Sender: No OFD packet to send [22:28:53]OFD Sender: No OFD packet to send [22:28:58]OFD Sender: No OFD packet to send [22:29:03]OFD Sender: No OFD packet to send [22:29:08]OFD Sender: No OFD packet to send [22:29:13]OFD Sender: No OFD packet to send [22:29:18]OFD Sender: No OFD packet to send [22:29:23]OFD Sender: No OFD packet to send [22:29:28]OFD Sender: No OFD packet to send [22:29:33]OFD Sender: No OFD packet to send [22:29:38]OFD Sender: No OFD packet to send [22:29:43]OFD Sender: No OFD packet to send [22:29:48]OFD Sender: No OFD packet to send [22:29:53]OFD Sender: No OFD packet to send [22:29:58]OFD Sender: No OFD packet to send [22:30:03]OFD Sender: No OFD packet to send [22:30:08]OFD Sender: No OFD packet to send [22:30:13]OFD Sender: No OFD packet to send [22:30:18]OFD Sender: No OFD packet to send [22:30:23]OFD Sender: No OFD packet to send [22:30:28]OFD Sender: No OFD packet to send [22:30:33]OFD Sender: No OFD packet to send [22:30:38]OFD Sender: No OFD packet to send [22:30:43]OFD Sender: No OFD packet to send [22:30:48]OFD Sender: No OFD packet to send [22:30:53]OFD Sender: No OFD packet to send [22:30:58]OFD Sender: No OFD packet to send [22:31:04]OFD Sender: No OFD packet to send [22:31:09]OFD Sender: No OFD packet to send [22:31:14]OFD Sender: No OFD packet to send [22:31:19]OFD Sender: No OFD packet to send [22:31:24]OFD Sender: No OFD packet to send [22:31:29]OFD Sender: No OFD packet to send [22:31:34]OFD Sender: No OFD packet to send [22:31:39]OFD Sender: No OFD packet to send [22:31:44]OFD Sender: No OFD packet to send [22:31:49]OFD Sender: No OFD packet to send [22:31:54]OFD Sender: No OFD packet to send [22:31:59]OFD Sender: No OFD packet to send [22:32:04]OFD Sender: No OFD packet to send [22:32:09]OFD Sender: No OFD packet to send [22:32:14]OFD Sender: No OFD packet to send [22:32:19]OFD Sender: No OFD packet to send [22:32:24]OFD Sender: No OFD packet to send [22:32:29]OFD Sender: No OFD packet to send [22:32:34]OFD Sender: No OFD packet to send [22:32:39]OFD Sender: No OFD packet to send [22:32:44]OFD Sender: No OFD packet to send [22:32:49]OFD Sender: No OFD packet to send [22:32:54]OFD Sender: No OFD packet to send [22:32:59]OFD Sender: No OFD packet to send [22:33:04]OFD Sender: No OFD packet to send [22:33:09]OFD Sender: No OFD packet to send [22:33:14]OFD Sender: No OFD packet to send [22:33:19]OFD Sender: No OFD packet to send [22:33:24]OFD Sender: No OFD packet to send [22:33:29]OFD Sender: No OFD packet to send [22:33:34]OFD Sender: No OFD packet to send [22:33:39]OFD Sender: No OFD packet to send [22:33:44]OFD Sender: No OFD packet to send [22:33:49]OFD Sender: No OFD packet to send [22:33:54]OFD Sender: No OFD packet to send [22:33:59]OFD Sender: No OFD packet to send [22:34:04]OFD Sender: No OFD packet to send [22:34:09]OFD Sender: No OFD packet to send [22:34:14]OFD Sender: No OFD packet to send [22:34:19]OFD Sender: No OFD packet to send [22:34:24]OFD Sender: No OFD packet to send [22:34:29]OFD Sender: No OFD packet to send [22:34:34]OFD Sender: No OFD packet to send [22:34:39]OFD Sender: No OFD packet to send [22:34:44]OFD Sender: No OFD packet to send [22:34:49]OFD Sender: No OFD packet to send [22:34:54]OFD Sender: No OFD packet to send [22:34:59]OFD Sender: No OFD packet to send [22:35:04]OFD Sender: No OFD packet to send [22:35:09]OFD Sender: No OFD packet to send [22:35:10]recv_with_timeout no data received [22:35:14]OFD Sender: No OFD packet to send [22:35:19]OFD Sender: No OFD packet to send [22:35:24]OFD Sender: No OFD packet to send [22:35:29]OFD Sender: No OFD packet to send [22:35:34]OFD Sender: No OFD packet to send [22:35:39]OFD Sender: No OFD packet to send [22:35:44]OFD Sender: No OFD packet to send [22:35:49]OFD Sender: No OFD packet to send [22:35:54]OFD Sender: No OFD packet to send [22:35:59]OFD Sender: No OFD packet to send [22:36:04]OFD Sender: No OFD packet to send [22:36:09]OFD Sender: No OFD packet to send [22:36:14]OFD Sender: No OFD packet to send [22:36:19]OFD Sender: No OFD packet to send [22:36:24]OFD Sender: No OFD packet to send [22:36:29]OFD Sender: No OFD packet to send [22:36:34]OFD Sender: No OFD packet to send [22:36:39]OFD Sender: No OFD packet to send [22:36:44]OFD Sender: No OFD packet to send [22:36:49]OFD Sender: No OFD packet to send [22:36:54]OFD Sender: No OFD packet to send [22:36:59]OFD Sender: No OFD packet to send [22:37:04]OFD Sender: No OFD packet to send [22:37:09]OFD Sender: No OFD packet to send [22:37:14]OFD Sender: No OFD packet to send [22:37:19]OFD Sender: No OFD packet to send [22:37:24]OFD Sender: No OFD packet to send [22:37:29]OFD Sender: No OFD packet to send [22:37:34]OFD Sender: No OFD packet to send [22:37:39]OFD Sender: No OFD packet to send [22:37:44]OFD Sender: No OFD packet to send [22:37:49]OFD Sender: No OFD packet to send [22:37:54]OFD Sender: No OFD packet to send [22:37:59]OFD Sender: No OFD packet to send [22:38:04]OFD Sender: No OFD packet to send [22:38:09]OFD Sender: No OFD packet to send [22:38:14]OFD Sender: No OFD packet to send [22:38:19]OFD Sender: No OFD packet to send [22:38:24]OFD Sender: No OFD packet to send [22:38:29]OFD Sender: No OFD packet to send [22:38:34]OFD Sender: No OFD packet to send [22:38:39]OFD Sender: No OFD packet to send [22:38:44]OFD Sender: No OFD packet to send [22:38:49]OFD Sender: No OFD packet to send [22:38:54]OFD Sender: No OFD packet to send [22:38:59]OFD Sender: No OFD packet to send [22:39:04]OFD Sender: No OFD packet to send [22:39:09]OFD Sender: No OFD packet to send [22:39:14]OFD Sender: No OFD packet to send [22:39:19]OFD Sender: No OFD packet to send [22:39:24]OFD Sender: No OFD packet to send [22:39:29]OFD Sender: No OFD packet to send [22:39:34]OFD Sender: No OFD packet to send [22:39:39]OFD Sender: No OFD packet to send [22:39:44]OFD Sender: No OFD packet to send [22:39:49]OFD Sender: No OFD packet to send [22:39:54]OFD Sender: No OFD packet to send [22:39:59]OFD Sender: No OFD packet to send [22:40:04]OFD Sender: No OFD packet to send [22:40:09]OFD Sender: No OFD packet to send [22:40:14]OFD Sender: No OFD packet to send [22:40:19]OFD Sender: No OFD packet to send [22:40:24]OFD Sender: No OFD packet to send [22:40:29]OFD Sender: No OFD packet to send [22:40:34]OFD Sender: No OFD packet to send [22:40:39]OFD Sender: No OFD packet to send [22:40:44]OFD Sender: No OFD packet to send [22:40:49]OFD Sender: No OFD packet to send [22:40:54]OFD Sender: No OFD packet to send [22:40:59]OFD Sender: No OFD packet to send [22:41:04]OFD Sender: No OFD packet to send [22:41:09]OFD Sender: No OFD packet to send [22:41:14]OFD Sender: No OFD packet to send [22:41:20]OFD Sender: No OFD packet to send [22:41:25]OFD Sender: No OFD packet to send [22:41:30]OFD Sender: No OFD packet to send [22:41:35]OFD Sender: No OFD packet to send [22:41:40]OFD Sender: No OFD packet to send [22:41:45]OFD Sender: No OFD packet to send [22:41:50]OFD Sender: No OFD packet to send [22:41:55]OFD Sender: No OFD packet to send [22:42:00]OFD Sender: No OFD packet to send [22:42:05]OFD Sender: No OFD packet to send [22:42:10]OFD Sender: No OFD packet to send [22:42:15]OFD Sender: No OFD packet to send [22:42:20]OFD Sender: No OFD packet to send [22:42:25]OFD Sender: No OFD packet to send [22:42:30]OFD Sender: No OFD packet to send [22:42:35]OFD Sender: No OFD packet to send [22:42:40]OFD Sender: No OFD packet to send [22:42:45]OFD Sender: No OFD packet to send [22:42:50]OFD Sender: No OFD packet to send [22:42:55]OFD Sender: No OFD packet to send [22:43:00]OFD Sender: No OFD packet to send [22:43:05]OFD Sender: No OFD packet to send [22:43:10]OFD Sender: No OFD packet to send [22:43:15]OFD Sender: No OFD packet to send [22:43:20]OFD Sender: No OFD packet to send [22:43:25]OFD Sender: No OFD packet to send [22:43: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:25]OFD Sender: No OFD packet to send [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:30]OFD Sender: No OFD packet to send [22:51:35]OFD Sender: No OFD packet to send [22:51:40]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:19]accept exits with 9 [22:52:19]New connection [22:52:19]New thread 3067129188 created [22:52:19]Thread 3067272548 joined [22:52:19]Waiting for new connection... [22:52:19] Sock 9.Parse request [22:52:19]Sock 9.Check first char [22:52:19]Sock 9.First char is OK [22:52:19]request: POST /json_proto HTTP/1.0 [22:52:19]Method: POST [22:52:19]URL: /json_proto [22:52:19]Method is POST - this is cgi request [22:52:19]url: /json_proto [22:52:19]query_string will be loaded in cgi processing [22:52:19]execute_cgi json_proto POST (null) [22:52:19]execute_cgi path=json_proto method=POST [22:52:19]POST find Content-Length [22:52:19]Host: 172.17.44.67:8080 [22:52:19]Content-Length: 754 [22:52:19]Content-Type: application/json [22:52:19] [22:52:19]POST finish read [22:52:19]Found Content-Length = 754 [22:52:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100657", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:52:19]execute_script... [22: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 : (1)918776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100657", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:52:19]POST & json_proto [22:52:19]process_json_proto [22:52:19]json parsed OK: [22:52:19]protocol is kg_v1.0 [22:52:19]action value=close_receipt [22:52:19]process_action close_receipt [22:52:19]cmd_close_receipt [22:52:19]MH_GetDate [22:52:19]Write to MH i2c: F0 00 00 BB 02 AC [22:52:19]Write i2c OK [22:52:19]MH_I2C_Read... [22:52:19]Read from MH i2c: F0 [22:52:19]MH_I2C_Read... [22:52:19]Read from MH i2c: F0 09 00 [22:52:19]MH_I2C_Read... [22:52:19]Read from MH i2c: F0 09 00 BB 02 00 24 95 11 67 F1 C7 6B 64 6D [22:52:19]GetLastDocTimeStamp 1729203159 [22:52:19]current date 1729205540 [22:52:19]FM_GetShiftState [22:52:19]SAM_PROTO_GetShiftState [22:52:19]wFMCommunicate request_size=4 [22:52:19]MH_SAM_APDU [22:52:19]CAPDU: 80 13 01 00 [22:52:19]Write to MH i2c: E2 08 00 BC 02 80 13 01 00 00 00 00 00 3B [22:52:19]Write i2c OK [22:52:19]MH_I2C_Read... [22:52:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:52:19]Read from MH i2c: E2 [22:52:19]MH_I2C_Read... [22:52:19]Read from MH i2c: E2 0E 00 [22:52:19]MH_I2C_Read... [22:52:19]Read from MH i2c: E2 0E 00 BC 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 43 [22:52:19]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [22:52:19]wFMCommunicate OK [22:52:19]SAM_PROTO_GetShiftState done [22:52:19]FM_GetShiftState done [22:52:19]opened in 1729125927 [22:52:19]opened+sec_in_day 1729212327 [22:52:19]quantity*price = 0 [22:52:19]sum+1 = 1 [22:52:19]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 203 17.10.2024 23:11 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82277 ФПД: 254158461454798 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T231156&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82277&fm=254158461454798&tin=02508201610067®Number=0000000000091680&sum=60000 [23:11:57]StoreToDocumentArchive [23:11:57]shift 525 fd 82277 [23:11:57]OFD Sender: Processing packet 82276 [packets to send 254, broken 253] [23:11:57]ProducePacketName [23:11:57]name=ofd_packets/00082276 [23:11:57]save to /storage/0525/doc_00082277 [23:11:57]save last doc name /storage/0525/doc_00082277 to /storage/kkm_last_doc_name [23:11:57]OFD Sender: To server: pG, [23:11:57]CommunicateWithHost lk.salyk.kg:30040 [23:11:57]ConnectInit lk.salyk.kg [23:11:57]save OK [23:11:57]Clear old archive folders... [23:11:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:11:57]tlvbuf is 00C09DA0 [23:11:57]SAM_PROTO_ClearQueue [23:11:57]wFMCommunicate request_size=4 [23:11:57]MH_SAM_APDU [23:11:57]CAPDU: 80 09 00 00 [23:11:57]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [23:11:57]Write i2c OK [23:11:57]MH_I2C_Read... [23:11:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:11:57]Read from MH i2c: E2 [23:11:57]MH_I2C_Read... [23:11:57]Read from MH i2c: E2 03 00 [23:11:57]MH_I2C_Read... [23:11:57]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [23:11:57]RAPDU: 90 00 [23:11:57]wFMCommunicate OK [23:11:57]SAM_PROTO_ClearQueue done [23:11:57]KKMCreateOFDPacket [23:11:57]OFDProtocolAddRootSTLVToBuf [23:11:57]FM_MakeSignedData [23:11:57]FM_MakeSignedData [23:11:57]SAM_PROTO_SignData [23:11:57]wFMCommunicate request_size=4 [23:11:57]MH_SAM_APDU [23:11:57]CAPDU: 80 0D 01 02 [23:11:57]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [23:11:57]Write i2c OK [23:11:57]MH_I2C_Read... [23:11:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:11:57]Read from MH i2c: E2 [23:11:57]MH_I2C_Read... [23:11:57]Read from MH i2c: E2 03 00 [23:11:57]MH_I2C_Read... [23:11:57]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [23:11:57]RAPDU: 90 00 [23:11:57]wFMCommunicate OK [23:11:57]wFMCommunicate request_size=255 [23:11:57]MH_SAM_APDU [23:11:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 BC 99 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 65 41 01 00 35 04 06 00 E7 [23:11:57]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 BC 99 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 65 41 01 00 35 04 06 00 E7 00 00 43 [23:11:57]Write i2c OK [23:11:57]MH_I2C_Read... [23:11:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:11:57]Read from MH i2c: E2 [23:11:57]MH_I2C_Read... [23:11:57]Read from MH i2c: E2 03 00 [23:11:57]MH_I2C_Read... [23:11:57]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [23:11:57]RAPDU: 90 00 [23:11:57]wFMCommunicate OK [23:11:57]wFMCommunicate request_size=10 [23:11:57]MH_SAM_APDU [23:11:57]CAPDU: 80 0D 02 02 05 27 E0 CF C9 CE [23:11:57]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 27 E0 CF C9 CE 00 00 1F [23:11:57]Write i2c OK [23:11:57]MH_I2C_Read... [23:11:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:11:57]Read from MH i2c: E2 [23:11:57]MH_I2C_Read... [23:11:57]Read from MH i2c: E2 03 00 [23:11:57]MH_I2C_Read... [23:11:57]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [23:11:57]RAPDU: 90 00 [23:11:57]wFMCommunicate OK [23:11:57]wFMCommunicate request_size=4 [23:11:57]MH_SAM_APDU [23:11:57]CAPDU: 80 0D 03 02 [23:11:57]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [23:11:57]Write i2c OK [23:11:57]MH_I2C_Read... [23:11:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:11:58]Read from MH i2c: E2 [23:11:58]MH_I2C_Read... [23:11:58]Read from MH i2c: E2 0B 00 [23:11:58]MH_I2C_Read... [23:11:58]Read from MH i2c: E2 0B 00 2F 00 00 0D 31 0D C0 55 71 00 65 90 00 E1 [23:11:58]RAPDU: 0D 31 0D C0 55 71 00 65 90 00 [23:11:58]wFMCommunicate OK [23:11:58]SAM_PROTO_SignData done [23:11:58]FM_MakeSignedData done [23:11:58]CreateOFDProtocolMessage [23:11:58]wFMCommunicate request_size=4 [23:11:58]MH_SAM_APDU [23:11:58]CAPDU: 80 11 00 00 [23:11:58]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [23:11:58]Write i2c OK [23:11:58]MH_I2C_Read... [23:11:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:11:58]Read from MH i2c: E2 [23:11:58]MH_I2C_Read... [23:11:58]Read from MH i2c: E2 17 00 [23:11:58]MH_I2C_Read... [23:11:58]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 FC [23:11:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [23:11:58]wFMCommunicate OK [23:11:58]CreateOFDProtocolMessage done [23:11:58]OFDSenderStorePacket 82277 [23:11:58]StoreOFDPacket docnum=82277 [23:11:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 B0 93 07 01 25 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 BC 99 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 65 41 01 00 35 04 06 00 E7 27 E0 CF C9 CE 0D 31 0D C0 55 71 00 65 [23:11:58]CheckFolder [23:11:58]dirname=/storage/ofd_packets [23:11:58]CheckFolder done [23:11:58]ProducePacketName [23:11:58]name=ofd_packets/00082277 [23:11:58]NVStorageSaveData ofd_packets/00082277 [23:11:58]File name is /storage/ofd_packets/00082277 [23:11:58]Write 301 bytes [23:11:58]NVStorageSaveData done [23:11:58]OFDSenderStorePacket done [23:11:58]KKMCreateOFDPacket done [23:11:58]NVStorageSaveData kkm_last_timestamp [23:11:58]File name is /storage/kkm_last_timestamp [23:11:58]Write 4 bytes [23:11:58]NVStorageSaveData done [23:11:58]ExternCall_PrintAddStr [23:11:58]wPrintStart [23:11:58]Write to MH i2c: 01 00 00 31 00 31 [23:11:58]Write i2c OK [23:11:58]MH_I2C_Read... [23:11:58]Read from MH i2c: 01 [23:11:58]MH_I2C_Read... [23:11:58]Read from MH i2c: 01 07 00 [23:11:58]MH_I2C_Read... [23:11:58]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [23:11:58]RasterBufferAndPrint [23:11:58]line Счет N : (1)918778 [23:11:58]line ИНН: 02508201610067 [23:11:58]line Контрольно-Кассовый Чек [23:11:58]line ПРОДАЖА [23:11:58]line ТРК (МРК, ГНК) : 11 [23:11:58]line Товар: 2710124130 [23:11:58]line Аи-92-К-4 [23:11:58]line 8.970 * 66.90 [23:11:58]line = 600.09 [23:11:58]line НДС 12% НСП 1% [23:11:58]line > о реализуемом товаре [23:11:58]line ОКРУГЛЕНИЕ: -0.09 [23:11:58]line ИТОГО: 600.00 [23:11:58]line Внесено: 600.00 [23:11:58]line СДАЧА: 0.00 [23:11:58]line НСП 1% : 5.31 [23:11:58]line НДС 12% : 63.73 [23:11:58]line Наличными: 600.00 [23:11:58]line Безнал.: 0.00 [23:11:58]line Место: АЗС № 114 "Партнер Нефть" [23:11:58]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [23:11:58]line СНО: Общий режим [23:11:58]line Чек 203 17.10.2024 23:11 [23:11:58]line Смена: 525 ФФД: 1.0 [23:11:58]line ЗНМ: 0300000086 [23:11:58]line РНМ: 0000000000091680 [23:11:58]line Версия ККМ: 001 [23:11:58]line ФМ: 0000000000871843 [23:11:58]line ФД: 82277 [23:11:58]line ФПД: 254158461454798 [23:12:15]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:12:15]Read from MH i2c: E2 [23:12:15]MH_I2C_Read... [23:12:15]Read from MH i2c: E2 03 00 [23:12:15]MH_I2C_Read... [23:12:15]Read from MH i2c: E2 03 00 71 00 00 90 00 E5 [23:12:15]RAPDU: 90 00 [23:12:15]wFMCommunicate OK [23:12:15]wFMCommunicate request_size=13 [23:12:15]MH_SAM_APDU [23:12:15]CAPDU: 80 15 02 00 08 F4 03 04 00 CE 99 11 67 [23:12:15]Write to MH i2c: E2 10 00 72 00 80 15 02 00 08 00 F4 03 04 00 CE 99 11 67 00 00 DC [23:12:15]Write i2c OK [23:12:15]MH_I2C_Read... [23:12:15]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:12:15]Read from MH i2c: E2 [23:12:15]MH_I2C_Read... [23:12:15]Read from MH i2c: E2 03 00 [23:12:15]MH_I2C_Read... [23:12:15]Read from MH i2c: E2 03 00 72 00 00 90 00 E6 [23:12:15]RAPDU: 90 00 [23:12:15]wFMCommunicate OK [23:12:15]wFMCommunicate request_size=25 [23:12:15]MH_SAM_APDU [23:12:15]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 [23:12:15]Write to MH i2c: E2 1C 00 73 00 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 00 00 54 [23:12:15]Write i2c OK [23:12:15]MH_I2C_Read... [23:12:15]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:12:15]Read from MH i2c: E2 [23:12:15]MH_I2C_Read... [23:12:15]Read from MH i2c: E2 03 00 [23:12:15]MH_I2C_Read... [23:12:15]Read from MH i2c: E2 03 00 73 00 00 90 00 E7 [23:12:15]RAPDU: 90 00 [23:12:15]wFMCommunicate OK [23:12:15]wFMCommunicate request_size=4 [23:12:15]MH_SAM_APDU [23:12:15]CAPDU: 80 15 03 00 [23:12:15]Write to MH i2c: E2 08 00 74 00 80 15 03 00 00 00 00 00 F5 [23:12:15]Write i2c OK [23:12:15]MH_I2C_Read... [23:12:15]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [23:12:15]Read from MH i2c: E2 [23:12:15]MH_I2C_Read... [23:12:15]Read from MH i2c: E2 40 00 [23:12:15]MH_I2C_Read... [23:12:15]Read from MH i2c: E2 40 00 74 00 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 66 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 CC 00 00 00 35 04 06 00 08 2F 6E B9 8D D7 90 00 2F [23:12:15]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 66 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 CC 00 00 00 35 04 06 00 08 2F 6E B9 8D D7 90 00 [23:12:15]wFMCommunicate OK [23:12:15]SAM_PROTO_ProcessDocument answer len = 59 [23:12:15]SAM_PROTO_ProcessDocument done [23:12:15]SetTLVBufToDocument [23:12:15]Processing tag 1209 (04B9) [23:12:15]Malloc new data [23:12:15]Processing tag 1041 (0411) [23:12:15]Processing tag 1040 (0410) [23:12:15]Malloc new data [23:12:15]Processing tag 1038 (040E) [23:12:15]Malloc new data [23:12:15]Processing tag 1042 (0412) [23:12:15]Malloc new data [23:12:15]Processing tag 1077 (0435) [23:12:15]Malloc new data [23:12:15]SetTLVBufToDocument err=0 [23:12:15]KKMLoadAndSignReceiptData store KKM data [23:12:15]KKMLoadAndSignReceiptData err=0 [23:12:15]wFMCommunicate request_size=4 [23:12:15]MH_SAM_APDU [23:12:15]CAPDU: 80 11 00 00 [23:12:15]Write to MH i2c: E2 08 00 75 00 80 11 00 00 00 00 00 00 EF [23:12:15]OFD Sender: No OFD packet to send [23:12:15]Write i2c OK [23:12:15]MH_I2C_Read... [23:12:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:12:15]Read from MH i2c: E2 [23:12:15]MH_I2C_Read... [23:12:15]Read from MH i2c: E2 17 00 [23:12:15]MH_I2C_Read... [23:12:15]Read from MH i2c: E2 17 00 75 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 41 [23:12:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [23:12:15]wFMCommunicate OK [23:12:15]Счет N : (1)918779 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 11 Товар: 2710124130 Аи-92-К-4 2.060 * 0.00 = 0.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 204 17.10.2024 23:12 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30086575 ФМ: 0000000000871843 ФД: 82278 ФПД: 8999814139351 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T231214&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82278&fm=8999814139351&tin=02508201610067®Number=0000000000091680&sum=0 [23:12:15]StoreToDocumentArchive [23:12:15]shift 525 fd 82278 [23:12:15]save to /storage/0525/doc_00082278 [23:12:15]save last doc name /storage/0525/doc_00082278 to /storage/kkm_last_doc_name [23:12:15]save OK [23:12:15]Clear old archive folders... [23:12:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:12:15]tlvbuf is 00C017B0 [23:12:15]SAM_PROTO_ClearQueue [23:12:15]wFMCommunicate request_size=4 [23:12:15]MH_SAM_APDU [23:12:15]CAPDU: 80 09 00 00 [23:12:15]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [23:12:15]Write i2c OK [23:12:15]MH_I2C_Read... [23:12:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:12:15]Read from MH i2c: E2 [23:12:15]MH_I2C_Read... [23:12:15]Read from MH i2c: E2 03 00 [23:12:15]MH_I2C_Read... [23:12:15]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [23:12:15]RAPDU: 90 00 [23:12:15]wFMCommunicate OK [23:12:15]SAM_PROTO_ClearQueue done [23:12:15]KKMCreateOFDPacket [23:12:15]OFDProtocolAddRootSTLVToBuf [23:12:15]FM_MakeSignedData [23:12:15]FM_MakeSignedData [23:12:15]SAM_PROTO_SignData [23:12:15]wFMCommunicate request_size=4 [23:12:15]MH_SAM_APDU [23:12:15]CAPDU: 80 0D 01 02 [23:12:15]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [23:12:15]Write i2c OK [23:12:15]MH_I2C_Read... [23:12:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:12:15]Read from MH i2c: E2 [23:12:15]MH_I2C_Read... [23:12:15]Read from MH i2c: E2 03 00 [23:12:15]MH_I2C_Read... [23:12:15]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [23:12:15]RAPDU: 90 00 [23:12:15]wFMCommunicate OK [23:12:15]wFMCommunicate request_size=255 [23:12:15]MH_SAM_APDU [23:12:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 08 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 CE 99 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 66 41 01 00 35 04 06 00 08 [23:12:16]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 08 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 CE 99 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 66 41 01 00 35 04 06 00 08 00 00 75 [23:12:16]Write i2c OK [23:12:16]MH_I2C_Read... [23:12:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:12:16]Read from MH i2c: E2 [23:12:16]MH_I2C_Read... [23:12:16]Read from MH i2c: E2 03 00 [23:12:16]MH_I2C_Read... [23:12:16]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [23:12:16]RAPDU: 90 00 [23:12:16]wFMCommunicate OK [23:12:16]wFMCommunicate request_size=10 [23:12:16]MH_SAM_APDU [23:12:16]CAPDU: 80 0D 02 02 05 2F 6E B9 8D D7 [23:12:16]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 2F 6E B9 8D D7 00 00 B7 [23:12:16]Write i2c OK [23:12:16]MH_I2C_Read... [23:12:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:12:16]Read from MH i2c: E2 [23:12:16]MH_I2C_Read... [23:12:16]Read from MH i2c: E2 03 00 [23:12:16]MH_I2C_Read... [23:12:16]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [23:12:16]RAPDU: 90 00 [23:12:16]wFMCommunicate OK [23:12:16]wFMCommunicate request_size=4 [23:12:16]MH_SAM_APDU [23:12:16]CAPDU: 80 0D 03 02 [23:12:16]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [23:12:16]Write i2c OK [23:12:16]MH_I2C_Read... [23:12:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:12:16]Read from MH i2c: E2 [23:12:16]MH_I2C_Read... [23:12:16]Read from MH i2c: E2 0B 00 [23:12:16]MH_I2C_Read... [23:12:16]Read from MH i2c: E2 0B 00 7A 00 00 30 F6 90 50 18 18 FB 48 90 00 6F [23:12:16]RAPDU: 30 F6 90 50 18 18 FB 48 90 00 [23:12:16]wFMCommunicate OK [23:12:16]SAM_PROTO_SignData done [23:12:16]FM_MakeSignedData done [23:12:16]CreateOFDProtocolMessage [23:12:16]wFMCommunicate request_size=4 [23:12:16]MH_SAM_APDU [23:12:16]CAPDU: 80 11 00 00 [23:12:16]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [23:12:16]Write i2c OK [23:12:16]MH_I2C_Read... [23:12:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:12:16]Read from MH i2c: E2 [23:12:16]MH_I2C_Read... [23:12:16]Read from MH i2c: E2 17 00 [23:12:16]MH_I2C_Read... [23:12:16]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 47 [23:12:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [23:12:16]wFMCommunicate OK [23:12:16]CreateOFDProtocolMessage done [23:12:16]OFDSenderStorePacket 82278 [23:12:16]StoreOFDPacket docnum=82278 [23:12:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 E7 DC 07 01 A1 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 08 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 CE 99 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 66 41 01 00 35 04 06 00 08 2F 6E B9 8D D7 30 F6 90 50 18 18 FB 48 [23:12:16]CheckFolder [23:12:16]dirname=/storage/ofd_packets [23:12:16]CheckFolder done [23:12:16]ProducePacketName [23:12:16]name=ofd_packets/00082278 [23:12:16]NVStorageSaveData ofd_packets/00082278 [23:12:16]File name is /storage/ofd_packets/00082278 [23:12:16]Write 301 bytes [23:12:16]NVStorageSaveData done [23:12:16]OFDSenderStorePacket done [23:12:16]KKMCreateOFDPacket done [23:12:16]NVStorageSaveData kkm_last_timestamp [23:12:16]File name is /storage/kkm_last_timestamp [23:12:16]Write 4 bytes [23:12:16]NVStorageSaveData done [23:12:16]ExternCall_PrintAddStr [23:12:16]wPrintStart [23:12:16]Write to MH i2c: 01 00 00 7C 00 7C [23:12:16]Write i2c OK [23:12:16]MH_I2C_Read... [23:12:16]Read from MH i2c: 01 [23:12:16]MH_I2C_Read... [23:12:16]Read from MH i2c: 01 07 00 [23:12:16]MH_I2C_Read... [23:12:16]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [23:12:16]RasterBufferAndPrint [23:12:16]line Счет N : (1)918779 [23:12:16]line ИНН: 02508201610067 [23:12:16]line Контрольно-Кассовый Чек [23:12:16]line ПРОДАЖА [23:12:16]line ТРК (МРК, ГНК) : 11 [23:12:16]line Товар: 2710124130 [23:12:16]line Аи-92-К-4 [23:12:16]line 2.060 * 0.00 [23:12:16]line = 0.00 [23:12:16]line НДС 12% НСП 1% [23:12:16]line > о реализуемом товаре [23:12:16]line ИТОГО: 0.00 [23:12:16]line НСП 1% : 0.00 [23:12:16]line НДС 12% : 0.00 [23:12:16]line Наличными: 0.00 [23:12:16]line Безнал.: 0.00 [23:12:16]line Место: АЗС № 114 "Партнер Нефть" [23:12:16]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [23:12:16]line СНО: Общий режим [23:12:16]line Чек 204 17.10.2024 23:12 [23:12:16]line Смена: 525 ФФД: 1.0 [23:12:16]line ЗНМ: 0300000086 [23:12:16]line РНМ: 0000000000091680 [23:12:16]line Версия ККМ: 001 [23:12:16]line Талоны: ТК ГПНА Online [23:12:16]line 30086575 [23:12:16]line ФМ: 0000000000871843 [23:12:16]line ФД: 82278 [23:12:16]line ФПД: 8999814139351 [23:12:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T231214&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82278&fm=8999814139351&tin=02508201610067®Number=0000000000091680&sum=0 [23:12:16]OFD Sender: Processing packet 82278 [packets to send 254, broken 253] [23:12:16]ProducePacketName [23:12:16]name=ofd_packets/00082278 [23:12:16]OFD Sender: To server: pG, [23:12:16]CommunicateWithHost lk.salyk.kg:30040 [23:12:16]ConnectInit lk.salyk.kg [23:12:16]written 0, free lines is 4095 [23:12:17]Write to MH i2c: 01 00 00 A6 00 A6 [23:12:17]Write i2c OK [23:12:17]MH_I2C_Read... [23:12:17]Read from MH i2c: 01 [23:12:17]MH_I2C_Read... [23:12:17]Read from MH i2c: 01 07 00 [23:12:17]MH_I2C_Read... [23:12:17]Read from MH i2c: 01 07 00 A6 00 00 00 00 00 00 E4 0C 9D [23:12:17]RasterBufferAndPrint [23:12:17]line [23:12:17]line [23:12:17]line [23:12:17]line [23:12:17]line [23:12:17]written 0, free lines is 3324 [23:12:17]MH_Cut [23:12:17]Write to MH i2c: D1 01 00 AD 00 01 7F [23:12:17]Write i2c OK [23:12:17]MH_I2C_Read... [23:12:17]Read from MH i2c: D1 [23:12:17]MH_I2C_Read... [23:12:17]Read from MH i2c: D1 01 00 [23:12:17]MH_I2C_Read... [23:12:17]Read from MH i2c: D1 01 00 AD 00 00 7E [23:12:17]Write to MH i2c: 01 00 00 AE 00 AE [23:12:17]Write i2c OK [23:12:17]MH_I2C_Read... [23:12:17]*** Cut start [23:12:17]*** Partial cut [23:12:17]*** CUTSNS_PIN = 1 [23:12:17]*** CUTSNS_PIN = 0 [23:12:18]*** Brake cut motor [23:12:18]Connected sock=11 [23:12:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 E7 DC 07 01 A1 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 08 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 CE 99 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 *** Stop cut motor [23:12:18]30 *** Cut end [23:12:18]30 Read from MH i2c: 30 01 30 [23:12:18]30 MH_I2C_Read... [23:12:18]30 Read from MH i2c: 30 01 39 07 31 00 36 [23:12:18]38 MH_I2C_Read... [23:12:18]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [23:12:18]process_action close_receipt done [23:12:18]requested_data is exist [23:12:18]produce_requested_data [23:12:18]requested_item fm.sn is exist - process it [23:12:18]wFMCommunicate request_size=4 [23:12:18]MH_SAM_APDU [23:12:18]30 CAPDU: 11 04 80 10 11 00 00 30 00 30 [23:12:18]30 Write to MH i2c: 30 E2 30 08 30 00 30 30 AF 30 00 30 38 80 37 11 31 00 38 00 34 00 33 00 10 00 04 00 04 29 00 [23:12:18]Write i2c OK [23:12:18]MH_I2C_Read... [23:12:18]66 41 01 00 35 04 06 00 08 2F 6E B9 8D D7 30 F6 90 50 18 18 FB 48 [23:12:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:12:18]Read from MH i2c: E2 [23:12:18]MH_I2C_Read... [23:12:18]Read from MH i2c: E2 17 00 [23:12:18]MH_I2C_Read... [23:12:18]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 7B [23:12:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [23:12:18]wFMCommunicate OK [23:12:18]requested_item fd.num is exist - process it [23:12:18]SAM_PROTO_GetFieldsCounters [23:12:18]wFMCommunicate request_size=4 [23:12:18]MH_SAM_APDU [23:12:18]CAPDU: 80 13 00 00 [23:12:18]Write to MH i2c: E2 08 00 B0 00 80 13 00 00 00 00 00 00 2C [23:12:18]Write i2c OK [23:12:18]MH_I2C_Read... [23:12:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:12:18]Read from MH i2c: E2 [23:12:18]MH_I2C_Read... [23:12:18]Read from MH i2c: E2 62 00 [23:12:18]MH_I2C_Read... [23:12:18]Read from MH i2c: E2 62 00 B0 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 66 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [23:12:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 66 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:12:18]wFMCommunicate OK [23:12:18]SAM_PROTO_GetFieldsCounters done [23:12:18]requested_item shift.num is exist - process it [23:12:18]requested_item shift.opened is exist - process it [23:12:18]req_shift_opened [23:12:18]FM_GetShiftState [23:12:18]SAM_PROTO_GetShiftState [23:12:18]wFMCommunicate request_size=4 [23:12:18]MH_SAM_APDU [23:12:18]CAPDU: 80 13 01 00 [23:12:18]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [23:12:18]Write i2c OK [23:12:18]MH_I2C_Read... [23:12:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:12:19]Read from MH i2c: E2 [23:12:19]MH_I2C_Read... [23:12:19]Read from MH i2c: E2 0E 00 [23:12:19]MH_I2C_Read... [23:12:19]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 36 [23:12:19]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [23:12:19]wFMCommunicate OK [23:12:19]SAM_PROTO_GetShiftState done [23:12:19]FM_GetShiftState done [23:12:19]req_shift_opened done [23:12:19]requested_item shift.open_date is exist - process it [23:12:19]req_shift_open_date [23:12:19]req_shift_open_date done [23:12:19]produce_requested_data done [23:12:19]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82278,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [23:12:19]process_action_free close_receipt [23:12:19]json_value_free [23:12:19]json_value_free done [23:12:19]process_json_proto returns [23:12:19]Send response to host [23:12:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82278,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [23:12:19]free response buf [23:12:19]execute_script done [23:12:19]execute_script returns [23:12:19]free content buf [23:12:19]Sock 6.Close socket [23:12:19]Sock 6.Thread stoped [23:12:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 F9 DC 47 00 23 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 66 41 01 00 F4 03 04 00 0D 3F 11 67 B6 04 01 00 00 22 42 6D 78 CE 37 EE 9F [23:12:19]CommunicateWithHost err = 0 [23:12:19]CheckOFDResponse [23:12:19]1017 (14) - 77093643461234 [23:12:19]1041 (16) - 0000000000871843 [23:12:19]1040 (4) - 82278 [23:12:19]1012 (4) - 17.10.2024 16:45 [23:12:19]1206 (1) - 0 [23:12:19]OFD Sender: Remove packet 82278 [23:12:19]ProducePacketName [23:12:19]name=ofd_packets/00082278 [23:12:19]NVStorageDeleteData [23:12:20]OFD Sender: No OFD packet to send [23:12:21]recv_with_timeout no data received [23:12:25]OFD Sender: No OFD packet to send [23:12:30]OFD Sender: No OFD packet to send [23:12:33]recv_with_timeout no data received [23:12:35]OFD Sender: No OFD packet to send [23:12:40]OFD Sender: No OFD packet to send [23:12:45]OFD Sender: No OFD packet to send [23:12:50]recv_with_timeout no data received [23:12:50]OFD Sender: No OFD packet to send [23:12:55]OFD Sender: No OFD packet to send [23:13:00]OFD Sender: No OFD packet to send [23:13:05]OFD Sender: No OFD packet to send [23:13:10]OFD Sender: No OFD packet to send [23:13:15]OFD Sender: No OFD packet to send [23:13:18]recv_with_timeout no data received [23:13:20]OFD Sender: No OFD packet to send [23:13:25]OFD Sender: No OFD packet to send [23:13:29]recv_with_timeout no data received [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:42]recv_with_timeout no data received [23:13:45]OFD Sender: No OFD packet to send [23:13:50]OFD Sender: No OFD packet to send [23:13:52]recv_with_timeout no data received [23:13:55]OFD Sender: No OFD packet to send [23:14:00]OFD Sender: No OFD packet to send [23:14:03]recv_with_timeout no data received [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:42]recv_with_timeout no data received [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:52]accept exits with 10 [23:15:52]New connection [23:15:52]New thread 3067506020 created [23:15:52]Thread 3067362660 joined [23:15:52]Waiting for new connection... [23:15:52] Sock 10.Parse request [23:15:52]Sock 10.Check first char [23:15:52]Sock 10.First char is OK [23:15:52]request: POST /json_proto HTTP/1.0 [23:15:52]Method: POST [23:15:52]URL: /json_proto [23:15:52]Method is POST - this is cgi request [23:15:52]url: /json_proto [23:15:52]query_string will be loaded in cgi processing [23:15:52]execute_cgi json_proto POST (null) [23:15:52]execute_cgi path=json_proto method=POST [23:15:52]POST find Content-Length [23:15:52]Host: 172.17.44.67:8080 [23:15:52]Content-Length: 682 [23:15:52]Content-Type: application/json [23:15:52] [23:15:52]POST finish read [23:15:52]Found Content-Length = 682 [23:15:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:15:52]execute_script... [23:15:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:15:52]POST & json_proto [23:15:52]process_json_proto [23:15:52]json parsed OK: [23:15:52]protocol is kg_v1.0 [23:15:52]action value=close_receipt [23:15:52]process_action close_receipt [23:15:52]cmd_close_receipt [23:15:52]MH_GetDate [23:15:52]Write to MH i2c: F0 00 00 B2 00 A1 [23:15:52]Write i2c OK [23:15:52]MH_I2C_Read... [23:15:52]Read from MH i2c: F0 [23:15:52]MH_I2C_Read... [23:15:52]Read from MH i2c: F0 09 00 [23:15:52]MH_I2C_Read... [23:15:52]Read from MH i2c: F0 09 00 B2 00 00 A8 9A 11 67 F1 C7 6B 64 EB [23:15:52]GetLastDocTimeStamp 1729206734 [23:15:52]current date 1729206952 [23:15:52]FM_GetShiftState [23:15:52]SAM_PROTO_GetShiftState [23:15:52]wFMCommunicate request_size=4 [23:15:52]MH_SAM_APDU [23:15:52]CAPDU: 80 13 01 00 [23:15:52]Write to MH i2c: E2 08 00 B3 00 80 13 01 00 00 00 00 00 30 [23:15:52]Write i2c OK [23:15:52]MH_I2C_Read... [23:15:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:15:52]Read from MH i2c: E2 [23:15:52]MH_I2C_Read... [23:15:52]Read from MH i2c: E2 0E 00 [23:15:52]MH_I2C_Read... [23:15:52]Read from MH i2c: E2 0E 00 B3 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 38 [23:15:52]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [23:15:52]wFMCommunicate OK [23:15:52]SAM_PROTO_GetShiftState done [23:15:52]FM_GetShiftState done [23:15:52]opened in 1729125927 [23:15:52]opened+sec_in_day 1729212327 [23:15:52]quantity*price = 250054 [23:15:52]sum+1 = 250055 [23:15:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 205 17.10.2024 23:15 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82279 ФПД: 232532744255705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T231552&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82279&fm=232532744255705&tin=02508201610067®Number=0000000000091680&sum=250000 [23:15:53]StoreToDocumentArchive [23:15:53]shift 525 fd 82279 [23:15:53]save to /storage/0525/doc_00082279 [23:15:53]save last doc name /storage/0525/doc_00082279 to /storage/kkm_last_doc_name [23:15:53]save OK [23:15:53]Clear old archive folders... [23:15:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:15:53]tlvbuf is 00BFA6B0 [23:15:53]SAM_PROTO_ClearQueue [23:15:53]wFMCommunicate request_size=4 [23:15:53]MH_SAM_APDU [23:15:53]CAPDU: 80 09 00 00 [23:15:53]Write to MH i2c: E2 08 00 C0 00 80 09 00 00 00 00 00 00 32 [23:15:53]Write i2c OK [23:15:53]MH_I2C_Read... [23:15:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:15:53]Read from MH i2c: E2 [23:15:53]MH_I2C_Read... [23:15:53]Read from MH i2c: E2 03 00 [23:15:53]MH_I2C_Read... [23:15:53]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [23:15:53]RAPDU: 90 00 [23:15:53]wFMCommunicate OK [23:15:53]SAM_PROTO_ClearQueue done [23:15:53]KKMCreateOFDPacket [23:15:53]OFDProtocolAddRootSTLVToBuf [23:15:53]FM_MakeSignedData [23:15:53]FM_MakeSignedData [23:15:53]SAM_PROTO_SignData [23:15:53]wFMCommunicate request_size=4 [23:15:53]MH_SAM_APDU [23:15:53]CAPDU: 80 0D 01 02 [23:15:53]Write to MH i2c: E2 08 00 C1 00 80 0D 01 02 00 00 00 00 3A [23:15:53]Write i2c OK [23:15:53]MH_I2C_Read... [23:15:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:15:53]Read from MH i2c: E2 [23:15:53]MH_I2C_Read... [23:15:53]Read from MH i2c: E2 03 00 [23:15:53]MH_I2C_Read... [23:15:53]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [23:15:53]RAPDU: 90 00 [23:15:53]wFMCommunicate OK [23:15:53]wFMCommunicate request_size=255 [23:15:53]MH_SAM_APDU [23:15:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 A8 9A 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 67 41 01 00 35 04 06 00 D3 [23:15:53]Write to MH i2c: E2 02 01 C2 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 A8 9A 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 67 41 01 00 35 04 06 00 D3 00 00 C4 [23:15:53]Write i2c OK [23:15:53]MH_I2C_Read... [23:15:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:15:53]Read from MH i2c: E2 [23:15:53]MH_I2C_Read... [23:15:53]Read from MH i2c: E2 03 00 [23:15:53]MH_I2C_Read... [23:15:53]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [23:15:53]RAPDU: 90 00 [23:15:53]wFMCommunicate OK [23:15:53]wFMCommunicate request_size=10 [23:15:53]MH_SAM_APDU [23:15:53]CAPDU: 80 0D 02 02 05 7C BF 9E B8 D9 [23:15:53]Write to MH i2c: E2 0D 00 C3 00 80 0D 02 02 05 00 7C BF 9E B8 D9 00 00 B1 [23:15:53]Write i2c OK [23:15:53]MH_I2C_Read... [23:15:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:15:53]Read from MH i2c: E2 [23:15:53]MH_I2C_Read... [23:15:53]Read from MH i2c: E2 03 00 [23:15:53]MH_I2C_Read... [23:15:53]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [23:15:53]RAPDU: 90 00 [23:15:53]wFMCommunicate OK [23:15:53]wFMCommunicate request_size=4 [23:15:53]MH_SAM_APDU [23:15:53]CAPDU: 80 0D 03 02 [23:15:53]Write to MH i2c: E2 08 00 C4 00 80 0D 03 02 00 00 00 00 3F [23:15:53]Write i2c OK [23:15:53]MH_I2C_Read... [23:15:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:15:53]Read from MH i2c: E2 [23:15:53]MH_I2C_Read... [23:15:53]Read from MH i2c: E2 0B 00 [23:15:53]MH_I2C_Read... [23:15:53]Read from MH i2c: E2 0B 00 C4 00 00 8C 01 4C EB 21 C1 73 4B 90 00 A4 [23:15:53]RAPDU: 8C 01 4C EB 21 C1 73 4B 90 00 [23:15:53]wFMCommunicate OK [23:15:53]SAM_PROTO_SignData done [23:15:53]FM_MakeSignedData done [23:15:53]CreateOFDProtocolMessage [23:15:53]wFMCommunicate request_size=4 [23:15:53]MH_SAM_APDU [23:15:53]CAPDU: 80 11 00 00 [23:15:53]Write to MH i2c: E2 08 00 C5 00 80 11 00 00 00 00 00 00 3F [23:15:53]Write i2c OK [23:15:53]MH_I2C_Read... [23:15:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:15:53]Read from MH i2c: E2 [23:15:53]MH_I2C_Read... [23:15:53]Read from MH i2c: E2 17 00 [23:15:53]MH_I2C_Read... [23:15:53]Read from MH i2c: E2 17 00 C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 91 [23:15:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [23:15:53]wFMCommunicate OK [23:15:53]CreateOFDProtocolMessage done [23:15:53]OFDSenderStorePacket 82279 [23:15:53]StoreOFDPacket docnum=82279 [23:15:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 1E 49 07 01 E2 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 A8 9A 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 67 41 01 00 35 04 06 00 D3 7C BF 9E B8 D9 8C 01 4C EB 21 C1 73 4B [23:15:53]CheckFolder [23:15:53]dirname=/storage/ofd_packets [23:15:53]CheckFolder done [23:15:53]ProducePacketName [23:15:53]name=ofd_packets/00082279 [23:15:53]NVStorageSaveData ofd_packets/00082279 [23:15:53]File name is /storage/ofd_packets/00082279 [23:15:53]Write 301 bytes [23:15:53]NVStorageSaveData done [23:15:53]OFDSenderStorePacket done [23:15:53]KKMCreateOFDPacket done [23:15:53]NVStorageSaveData kkm_last_timestamp [23:15:53]File name is /storage/kkm_last_timestamp [23:15:53]Write 4 bytes [23:15:53]NVStorageSaveData done [23:15:53]ExternCall_PrintAddStr [23:15:53]wPrintStart [23:15:53]Write to MH i2c: 01 00 00 C6 00 C6 [23:15:53]Write i2c OK [23:15:53]MH_I2C_Read... [23:15:53]Read from MH i2c: 01 [23:15:53]MH_I2C_Read... [23:15:53]Read from MH i2c: 01 07 00 [23:15:53]MH_I2C_Read... [23:15:53]Read from MH i2c: 01 07 00 C6 00 00 00 00 00 00 FF 0F DB [23:15:53]RasterBufferAndPrint [23:15:53]line Счет N : (1)918780 [23:15:53]line ИНН: 02508201610067 [23:15:53]line Контрольно-Кассовый Чек [23:15:53]line ПРОДАЖА [23:15:53]line ТРК (МРК, ГНК) : 12 [23:15:53]line Товар: 2710124500 [23:15:53]line Аи-95-К-5 [23:15:53]line 33.700 * 74.20 [23:15:53]line = 2500.54 [23:15:53]line НДС 12% НСП 1% [23:15:53]line > о реализуемом товаре [23:15:53]line ОКРУГЛЕНИЕ: -0.54 [23:15:53]line ИТОГО: 2500.00 [23:15:53]line Внесено: 2500.00 [23:15:53]line СДАЧА: 0.00 [23:15:53]line НСП 1% : 22.13 [23:15:53]line НДС 12% : 265.54 [23:15:53]line Наличными: 2500.00 [23:15:53]line Безнал.: 0.00 [23:15:53]line Место: АЗС № 114 "Партнер Нефть" [23:15:53]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [23:15:53]line СНО: Общий режим [23:15:53]line Чек 205 17.10.2024 23:15 [23:15:53]line Смена: 525 ФФД: 1.0 [23:15:53]line ЗНМ: 0300000086 [23:15:53]line РНМ: 0000000000091680 [23:15:53]line Версия ККМ: 001 [23:15:53]line ФМ: 0000000000871843 [23:15:53]line ФД: 82279 [23:15:53]line ФПД: 232532744255705 [23:15:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T231552&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82279&fm=232532744255705&tin=02508201610067®Number=0000000000091680&sum=250000 [23:15:54]OFD Sender: Processing packet 82279 [packets to send 254, broken 253] [23:15:54]ProducePacketName [23:15:54]name=ofd_packets/00082279 [23:15:54]OFD Sender: To server: pG, [23:15:54]CommunicateWithHost lk.salyk.kg:30040 [23:15:54]ConnectInit lk.salyk.kg [23:15:54]written 0, free lines is 4095 [23:15:54]Write to MH i2c: 01 00 00 F1 00 F1 [23:15:54]Write i2c OK [23:15:54]MH_I2C_Read... [23:15:54]Read from MH i2c: 01 [23:15:54]MH_I2C_Read... [23:15:54]Read from MH i2c: 01 07 00 [23:15:54]MH_I2C_Read... [23:15:54]Read from MH i2c: 01 07 00 F1 00 00 00 00 00 00 D7 0C DB [23:15:54]RasterBufferAndPrint [23:15:54]line [23:15:54]line [23:15:54]line [23:15:54]line [23:15:54]line [23:15:54]written 0, free lines is 3290 [23:15:54]MH_Cut [23:15:54]Write to MH i2c: D1 01 00 F8 00 01 CA [23:15:54]Write i2c OK [23:15:54]MH_I2C_Read... [23:15:54]Read from MH i2c: D1 [23:15:54]MH_I2C_Read... [23:15:54]Read from MH i2c: D1 01 00 [23:15:54]MH_I2C_Read... [23:15:54]Read from MH i2c: D1 01 00 F8 00 00 C9 [23:15:54]Write to MH i2c: 01 00 00 F9 00 F9 [23:15:54]Write i2c OK [23:15:54]MH_I2C_Read... [23:15:55]*** Cut start [23:15:55]*** Partial cut [23:15:55]*** CUTSNS_PIN = 1 [23:15:55]*** CUTSNS_PIN = 0 [23:15:55]*** Brake cut motor [23:15:55]Read from MH i2c: 01 [23:15:55]MH_I2C_Read... [23:15:55]*** Stop cut motor [23:15:55]*** Cut end [23:15:55]Read from MH i2c: 01 07 00 [23:15:55]MH_I2C_Read... [23:15:55]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 FF 0F 0E [23:15:55]process_action close_receipt done [23:15:55]requested_data is exist [23:15:55]produce_requested_data [23:15:55]requested_item fm.sn is exist - process it [23:15:55]wFMCommunicate request_size=4 [23:15:55]MH_SAM_APDU [23:15:55]CAPDU: 80 11 00 00 [23:15:55]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [23:15:55]Write i2c OK [23:15:55]MH_I2C_Read... [23:15:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:15:56]Read from MH i2c: E2 [23:15:56]MH_I2C_Read... [23:15:56]Read from MH i2c: E2 17 00 [23:15:56]MH_I2C_Read... [23:15:56]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C6 [23:15:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [23:15:56]wFMCommunicate OK [23:15:56]requested_item fd.num is exist - process it [23:15:56]SAM_PROTO_GetFieldsCounters [23:15:56]wFMCommunicate request_size=4 [23:15:56]MH_SAM_APDU [23:15:56]CAPDU: 80 13 00 00 [23:15:56]Write to MH i2c: E2 08 00 FB 00 80 13 00 00 00 00 00 00 77 [23:15:56]Write i2c OK [23:15:56]MH_I2C_Read... [23:15:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:15:56]Read from MH i2c: E2 [23:15:56]MH_I2C_Read... [23:15:56]Read from MH i2c: E2 62 00 [23:15:56]MH_I2C_Read... [23:15:56]Read from MH i2c: E2 62 00 FB 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 67 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [23:15:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 67 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:15:56]wFMCommunicate OK [23:15:56]SAM_PROTO_GetFieldsCounters done [23:15:56]requested_item shift.num is exist - process it [23:15:56]requested_item shift.opened is exist - process it [23:15:56]req_shift_opened [23:15:56]FM_GetShiftState [23:15:56]SAM_PROTO_GetShiftState [23:15:56]wFMCommunicate request_size=4 [23:15:56]MH_SAM_APDU [23:15:56]CAPDU: 80 13 01 00 [23:15:56]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [23:15:56]Write i2c OK [23:15:56]MH_I2C_Read... [23:15:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:15:56]Read from MH i2c: E2 [23:15:56]MH_I2C_Read... [23:15:56]Read from MH i2c: E2 0E 00 [23:15:56]MH_I2C_Read... [23:15:56]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 81 [23:15:56]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [23:15:56]wFMCommunicate OK [23:15:56]SAM_PROTO_GetShiftState done [23:15:56]FM_GetShiftState done [23:15:56]req_shift_opened done [23:15:56]requested_item shift.open_date is exist - process it [23:15:56]req_shift_open_date [23:15:56]req_shift_open_date done [23:15:56]produce_requested_data done [23:15:56]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82279,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [23:15:56]process_action_free close_receipt [23:15:56]json_value_free [23:15:56]json_value_free done [23:15:56]process_json_proto returns [23:15:56]Send response to host [23:15:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82279,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [23:15:56]free response buf [23:15:56]execute_script done [23:15:56]execute_script returns [23:15:56]free content buf [23:15:56]Sock 10.Close socket [23:15:56]Sock 10.Thread stoped [23:15:58]recv_with_timeout no data received [23:16:00]Connected sock=11 [23:16:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 1E 49 07 01 E2 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 A8 9A 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 67 41 01 00 35 04 06 00 D3 7C BF 9E B8 D9 8C 01 4C EB 21 C1 73 4B [23:16:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 30 5E 47 00 C7 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 67 41 01 00 F4 03 04 00 EC 3F 11 67 B6 04 01 00 00 24 9D 39 49 65 48 70 91 [23:16:02]CommunicateWithHost err = 0 [23:16:02]CheckOFDResponse [23:16:02]1017 (14) - 77093643461234 [23:16:02]1041 (16) - 0000000000871843 [23:16:02]1040 (4) - 82279 [23:16:02]1012 (4) - 17.10.2024 16:48 [23:16:02]1206 (1) - 0 [23:16:02]OFD Sender: Remove packet 82279 [23:16:02]ProducePacketName [23:16:02]name=ofd_packets/00082279 [23:16:02]NVStorageDeleteData [23:16:03]OFD Sender: No OFD packet to send [23:16:08]OFD Sender: No OFD packet to send [23:16:09]recv_with_timeout no data received [23:16:13]OFD Sender: No OFD packet to send [23:16:18]OFD Sender: No OFD packet to send [23:16:20]recv_with_timeout no data received [23:16:23]OFD Sender: No OFD packet to send [23:16:28]OFD Sender: No OFD packet to send [23:16:32]recv_with_timeout no data received [23:16:33]OFD Sender: No OFD packet to send [23:16:38]OFD Sender: No OFD packet to send [23:16:43]OFD Sender: No OFD packet to send [23:16:43]recv_with_timeout no data received [23:16:48]OFD Sender: No OFD packet to send [23:16:53]OFD Sender: No OFD packet to send [23:16:58]OFD Sender: No OFD packet to send [23:17:03]OFD Sender: No OFD packet to send [23:17:08]OFD Sender: No OFD packet to send [23:17:13]OFD Sender: No OFD packet to send [23:17:18]OFD Sender: No OFD packet to send [23:17:21]recv_with_timeout no data received [23:17:23]OFD Sender: No OFD packet to send [23:17:28]OFD Sender: No OFD packet to send [23:17:33]OFD Sender: No OFD packet to send [23:17:38]OFD Sender: No OFD packet to send [23:17:43]OFD Sender: No OFD packet to send [23:17:48]OFD Sender: No OFD packet to send [23:17:53]OFD Sender: No OFD packet to send [23:17:58]OFD Sender: No OFD packet to send [23:18:03]OFD Sender: No OFD packet to send [23:18:08]OFD Sender: No OFD packet to send [23:18:13]OFD Sender: No OFD packet to send [23:18:18]OFD Sender: No OFD packet to send [23:11:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T231156&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82277&fm=254158461454798&tin=02508201610067®Number=0000000000091680&sum=60000 [23:11:58]written 0, free lines is 4095 [23:11:58]Write to MH i2c: 01 00 00 5C 00 5C [23:11:58]Write i2c OK [23:11:58]MH_I2C_Read... [23:11:58]Read from MH i2c: 01 [23:11:58]MH_I2C_Read... [23:11:58]Read from MH i2c: 01 07 00 [23:11:58]MH_I2C_Read... [23:11:58]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 D8 0C 47 [23:11:58]RasterBufferAndPrint [23:11:58]line [23:11:58]line [23:11:58]line [23:11:58]line [23:11:58]line [23:11:58]written 0, free lines is 3313 [23:11:58]MH_Cut [23:11:58]Write to MH i2c: D1 01 00 63 00 01 35 [23:11:58]Write i2c OK [23:11:58]MH_I2C_Read... [23:11:58]Read from MH i2c: D1 [23:11:58]MH_I2C_Read... [23:11:58]Read from MH i2c: D1 01 00 [23:11:58]MH_I2C_Read... [23:11:58]Read from MH i2c: D1 01 00 63 00 00 34 [23:11:58]Write to MH i2c: 01 00 00 64 00 64 [23:11:58]Write i2c OK [23:11:58]MH_I2C_Read... [23:11:59]*** Cut start [23:11:59]*** Partial cut [23:11:59]*** CUTSNS_PIN = 1 [23:11:59]*** CUTSNS_PIN = 0 [23:11:59]Connected sock=10 [23:11:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 49 35 07 01 8D E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 *** Brake cut motor [23:11:59]04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 76 95 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 64 41 01 00 35 04 06 00 84 5B 18 2D 5B 0F 5A 5D 7D 50 AB 15 92 27 [23:12:00]Read from MH i2c: 01 [23:12:00]MH_I2C_Read... [23:12:00]*** Stop cut motor [23:12:00]*** Cut end [23:12:00]Read from MH i2c: 01 07 00 [23:12:00]MH_I2C_Read... [23:12:00]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [23:12:00]process_action close_receipt done [23:12:00]requested_data is exist [23:12:00]produce_requested_data [2[23:18:23]OFD Sender: No OFD packet to send [23:12:14]Method is POST - this is cgi request [23:12:14]url: /json_proto [23:12:14]query_string will be loaded in cgi processing [23:12:14]execute_cgi json_proto POST (null) [23:12:14]execute_cgi path=json_proto method=POST [23:12:14]POST find Content-Length [23:12:14]Host: 172.17.44.67:8080 [23:12:14]Content-Length: 753 [23:12:14]Content-Type: application/json [23:12:14] [23:12:14]POST finish read [23:12:14]Found Content-Length = 753 [23:12:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 2.060, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086575", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:12:1[23:18:28]OFD Sender: No OFD packet to send [23:18:33]OFD Sender: No OFD packet to send [23:18:38]OFD Sender: No OFD packet to send [23:18:40]recv_with_timeout no data received [23:18:43]OFD Sender: No OFD packet to send [23:18:48]OFD Sender: No OFD packet to send [23:18:53]OFD Sender: No OFD packet to send [23:18:58]OFD Sender: No OFD packet to send [23:19:03]OFD Sender: No OFD packet to send [23:19:08]OFD Sender: No OFD packet to send [23:19:13]recv_with_timeout no data received [23:19:13]OFD Sender: No OFD packet to send [23:19:18]OFD Sender: No OFD packet to send [23:19:23]OFD Sender: No OFD packet to send [23:19:28]OFD Sender: No OFD packet to send [23:19:33]OFD Sender: No OFD packet to send [23:19:38]OFD Sender: No OFD packet to send [23:19:43]OFD Sender: No OFD packet to send [23:19:48]OFD Sender: No OFD packet to send [23:19:53]OFD Sender: No OFD packet to send [23:19:58]OFD Sender: No OFD packet to send [23:20:03]OFD Sender: No OFD packet to send [23:20:08]OFD Sender: No OFD packet to send [23:20:13]OFD Sender: No OFD packet to send [23:20:18]OFD Sender: No OFD packet to send [23:20:23]OFD Sender: No OFD packet to send [23:20:28]OFD Sender: No OFD packet to send [23:20:33]OFD Sender: No OFD packet to send [23:20:38]OFD Sender: No OFD packet to send [23:20:43]OFD Sender: No OFD packet to send [23:20:48]OFD Sender: No OFD packet to send [23:20:53]OFD Sender: No OFD packet to send [23:20:58]OFD Sender: No OFD packet to send [23:21:03]OFD Sender: No OFD packet to send [23:21:08]OFD Sender: No OFD packet to send [23:21:13]OFD Sender: No OFD packet to send [23:21:18]OFD Sender: No OFD packet to send [23:21:23]OFD Sender: No OFD packet to send [23:21:28]OFD Sender: No OFD packet to send [23:21:33]OFD Sender: No OFD packet to send [23:21:38]OFD Sender: No OFD packet to send [23:21:43]OFD Sender: No OFD packet to send [23:21:48]OFD Sender: No OFD packet to send [23:21:53]OFD Sender: No OFD packet to send [23:21:58]OFD Sender: No OFD packet to send [23:22:03]OFD Sender: No OFD packet to send [23:22:08]OFD Sender: No OFD packet to send [23:22:13]OFD Sender: No OFD packet to send [23:22:19]OFD Sender: No OFD packet to send [23:22:24]OFD Sender: No OFD packet to send [23:22:25]recv_with_timeout no data received [23:22:29]OFD Sender: No OFD packet to send [23:22:34]OFD Sender: No OFD packet to send [23:22:39]OFD Sender: No OFD packet to send [23:22:44]OFD Sender: No OFD packet to send [23:22:49]OFD Sender: No OFD packet to send [23:22:54]OFD Sender: No OFD packet to send [23:22:59]OFD Sender: No OFD packet to send [23:23:04]OFD Sender: No OFD packet to send [23:23:09]OFD Sender: No OFD packet to send [23:23:14]OFD Sender: No OFD packet to send [23:23:19]OFD Sender: No OFD packet to send [23:23:24]OFD Sender: No OFD packet to send [23:23:29]OFD Sender: No OFD packet to send [23:23:34]OFD Sender: No OFD packet to send [23:23:39]OFD Sender: No OFD packet to send [23:23:44]OFD Sender: No OFD packet to send [23:23:49]OFD Sender: No OFD packet to send [23:23:54]OFD Sender: No OFD packet to send [23:23:59]OFD Sender: No OFD packet to send [23:24:04]OFD Sender: No OFD packet to send [23:24:09]OFD Sender: No OFD packet to send [23:24:14]OFD Sender: No OFD packet to send [23:24:19]OFD Sender: No OFD packet to send [23:24:24]OFD Sender: No OFD packet to send [23:24:29]OFD Sender: No OFD packet to send [23:24:34]OFD Sender: No OFD packet to send [23:24:39]OFD Sender: No OFD packet to send [23:24:44]OFD Sender: No OFD packet to send [23:24:49]OFD Sender: No OFD packet to send [23:24:54]OFD Sender: No OFD packet to send [23:24:59]OFD Sender: No OFD packet to send [23:25:04]OFD Sender: No OFD packet to send [23:25:09]OFD Sender: No OFD packet to send [23:25:14]OFD Sender: No OFD packet to send [23:25:19]OFD Sender: No OFD packet to send [23:25:24]OFD Sender: No OFD packet to send [23:25:29]OFD Sender: No OFD packet to send [23:25:34]OFD Sender: No OFD packet to send [23:25:39]OFD Sender: No OFD packet to send [23:25:44]OFD Sender: No OFD packet to send [23:25:49]OFD Sender: No OFD packet to send [23:25:54]OFD Sender: No OFD packet to send [23:25:59]OFD Sender: No OFD packet to send [23:26:04]OFD Sender: No OFD packet to send [23:26:09]OFD Sender: No OFD packet to send [23:26:14]OFD Sender: No OFD packet to send [23:26:19]OFD Sender: No OFD packet to send [23:26:24]OFD Sender: No OFD packet to send [23:26:29]OFD Sender: No OFD packet to send [23:26:34]OFD Sender: No OFD packet to send [23:26:39]OFD Sender: No OFD packet to send [23:26:44]OFD Sender: No OFD packet to send [23:26:49]OFD Sender: No OFD packet to send [23:26:54]OFD Sender: No OFD packet to send [23:26:59]OFD Sender: No OFD packet to send [23:27:04]OFD Sender: No OFD packet to send [23:27:09]OFD Sender: No OFD packet to send [23:27:14]OFD Sender: No OFD packet to send [23:27:19]OFD Sender: No OFD packet to send [23:27:24]OFD Sender: No OFD packet to send [23:27:29]OFD Sender: No OFD packet to send [23:27:34]OFD Sender: No OFD packet to send [23:27:39]OFD Sender: No OFD packet to send [23:27:44]OFD Sender: No OFD packet to send [23:27:49]OFD Sender: No OFD packet to send [23:27:54]OFD Sender: No OFD packet to send [23:27:59]OFD Sender: No OFD packet to send [23:28:04]OFD Sender: No OFD packet to send [23:28:09]OFD Sender: No OFD packet to send [23:28:14]OFD Sender: No OFD packet to send [23:28:19]OFD Sender: No OFD packet to send [23:28:24]OFD Sender: No OFD packet to send [23:28:29]OFD Sender: No OFD packet to send [23:28:34]OFD Sender: No OFD packet to send [23:28:39]OFD Sender: No OFD packet to send [23:28:44]OFD Sender: No OFD packet to send [23:28:49]OFD Sender: No OFD packet to send [23:28:54]OFD Sender: No OFD packet to send [23:28:59]OFD Sender: No OFD packet to send [23:29:04]OFD Sender: No OFD packet to send [23:29:09]OFD Sender: No OFD packet to send [23:29:14]OFD Sender: No OFD packet to send [23:29:19]OFD Sender: No OFD packet to send [23:29:24]OFD Sender: No OFD packet to send [23:29:29]OFD Sender: No OFD packet to send [23:29:34]OFD Sender: No OFD packet to send [23:29:39]OFD Sender: No OFD packet to send [23:29:44]OFD Sender: No OFD packet to send [23:29:49]OFD Sender: No OFD packet to send [23:29:54]OFD Sender: No OFD packet to send [23:29:59]OFD Sender: No OFD packet to send [23:30:04]OFD Sender: No OFD packet to send [23:30:09]OFD Sender: No OFD packet to send [23:30:14]OFD Sender: No OFD packet to send [23:30:19]OFD Sender: No OFD packet to send [23:30:24]OFD Sender: No OFD packet to send [23:30:29]OFD Sender: No OFD packet to send [23:30:34]OFD Sender: No OFD packet to send [23:30:39]OFD Sender: No OFD packet to send [23:30:44]OFD Sender: No OFD packet to send [23:30:49]OFD Sender: No OFD packet to send [23:30:54]OFD Sender: No OFD packet to send [23:30:59]OFD Sender: No OFD packet to send [23:31:04]OFD Sender: No OFD packet to send [23:31:09]OFD Sender: No OFD packet to send [23:31:14]OFD Sender: No OFD packet to send [23:31:19]OFD Sender: No OFD packet to send [23:31:24]OFD Sender: No OFD packet to send [23:31:29]OFD Sender: No OFD packet to send [23:31:34]OFD Sender: No OFD packet to send [23:31:39]OFD Sender: No OFD packet to send [23:31:44]OFD Sender: No OFD packet to send [23:31:49]OFD Sender: No OFD packet to send [23:31:54]OFD Sender: No OFD packet to send [23:31:59]OFD Sender: No OFD packet to send [23:32:04]OFD Sender: No OFD packet to send [23:32:09]OFD Sender: No OFD packet to send [23:32:14]OFD Sender: No OFD packet to send [23:32:19]OFD Sender: No OFD packet to send [23:32:24]OFD Sender: No OFD packet to send [23:32:29]OFD Sender: No OFD packet to send [23:32:34]OFD Sender: No OFD packet to send [23:32:40]OFD Sender: No OFD packet to send [23:32:45]OFD Sender: No OFD packet to send [23:32:50]OFD Sender: No OFD packet to send [23:32:55]OFD Sender: No OFD packet to send [23:33:00]OFD Sender: No OFD packet to send [23:33:05]OFD Sender: No OFD packet to send [23:33:10]OFD Sender: No OFD packet to send [23:33:15]OFD Sender: No OFD packet to send [23:33:20]OFD Sender: No OFD packet to send [23:33:25]OFD Sender: No OFD packet to send [23:33:29]accept exits with 7 [23:33:29]New connection [23:33:29]New thread 3067362660 created [23:33:29]Thread 3067506020 joined [23:33:29]Waiting for new connection... [23:33:29] Sock 7.Parse request [23:33:29]Sock 7.Check first char [23:33:29]Sock 7.First char is OK [23:33:29]request: POST /json_proto HTTP/1.0 [23:33:29]Method: POST [23:33:29]URL: /json_proto [23:33:29]Method is POST - this is cgi request [23:33:29]url: /json_proto [23:33:29]query_string will be loaded in cgi processing [23:33:29]execute_cgi json_proto POST (null) [23:33:29]execute_cgi path=json_proto method=POST [23:33:29]POST find Content-Length [23:33:29]Host: 172.17.44.67:8080 [23:33:29]Content-Length: 677 [23:33:29]Content-Type: application/json [23:33:29] [23:33:29]POST finish read [23:33:29]Found Content-Length = 677 [23:33:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:33:29]execute_script... [23:33:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:33:29]POST & json_proto [23:33:29]process_json_proto [23:33:29]json parsed OK: [23:33:29]protocol is kg_v1.0 [23:33:29]action value=close_receipt [23:33:29]process_action close_receipt [23:33:29]cmd_close_receipt [23:33:29]MH_GetDate [23:33:29]Write to MH i2c: F0 00 00 FD 00 EC [23:33:29]Write i2c OK [23:33:29]MH_I2C_Read... [23:33:29]Read from MH i2c: F0 [23:33:29]MH_I2C_Read... [23:33:29]Read from MH i2c: F0 09 00 [23:33:29]MH_I2C_Read... [23:33:29]Read from MH i2c: F0 09 00 FD 00 00 C9 9E 11 67 F1 C7 6B 64 5B [23:33:29]GetLastDocTimeStamp 1729206952 [23:33:29]current date 1729208009 [23:33:29]FM_GetShiftState [23:33:29]SAM_PROTO_GetShiftState [23:33:29]wFMCommunicate request_size=4 [23:33:29]MH_SAM_APDU [23:33:29]CAPDU: 80 13 01 00 [23:33:29]Write to MH i2c: E2 08 00 FE 00 80 13 01 00 00 00 00 00 7B [23:33:29]Write i2c OK [23:33:29]MH_I2C_Read... [23:33:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:33:29]Read from MH i2c: E2 [23:33:29]MH_I2C_Read... [23:33:29]Read from MH i2c: E2 0E 00 [23:33:29]MH_I2C_Read... [23:33:29]Read from MH i2c: E2 0E 00 FE 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 83 [23:33:29]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [23:33:29]wFMCommunicate OK [23:33:29]SAM_PROTO_GetShiftState done [23:33:29]FM_GetShiftState done [23:33:29]opened in 1729125927 [23:33:29]opened+sec_in_day 1729212327 [23:33:29]quantity*price = 40006 [23:33:29]sum+1 = 40007 [23:33:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 206 17.10.2024 23:33 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82280 ФПД: 229760944699595 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T233329&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82280&fm=229760944699595&tin=02508201610067®Number=0000000000091680&sum=40000 [23:33:30]StoreToDocumentArchive [23:33:30]shift 525 fd 82280 [23:33:30]save to /storage/0525/doc_00082280 [23:33:30]save last doc name /storage/0525/doc_00082280 to /storage/kkm_last_doc_name [23:33:30]save OK [23:33:30]Clear old archive folders... [23:33:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:33:30]tlvbuf is 00C0BD40 [23:33:30]SAM_PROTO_ClearQueue [23:33:30]wFMCommunicate request_size=4 [23:33:30]MH_SAM_APDU [23:33:30]CAPDU: 80 09 00 00 [23:33:30]Write to MH i2c: E2 08 00 0B 01 80 09 00 00 00 00 00 00 7E [23:33:30]Write i2c OK [23:33:30]MH_I2C_Read... [23:33:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:33:30]Read from MH i2c: E2 [23:33:30]MH_I2C_Read... [23:33:30]Read from MH i2c: E2 03 00 [23:33:30]MH_I2C_Read... [23:33:30]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [23:33:30]RAPDU: 90 00 [23:33:30]wFMCommunicate OK [23:33:30]SAM_PROTO_ClearQueue done [23:33:30]KKMCreateOFDPacket [23:33:30]OFDProtocolAddRootSTLVToBuf [23:33:30]FM_MakeSignedData [23:33:30]FM_MakeSignedData [23:33:30]SAM_PROTO_SignData [23:33:30]wFMCommunicate request_size=4 [23:33:30]MH_SAM_APDU [23:33:30]CAPDU: 80 0D 01 02 [23:33:30]Write to MH i2c: E2 08 00 0C 01 80 0D 01 02 00 00 00 00 86 [23:33:30]Write i2c OK [23:33:30]MH_I2C_Read... [23:33:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:33:30]Read from MH i2c: E2 [23:33:30]MH_I2C_Read... [23:33:30]Read from MH i2c: E2 03 00 [23:33:30]MH_I2C_Read... [23:33:30]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [23:33:30]RAPDU: 90 00 [23:33:30]wFMCommunicate OK [23:33:30]wFMCommunicate request_size=255 [23:33:30]MH_SAM_APDU [23:33:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 C9 9E 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 68 41 01 00 35 04 06 00 D0 [23:33:30]Write to MH i2c: E2 02 01 0D 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 C9 9E 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 68 41 01 00 35 04 06 00 D0 00 00 17 [23:33:30]Write i2c OK [23:33:30]MH_I2C_Read... [23:33:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:33:30]Read from MH i2c: E2 [23:33:30]MH_I2C_Read... [23:33:30]Read from MH i2c: E2 03 00 [23:33:30]MH_I2C_Read... [23:33:30]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [23:33:30]RAPDU: 90 00 [23:33:30]wFMCommunicate OK [23:33:30]wFMCommunicate request_size=10 [23:33:30]MH_SAM_APDU [23:33:30]CAPDU: 80 0D 02 02 05 F7 63 7D F8 CB [23:33:30]Write to MH i2c: E2 0D 00 0E 01 80 0D 02 02 05 00 F7 63 7D F8 CB 00 00 2D [23:33:30]Write i2c OK [23:33:30]MH_I2C_Read... [23:33:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:33:30]Read from MH i2c: E2 [23:33:30]MH_I2C_Read... [23:33:30]Read from MH i2c: E2 03 00 [23:33:30]MH_I2C_Read... [23:33:30]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [23:33:30]RAPDU: 90 00 [23:33:30]wFMCommunicate OK [23:33:30]wFMCommunicate request_size=4 [23:33:30]MH_SAM_APDU [23:33:30]CAPDU: 80 0D 03 02 [23:33:30]Write to MH i2c: E2 08 00 0F 01 80 0D 03 02 00 00 00 00 8B [23:33:30]Write i2c OK [23:33:30]MH_I2C_Read... [23:33:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:33:30]Read from MH i2c: E2 [23:33:30]MH_I2C_Read... [23:33:30]Read from MH i2c: E2 0B 00 [23:33:30]MH_I2C_Read... [23:33:30]Read from MH i2c: E2 0B 00 0F 01 00 8F 33 64 EC AA AE 75 DC 90 00 47 [23:33:30]RAPDU: 8F 33 64 EC AA AE 75 DC 90 00 [23:33:30]wFMCommunicate OK [23:33:30]SAM_PROTO_SignData done [23:33:30]FM_MakeSignedData done [23:33:30]CreateOFDProtocolMessage [23:33:30]wFMCommunicate request_size=4 [23:33:30]MH_SAM_APDU [23:33:30]CAPDU: 80 11 00 00 [23:33:30]Write to MH i2c: E2 08 00 10 01 80 11 00 00 00 00 00 00 8B [23:33:30]Write i2c OK [23:33:30]MH_I2C_Read... [23:33:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:33:30]Read from MH i2c: E2 [23:33:30]MH_I2C_Read... [23:33:30]Read from MH i2c: E2 17 00 [23:33:30]MH_I2C_Read... [23:33:30]Read from MH i2c: E2 17 00 10 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DD [23:33:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [23:33:30]wFMCommunicate OK [23:33:30]CreateOFDProtocolMessage done [23:33:30]OFDSenderStorePacket 82280 [23:33:30]StoreOFDPacket docnum=82280 [23:33:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 BA A3 07 01 D6 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 C9 9E 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 68 41 01 00 35 04 06 00 D0 F7 63 7D F8 CB 8F 33 64 EC AA AE 75 DC [23:33:30]CheckFolder [23:33:30]dirname=/storage/ofd_packets [23:33:30]CheckFolder done [23:33:30]ProducePacketName [23:33:30]name=ofd_packets/00082280 [23:33:30]NVStorageSaveData ofd_packets/00082280 [23:33:30]File name is /storage/ofd_packets/00082280 [23:33:30]Write 301 bytes [23:33:30]NVStorageSaveData done [23:33:30]OFDSenderStorePacket done [23:33:30]KKMCreateOFDPacket done [23:33:30]NVStorageSaveData kkm_last_timestamp [23:33:30]File name is /storage/kkm_last_timestamp [23:33:30]Write 4 bytes [23:33:30]NVStorageSaveData done [23:33:30]ExternCall_PrintAddStr [23:33:30]wPrintStart [23:33:30]Write to MH i2c: 01 00 00 11 01 12 [23:33:30]Write i2c OK [23:33:30]MH_I2C_Read... [23:33:30]Read from MH i2c: 01 [23:33:30]MH_I2C_Read... [23:33:30]Read from MH i2c: 01 07 00 [23:33:30]MH_I2C_Read... [23:33:30]Read from MH i2c: 01 07 00 11 01 00 00 00 00 00 FF 0F 27 [23:33:30]RasterBufferAndPrint [23:33:30]line Счет N : (1)918781 [23:33:30]line ИНН: 02508201610067 [23:33:30]line Контрольно-Кассовый Чек [23:33:30]line ПРОДАЖА [23:33:30]line ТРК (МРК, ГНК) : 11 [23:33:30]line Товар: 2710124130 [23:33:30]line Аи-92-К-4 [23:33:30]line 5.980 * 66.90 [23:33:30]line = 400.06 [23:33:30]line НДС 12% НСП 1% [23:33:30]line > о реализуемом товаре [23:33:30]line ОКРУГЛЕНИЕ: -0.06 [23:33:30]line ИТОГО: 400.00 [23:33:30]line Внесено: 400.00 [23:33:30]line СДАЧА: 0.00 [23:33:30]line НСП 1% : 3.54 [23:33:30]line НДС 12% : 42.48 [23:33:30]line Наличными: 400.00 [23:33:30]line Безнал.: 0.00 [23:33:30]line Место: АЗС № 114 "Партнер Нефть" [23:33:30]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [23:33:30]line СНО: Общий режим [23:33:30]line Чек 206 17.10.2024 23:33 [23:33:30]line Смена: 525 ФФД: 1.0 [23:33:30]line ЗНМ: 0300000086 [23:33:30]line РНМ: 0000000000091680 [23:33:30]line Версия ККМ: 001 [23:33:30]line ФМ: 0000000000871843 [23:33:30]line ФД: 82280 [23:33:30]line ФПД: 229760944699595 [23:33:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241017T233329&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82280&fm=229760944699595&tin=02508201610067®Number=0000000000091680&sum=40000 [23:33:31]OFD Sender: Processing packet 82280 [packets to send 254, broken 253] [23:33:31]ProducePacketName [23:33:31]name=ofd_packets/00082280 [23:33:31]OFD Sender: To server: pG, [23:33:31]CommunicateWithHost lk.salyk.kg:30040 [23:33:31]ConnectInit lk.salyk.kg [23:33:31]written 0, free lines is 4095 [23:33:31]Connected sock=11 [23:33:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 BA A3 07 01 D6 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 C9 9E 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 68 41 01 00 35 04 06 00 D0 F7 63 7D F8 CB 8F 33 64 EC AA AE 75 DC [23:33:31]Write to MH i2c: 01 00 00 3C 01 3D [23:33:31]Write i2c OK [23:33:31]MH_I2C_Read... [23:33:31]Read from MH i2c: 01 [23:33:31]MH_I2C_Read... [23:33:31]Read from MH i2c: 01 07 00 [23:33:31]MH_I2C_Read... [23:33:31]Read from MH i2c: 01 07 00 3C 01 00 00 00 00 00 D8 0C 28 [23:33:31]RasterBufferAndPrint [23:33:31]line [23:33:31]line [23:33:31]line [23:33:31]line [23:33:31]line [23:33:31]written 0, free lines is 3295 [23:33:31]MH_Cut [23:33:31]Write to MH i2c: D1 01 00 43 01 01 16 [23:33:31]Write i2c OK [23:33:31]MH_I2C_Read... [23:33:31]Read from MH i2c: D1 [23:33:31]MH_I2C_Read... [23:33:31]Read from MH i2c: D1 01 00 [23:33:31]MH_I2C_Read... [23:33:31]Read from MH i2c: D1 01 00 43 01 00 15 [23:33:31]Write to MH i2c: 01 00 00 44 01 45 [23:33:31]Write i2c OK [23:33:31]MH_I2C_Read... [23:33:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 D9 84 47 00 49 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 68 41 01 00 F4 03 04 00 06 44 11 67 B6 04 01 00 00 CD 6B C5 3F A8 2A E8 AD [23:33:31]CommunicateWithHost err = 0 [23:33:31]CheckOFDResponse [23:33:31]1017 (14) - 77093643461234 [23:33:31]1041 (16) - 0000000000871843 [23:33:31]1040 (4) - 82280 [23:33:31]1012 (4) - 17.10.2024 17:06 [23:33:31]1206 (1) - 0 [23:33:31]OFD Sender: Remove packet 82280 [23:33:31]ProducePacketName [23:33:31]name=ofd_packets/00082280 [23:33:31]NVStorageDeleteData [23:33:32]*** Cut start [23:33:32]*** Partial cut [23:33:32]*** CUTSNS_PIN = 1 [23:33:32]*** CUTSNS_PIN = 0 [23:33:32]OFD Sender: No OFD packet to send [23:33:32]*** Brake cut motor [23:33:32]Read from MH i2c: 01 [23:33:32]MH_I2C_Read... [23:33:32]*** Stop cut motor [23:33:32]*** Cut end [23:33:32]Read from MH i2c: 01 07 00 [23:33:32]MH_I2C_Read... [23:33:32]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 FF 0F 5A [23:33:32]process_action close_receipt done [23:33:32]requested_data is exist [23:33:32]produce_requested_data [23:33:32]requested_item fm.sn is exist - process it [23:33:32]wFMCommunicate request_size=4 [23:33:32]MH_SAM_APDU [23:33:32]CAPDU: 80 11 00 00 [23:33:32]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [23:33:32]Write i2c OK [23:33:32]MH_I2C_Read... [23:33:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:33:33]Read from MH i2c: E2 [23:33:33]MH_I2C_Read... [23:33:33]Read from MH i2c: E2 17 00 [23:33:33]MH_I2C_Read... [23:33:33]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 12 [23:33:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [23:33:33]wFMCommunicate OK [23:33:33]requested_item fd.num is exist - process it [23:33:33]SAM_PROTO_GetFieldsCounters [23:33:33]wFMCommunicate request_size=4 [23:33:33]MH_SAM_APDU [23:33:33]CAPDU: 80 13 00 00 [23:33:33]Write to MH i2c: E2 08 00 46 01 80 13 00 00 00 00 00 00 C3 [23:33:33]Write i2c OK [23:33:33]MH_I2C_Read... [23:33:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:33:33]Read from MH i2c: E2 [23:33:33]MH_I2C_Read... [23:33:33]Read from MH i2c: E2 62 00 [23:33:33]MH_I2C_Read... [23:33:33]Read from MH i2c: E2 62 00 46 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 68 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [23:33:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 68 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:33:33]wFMCommunicate OK [23:33:33]SAM_PROTO_GetFieldsCounters done [23:33:33]requested_item shift.num is exist - process it [23:33:33]requested_item shift.opened is exist - process it [23:33:33]req_shift_opened [23:33:33]FM_GetShiftState [23:33:33]SAM_PROTO_GetShiftState [23:33:33]wFMCommunicate request_size=4 [23:33:33]MH_SAM_APDU [23:33:33]CAPDU: 80 13 01 00 [23:33:33]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [23:33:33]Write i2c OK [23:33:33]MH_I2C_Read... [23:33:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:33:33]Read from MH i2c: E2 [23:33:33]MH_I2C_Read... [23:33:33]Read from MH i2c: E2 0E 00 [23:33:33]MH_I2C_Read... [23:33:33]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 CD [23:33:33]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [23:33:33]wFMCommunicate OK [23:33:33]SAM_PROTO_GetShiftState done [23:33:33]FM_GetShiftState done [23:33:33]req_shift_opened done [23:33:33]requested_item shift.open_date is exist - process it [23:33:33]req_shift_open_date [23:33:33]req_shift_open_date done [23:33:33]produce_requested_data done [23:33:33]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82280,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [23:33:33]process_action_free close_receipt [23:33:33]json_value_free [23:33:33]json_value_free done [23:33:33]process_json_proto returns [23:33:33]Send response to host [23:33:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82280,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [23:33:33]free response buf [23:33:33]execute_script done [23:33:33]execute_script returns [23:33:33]free content buf [23:33:33]Sock 7.Close socket [23:33:33]Sock 7.Thread stoped [23:33:37]OFD Sender: No OFD packet to send [23:33:42]OFD Sender: No OFD packet to send [23:33:47]OFD Sender: No OFD packet to send [23:33:52]recv_with_timeout no data received [23:33:52]OFD Sender: No OFD packet to send [23:33:57]OFD Sender: No OFD packet to send [23:34:02]OFD Sender: No OFD packet to send [23:34:07]OFD Sender: No OFD packet to send [23:34:12]OFD Sender: No OFD packet to send [23:34:17]OFD Sender: No OFD packet to send [23:34:22]OFD Sender: No OFD packet to send [23:34:27]OFD Sender: No OFD packet to send [23:34:32]OFD Sender: No OFD packet to send [23:34:37]OFD Sender: No OFD packet to send [23:34:42]OFD Sender: No OFD packet to send [23:34:47]OFD Sender: No OFD packet to send [23:34:52]OFD Sender: No OFD packet to send [23:34:57]OFD Sender: No OFD packet to send [23:35:02]OFD Sender: No OFD packet to send [23:35:07]OFD Sender: No OFD packet to send [23:35:12]OFD Sender: No OFD packet to send [23:35:17]OFD Sender: No OFD packet to send [23:35:22]OFD Sender: No OFD packet to send [23:35:27]OFD Sender: No OFD packet to send [23:35:32]OFD Sender: No OFD packet to send [23:35:37]OFD Sender: No OFD packet to send [23:35:42]OFD Sender: No OFD packet to send [23:35:47]OFD Sender: No OFD packet to send [23:35:52]OFD Sender: No OFD packet to send [23:35:57]OFD Sender: No OFD packet to send [23:36:02]OFD Sender: No OFD packet to send [23:36:07]OFD Sender: No OFD packet to send [23:36:12]OFD Sender: No OFD packet to send [23:36:17]OFD Sender: No OFD packet to send [23:36:22]OFD Sender: No OFD packet to send [23:36:27]OFD Sender: No OFD packet to send [23:36:32]OFD Sender: No OFD packet to send [23:36:37]OFD Sender: No OFD packet to send [23:36:42]OFD Sender: No OFD packet to send [23:36:47]OFD Sender: No OFD packet to send [23:36:52]OFD Sender: No OFD packet to send [23:36:57]OFD Sender: No OFD packet to send [23:37:02]OFD Sender: No OFD packet to send [23:37:07]OFD Sender: No OFD packet to send [23:37:12]OFD Sender: No OFD packet to send [23:37:17]OFD Sender: No OFD packet to send [23:37:22]OFD Sender: No OFD packet to send [23:37:27]OFD Sender: No OFD packet to send [23:37:32]OFD Sender: No OFD packet to send [23:37:37]OFD Sender: No OFD packet to send [23:37:42]OFD Sender: No OFD packet to send [23:37:47]OFD Sender: No OFD packet to send [23:37:52]OFD Sender: No OFD packet to send [23:37:57]OFD Sender: No OFD packet to send [23:38:02]OFD Sender: No OFD packet to send [23:38:07]OFD Sender: No OFD packet to send [23:38:12]OFD Sender: No OFD packet to send [23:38:17]OFD Sender: No OFD packet to send [23:38:22]OFD Sender: No OFD packet to send [23:38:27]OFD Sender: No OFD packet to send [23:38:32]OFD Sender: No OFD packet to send [23:38:37]OFD Sender: No OFD packet to send [23:38:42]OFD Sender: No OFD packet to send [23:38:47]OFD Sender: No OFD packet to send [23:38:52]OFD Sender: No OFD packet to send [23:38:58]OFD Sender: No OFD packet to send [23:39:03]OFD Sender: No OFD packet to send [23:39:08]OFD Sender: No OFD packet to send [23:39:13]OFD Sender: No OFD packet to send [23:39:18]OFD Sender: No OFD packet to send [23:39:23]OFD Sender: No OFD packet to send [23:39:28]OFD Sender: No OFD packet to send [23:39:33]OFD Sender: No OFD packet to send [23:39:38]OFD Sender: No OFD packet to send [23:39:43]OFD Sender: No OFD packet to send [23:39:48]OFD Sender: No OFD packet to send [23:39:53]OFD Sender: No OFD packet to send [23:39:58]OFD Sender: No OFD packet to send [23:40:03]OFD Sender: No OFD packet to send [23:40:08]OFD Sender: No OFD packet to send [23:40:13]OFD Sender: No OFD packet to send [23:40:18]OFD Sender: No OFD packet to send [23:40:23]OFD Sender: No OFD packet to send [23:40:28]OFD Sender: No OFD packet to send [23:40:33]OFD Sender: No OFD packet to send [23:40:38]OFD Sender: No OFD packet to send [23:40:43]OFD Sender: No OFD packet to send [23:40:48]OFD Sender: No OFD packet to send [23:40:53]OFD Sender: No OFD packet to send [23:40:58]OFD Sender: No OFD packet to send [23:41:03]OFD Sender: No OFD packet to send [23:41:08]OFD Sender: No OFD packet to send [23:41:13]OFD Sender: No OFD packet to send [23:41:18]OFD Sender: No OFD packet to send [23:41:23]OFD Sender: No OFD packet to send [23:41:28]OFD Sender: No OFD packet to send [23:41:33]OFD Sender: No OFD packet to send [23:41:38]OFD Sender: No OFD packet to send [23:41:43]OFD Sender: No OFD packet to send [23:41:48]OFD Sender: No OFD packet to send [23:41:53]OFD Sender: No OFD packet to send [23:41:58]OFD Sender: No OFD packet to send [23:42:03]OFD Sender: No OFD packet to send [23:42:08]OFD Sender: No OFD packet to send [23:42:13]OFD Sender: No OFD packet to send [23:42:18]OFD Sender: No OFD packet to send [23:42:23]OFD Sender: No OFD packet to send [23:42:28]OFD Sender: No OFD packet to send [23:42:33]OFD Sender: No OFD packet to send [23:42:38]OFD Sender: No OFD packet to send [23:42:43]OFD Sender: No OFD packet to send [23:42:48]OFD Sender: No OFD packet to send [23:42:53]OFD Sender: No OFD packet to send [23:42:58]OFD Sender: No OFD packet to send [23:43:03]OFD Sender: No OFD packet to send [23:43:08]OFD Sender: No OFD packet to send [23:43:13]OFD Sender: No OFD packet to send [23:43:18]OFD Sender: No OFD packet to send [23:43:23]OFD Sender: No OFD packet to send [23:43:28]OFD Sender: No OFD packet to send [23:43:33]OFD Sender: No OFD packet to send [23:43:38]OFD Sender: No OFD packet to send [23:43:39]recv_with_timeout no data received [23:43:43]OFD Sender: No OFD packet to send [23:43:48]OFD Sender: No OFD packet to send [23:43:53]OFD Sender: No OFD packet to send [23:43:58]OFD Sender: No OFD packet to send [23:44:03]OFD Sender: No OFD packet to send [23:44:08]OFD Sender: No OFD packet to send [23:44:13]OFD Sender: No OFD packet to send [23:44:18]OFD Sender: No OFD packet to send [23:44:23]OFD Sender: No OFD packet to send [23:44:28]OFD Sender: No OFD packet to send [23:44:33]OFD Sender: No OFD packet to send [23:44:38]OFD Sender: No OFD packet to send [23:44:43]OFD Sender: No OFD packet to send [23:44:48]OFD Sender: No OFD packet to send [23:44:53]OFD Sender: No OFD packet to send [23:44:58]OFD Sender: No OFD packet to send [23:45:03]OFD Sender: No OFD packet to send [23:45:08]OFD Sender: No OFD packet to send [23:45:13]OFD Sender: No OFD packet to send [23:45:18]OFD Sender: No OFD packet to send [23:45:23]OFD Sender: No OFD packet to send [23:45:28]OFD Sender: No OFD packet to send [23:45:33]OFD Sender: No OFD packet to send [23:45:38]OFD Sender: No OFD packet to send [23:45:43]OFD Sender: No OFD packet to send [23:45:48]OFD Sender: No OFD packet to send [23:45:53]OFD Sender: No OFD packet to send [23:45:58]OFD Sender: No OFD packet to send [23:46:03]OFD Sender: No OFD packet to send [23:46:08]OFD Sender: No OFD packet to send [23:46:13]OFD Sender: No OFD packet to send [23:46:18]OFD Sender: No OFD packet to send [23:46:23]OFD Sender: No OFD packet to send [23:46:28]OFD Sender: No OFD packet to send [23:46:33]OFD Sender: No OFD packet to send [23:46:38]OFD Sender: No OFD packet to send [23:46:43]OFD Sender: No OFD packet to send [23:46:48]OFD Sender: No OFD packet to send [23:46:53]OFD Sender: No OFD packet to send [23:46:58]OFD Sender: No OFD packet to send [23:47:03]OFD Sender: No OFD packet to send [23:47:08]OFD Sender: No OFD packet to send [23:47:13]OFD Sender: No OFD packet to send [23:47:18]OFD Sender: No OFD packet to send [23:47:23]OFD Sender: No OFD packet to send [23:47:28]OFD Sender: No OFD packet to send [23:47:33]OFD Sender: No OFD packet to send [23:47:38]OFD Sender: No OFD packet to send [23:47:43]OFD Sender: No OFD packet to send [23:47:48]OFD Sender: No OFD packet to send [23:47:53]OFD Sender: No OFD packet to send [23:47:58]OFD Sender: No OFD packet to send [23:48:03]OFD Sender: No OFD packet to send [23:48:07]recv_with_timeout no data received [23:48:08]OFD Sender: No OFD packet to send [23:48:13]OFD Sender: No OFD packet to send [23:48:18]OFD Sender: No OFD packet to send [23:48:23]OFD Sender: No OFD packet to send [23:48:28]OFD Sender: No OFD packet to send [23:48:33]OFD Sender: No OFD packet to send [23:48:38]OFD Sender: No OFD packet to send [23:48:43]OFD Sender: No OFD packet to send [23:48:48]OFD Sender: No OFD packet to send [23:48:53]OFD Sender: No OFD packet to send [23:48:58]OFD Sender: No OFD packet to send [23:49:03]OFD Sender: No OFD packet to send [23:49:08]OFD Sender: No OFD packet to send [23:49:13]OFD Sender: No OFD packet to send [23:49:19]OFD Sender: No OFD packet to send [23:49:24]OFD Sender: No OFD packet to send [23:49:29]OFD Sender: No OFD packet to send [23:49:34]OFD Sender: No OFD packet to send [23:49:39]OFD Sender: No OFD packet to send [23:49:44]OFD Sender: No OFD packet to send [23:49:49]OFD Sender: No OFD packet to send [23:49:54]OFD Sender: No OFD packet to send [23:49:59]OFD Sender: No OFD packet to send [23:50:04]OFD Sender: No OFD packet to send [23:50:05]recv_with_timeout no data received [23:50:09]OFD Sender: No OFD packet to send [23:50:14]OFD Sender: No OFD packet to send [23:50:19]OFD Sender: No OFD packet to send [23:50:24]OFD Sender: No OFD packet to send [23:50:29]OFD Sender: No OFD packet to send [23:50:34]OFD Sender: No OFD packet to send [23:50:39]OFD Sender: No OFD packet to send [23:50:44]OFD Sender: No OFD packet to send [23:50:49]OFD Sender: No OFD packet to send [23:50:54]recv_with_timeout no data received [23:50:54]OFD Sender: No OFD packet to send [23:50:59]OFD Sender: No OFD packet to send [23:51:04]OFD Sender: No OFD packet to send [23:51:09]OFD Sender: No OFD packet to send [23:51:14]OFD Sender: No OFD packet to send [23:51:19]OFD Sender: No OFD packet to send [23:51:24]OFD Sender: No OFD packet to send [23:51:28]recv_with_timeout no data received [23:51:29]OFD Sender: No OFD packet to send [23:51:34]OFD Sender: No OFD packet to send [23:51:39]OFD Sender: No OFD packet to send [23:51:40]recv_with_timeout no data received [23:51:44]OFD Sender: No OFD packet to send [23:51:49]OFD Sender: No OFD packet to send [23:51:54]OFD Sender: No OFD packet to send [23:51:59]OFD Sender: No OFD packet to send [23:52:04]OFD Sender: No OFD packet to send [23:52:09]OFD Sender: No OFD packet to send [23:52:14]OFD Sender: No OFD packet to send [23:52:19]OFD Sender: No OFD packet to send [23:52:24]OFD Sender: No OFD packet to send [23:52:29]OFD Sender: No OFD packet to send [23:52:34]OFD Sender: No OFD packet to send [23:52:39]OFD Sender: No OFD packet to send [23:52:44]OFD Sender: No OFD packet to send [23:52:49]OFD Sender: No OFD packet to send [23:52:54]OFD Sender: No OFD packet to send [23:52:59]OFD Sender: No OFD packet to send [23:53:04]OFD Sender: No OFD packet to send [23:53:09]OFD Sender: No OFD packet to send [23:53:14]OFD Sender: No OFD packet to send [23:53:19]OFD Sender: No OFD packet to send [23:53:24]OFD Sender: No OFD packet to send [23:53:29]OFD Sender: No OFD packet to send [23:53:34]OFD Sender: No OFD packet to send [23:53:39]OFD Sender: No OFD packet to send [23:53:44]OFD Sender: No OFD packet to send [23:53:49]OFD Sender: No OFD packet to send [23:53:54]OFD Sender: No OFD packet to send [23:53:55]recv_with_timeout no data received [23:53:59]OFD Sender: No OFD packet to send [23:54:04]OFD Sender: No OFD packet to send [23:54:09]OFD Sender: No OFD packet to send [23:54:14]OFD Sender: No OFD packet to send [23:54:19]OFD Sender: No OFD packet to send [23:54:24]OFD Sender: No OFD packet to send [23:54:29]OFD Sender: No OFD packet to send [23:54:34]OFD Sender: No OFD packet to send [23:54:39]OFD Sender: No OFD packet to send [23:54:44]OFD Sender: No OFD packet to send [23:54:49]OFD Sender: No OFD packet to send [23:54:54]OFD Sender: No OFD packet to send [23:54:59]OFD Sender: No OFD packet to send [23:55:04]OFD Sender: No OFD packet to send [23:55:09]OFD Sender: No OFD packet to send [23:55:13]recv_with_timeout no data received [23:55:14]OFD Sender: No OFD packet to send [23:55:19]OFD Sender: No OFD packet to send [23:55:24]OFD Sender: No OFD packet to send [23:55:29]OFD Sender: No OFD packet to send [23:55:34]OFD Sender: No OFD packet to send [23:55:39]OFD Sender: No OFD packet to send [23:55:44]OFD Sender: No OFD packet to send [23:55:49]OFD Sender: No OFD packet to send [23:55:54]OFD Sender: No OFD packet to send [23:55:59]OFD Sender: No OFD packet to send [23:56:04]OFD Sender: No OFD packet to send [23:56:09]OFD Sender: No OFD packet to send [23:56:14]OFD Sender: No OFD packet to send [23:56:19]OFD Sender: No OFD packet to send [23:56:24]OFD Sender: No OFD packet to send [23:56:29]OFD Sender: No OFD packet to send [23:56:34]OFD Sender: No OFD packet to send [23:56:39]OFD Sender: No OFD packet to send [23:56:44]OFD Sender: No OFD packet to send [23:56:49]OFD Sender: No OFD packet to send [23:56:54]OFD Sender: No OFD packet to send [23:56:59]OFD Sender: No OFD packet to send [23:57:04]OFD Sender: No OFD packet to send [23:57:09]OFD Sender: No OFD packet to send [23:57:14]OFD Sender: No OFD packet to send [23:57:19]OFD Sender: No OFD packet to send [23:57:24]OFD Sender: No OFD packet to send [23:57:29]OFD Sender: No OFD packet to send [23:57:34]OFD Sender: No OFD packet to send [23:57:39]OFD Sender: No OFD packet to send [23:57:44]OFD Sender: No OFD packet to send [23:57:49]OFD Sender: No OFD packet to send [23:57:54]OFD Sender: No OFD packet to send [23:57:59]OFD Sender: No OFD packet to send [23:58:04]OFD Sender: No OFD packet to send [23:58:09]OFD Sender: No OFD packet to send [23:58:11]recv_with_timeout no data received [23:58:14]OFD Sender: No OFD packet to send [23:58:19]OFD Sender: No OFD packet to send [23:58:24]OFD Sender: No OFD packet to send [23:58:29]OFD Sender: No OFD packet to send [23:58:34]OFD Sender: No OFD packet to send [23:58:39]OFD Sender: No OFD packet to send [23:58:44]OFD Sender: No OFD packet to send [23:58:49]OFD Sender: No OFD packet to send [23:58:54]OFD Sender: No OFD packet to send [23:58:59]OFD Sender: No OFD packet to send [23:59:04]OFD Sender: No OFD packet to send [23:59:09]OFD Sender: No OFD packet to send [23:59:14]OFD Sender: No OFD packet to send [23:59:19]OFD Sender: No OFD packet to send [23:59:24]OFD Sender: No OFD packet to send [23:59:29]OFD Sender: No OFD packet to send [23:59:34]OFD Sender: No OFD packet to send [23:59:40]OFD Sender: No OFD packet to send [23:59:45]OFD Sender: No OFD packet to send [23:59:50]OFD Sender: No OFD packet to send [23:59:55]OFD Sender: No OFD packet to send [00:00:00]OFD Sender: No OFD packet to send [00:00:05]OFD Sender: No OFD packet to send [00:00:10]OFD Sender: No OFD packet to send [00:00:15]OFD Sender: No OFD packet to send [00:00:20]OFD Sender: No OFD packet to send [00:00:25]OFD Sender: No OFD packet to send [00:00:30]OFD Sender: No OFD packet to send [00:00:35]OFD Sender: No OFD packet to send [00:00:40]OFD Sender: No OFD packet to send [00:00:45]OFD Sender: No OFD packet to send [00:00:50]OFD Sender: No OFD packet to send [00:00:55]OFD Sender: No OFD packet to send [00:01:00]OFD Sender: No OFD packet to send [00:01:05]OFD Sender: No OFD packet to send [00:01:10]OFD Sender: No OFD packet to send [00:01:15]OFD Sender: No OFD packet to send [00:01:20]OFD Sender: No OFD packet to send [00:01:25]OFD Sender: No OFD packet to send [00:01:25]recv_with_timeout no data received [00:01:30]OFD Sender: No OFD packet to send [00:01:30]accept exits with 9 [00:01:30]New connection [00:01:30]New thread 3067506020 created [00:01:30]Thread 3067362660 joined [00:01:30]Waiting for new connection... [00:01:30] Sock 9.Parse request [00:01:30]Sock 9.Check first char [00:01:30]Sock 9.First char is OK [00:01:30]request: POST /json_proto HTTP/1.0 [00:01:30]Method: POST [00:01:30]URL: /json_proto [00:01:30]Method is POST - this is cgi request [00:01:30]url: /json_proto [00:01:30]query_string will be loaded in cgi processing [00:01:30]execute_cgi json_proto POST (null) [00:01:30]execute_cgi path=json_proto method=POST [00:01:30]POST find Content-Length [00:01:30]Host: 172.17.44.67:8080 [00:01:30]Content-Length: 766 [00:01:30]Content-Type: application/json [00:01:30] [00:01:30]POST finish read [00:01:30]Found Content-Length = 766 [00:01:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:30]execute_script... [00:01:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:30]POST & json_proto [00:01:30]process_json_proto [00:01:30]json parsed OK: [00:01:30]protocol is kg_v1.0 [00:01:30]action value=close_receipt [00:01:30]process_action close_receipt [00:01:30]cmd_close_receipt [00:01:30]MH_GetDate [00:01:30]Write to MH i2c: F0 00 00 48 01 38 [00:01:30]Write i2c OK [00:01:30]MH_I2C_Read... [00:01:30]Read from MH i2c: F0 [00:01:30]MH_I2C_Read... [00:01:30]Read from MH i2c: F0 09 00 [00:01:30]MH_I2C_Read... [00:01:30]Read from MH i2c: F0 09 00 48 01 00 5B A5 11 67 F1 C7 6B 64 40 [00:01:30]GetLastDocTimeStamp 1729208009 [00:01:30]current date 1729209691 [00:01:30]FM_GetShiftState [00:01:30]SAM_PROTO_GetShiftState [00:01:30]wFMCommunicate request_size=4 [00:01:30]MH_SAM_APDU [00:01:30]CAPDU: 80 13 01 00 [00:01:30]Write to MH i2c: E2 08 00 49 01 80 13 01 00 00 00 00 00 C7 [00:01:30]Write i2c OK [00:01:30]MH_I2C_Read... [00:01:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:30]Read from MH i2c: E2 [00:01:30]MH_I2C_Read... [00:01:30]Read from MH i2c: E2 0E 00 [00:01:30]MH_I2C_Read... [00:01:30]Read from MH i2c: E2 0E 00 49 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 CF [00:01:30]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [00:01:30]wFMCommunicate OK [00:01:30]SAM_PROTO_GetShiftState done [00:01:30]FM_GetShiftState done [00:01:30]opened in 1729125927 [00:01:30]opened+sec_in_day 1729212327 [00:01:30]quantity*price = 40006 [00:01:30]sum+1 = 40007 [00:01:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 207 18.10.2024 00:01 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82281 ФПД: 150039391539727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T000131&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82281&fm=150039391539727&tin=02508201610067®Number=0000000000091680&sum=40006 [00:01:31]StoreToDocumentArchive [00:01:31]shift 525 fd 82281 [00:01:31]save to /storage/0525/doc_00082281 [00:01:31]save last doc name /storage/0525/doc_00082281 to /storage/kkm_last_doc_name [00:01:31]save OK [00:01:31]Clear old archive folders... [00:01:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:01:31]tlvbuf is 00B9E9A0 [00:01:31]SAM_PROTO_ClearQueue [00:01:31]wFMCommunicate request_size=4 [00:01:31]MH_SAM_APDU [00:01:31]CAPDU: 80 09 00 00 [00:01:31]Write to MH i2c: E2 08 00 56 01 80 09 00 00 00 00 00 00 C9 [00:01:31]Write i2c OK [00:01:31]MH_I2C_Read... [00:01:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:01:32]Read from MH i2c: E2 [00:01:32]MH_I2C_Read... [00:01:32]Read from MH i2c: E2 03 00 [00:01:32]MH_I2C_Read... [00:01:32]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [00:01:32]RAPDU: 90 00 [00:01:32]wFMCommunicate OK [00:01:32]SAM_PROTO_ClearQueue done [00:01:32]KKMCreateOFDPacket [00:01:32]OFDProtocolAddRootSTLVToBuf [00:01:32]FM_MakeSignedData [00:01:32]FM_MakeSignedData [00:01:32]SAM_PROTO_SignData [00:01:32]wFMCommunicate request_size=4 [00:01:32]MH_SAM_APDU [00:01:32]CAPDU: 80 0D 01 02 [00:01:32]Write to MH i2c: E2 08 00 57 01 80 0D 01 02 00 00 00 00 D1 [00:01:32]Write i2c OK [00:01:32]MH_I2C_Read... [00:01:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:01:32]Read from MH i2c: E2 [00:01:32]MH_I2C_Read... [00:01:32]Read from MH i2c: E2 03 00 [00:01:32]MH_I2C_Read... [00:01:32]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [00:01:32]RAPDU: 90 00 [00:01:32]wFMCommunicate OK [00:01:32]wFMCommunicate request_size=255 [00:01:32]MH_SAM_APDU [00:01:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 5B A5 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 69 41 01 00 35 04 06 00 88 [00:01:32]Write to MH i2c: E2 02 01 58 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 5B A5 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 69 41 01 00 35 04 06 00 88 00 00 C1 [00:01:32]Write i2c OK [00:01:32]MH_I2C_Read... [00:01:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:32]Read from MH i2c: E2 [00:01:32]MH_I2C_Read... [00:01:32]Read from MH i2c: E2 03 00 [00:01:32]MH_I2C_Read... [00:01:32]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [00:01:32]RAPDU: 90 00 [00:01:32]wFMCommunicate OK [00:01:32]wFMCommunicate request_size=10 [00:01:32]MH_SAM_APDU [00:01:32]CAPDU: 80 0D 02 02 05 75 C4 A2 92 0F [00:01:32]Write to MH i2c: E2 0D 00 59 01 80 0D 02 02 05 00 75 C4 A2 92 0F 00 00 5A [00:01:32]Write i2c OK [00:01:32]MH_I2C_Read... [00:01:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:32]Read from MH i2c: E2 [00:01:32]MH_I2C_Read... [00:01:32]Read from MH i2c: E2 03 00 [00:01:32]MH_I2C_Read... [00:01:32]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [00:01:32]RAPDU: 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 0D 03 02 [00:01:32]Write to MH i2c: E2 08 00 5A 01 80 0D 03 02 00 00 00 00 D6 [00:01:32]Write i2c OK [00:01:32]MH_I2C_Read... [00:01:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:01:32]Read from MH i2c: E2 [00:01:32]MH_I2C_Read... [00:01:32]Read from MH i2c: E2 0B 00 [00:01:32]MH_I2C_Read... [00:01:32]Read from MH i2c: E2 0B 00 5A 01 00 46 53 72 53 02 6F 3D 79 90 00 5C [00:01:32]RAPDU: 46 53 72 53 02 6F 3D 79 90 00 [00:01:32]wFMCommunicate OK [00:01:32]SAM_PROTO_SignData done [00:01:32]FM_MakeSignedData done [00:01:32]CreateOFDProtocolMessage [00:01:32]wFMCommunicate request_size=4 [00:01:32]MH_SAM_APDU [00:01:32]CAPDU: 80 11 00 00 [00:01:32]Write to MH i2c: E2 08 00 5B 01 80 11 00 00 00 00 00 00 D6 [00:01:32]Write i2c OK [00:01:32]MH_I2C_Read... [00:01:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:32]Read from MH i2c: E2 [00:01:32]MH_I2C_Read... [00:01:32]Read from MH i2c: E2 17 00 [00:01:32]MH_I2C_Read... [00:01:32]Read from MH i2c: E2 17 00 5B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 28 [00:01:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:01:32]wFMCommunicate OK [00:01:32]CreateOFDProtocolMessage done [00:01:32]OFDSenderStorePacket 82281 [00:01:32]StoreOFDPacket docnum=82281 [00:01:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 AB 81 07 01 EC E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 5B A5 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 69 41 01 00 35 04 06 00 88 75 C4 A2 92 0F 46 53 72 53 02 6F 3D 79 [00:01:32]CheckFolder [00:01:32]dirname=/storage/ofd_packets [00:01:32]CheckFolder done [00:01:32]ProducePacketName [00:01:32]name=ofd_packets/00082281 [00:01:32]NVStorageSaveData ofd_packets/00082281 [00:01:32]File name is /storage/ofd_packets/00082281 [00:01:32]Write 301 bytes [00:01:32]NVStorageSaveData done [00:01:32]OFDSenderStorePacket done [00:01:32]KKMCreateOFDPacket done [00:01:32]NVStorageSaveData kkm_last_timestamp [00:01:32]File name is /storage/kkm_last_timestamp [00:01:32]Write 4 bytes [00:01:32]NVStorageSaveData done [00:01:32]ExternCall_PrintAddStr [00:01:32]wPrintStart [00:01:32]Write to MH i2c: 01 00 00 5C 01 5D [00:01:32]Write i2c OK [00:01:32]MH_I2C_Read... [00:01:32]Read from MH i2c: 01 [00:01:32]MH_I2C_Read... [00:01:32]Read from MH i2c: 01 07 00 [00:01:32]MH_I2C_Read... [00:01:32]Read from MH i2c: 01 07 00 5C 01 00 00 00 00 00 FF 0F 72 [00:01:32]RasterBufferAndPrint [00:01:32]line Счет N : (1)918782 [00:01:32]line ИНН: 02508201610067 [00:01:32]line Контрольно-Кассовый Чек [00:01:32]line ПРОДАЖА [00:01:32]line ТРК (МРК, ГНК) : 22 [00:01:32]line Товар: 2710124130 [00:01:32]line Аи-92-К-4 [00:01:32]line 5.980 * 66.90 [00:01:32]line = 400.06 [00:01:32]line НДС 12% НСП 1% [00:01:32]line > о реализуемом товаре [00:01:32]line ИТОГО: 400.06 [00:01:32]line НСП 1% : 3.54 [00:01:32]line НДС 12% : 42.48 [00:01:32]line Наличными: 0.00 [00:01:32]line Безнал.: 400.06 [00:01:32]line Место: АЗС № 114 "Партнер Нефть" [00:01:32]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [00:01:32]line СНО: Общий режим [00:01:32]line Чек 207 18.10.2024 00:01 [00:01:32]line Смена: 525 ФФД: 1.0 [00:01:32]line ЗНМ: 0300000086 [00:01:32]line РНМ: 0000000000091680 [00:01:32]line Версия ККМ: 001 [00:01:32]line Платежная система: Mbank [00:01:32]line ФМ: 0000000000871843 [00:01:32]line ФД: 82281 [00:01:32]line ФПД: 150039391539727 [00:01:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T000131&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82281&fm=150039391539727&tin=02508201610067®Number=0000000000091680&sum=40006 [00:01:32]written 0, free lines is 4095 [00:01:32]OFD Sender: Processing packet 82281 [packets to send 254, broken 253] [00:01:32]ProducePacketName [00:01:32]name=ofd_packets/00082281 [00:01:32]OFD Sender: To server: pG, [00:01:32]CommunicateWithHost lk.salyk.kg:30040 [00:01:32]ConnectInit lk.salyk.kg [00:01:33]Write to MH i2c: 01 00 00 85 01 86 [00:01:33]Write i2c OK [00:01:33]MH_I2C_Read... [00:01:33]Read from MH i2c: 01 [00:01:33]MH_I2C_Read... [00:01:33]Read from MH i2c: 01 07 00 [00:01:33]MH_I2C_Read... [00:01:33]Read from MH i2c: 01 07 00 85 01 00 00 00 00 00 FB 0C 94 [00:01:33]RasterBufferAndPrint [00:01:33]line [00:01:33]line [00:01:33]line [00:01:33]line [00:01:33]line [00:01:33]written 0, free lines is 3330 [00:01:33]MH_Cut [00:01:33]Write to MH i2c: D1 01 00 8C 01 01 5F [00:01:33]Write i2c OK [00:01:33]MH_I2C_Read... [00:01:33]Read from MH i2c: D1 [00:01:33]MH_I2C_Read... [00:01:33]Read from MH i2c: D1 01 00 [00:01:33]MH_I2C_Read... [00:01:33]Read from MH i2c: D1 01 00 8C 01 00 5E [00:01:33]Write to MH i2c: 01 00 00 8D 01 8E [00:01:33]Write i2c OK [00:01:33]MH_I2C_Read... [00:01:34]*** Cut start [00:01:34]*** Partial cut [00:01:34]*** CUTSNS_PIN = 1 [00:01:34]*** CUTSNS_PIN = 0 [00:01:34]*** Brake cut motor [00:01:34]Read from MH i2c: 01 [00:01:34]MH_I2C_Read... [00:01:34]*** Stop cut motor [00:01:34]*** Cut end [00:01:34]Read from MH i2c: 01 07 00 [00:01:34]MH_I2C_Read... [00:01:34]Read from MH i2c: 01 07 00 8D 01 00 00 00 00 00 FF 0F A3 [00:01:34]process_action close_receipt done [00:01:34]requested_data is exist [00:01:34]produce_requested_data [00:01:34]requested_item fm.sn is exist - process it [00:01:34]wFMCommunicate request_size=4 [00:01:34]MH_SAM_APDU [00:01:34]CAPDU: 80 11 00 00 [00:01:34]Write to MH i2c: E2 08 00 8E 01 80 11 00 00 00 00 00 00 09 [00:01:34]Write i2c OK [00:01:34]MH_I2C_Read... [00:01:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:34]Read from MH i2c: E2 [00:01:34]MH_I2C_Read... [00:01:34]Read from MH i2c: E2 17 00 [00:01:34]MH_I2C_Read... [00:01:34]Read from MH i2c: E2 17 00 8E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 5B [00:01:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:01:34]wFMCommunicate OK [00:01:34]requested_item fd.num is exist - process it [00:01:34]SAM_PROTO_GetFieldsCounters [00:01:34]wFMCommunicate request_size=4 [00:01:34]MH_SAM_APDU [00:01:34]CAPDU: 80 13 00 00 [00:01:34]Write to MH i2c: E2 08 00 8F 01 80 13 00 00 00 00 00 00 0C [00:01:34]Write i2c OK [00:01:34]MH_I2C_Read... [00:01:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:01:34]Read from MH i2c: E2 [00:01:34]MH_I2C_Read... [00:01:34]Read from MH i2c: E2 62 00 [00:01:34]MH_I2C_Read... [00:01:34]Read from MH i2c: E2 62 00 8F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 69 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [00:01:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 69 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:01:34]wFMCommunicate OK [00:01:34]SAM_PROTO_GetFieldsCounters done [00:01:34]requested_item shift.num is exist - process it [00:01:34]requested_item shift.opened is exist - process it [00:01:34]req_shift_opened [00:01:34]FM_GetShiftState [00:01:34]SAM_PROTO_GetShiftState [00:01:34]wFMCommunicate request_size=4 [00:01:34]MH_SAM_APDU [00:01:34]CAPDU: 80 13 01 00 [00:01:34]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [00:01:34]Write i2c OK [00:01:34]MH_I2C_Read... [00:01:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:34]Read from MH i2c: E2 [00:01:34]MH_I2C_Read... [00:01:34]Read from MH i2c: E2 0E 00 [00:01:34]MH_I2C_Read... [00:01:34]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 16 [00:01:34]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [00:01:34]wFMCommunicate OK [00:01:34]SAM_PROTO_GetShiftState done [00:01:34]FM_GetShiftState done [00:01:34]req_shift_opened done [00:01:34]requested_item shift.open_date is exist - process it [00:01:34]req_shift_open_date [00:01:34]req_shift_open_date done [00:01:34]produce_requested_data done [00:01:34]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82281,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [00:01:34]process_action_free close_receipt [00:01:34]json_value_free [00:01:34]json_value_free done [00:01:34]process_json_proto returns [00:01:34]Send response to host [00:01:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82281,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [00:01:34]free response buf [00:01:34]execute_script done [00:01:34]execute_script returns [00:01:34]free content buf [00:01:34]Sock 9.Close socket [00:01:34]Sock 9.Thread stoped [00:01:37]ConnectInit Can't take IP for lk.salyk.kg [00:01:37]CommunicateWithHost connect error [00:01:37]CommunicateWithHost err = -1 [00:01:37]OFD Sender: Server communicate error [00:01:42]OFD Sender: Processing packet 82281 [packets to send 254, broken 253] [00:01:42]ProducePacketName [00:01:42]name=ofd_packets/00082281 [00:01:42]OFD Sender: To server: pG, [00:01:42]CommunicateWithHost lk.salyk.kg:30040 [00:01:42]ConnectInit lk.salyk.kg [00:01:43]recv_with_timeout no data received [00:01:59]Connected sock=9 [00:01:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 AB 81 07 01 EC E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 5B A5 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 69 41 01 00 35 04 06 00 88 75 C4 A2 92 0F 46 53 72 53 02 6F 3D 79 [00:02:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 48 07 47 00 20 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 69 41 01 00 F4 03 04 00 B2 4A 11 67 B6 04 01 00 00 1B 04 88 F4 1B 94 E4 77 [00:02:00]CommunicateWithHost err = 0 [00:02:00]CheckOFDResponse [00:02:00]1017 (14) - 77093643461234 [00:02:00]1041 (16) - 0000000000871843 [00:02:00]1040 (4) - 82281 [00:02:00]1012 (4) - 17.10.2024 17:34 [00:02:00]1206 (1) - 0 [00:02:00]OFD Sender: Remove packet 82281 [00:02:00]ProducePacketName [00:02:00]name=ofd_packets/00082281 [00:02:00]NVStorageDeleteData [00:02:01]OFD Sender: No OFD packet to send [00:02:06]OFD Sender: No OFD packet to send [00:02:11]OFD Sender: No OFD packet to send [00:02:16]OFD Sender: No OFD packet to send [00:02:21]OFD Sender: No OFD packet to send [00:02:22]recv_with_timeout no data received [00:02:26]OFD Sender: No OFD packet to send [00:02:31]OFD Sender: No OFD packet to send [00:02:36]OFD Sender: No OFD packet to send [00:02:41]OFD Sender: No OFD packet to send [00:02:46]OFD Sender: No OFD packet to send [00:02:51]OFD Sender: No OFD packet to send [00:02:56]OFD Sender: No OFD packet to send [00:03:01]OFD Sender: No OFD packet to send [00:03:06]OFD Sender: No OFD packet to send [00:03:11]OFD Sender: No OFD packet to send [00:03:16]OFD Sender: No OFD packet to send [00:03:21]OFD Sender: No OFD packet to send [00:03:26]OFD Sender: No OFD packet to send [00:03:31]OFD Sender: No OFD packet to send [00:03:36]OFD Sender: No OFD packet to send [00:03:41]OFD Sender: No OFD packet to send [00:03:46]OFD Sender: No OFD packet to send [00:03:47]accept exits with 10 [00:03:47]New connection [00:03:47]New thread 3067362660 created [00:03:47]Thread 3067506020 joined [00:03:47]Waiting for new connection... [00:03:47] Sock 10.Parse request [00:03:47]Sock 10.Check first char [00:03:47]Sock 10.First char is OK [00:03:47]request: POST /json_proto HTTP/1.0 [00:03:47]Method: POST [00:03:47]URL: /json_proto [00:03:47]Method is POST - this is cgi request [00:03:47]url: /json_proto [00:03:47]query_string will be loaded in cgi processing [00:03:47]execute_cgi json_proto POST (null) [00:03:47]execute_cgi path=json_proto method=POST [00:03:47]POST find Content-Length [00:03:47]Host: 172.17.44.67:8080 [00:03:47]Content-Length: 806 [00:03:47]Content-Type: application/json [00:03:47] [00:03:47]POST finish read [00:03:47]Found Content-Length = 806 [00:03:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2203045", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:47]execute_script... [00:03: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)918783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2203045", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:47]POST & json_proto [00:03:47]process_json_proto [00:03:47]json parsed OK: [00:03:47]protocol is kg_v1.0 [00:03:47]action value=close_receipt [00:03:47]process_action close_receipt [00:03:47]cmd_close_receipt [00:03:47]MH_GetDate [00:03:47]Write to MH i2c: F0 00 00 91 01 81 [00:03:47]Write i2c OK [00:03:47]MH_I2C_Read... [00:03:47]Read from MH i2c: F0 [00:03:47]MH_I2C_Read... [00:03:47]Read from MH i2c: F0 09 00 [00:03:47]MH_I2C_Read... [00:03:47]Read from MH i2c: F0 09 00 91 01 00 E3 A5 11 67 F1 C7 6B 64 11 [00:03:47]GetLastDocTimeStamp 1729209691 [00:03:47]current date 1729209827 [00:03:47]FM_GetShiftState [00:03:47]SAM_PROTO_GetShiftState [00:03:47]wFMCommunicate request_size=4 [00:03:47]MH_SAM_APDU [00:03:47]CAPDU: 80 13 01 00 [00:03:47]Write to MH i2c: E2 08 00 92 01 80 13 01 00 00 00 00 00 10 [00:03:47]Write i2c OK [00:03:47]MH_I2C_Read... [00:03:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:47]Read from MH i2c: E2 [00:03:47]MH_I2C_Read... [00:03:47]Read from MH i2c: E2 0E 00 [00:03:47]MH_I2C_Read... [00:03:47]Read from MH i2c: E2 0E 00 92 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 18 [00:03:47]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [00:03:47]wFMCommunicate OK [00:03:47]SAM_PROTO_GetShiftState done [00:03:47]FM_GetShiftState done [00:03:47]opened in 1729125927 [00:03:47]opened+sec_in_day 1729212327 [00:03:47]quantity*price = 0 [00:03:47]sum+1 = 1 [00:03:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 208 18.10.2024 00:03 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 2203045 ФМ: 0000000000871843 ФД: 82282 ФПД: 192568856827163 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T000347&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82282&fm=192568856827163&tin=02508201610067®Number=0000000000091680&sum=0 [00:03:48]StoreToDocumentArchive [00:03:48]shift 525 fd 82282 [00:03:48]save to /storage/0525/doc_00082282 [00:03:48]save last doc name /storage/0525/doc_00082282 to /storage/kkm_last_doc_name [00:03:48]save OK [00:03:48]Clear old archive folders... [00:03:48]ProcessDocumentItem done err = 0, tmpTLVsize=257 [00:03:48]tlvbuf is 00BA02F0 [00:03:48]SAM_PROTO_ClearQueue [00:03:48]wFMCommunicate request_size=4 [00:03:48]MH_SAM_APDU [00:03:48]CAPDU: 80 09 00 00 [00:03:48]Write to MH i2c: E2 08 00 9F 01 80 09 00 00 00 00 00 00 12 [00:03:48]Write i2c OK [00:03:48]MH_I2C_Read... [00:03:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:03:48]Read from MH i2c: E2 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 03 00 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [00:03:48]RAPDU: 90 00 [00:03:48]wFMCommunicate OK [00:03:48]SAM_PROTO_ClearQueue done [00:03:48]KKMCreateOFDPacket [00:03:48]OFDProtocolAddRootSTLVToBuf [00:03:48]FM_MakeSignedData [00:03:48]FM_MakeSignedData [00:03:48]SAM_PROTO_SignData [00:03:48]wFMCommunicate request_size=4 [00:03:48]MH_SAM_APDU [00:03:48]CAPDU: 80 0D 01 02 [00:03:48]Write to MH i2c: E2 08 00 A0 01 80 0D 01 02 00 00 00 00 1A [00:03:48]Write i2c OK [00:03:48]MH_I2C_Read... [00:03:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:03:48]Read from MH i2c: E2 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 03 00 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [00:03:48]RAPDU: 90 00 [00:03:48]wFMCommunicate OK [00:03:48]wFMCommunicate request_size=255 [00:03:48]MH_SAM_APDU [00:03:48]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 E3 A5 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6A 41 01 [00:03:48]Write to MH i2c: E2 02 01 A1 01 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 E3 A5 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6A 41 01 00 00 48 [00:03:48]Write i2c OK [00:03:48]MH_I2C_Read... [00:03:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:48]Read from MH i2c: E2 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 03 00 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [00:03:48]RAPDU: 90 00 [00:03:48]wFMCommunicate OK [00:03:48]wFMCommunicate request_size=16 [00:03:48]MH_SAM_APDU [00:03:48]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 AF 23 EE 4E 55 1B [00:03:48]Write to MH i2c: E2 13 00 A2 01 80 0D 02 02 0B 00 00 35 04 06 00 AF 23 EE 4E 55 1B 00 00 F0 [00:03:48]Write i2c OK [00:03:48]MH_I2C_Read... [00:03:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:48]Read from MH i2c: E2 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 03 00 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [00:03:48]RAPDU: 90 00 [00:03:48]wFMCommunicate OK [00:03:48]wFMCommunicate request_size=4 [00:03:48]MH_SAM_APDU [00:03:48]CAPDU: 80 0D 03 02 [00:03:48]Write to MH i2c: E2 08 00 A3 01 80 0D 03 02 00 00 00 00 1F [00:03:48]Write i2c OK [00:03:48]MH_I2C_Read... [00:03:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:03:48]Read from MH i2c: E2 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 0B 00 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 0B 00 A3 01 00 D9 3E 58 A6 8A 67 B2 30 90 00 08 [00:03:48]RAPDU: D9 3E 58 A6 8A 67 B2 30 90 00 [00:03:48]wFMCommunicate OK [00:03:48]SAM_PROTO_SignData done [00:03:48]FM_MakeSignedData done [00:03:48]CreateOFDProtocolMessage [00:03:48]wFMCommunicate request_size=4 [00:03:48]MH_SAM_APDU [00:03:48]CAPDU: 80 11 00 00 [00:03:48]Write to MH i2c: E2 08 00 A4 01 80 11 00 00 00 00 00 00 1F [00:03:48]Write i2c OK [00:03:48]MH_I2C_Read... [00:03:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:48]Read from MH i2c: E2 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 17 00 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 17 00 A4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 71 [00:03:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:03:48]wFMCommunicate OK [00:03:48]CreateOFDProtocolMessage done [00:03:48]OFDSenderStorePacket 82282 [00:03:48]StoreOFDPacket docnum=82282 [00:03:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 EF 9D 0D 01 B8 F8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 E3 A5 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6A 41 01 00 35 04 06 00 AF 23 EE 4E 55 1B D9 3E 58 A6 8A 67 B2 30 [00:03:48]CheckFolder [00:03:48]dirname=/storage/ofd_packets [00:03:48]CheckFolder done [00:03:48]ProducePacketName [00:03:48]name=ofd_packets/00082282 [00:03:48]NVStorageSaveData ofd_packets/00082282 [00:03:48]File name is /storage/ofd_packets/00082282 [00:03:48]Write 307 bytes [00:03:48]NVStorageSaveData done [00:03:48]OFDSenderStorePacket done [00:03:48]KKMCreateOFDPacket done [00:03:48]NVStorageSaveData kkm_last_timestamp [00:03:48]File name is /storage/kkm_last_timestamp [00:03:48]Write 4 bytes [00:03:48]NVStorageSaveData done [00:03:48]OFD Sender: Processing packet 82282 [packets to send 254, broken 253] [00:03:48]ProducePacketName [00:03:48]name=ofd_packets/00082282 [00:03:48]OFD Sender: To server: pG, [00:03:48]CommunicateWithHost lk.salyk.kg:30040 [00:03:48]ConnectInit lk.salyk.kg [00:03:48]ExternCall_PrintAddStr [00:03:48]wPrintStart [00:03:48]Write to MH i2c: 01 00 00 A5 01 A6 [00:03:48]Write i2c OK [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: 01 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: 01 07 00 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: 01 07 00 A5 01 00 00 00 00 00 FF 0F BB [00:03:48]RasterBufferAndPrint [00:03:48]line Счет N : (1)918783 [00:03:48]line ИНН: 02508201610067 [00:03:48]line Контрольно-Кассовый Чек [00:03:48]line ПРОДАЖА [00:03:48]line ТРК (МРК, ГНК) : 21 [00:03:48]line Товар: 2710194800 [00:03:48]line D-Energy ДТ-К-2 [00:03:48]line 20.000 * 0.00 [00:03:48]line = 0.00 [00:03:48]line НДС 12% НСП 1% [00:03:48]line > о реализуемом товаре [00:03:48]line ИТОГО: 0.00 [00:03:48]line НСП 1% : 0.00 [00:03:48]line НДС 12% : 0.00 [00:03:48]line Наличными: 0.00 [00:03:48]line Безнал.: 0.00 [00:03:48]line Место: АЗС № 114 "Партнер Нефть" [00:03:48]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [00:03:48]line СНО: Общий режим [00:03:48]line Чек 208 18.10.2024 00:03 [00:03:48]line Смена: 525 ФФД: 1.0 [00:03:48]line ЗНМ: 0300000086 [00:03:48]line РНМ: 0000000000091680 [00:03:48]line Версия ККМ: 001 [00:03:48]line Талоны: Топливные Талоны [00:03:48]line 2203045 [00:03:48]line ФМ: 0000000000871843 [00:03:48]line ФД: 82282 [00:03:48]line ФПД: 192568856827163 [00:03:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T000347&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82282&fm=192568856827163&tin=02508201610067®Number=0000000000091680&sum=0 [00:03:49]written 0, free lines is 4095 [00:03:49]Connected sock=11 [00:03:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 EF 9D 0D 01 B8 F8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 E3 A5 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6A 41 01 00 35 04 06 00 AF 23 EE 4E 55 1B D9 3E 58 A6 8A 67 B2 30 [00:03:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 F9 02 47 00 28 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6A 41 01 00 F4 03 04 00 1F 4B 11 67 B6 04 01 00 00 B6 1F 6D 67 7F 9B 2D 53 [00:03:49]CommunicateWithHost err = 0 [00:03:49]CheckOFDResponse [00:03:49]1017 (14) - 77093643461234 [00:03:49]1041 (16) - 0000000000871843 [00:03:49]1040 (4) - 82282 [00:03:49]1012 (4) - 17.10.2024 17:36 [00:03:49]1206 (1) - 0 [00:03:49]OFD Sender: Remove packet 82282 [00:03:49]ProducePacketName [00:03:49]name=ofd_packets/00082282 [00:03:49]NVStorageDeleteData [00:03:49]Write to MH i2c: 01 00 00 CF 01 D0 [00:03:49]Write i2c OK [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: 01 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: 01 07 00 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: 01 07 00 CF 01 00 00 00 00 00 F4 0C D7 [00:03:49]RasterBufferAndPrint [00:03:49]line [00:03:49]line [00:03:49]line [00:03:49]line [00:03:49]line [00:03:49]written 0, free lines is 3323 [00:03:49]MH_Cut [00:03:49]Write to MH i2c: D1 01 00 D6 01 01 A9 [00:03:49]Write i2c OK [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: D1 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: D1 01 00 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: D1 01 00 D6 01 00 A8 [00:03:49]Write to MH i2c: 01 00 00 D7 01 D8 [00:03:49]Write i2c OK [00:03:49]MH_I2C_Read... [00:03:50]OFD Sender: No OFD packet to send [00:03:50]*** Cut start [00:03:50]*** Partial cut [00:03:50]*** CUTSNS_PIN = 1 [00:03:50]*** CUTSNS_PIN = 0 [00:03:50]*** Brake cut motor [00:03:50]Read from MH i2c: 01 [00:03:50]MH_I2C_Read... [00:03:50]*** Stop cut motor [00:03:50]*** Cut end [00:03:50]Read from MH i2c: 01 07 00 [00:03:50]MH_I2C_Read... [00:03:50]Read from MH i2c: 01 07 00 D7 01 00 00 00 00 00 FF 0F ED [00:03:50]process_action close_receipt done [00:03:50]requested_data is exist [00:03:50]produce_requested_data [00:03:50]requested_item fm.sn is exist - process it [00:03:50]wFMCommunicate request_size=4 [00:03:50]MH_SAM_APDU [00:03:50]CAPDU: 80 11 00 00 [00:03:50]Write to MH i2c: E2 08 00 D8 01 80 11 00 00 00 00 00 00 53 [00:03:50]Write i2c OK [00:03:50]MH_I2C_Read... [00:03:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:51]Read from MH i2c: E2 [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: E2 17 00 [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: E2 17 00 D8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 A5 [00:03:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:03:51]wFMCommunicate OK [00:03:51]requested_item fd.num is exist - process it [00:03:51]SAM_PROTO_GetFieldsCounters [00:03:51]wFMCommunicate request_size=4 [00:03:51]MH_SAM_APDU [00:03:51]CAPDU: 80 13 00 00 [00:03:51]Write to MH i2c: E2 08 00 D9 01 80 13 00 00 00 00 00 00 56 [00:03:51]Write i2c OK [00:03:51]MH_I2C_Read... [00:03:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:03:51]Read from MH i2c: E2 [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: E2 62 00 [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: E2 62 00 D9 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 6A 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [00:03:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 6A 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:03:51]wFMCommunicate OK [00:03:51]SAM_PROTO_GetFieldsCounters done [00:03:51]requested_item shift.num is exist - process it [00:03:51]requested_item shift.opened is exist - process it [00:03:51]req_shift_opened [00:03:51]FM_GetShiftState [00:03:51]SAM_PROTO_GetShiftState [00:03:51]wFMCommunicate request_size=4 [00:03:51]MH_SAM_APDU [00:03:51]CAPDU: 80 13 01 00 [00:03:51]Write to MH i2c: E2 08 00 DA 01 80 13 01 00 00 00 00 00 58 [00:03:51]Write i2c OK [00:03:51]MH_I2C_Read... [00:03:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:51]Read from MH i2c: E2 [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: E2 0E 00 [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: E2 0E 00 DA 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 60 [00:03:51]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [00:03:51]wFMCommunicate OK [00:03:51]SAM_PROTO_GetShiftState done [00:03:51]FM_GetShiftState done [00:03:51]req_shift_opened done [00:03:51]requested_item shift.open_date is exist - process it [00:03:51]req_shift_open_date [00:03:51]req_shift_open_date done [00:03:51]produce_requested_data done [00:03:51]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82282,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [00:03:51]process_action_free close_receipt [00:03:51]json_value_free [00:03:51]json_value_free done [00:03:51]process_json_proto returns [00:03:51]Send response to host [00:03:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82282,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [00:03:51]free response buf [00:03:51]execute_script done [00:03:51]execute_script returns [00:03:51]free content buf [00:03:51]Sock 10.Close socket [00:03:51]Sock 10.Thread stoped [00:03:55]OFD Sender: No OFD packet to send [00:04:00]OFD Sender: No OFD packet to send [00:04:05]OFD Sender: No OFD packet to send [00:04:10]OFD Sender: No OFD packet to send [00:04:15]OFD Sender: No OFD packet to send [00:04:20]OFD Sender: No OFD packet to send [00:04:25]OFD Sender: No OFD packet to send [00:04:30]OFD Sender: No OFD packet to send [00:04:35]OFD Sender: No OFD packet to send [00:04:40]OFD Sender: No OFD packet to send [00:04:45]OFD Sender: No OFD packet to send [00:04:50]OFD Sender: No OFD packet to send [00:04:55]OFD Sender: No OFD packet to send [00:05:00]OFD Sender: No OFD packet to send [00:05:05]OFD Sender: No OFD packet to send [00:05:10]OFD Sender: No OFD packet to send [00:05:15]OFD Sender: No OFD packet to send [00:05:20]OFD Sender: No OFD packet to send [00:05:25]OFD Sender: No OFD packet to send [00:05:30]OFD Sender: No OFD packet to send [00:05:30]recv_with_timeout no data received [00:05:35]OFD Sender: No OFD packet to send [00:05:40]OFD Sender: No OFD packet to send [00:05:45]OFD Sender: No OFD packet to send [00:05:50]OFD Sender: No OFD packet to send [00:05:55]OFD Sender: No OFD packet to send [00:06:00]OFD Sender: No OFD packet to send [00:06:05]OFD Sender: No OFD packet to send [00:06:10]OFD Sender: No OFD packet to send [00:06:15]OFD Sender: No OFD packet to send [00:06:20]OFD Sender: No OFD packet to send [00:06:25]accept exits with 7 [00:06:25]New connection [00:06:25]New thread 3067506020 created [00:06:25]Thread 3067362660 joined [00:06:25]Waiting for new connection... [00:06:25] Sock 7.Parse request [00:06:25]Sock 7.Check first char [00:06:25]Sock 7.First char is OK [00:06:25]request: POST /json_proto HTTP/1.0 [00:06:25]Method: POST [00:06:25]URL: /json_proto [00:06:25]Method is POST - this is cgi request [00:06:25]url: /json_proto [00:06:25]query_string will be loaded in cgi processing [00:06:25]execute_cgi json_proto POST (null) [00:06:25]execute_cgi path=json_proto method=POST [00:06:25]POST find Content-Length [00:06:25]Host: 172.17.44.67:8080 [00:06:25]Content-Length: 758 [00:06:25]Content-Type: application/json [00:06:25] [00:06:25]POST finish read [00:06:25]Found Content-Length = 758 [00:06:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 6.870, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100608", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:25]execute_script... [00:06:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 6.870, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100608", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:25]POST & json_proto [00:06:25]process_json_proto [00:06:25]json parsed OK: [00:06:25]protocol is kg_v1.0 [00:06:25]action value=close_receipt [00:06:25]process_action close_receipt [00:06:25]cmd_close_receipt [00:06:25]MH_GetDate [00:06:25]Write to MH i2c: F0 00 00 DB 01 CB [00:06:25]Write i2c OK [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: F0 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: F0 09 00 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: F0 09 00 DB 01 00 81 A6 11 67 F1 C7 6B 64 FA [00:06:25]GetLastDocTimeStamp 1729209827 [00:06:25]current date 1729209985 [00:06:25]FM_GetShiftState [00:06:25]SAM_PROTO_GetShiftState [00:06:25]wFMCommunicate request_size=4 [00:06:25]MH_SAM_APDU [00:06:25]CAPDU: 80 13 01 00 [00:06:25]Write to MH i2c: E2 08 00 DC 01 80 13 01 00 00 00 00 00 5A [00:06:25]Write i2c OK [00:06:25]MH_I2C_Read... [00:06:25]OFD Sender: No OFD packet to send [00:06:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:25]Read from MH i2c: E2 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 0E 00 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 0E 00 DC 01 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 62 [00:06:25]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [00:06:25]wFMCommunicate OK [00:06:25]SAM_PROTO_GetShiftState done [00:06:25]FM_GetShiftState done [00:06:25]opened in 1729125927 [00:06:25]opened+sec_in_day 1729212327 [00:06:25]quantity*price = 0 [00:06:25]sum+1 = 1 [00:06:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 209 18.10.2024 00:06 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30100608 ФМ: 0000000000871843 ФД: 82283 ФПД: 229928185737737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T000625&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82283&fm=229928185737737&tin=02508201610067®Number=0000000000091680&sum=0 [00:06:26]StoreToDocumentArchive [00:06:26]shift 525 fd 82283 [00:06:26]save to /storage/0525/doc_00082283 [00:06:26]save last doc name /storage/0525/doc_00082283 to /storage/kkm_last_doc_name [00:06:26]save OK [00:06:26]Clear old archive folders... [00:06:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:06:26]tlvbuf is 00B869E0 [00:06:26]SAM_PROTO_ClearQueue [00:06:26]wFMCommunicate request_size=4 [00:06:26]MH_SAM_APDU [00:06:26]CAPDU: 80 09 00 00 [00:06:26]Write to MH i2c: E2 08 00 E9 01 80 09 00 00 00 00 00 00 5C [00:06:26]Write i2c OK [00:06:26]MH_I2C_Read... [00:06:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:06:26]Read from MH i2c: E2 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 03 00 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [00:06:26]RAPDU: 90 00 [00:06:26]wFMCommunicate OK [00:06:26]SAM_PROTO_ClearQueue done [00:06:26]KKMCreateOFDPacket [00:06:26]OFDProtocolAddRootSTLVToBuf [00:06:26]FM_MakeSignedData [00:06:26]FM_MakeSignedData [00:06:26]SAM_PROTO_SignData [00:06:26]wFMCommunicate request_size=4 [00:06:26]MH_SAM_APDU [00:06:26]CAPDU: 80 0D 01 02 [00:06:26]Write to MH i2c: E2 08 00 EA 01 80 0D 01 02 00 00 00 00 64 [00:06:26]Write i2c OK [00:06:26]MH_I2C_Read... [00:06:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:06:26]Read from MH i2c: E2 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 03 00 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [00:06:26]RAPDU: 90 00 [00:06:26]wFMCommunicate OK [00:06:26]wFMCommunicate request_size=255 [00:06:26]MH_SAM_APDU [00:06:26]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D6 1A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 81 A6 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6B 41 01 00 35 04 06 00 [00:06:26]Write to MH i2c: E2 02 01 EB 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D6 1A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 81 A6 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6B 41 01 00 35 04 06 00 00 00 C3 [00:06:26]Write i2c OK [00:06:26]MH_I2C_Read... [00:06:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:26]Read from MH i2c: E2 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 03 00 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [00:06:26]RAPDU: 90 00 [00:06:26]wFMCommunicate OK [00:06:26]wFMCommunicate request_size=11 [00:06:26]MH_SAM_APDU [00:06:26]CAPDU: 80 0D 02 02 06 D1 1E 53 D5 B2 09 [00:06:26]Write to MH i2c: E2 0E 00 EC 01 80 0D 02 02 06 00 D1 1E 53 D5 B2 09 00 00 45 [00:06:26]Write i2c OK [00:06:26]MH_I2C_Read... [00:06:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:26]Read from MH i2c: E2 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 03 00 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [00:06:26]RAPDU: 90 00 [00:06:26]wFMCommunicate OK [00:06:26]wFMCommunicate request_size=4 [00:06:26]MH_SAM_APDU [00:06:26]CAPDU: 80 0D 03 02 [00:06:26]Write to MH i2c: E2 08 00 ED 01 80 0D 03 02 00 00 00 00 69 [00:06:26]Write i2c OK [00:06:26]MH_I2C_Read... [00:06:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:06:26]Read from MH i2c: E2 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 0B 00 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 0B 00 ED 01 00 A3 42 9C C9 2B F8 54 8E 90 00 B9 [00:06:26]RAPDU: A3 42 9C C9 2B F8 54 8E 90 00 [00:06:26]wFMCommunicate OK [00:06:26]SAM_PROTO_SignData done [00:06:26]FM_MakeSignedData done [00:06:26]CreateOFDProtocolMessage [00:06:26]wFMCommunicate request_size=4 [00:06:26]MH_SAM_APDU [00:06:26]CAPDU: 80 11 00 00 [00:06:26]Write to MH i2c: E2 08 00 EE 01 80 11 00 00 00 00 00 00 69 [00:06:26]Write i2c OK [00:06:26]MH_I2C_Read... [00:06:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:26]Read from MH i2c: E2 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 17 00 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 17 00 EE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 BB [00:06:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:06:26]wFMCommunicate OK [00:06:26]CreateOFDProtocolMessage done [00:06:26]OFDSenderStorePacket 82283 [00:06:26]StoreOFDPacket docnum=82283 [00:06:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 C6 D1 08 01 22 C3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D6 1A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 81 A6 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6B 41 01 00 35 04 06 00 D1 1E 53 D5 B2 09 A3 42 9C C9 2B F8 54 8E [00:06:26]CheckFolder [00:06:26]dirname=/storage/ofd_packets [00:06:26]CheckFolder done [00:06:26]ProducePacketName [00:06:26]name=ofd_packets/00082283 [00:06:26]NVStorageSaveData ofd_packets/00082283 [00:06:26]File name is /storage/ofd_packets/00082283 [00:06:26]Write 302 bytes [00:06:26]NVStorageSaveData done [00:06:26]OFDSenderStorePacket done [00:06:26]KKMCreateOFDPacket done [00:06:26]NVStorageSaveData kkm_last_timestamp [00:06:26]File name is /storage/kkm_last_timestamp [00:06:26]Write 4 bytes [00:06:26]NVStorageSaveData done [00:06:26]ExternCall_PrintAddStr [00:06:26]wPrintStart [00:06:26]Write to MH i2c: 01 00 00 EF 01 F0 [00:06:26]Write i2c OK [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: 01 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: 01 07 00 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: 01 07 00 EF 01 00 00 00 00 00 FF 0F 05 [00:06:26]RasterBufferAndPrint [00:06:26]line Счет N : (1)918784 [00:06:26]line ИНН: 02508201610067 [00:06:26]line Контрольно-Кассовый Чек [00:06:26]line ПРОДАЖА [00:06:26]line ТРК (МРК, ГНК) : 31 [00:06:26]line Товар: 2710194210 [00:06:26]line ДТ(л)-К-5 [00:06:26]line 6.870 * 0.00 [00:06:26]line = 0.00 [00:06:26]line НДС 12% НСП 1% [00:06:26]line > о реализуемом товаре [00:06:26]line ИТОГО: 0.00 [00:06:26]line НСП 1% : 0.00 [00:06:26]line НДС 12% : 0.00 [00:06:26]line Наличными: 0.00 [00:06:26]line Безнал.: 0.00 [00:06:26]line Место: АЗС № 114 "Партнер Нефть" [00:06:26]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [00:06:26]line СНО: Общий режим [00:06:26]line Чек 209 18.10.2024 00:06 [00:06:26]line Смена: 525 ФФД: 1.0 [00:06:26]line ЗНМ: 0300000086 [00:06:26]line РНМ: 0000000000091680 [00:06:26]line Версия ККМ: 001 [00:06:26]line Талоны: ТК ГПНА Online [00:06:26]line 30100608 [00:06:26]line ФМ: 0000000000871843 [00:06:26]line ФД: 82283 [00:06:26]line ФПД: 229928185737737 [00:06:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T000625&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82283&fm=229928185737737&tin=02508201610067®Number=0000000000091680&sum=0 [00:06:27]written 0, free lines is 4095 [00:06:27]OFD Sender: Processing packet 82283 [packets to send 254, broken 253] [00:06:27]ProducePacketName [00:06:27]name=ofd_packets/00082283 [00:06:27]OFD Sender: To server: pG, [00:06:27]CommunicateWithHost lk.salyk.kg:30040 [00:06:27]ConnectInit lk.salyk.kg [00:06:27]Connected sock=9 [00:06:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 C6 D1 08 01 22 C3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D6 1A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 81 A6 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6B 41 01 00 35 04 06 00 D1 1E 53 D5 B2 09 A3 42 9C C9 2B F8 54 8E [00:06:27]Write to MH i2c: 01 00 00 19 02 1B [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: 01 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: 01 07 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: 01 07 00 19 02 00 00 00 00 00 E0 0C 0E [00:06:27]RasterBufferAndPrint [00:06:27]line [00:06:27]line [00:06:27]line [00:06:27]line [00:06:27]line [00:06:27]written 0, free lines is 3303 [00:06:27]MH_Cut [00:06:27]Write to MH i2c: D1 01 00 20 02 01 F4 [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: D1 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: D1 01 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: D1 01 00 20 02 00 F3 [00:06:27]Write to MH i2c: 01 00 00 21 02 23 [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 FA 31 47 00 14 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6B 41 01 00 F4 03 04 00 BE 4B 11 67 B6 04 01 00 00 43 4D 94 27 7F 27 B7 18 [00:06:28]CommunicateWithHost err = 0 [00:06:28]CheckOFDResponse [00:06:28]1017 (14) - 77093643461234 [00:06:28]1041 (16) - 0000000000871843 [00:06:28]1040 (4) - 82283 [00:06:28]1012 (4) - 17.10.2024 17:39 [00:06:28]1206 (1) - 0 [00:06:28]OFD Sender: Remove packet 82283 [00:06:28]ProducePacketName [00:06:28]name=ofd_packets/00082283 [00:06:28]NVStorageDeleteData [00:06:28]*** Cut start [00:06:28]*** Partial cut [00:06:28]*** CUTSNS_PIN = 1 [00:06:28]*** CUTSNS_PIN = 0 [00:06:28]OFD Sender: No OFD packet to send [00:06:28]*** Brake cut motor [00:06:29]Read from MH i2c: 01 [00:06:29]MH_I2C_Read... [00:06:29]*** Stop cut motor [00:06:29]*** Cut end [00:06:29]Read from MH i2c: 01 07 00 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: 01 07 00 21 02 00 00 00 00 00 FF 0F 38 [00:06:29]process_action close_receipt done [00:06:29]requested_data is exist [00:06:29]produce_requested_data [00:06:29]requested_item fm.sn is exist - process it [00:06:29]wFMCommunicate request_size=4 [00:06:29]MH_SAM_APDU [00:06:29]CAPDU: 80 11 00 00 [00:06:29]Write to MH i2c: E2 08 00 22 02 80 11 00 00 00 00 00 00 9E [00:06:29]Write i2c OK [00:06:29]MH_I2C_Read... [00:06:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:29]Read from MH i2c: E2 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: E2 17 00 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: E2 17 00 22 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 F0 [00:06:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:06:29]wFMCommunicate OK [00:06:29]requested_item fd.num is exist - process it [00:06:29]SAM_PROTO_GetFieldsCounters [00:06:29]wFMCommunicate request_size=4 [00:06:29]MH_SAM_APDU [00:06:29]CAPDU: 80 13 00 00 [00:06:29]Write to MH i2c: E2 08 00 23 02 80 13 00 00 00 00 00 00 A1 [00:06:29]Write i2c OK [00:06:29]MH_I2C_Read... [00:06:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:29]Read from MH i2c: E2 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: E2 62 00 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: E2 62 00 23 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 6B 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [00:06:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 6B 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:06:29]wFMCommunicate OK [00:06:29]SAM_PROTO_GetFieldsCounters done [00:06:29]requested_item shift.num is exist - process it [00:06:29]requested_item shift.opened is exist - process it [00:06:29]req_shift_opened [00:06:29]FM_GetShiftState [00:06:29]SAM_PROTO_GetShiftState [00:06:29]wFMCommunicate request_size=4 [00:06:29]MH_SAM_APDU [00:06:29]CAPDU: 80 13 01 00 [00:06:29]Write to MH i2c: E2 08 00 24 02 80 13 01 00 00 00 00 00 A3 [00:06:29]Write i2c OK [00:06:29]MH_I2C_Read... [00:06:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:29]Read from MH i2c: E2 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: E2 0E 00 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: E2 0E 00 24 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 AB [00:06:29]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [00:06:29]wFMCommunicate OK [00:06:29]SAM_PROTO_GetShiftState done [00:06:29]FM_GetShiftState done [00:06:29]req_shift_opened done [00:06:29]requested_item shift.open_date is exist - process it [00:06:29]req_shift_open_date [00:06:29]req_shift_open_date done [00:06:29]produce_requested_data done [00:06:29]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82283,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [00:06:29]process_action_free close_receipt [00:06:29]json_value_free [00:06:29]json_value_free done [00:06:29]process_json_proto returns [00:06:29]Send response to host [00:06:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82283,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [00:06:29]free response buf [00:06:29]execute_script done [00:06:29]execute_script returns [00:06:29]free content buf [00:06:29]Sock 7.Close socket [00:06:29]Sock 7.Thread stoped [00:06:33]OFD Sender: No OFD packet to send [00:06:38]OFD Sender: No OFD packet to send [00:06:43]OFD Sender: No OFD packet to send [00:06:48]OFD Sender: No OFD packet to send [00:06:53]OFD Sender: No OFD packet to send [00:06:53]recv_with_timeout no data received [00:06:58]OFD Sender: No OFD packet to send [00:07:03]OFD Sender: No OFD packet to send [00:07:08]OFD Sender: No OFD packet to send [00:07:13]OFD Sender: No OFD packet to send [00:07:18]OFD Sender: No OFD packet to send [00:07:23]OFD Sender: No OFD packet to send [00:07:28]OFD Sender: No OFD packet to send [00:07:33]OFD Sender: No OFD packet to send [00:07:38]OFD Sender: No OFD packet to send [00:07:43]OFD Sender: No OFD packet to send [00:07:48]OFD Sender: No OFD packet to send [00:07:53]OFD Sender: No OFD packet to send [00:07:58]OFD Sender: No OFD packet to send [00:08:03]OFD Sender: No OFD packet to send [00:08:08]OFD Sender: No OFD packet to send [00:08:13]OFD Sender: No OFD packet to send [00:08:18]OFD Sender: No OFD packet to send [00:08:23]OFD Sender: No OFD packet to send [00:08:28]OFD Sender: No OFD packet to send [00:08:33]OFD Sender: No OFD packet to send [00:08:38]OFD Sender: No OFD packet to send [00:08:43]OFD Sender: No OFD packet to send [00:08:48]OFD Sender: No OFD packet to send [00:08:53]OFD Sender: No OFD packet to send [00:08:58]OFD Sender: No OFD packet to send [00:09:03]OFD Sender: No OFD packet to send [00:09:08]OFD Sender: No OFD packet to send [00:09:09]recv_with_timeout no data received [00:09:13]OFD Sender: No OFD packet to send [00:09:18]OFD Sender: No OFD packet to send [00:09:23]OFD Sender: No OFD packet to send [00:09:28]OFD Sender: No OFD packet to send [00:09:33]OFD Sender: No OFD packet to send [00:09:39]OFD Sender: No OFD packet to send [00:09:44]OFD Sender: No OFD packet to send [00:09:49]OFD Sender: No OFD packet to send [00:09:54]OFD Sender: No OFD packet to send [00:09:59]OFD Sender: No OFD packet to send [00:10:04]OFD Sender: No OFD packet to send [00:10:09]OFD Sender: No OFD packet to send [00:10:14]OFD Sender: No OFD packet to send [00:10:19]OFD Sender: No OFD packet to send [00:10:24]OFD Sender: No OFD packet to send [00:10:29]OFD Sender: No OFD packet to send [00:10:34]OFD Sender: No OFD packet to send [00:10:38]recv_with_timeout no data received [00:10:39]OFD Sender: No OFD packet to send [00:10:44]OFD Sender: No OFD packet to send [00:10:49]OFD Sender: No OFD packet to send [00:10:54]OFD Sender: No OFD packet to send [00:10:59]OFD Sender: No OFD packet to send [00:11:04]OFD Sender: No OFD packet to send [00:11:09]OFD Sender: No OFD packet to send [00:11:14]OFD Sender: No OFD packet to send [00:11:19]OFD Sender: No OFD packet to send [00:11:24]OFD Sender: No OFD packet to send [00:11:29]OFD Sender: No OFD packet to send [00:11:34]OFD Sender: No OFD packet to send [00:11:39]OFD Sender: No OFD packet to send [00:11:44]OFD Sender: No OFD packet to send [00:11:49]OFD Sender: No OFD packet to send [00:11:54]OFD Sender: No OFD packet to send [00:11:59]OFD Sender: No OFD packet to send [00:12:04]OFD Sender: No OFD packet to send [00:12:09]OFD Sender: No OFD packet to send [00:12:14]OFD Sender: No OFD packet to send [00:12:19]OFD Sender: No OFD packet to send [00:12:24]OFD Sender: No OFD packet to send [00:12:29]OFD Sender: No OFD packet to send [00:12:34]OFD Sender: No OFD packet to send [00:12:39]OFD Sender: No OFD packet to send [00:12:44]OFD Sender: No OFD packet to send [00:12:49]OFD Sender: No OFD packet to send [00:12:54]OFD Sender: No OFD packet to send [00:12:59]OFD Sender: No OFD packet to send [00:13:04]OFD Sender: No OFD packet to send [00:13:09]OFD Sender: No OFD packet to send [00:13:14]OFD Sender: No OFD packet to send [00:13:19]OFD Sender: No OFD packet to send [00:13:24]OFD Sender: No OFD packet to send [00:13:29]OFD Sender: No OFD packet to send [00:13:34]OFD Sender: No OFD packet to send [00:13:39]OFD Sender: No OFD packet to send [00:13:44]OFD Sender: No OFD packet to send [00:13:49]OFD Sender: No OFD packet to send [00:13:54]OFD Sender: No OFD packet to send [00:13:59]OFD Sender: No OFD packet to send [00:14:04]OFD Sender: No OFD packet to send [00:14:09]OFD Sender: No OFD packet to send [00:14:14]OFD Sender: No OFD packet to send [00:14:19]OFD Sender: No OFD packet to send [00:14:24]OFD Sender: No OFD packet to send [00:14:29]OFD Sender: No OFD packet to send [00:14:34]OFD Sender: No OFD packet to send [00:14:39]OFD Sender: No OFD packet to send [00:14:44]OFD Sender: No OFD packet to send [00:14:49]OFD Sender: No OFD packet to send [00:14:54]OFD Sender: No OFD packet to send [00:14:59]OFD Sender: No OFD packet to send [00:15:04]OFD Sender: No OFD packet to send [00:15:09]OFD Sender: No OFD packet to send [00:15:14]OFD Sender: No OFD packet to send [00:15:19]OFD Sender: No OFD packet to send [00:15:24]OFD Sender: No OFD packet to send [00:15:29]OFD Sender: No OFD packet to send [00:15:34]OFD Sender: No OFD packet to send [00:15:39]OFD Sender: No OFD packet to send [00:15:44]OFD Sender: No OFD packet to send [00:15:49]OFD Sender: No OFD packet to send [00:15:54]OFD Sender: No OFD packet to send [00:15:59]OFD Sender: No OFD packet to send [00:16:04]OFD Sender: No OFD packet to send [00:16:09]OFD Sender: No OFD packet to send [00:16:14]OFD Sender: No OFD packet to send [00:16:19]OFD Sender: No OFD packet to send [00:16:24]OFD Sender: No OFD packet to send [00:16:29]OFD Sender: No OFD packet to send [00:16:34]OFD Sender: No OFD packet to send [00:16:39]OFD Sender: No OFD packet to send [00:16:44]OFD Sender: No OFD packet to send [00:16:49]OFD Sender: No OFD packet to send [00:16:54]OFD Sender: No OFD packet to send [00:16:59]OFD Sender: No OFD packet to send [00:17:04]OFD Sender: No OFD packet to send [00:17:09]OFD Sender: No OFD packet to send [00:17:14]OFD Sender: No OFD packet to send [00:17:19]OFD Sender: No OFD packet to send [00:17:24]OFD Sender: No OFD packet to send [00:17:29]OFD Sender: No OFD packet to send [00:17:34]OFD Sender: No OFD packet to send [00:17:39]OFD Sender: No OFD packet to send [00:17:44]OFD Sender: No OFD packet to send [00:17:49]OFD Sender: No OFD packet to send [00:17:54]OFD Sender: No OFD packet to send [00:17:59]OFD Sender: No OFD packet to send [00:18:04]OFD Sender: No OFD packet to send [00:18:09]OFD Sender: No OFD packet to send [00:18:10]accept exits with 10 [00:18:10]New connection [00:18:10]New thread 3067362660 created [00:18:10]Thread 3067506020 joined [00:18:10]Waiting for new connection... [00:18:10] Sock 10.Parse request [00:18:10]Sock 10.Check first char [00:18:10]Sock 10.First char is OK [00:18:10]request: POST /json_proto HTTP/1.0 [00:18:10]Method: POST [00:18:10]URL: /json_proto [00:18:10]Method is POST - this is cgi request [00:18:10]url: /json_proto [00:18:10]query_string will be loaded in cgi processing [00:18:10]execute_cgi json_proto POST (null) [00:18:10]execute_cgi path=json_proto method=POST [00:18:10]POST find Content-Length [00:18:10]Host: 172.17.44.67:8080 [00:18:10]Content-Length: 766 [00:18:10]Content-Type: application/json [00:18:10] [00:18:10]POST finish read [00:18:10]Found Content-Length = 766 [00:18:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:10]execute_script... [00:18:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:10]POST & json_proto [00:18:10]process_json_proto [00:18:10]json parsed OK: [00:18:10]protocol is kg_v1.0 [00:18:10]action value=close_receipt [00:18:10]process_action close_receipt [00:18:10]cmd_close_receipt [00:18:10]MH_GetDate [00:18:10]Write to MH i2c: F0 00 00 25 02 16 [00:18:10]Write i2c OK [00:18:10]MH_I2C_Read... [00:18:10]Read from MH i2c: F0 [00:18:10]MH_I2C_Read... [00:18:10]Read from MH i2c: F0 09 00 [00:18:10]MH_I2C_Read... [00:18:10]Read from MH i2c: F0 09 00 25 02 00 42 A9 11 67 F1 C7 6B 64 09 [00:18:10]GetLastDocTimeStamp 1729209985 [00:18:10]current date 1729210690 [00:18:10]FM_GetShiftState [00:18:10]SAM_PROTO_GetShiftState [00:18:10]wFMCommunicate request_size=4 [00:18:10]MH_SAM_APDU [00:18:10]CAPDU: 80 13 01 00 [00:18:10]Write to MH i2c: E2 08 00 26 02 80 13 01 00 00 00 00 00 A5 [00:18:10]Write i2c OK [00:18:10]MH_I2C_Read... [00:18:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:10]Read from MH i2c: E2 [00:18:10]MH_I2C_Read... [00:18:10]Read from MH i2c: E2 0E 00 [00:18:10]MH_I2C_Read... [00:18:10]Read from MH i2c: E2 0E 00 26 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 AD [00:18:10]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [00:18:10]wFMCommunicate OK [00:18:10]SAM_PROTO_GetShiftState done [00:18:10]FM_GetShiftState done [00:18:10]opened in 1729125927 [00:18:10]opened+sec_in_day 1729212327 [00:18:10]quantity*price = 30038 [00:18:10]sum+1 = 30039 [00:18:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 210 18.10.2024 00:18 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82284 ФПД: 49036367345484 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T001810&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82284&fm=49036367345484&tin=02508201610067®Number=0000000000091680&sum=30038 [00:18:11]StoreToDocumentArchive [00:18:11]shift 525 fd 82284 [00:18:11]save to /storage/0525/doc_00082284 [00:18:11]save last doc name /storage/0525/doc_00082284 to /storage/kkm_last_doc_name [00:18:11]save OK [00:18:11]Clear old archive folders... [00:18:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:18:11]tlvbuf is 00B9E7B0 [00:18:11]SAM_PROTO_ClearQueue [00:18:11]wFMCommunicate request_size=4 [00:18:11]MH_SAM_APDU [00:18:11]CAPDU: 80 09 00 00 [00:18:11]Write to MH i2c: E2 08 00 33 02 80 09 00 00 00 00 00 00 A7 [00:18:11]Write i2c OK [00:18:11]MH_I2C_Read... [00:18:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:18:11]Read from MH i2c: E2 [00:18:11]MH_I2C_Read... [00:18:11]Read from MH i2c: E2 03 00 [00:18:11]MH_I2C_Read... [00:18:11]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [00:18:11]RAPDU: 90 00 [00:18:11]wFMCommunicate OK [00:18:11]SAM_PROTO_ClearQueue done [00:18:11]KKMCreateOFDPacket [00:18:11]OFDProtocolAddRootSTLVToBuf [00:18:11]FM_MakeSignedData [00:18:11]FM_MakeSignedData [00:18:11]SAM_PROTO_SignData [00:18:11]wFMCommunicate request_size=4 [00:18:11]MH_SAM_APDU [00:18:11]CAPDU: 80 0D 01 02 [00:18:11]Write to MH i2c: E2 08 00 34 02 80 0D 01 02 00 00 00 00 AF [00:18:11]Write i2c OK [00:18:11]MH_I2C_Read... [00:18:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:18:11]Read from MH i2c: E2 [00:18:11]MH_I2C_Read... [00:18:11]Read from MH i2c: E2 03 00 [00:18:11]MH_I2C_Read... [00:18:11]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [00:18:11]RAPDU: 90 00 [00:18:11]wFMCommunicate OK [00:18:11]wFMCommunicate request_size=255 [00:18:11]MH_SAM_APDU [00:18: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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 42 A9 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6C 41 01 00 35 04 06 00 2C [00:18:11]Write to MH i2c: E2 02 01 35 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 42 A9 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6C 41 01 00 35 04 06 00 2C 00 00 99 [00:18:11]Write i2c OK [00:18:11]MH_I2C_Read... [00:18:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:18:11]Read from MH i2c: E2 [00:18:11]MH_I2C_Read... [00:18:11]Read from MH i2c: E2 03 00 [00:18:11]MH_I2C_Read... [00:18:11]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [00:18:11]RAPDU: 90 00 [00:18:11]wFMCommunicate OK [00:18:11]wFMCommunicate request_size=10 [00:18:11]MH_SAM_APDU [00:18:11]CAPDU: 80 0D 02 02 05 99 2B 41 B7 4C [00:18:11]Write to MH i2c: E2 0D 00 36 02 80 0D 02 02 05 00 99 2B 41 B7 4C 00 00 C4 [00:18:11]Write i2c OK [00:18:11]MH_I2C_Read... [00:18:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:18:11]Read from MH i2c: E2 [00:18:11]MH_I2C_Read... [00:18:11]Read from MH i2c: E2 03 00 [00:18:11]MH_I2C_Read... [00:18:11]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [00:18:11]RAPDU: 90 00 [00:18:11]wFMCommunicate OK [00:18:11]wFMCommunicate request_size=4 [00:18:11]MH_SAM_APDU [00:18:11]CAPDU: 80 0D 03 02 [00:18:11]Write to MH i2c: E2 08 00 37 02 80 0D 03 02 00 00 00 00 B4 [00:18:11]Write i2c OK [00:18:11]MH_I2C_Read... [00:18:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:18:11]Read from MH i2c: E2 [00:18:11]MH_I2C_Read... [00:18:11]Read from MH i2c: E2 0B 00 [00:18:11]MH_I2C_Read... [00:18:11]Read from MH i2c: E2 0B 00 37 02 00 0D 3E 8F B5 2C 2F 65 DC 90 00 E0 [00:18:11]RAPDU: 0D 3E 8F B5 2C 2F 65 DC 90 00 [00:18:11]wFMCommunicate OK [00:18:11]SAM_PROTO_SignData done [00:18:11]FM_MakeSignedData done [00:18:11]CreateOFDProtocolMessage [00:18:11]wFMCommunicate request_size=4 [00:18:11]MH_SAM_APDU [00:18:11]CAPDU: 80 11 00 00 [00:18:11]Write to MH i2c: E2 08 00 38 02 80 11 00 00 00 00 00 00 B4 [00:18:11]Write i2c OK [00:18:11]MH_I2C_Read... [00:18:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:18:11]Read from MH i2c: E2 [00:18:11]MH_I2C_Read... [00:18:11]Read from MH i2c: E2 17 00 [00:18:11]MH_I2C_Read... [00:18:11]Read from MH i2c: E2 17 00 38 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 06 [00:18:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:18:11]wFMCommunicate OK [00:18:11]CreateOFDProtocolMessage done [00:18:11]OFDSenderStorePacket 82284 [00:18:11]StoreOFDPacket docnum=82284 [00:18:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 1D EC 07 01 41 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 42 A9 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6C 41 01 00 35 04 06 00 2C 99 2B 41 B7 4C 0D 3E 8F B5 2C 2F 65 DC [00:18:11]CheckFolder [00:18:11]dirname=/storage/ofd_packets [00:18:11]CheckFolder done [00:18:11]ProducePacketName [00:18:11]name=ofd_packets/00082284 [00:18:11]NVStorageSaveData ofd_packets/00082284 [00:18:11]File name is /storage/ofd_packets/00082284 [00:18:11]Write 301 bytes [00:18:11]NVStorageSaveData done [00:18:11]OFDSenderStorePacket done [00:18:11]KKMCreateOFDPacket done [00:18:11]NVStorageSaveData kkm_last_timestamp [00:18:11]File name is /storage/kkm_last_timestamp [00:18:11]Write 4 bytes [00:18:11]NVStorageSaveData done [00:18:11]ExternCall_PrintAddStr [00:18:11]wPrintStart [00:18:11]Write to MH i2c: 01 00 00 39 02 3B [00:18:11]Write i2c OK [00:18:11]MH_I2C_Read... [00:18:11]Read from MH i2c: 01 [00:18:11]MH_I2C_Read... [00:18:11]Read from MH i2c: 01 07 00 [00:18:11]MH_I2C_Read... [00:18:11]Read from MH i2c: 01 07 00 39 02 00 00 00 00 00 FF 0F 50 [00:18:11]RasterBufferAndPrint [00:18:11]line Счет N : (1)918785 [00:18:11]line ИНН: 02508201610067 [00:18:11]line Контрольно-Кассовый Чек [00:18:11]line ПРОДАЖА [00:18:11]line ТРК (МРК, ГНК) : 11 [00:18:11]line Товар: 2710124130 [00:18:11]line Аи-92-К-4 [00:18:11]line 4.490 * 66.90 [00:18:11]line = 300.38 [00:18:11]line НДС 12% НСП 1% [00:18:11]line > о реализуемом товаре [00:18:11]line ИТОГО: 300.38 [00:18:11]line НСП 1% : 2.66 [00:18:11]line НДС 12% : 31.90 [00:18:11]line Наличными: 0.00 [00:18:11]line Безнал.: 300.38 [00:18:11]line Место: АЗС № 114 "Партнер Нефть" [00:18:11]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [00:18:11]line СНО: Общий режим [00:18:11]line Чек 210 18.10.2024 00:18 [00:18:11]line Смена: 525 ФФД: 1.0 [00:18:11]line ЗНМ: 0300000086 [00:18:11]line РНМ: 0000000000091680 [00:18:11]line Версия ККМ: 001 [00:18:11]line Платежная система: Mbank [00:18:11]line ФМ: 0000000000871843 [00:18:11]line ФД: 82284 [00:18:11]line ФПД: 49036367345484 [00:18:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T001810&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82284&fm=49036367345484&tin=02508201610067®Number=0000000000091680&sum=30038 [00:18:12]OFD Sender: Processing packet 82284 [packets to send 254, broken 253] [00:18:12]ProducePacketName [00:18:12]name=ofd_packets/00082284 [00:18:12]OFD Sender: To server: pG, [00:18:12]CommunicateWithHost lk.salyk.kg:30040 [00:18:12]ConnectInit lk.salyk.kg [00:18:12]written 0, free lines is 4095 [00:18:12]Write to MH i2c: 01 00 00 62 02 64 [00:18:12]Write i2c OK [00:18:12]MH_I2C_Read... [00:18:12]Read from MH i2c: 01 [00:18:12]MH_I2C_Read... [00:18:12]Read from MH i2c: 01 07 00 [00:18:12]MH_I2C_Read... [00:18:12]Read from MH i2c: 01 07 00 62 02 00 00 00 00 00 FB 0C 72 [00:18:12]RasterBufferAndPrint [00:18:12]line [00:18:12]line [00:18:12]line [00:18:12]line [00:18:12]line [00:18:12]written 0, free lines is 3330 [00:18:12]MH_Cut [00:18:12]Write to MH i2c: D1 01 00 69 02 01 3D [00:18:12]Write i2c OK [00:18:12]MH_I2C_Read... [00:18:12]Read from MH i2c: D1 [00:18:12]MH_I2C_Read... [00:18:12]Read from MH i2c: D1 01 00 [00:18:12]MH_I2C_Read... [00:18:12]Read from MH i2c: D1 01 00 69 02 00 3C [00:18:12]Write to MH i2c: 01 00 00 6A 02 6C [00:18:12]Write i2c OK [00:18:12]MH_I2C_Read... [00:18:12]Connected sock=9 [00:18:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 1D EC 07 01 41 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 42 A9 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6C 41 01 00 35 04 06 00 2C 99 2B 41 B7 4C 0D 3E 8F B5 2C 2F 65 DC [00:18:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 91 35 47 00 7F 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6C 41 01 00 F4 03 04 00 7F 4E 11 67 B6 04 01 00 00 E4 69 16 47 63 1A 09 5C [00:18:13]CommunicateWithHost err = 0 [00:18:13]CheckOFDResponse [00:18:13]1017 (14) - 77093643461234 [00:18:13]1041 (16) - 0000000000871843 [00:18:13]1040 (4) - 82284 [00:18:13]1012 (4) - 17.10.2024 17:50 [00:18:13]1206 (1) - 0 [00:18:13]OFD Sender: Remove packet 82284 [00:18:13]ProducePacketName [00:18:13]name=ofd_packets/00082284 [00:18:13]NVStorageDeleteData [00:18:13]*** Cut start [00:18:13]*** Partial cut [00:18:13]*** CUTSNS_PIN = 1 [00:18:13]*** CUTSNS_PIN = 0 [00:18:13]*** Brake cut motor [00:18:13]OFD Sender: No OFD packet to send [00:18:14]Read from MH i2c: 01 [00:18:14]MH_I2C_Read... [00:18:14]*** Stop cut motor [00:18:14]*** Cut end [00:18:14]Read from MH i2c: 01 07 00 [00:18:14]MH_I2C_Read... [00:18:14]Read from MH i2c: 01 07 00 6A 02 00 00 00 00 00 FF 0F 81 [00:18:14]process_action close_receipt done [00:18:14]requested_data is exist [00:18:14]produce_requested_data [00:18:14]requested_item fm.sn is exist - process it [00:18:14]wFMCommunicate request_size=4 [00:18:14]MH_SAM_APDU [00:18:14]CAPDU: 80 11 00 00 [00:18:14]Write to MH i2c: E2 08 00 6B 02 80 11 00 00 00 00 00 00 E7 [00:18:14]Write i2c OK [00:18:14]MH_I2C_Read... [00:18:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:18:14]Read from MH i2c: E2 [00:18:14]MH_I2C_Read... [00:18:14]Read from MH i2c: E2 17 00 [00:18:14]MH_I2C_Read... [00:18:14]Read from MH i2c: E2 17 00 6B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 39 [00:18:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:18:14]wFMCommunicate OK [00:18:14]requested_item fd.num is exist - process it [00:18:14]SAM_PROTO_GetFieldsCounters [00:18:14]wFMCommunicate request_size=4 [00:18:14]MH_SAM_APDU [00:18:14]CAPDU: 80 13 00 00 [00:18:14]Write to MH i2c: E2 08 00 6C 02 80 13 00 00 00 00 00 00 EA [00:18:14]Write i2c OK [00:18:14]MH_I2C_Read... [00:18:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:18:14]Read from MH i2c: E2 [00:18:14]MH_I2C_Read... [00:18:14]Read from MH i2c: E2 62 00 [00:18:14]MH_I2C_Read... [00:18:14]Read from MH i2c: E2 62 00 6C 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 6C 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [00:18:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 6C 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:18:14]wFMCommunicate OK [00:18:14]SAM_PROTO_GetFieldsCounters done [00:18:14]requested_item shift.num is exist - process it [00:18:14]requested_item shift.opened is exist - process it [00:18:14]req_shift_opened [00:18:14]FM_GetShiftState [00:18:14]SAM_PROTO_GetShiftState [00:18:14]wFMCommunicate request_size=4 [00:18:14]MH_SAM_APDU [00:18:14]CAPDU: 80 13 01 00 [00:18:14]Write to MH i2c: E2 08 00 6D 02 80 13 01 00 00 00 00 00 EC [00:18:14]Write i2c OK [00:18:14]MH_I2C_Read... [00:18:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:14]Read from MH i2c: E2 [00:18:14]MH_I2C_Read... [00:18:14]Read from MH i2c: E2 0E 00 [00:18:14]MH_I2C_Read... [00:18:14]Read from MH i2c: E2 0E 00 6D 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 F4 [00:18:14]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [00:18:14]wFMCommunicate OK [00:18:14]SAM_PROTO_GetShiftState done [00:18:14]FM_GetShiftState done [00:18:14]req_shift_opened done [00:18:14]requested_item shift.open_date is exist - process it [00:18:14]req_shift_open_date [00:18:14]req_shift_open_date done [00:18:14]produce_requested_data done [00:18:14]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82284,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [00:18:14]process_action_free close_receipt [00:18:14]json_value_free [00:18:14]json_value_free done [00:18:14]process_json_proto returns [00:18:14]Send response to host [00:18:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82284,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [00:18:14]free response buf [00:18:14]execute_script done [00:18:14]execute_script returns [00:18:14]free content buf [00:18:14]Sock 10.Close socket [00:18:14]Sock 10.Thread stoped [00:18:18]OFD Sender: No OFD packet to send [00:18:23]OFD Sender: No OFD packet to send [00:18:28]OFD Sender: No OFD packet to send [00:18:33]OFD Sender: No OFD packet to send [00:18:38]OFD Sender: No OFD packet to send [00:18:43]OFD Sender: No OFD packet to send [00:18:49]OFD Sender: No OFD packet to send [00:18:54]OFD Sender: No OFD packet to send [00:18:59]OFD Sender: No OFD packet to send [00:19:02]accept exits with 7 [00:19:02]New connection [00:19:02]New thread 3067506020 created [00:19:02]Thread 3067362660 joined [00:19:02]Waiting for new connection... [00:19:02] Sock 7.Parse request [00:19:02]Sock 7.Check first char [00:19:02]Sock 7.First char is OK [00:19:02]request: POST /json_proto HTTP/1.0 [00:19:02]Method: POST [00:19:02]URL: /json_proto [00:19:02]Method is POST - this is cgi request [00:19:02]url: /json_proto [00:19:02]query_string will be loaded in cgi processing [00:19:02]execute_cgi json_proto POST (null) [00:19:02]execute_cgi path=json_proto method=POST [00:19:02]POST find Content-Length [00:19:02]Host: 172.17.44.67:8080 [00:19:02]Content-Length: 766 [00:19:02]Content-Type: application/json [00:19:02] [00:19:02]POST finish read [00:19:02]Found Content-Length = 766 [00:19:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 150.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:02]execute_script... [00:19: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)918786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 150.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:02]POST & json_proto [00:19:02]process_json_proto [00:19:02]json parsed OK: [00:19:02]protocol is kg_v1.0 [00:19:02]action value=close_receipt [00:19:02]process_action close_receipt [00:19:02]cmd_close_receipt [00:19:02]MH_GetDate [00:19:02]Write to MH i2c: F0 00 00 6E 02 5F [00:19:02]Write i2c OK [00:19:02]MH_I2C_Read... [00:19:02]Read from MH i2c: F0 [00:19:02]MH_I2C_Read... [00:19:02]Read from MH i2c: F0 09 00 [00:19:02]MH_I2C_Read... [00:19:02]Read from MH i2c: F0 09 00 6E 02 00 77 A9 11 67 F1 C7 6B 64 87 [00:19:02]GetLastDocTimeStamp 1729210690 [00:19:02]current date 1729210743 [00:19:02]FM_GetShiftState [00:19:02]SAM_PROTO_GetShiftState [00:19:02]wFMCommunicate request_size=4 [00:19:02]MH_SAM_APDU [00:19:02]CAPDU: 80 13 01 00 [00:19:02]Write to MH i2c: E2 08 00 6F 02 80 13 01 00 00 00 00 00 EE [00:19:02]Write i2c OK [00:19:02]MH_I2C_Read... [00:19:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:02]Read from MH i2c: E2 [00:19:02]MH_I2C_Read... [00:19:02]Read from MH i2c: E2 0E 00 [00:19:02]MH_I2C_Read... [00:19:02]Read from MH i2c: E2 0E 00 6F 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 F6 [00:19:02]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [00:19:02]wFMCommunicate OK [00:19:02]SAM_PROTO_GetShiftState done [00:19:02]FM_GetShiftState done [00:19:02]opened in 1729125927 [00:19:02]opened+sec_in_day 1729212327 [00:19:02]quantity*price = 15052 [00:19:02]sum+1 = 15054 [00:19:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.53 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 0.00 Безнал.: 150.53 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 211 18.10.2024 00:19 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82285 ФПД: 160910975833973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T001903&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82285&fm=160910975833973&tin=02508201610067®Number=0000000000091680&sum=15053 [00:19:03]StoreToDocumentArchive [00:19:03]shift 525 fd 82285 [00:19:03]save to /storage/0525/doc_00082285 [00:19:03]save last doc name /storage/0525/doc_00082285 to /storage/kkm_last_doc_name [00:19:03]save OK [00:19:03]Clear old archive folders... [00:19:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:19:03]tlvbuf is 00B88460 [00:19:03]SAM_PROTO_ClearQueue [00:19:03]wFMCommunicate request_size=4 [00:19:03]MH_SAM_APDU [00:19:03]CAPDU: 80 09 00 00 [00:19:03]Write to MH i2c: E2 08 00 7C 02 80 09 00 00 00 00 00 00 F0 [00:19:03]Write i2c OK [00:19:03]MH_I2C_Read... [00:19:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:19:03]Read from MH i2c: E2 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: E2 03 00 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: E2 03 00 7C 02 00 90 00 F2 [00:19:03]RAPDU: 90 00 [00:19:03]wFMCommunicate OK [00:19:03]SAM_PROTO_ClearQueue done [00:19:03]KKMCreateOFDPacket [00:19:03]OFDProtocolAddRootSTLVToBuf [00:19:03]FM_MakeSignedData [00:19:03]FM_MakeSignedData [00:19:03]SAM_PROTO_SignData [00:19:03]wFMCommunicate request_size=4 [00:19:03]MH_SAM_APDU [00:19:03]CAPDU: 80 0D 01 02 [00:19:03]Write to MH i2c: E2 08 00 7D 02 80 0D 01 02 00 00 00 00 F8 [00:19:03]Write i2c OK [00:19:03]MH_I2C_Read... [00:19:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:19:03]Read from MH i2c: E2 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: E2 03 00 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [00:19:03]RAPDU: 90 00 [00:19:03]wFMCommunicate OK [00:19:03]wFMCommunicate request_size=255 [00:19:03]MH_SAM_APDU [00:19:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CD 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CD 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 77 A9 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6D 41 01 00 35 04 06 00 92 [00:19:03]Write to MH i2c: E2 02 01 7E 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CD 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CD 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 77 A9 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6D 41 01 00 35 04 06 00 92 00 00 A6 [00:19:03]Write i2c OK [00:19:03]MH_I2C_Read... [00:19:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:03]Read from MH i2c: E2 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: E2 03 00 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [00:19:03]RAPDU: 90 00 [00:19:03]wFMCommunicate OK [00:19:03]wFMCommunicate request_size=10 [00:19:03]MH_SAM_APDU [00:19:03]CAPDU: 80 0D 02 02 05 59 01 8E 17 75 [00:19:03]Write to MH i2c: E2 0D 00 7F 02 80 0D 02 02 05 00 59 01 8E 17 75 00 00 79 [00:19:03]Write i2c OK [00:19:03]MH_I2C_Read... [00:19:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:04]Read from MH i2c: E2 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: E2 03 00 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: E2 03 00 7F 02 00 90 00 F5 [00:19:04]RAPDU: 90 00 [00:19:04]wFMCommunicate OK [00:19:04]wFMCommunicate request_size=4 [00:19:04]MH_SAM_APDU [00:19:04]CAPDU: 80 0D 03 02 [00:19:04]Write to MH i2c: E2 08 00 80 02 80 0D 03 02 00 00 00 00 FD [00:19:04]Write i2c OK [00:19:04]MH_I2C_Read... [00:19:04]OFD Sender: No OFD packet to send [00:19:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:19:04]Read from MH i2c: E2 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: E2 0B 00 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: E2 0B 00 80 02 00 9D A9 6C 51 03 42 8E 8B 90 00 5F [00:19:04]RAPDU: 9D A9 6C 51 03 42 8E 8B 90 00 [00:19:04]wFMCommunicate OK [00:19:04]SAM_PROTO_SignData done [00:19:04]FM_MakeSignedData done [00:19:04]CreateOFDProtocolMessage [00:19:04]wFMCommunicate request_size=4 [00:19:04]MH_SAM_APDU [00:19:04]CAPDU: 80 11 00 00 [00:19:04]Write to MH i2c: E2 08 00 81 02 80 11 00 00 00 00 00 00 FD [00:19:04]Write i2c OK [00:19:04]MH_I2C_Read... [00:19:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:04]Read from MH i2c: E2 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: E2 17 00 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: E2 17 00 81 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 4F [00:19:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:19:04]wFMCommunicate OK [00:19:04]CreateOFDProtocolMessage done [00:19:04]OFDSenderStorePacket 82285 [00:19:04]StoreOFDPacket docnum=82285 [00:19:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 D3 06 07 01 DD 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CD 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CD 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 77 A9 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6D 41 01 00 35 04 06 00 92 59 01 8E 17 75 9D A9 6C 51 03 42 8E 8B [00:19:04]CheckFolder [00:19:04]dirname=/storage/ofd_packets [00:19:04]CheckFolder done [00:19:04]ProducePacketName [00:19:04]name=ofd_packets/00082285 [00:19:04]NVStorageSaveData ofd_packets/00082285 [00:19:04]File name is /storage/ofd_packets/00082285 [00:19:04]Write 301 bytes [00:19:04]NVStorageSaveData done [00:19:04]OFDSenderStorePacket done [00:19:04]KKMCreateOFDPacket done [00:19:04]NVStorageSaveData kkm_last_timestamp [00:19:04]File name is /storage/kkm_last_timestamp [00:19:04]Write 4 bytes [00:19:04]NVStorageSaveData done [00:19:04]ExternCall_PrintAddStr [00:19:04]wPrintStart [00:19:04]Write to MH i2c: 01 00 00 82 02 84 [00:19:04]Write i2c OK [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: 01 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: 01 07 00 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: 01 07 00 82 02 00 00 00 00 00 FF 0F 99 [00:19:04]RasterBufferAndPrint [00:19:04]line Счет N : (1)918786 [00:19:04]line ИНН: 02508201610067 [00:19:04]line Контрольно-Кассовый Чек [00:19:04]line ПРОДАЖА [00:19:04]line ТРК (МРК, ГНК) : 22 [00:19:04]line Товар: 2710124130 [00:19:04]line Аи-92-К-4 [00:19:04]line 2.250 * 66.90 [00:19:04]line = 150.53 [00:19:04]line НДС 12% НСП 1% [00:19:04]line > о реализуемом товаре [00:19:04]line ИТОГО: 150.53 [00:19:04]line НСП 1% : 1.33 [00:19:04]line НДС 12% : 15.98 [00:19:04]line Наличными: 0.00 [00:19:04]line Безнал.: 150.53 [00:19:04]line Место: АЗС № 114 "Партнер Нефть" [00:19:04]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [00:19:04]line СНО: Общий режим [00:19:04]line Чек 211 18.10.2024 00:19 [00:19:04]line Смена: 525 ФФД: 1.0 [00:19:04]line ЗНМ: 0300000086 [00:19:04]line РНМ: 0000000000091680 [00:19:04]line Версия ККМ: 001 [00:19:04]line Платежная система: Mbank [00:19:04]line ФМ: 0000000000871843 [00:19:04]line ФД: 82285 [00:19:04]line ФПД: 160910975833973 [00:19:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T001903&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82285&fm=160910975833973&tin=02508201610067®Number=0000000000091680&sum=15053 [00:19:04]OFD Sender: Processing packet 82285 [packets to send 254, broken 253] [00:19:04]ProducePacketName [00:19:04]name=ofd_packets/00082285 [00:19:04]OFD Sender: To server: pG, [00:19:04]CommunicateWithHost lk.salyk.kg:30040 [00:19:04]ConnectInit lk.salyk.kg [00:19:04]written 0, free lines is 4095 [00:19:04]Write to MH i2c: 01 00 00 AB 02 AD [00:19:04]Write i2c OK [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: 01 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: 01 07 00 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: 01 07 00 AB 02 00 00 00 00 00 FB 0C BB [00:19:04]RasterBufferAndPrint [00:19:04]line [00:19:04]line [00:19:04]line [00:19:04]line [00:19:04]line [00:19:04]written 0, free lines is 3330 [00:19:04]MH_Cut [00:19:04]Write to MH i2c: D1 01 00 B2 02 01 86 [00:19:04]Write i2c OK [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: D1 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: D1 01 00 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: D1 01 00 B2 02 00 85 [00:19:04]Write to MH i2c: 01 00 00 B3 02 B5 [00:19:04]Write i2c OK [00:19:04]MH_I2C_Read... [00:19:05]*** Cut start [00:19:05]*** Partial cut [00:19:05]*** CUTSNS_PIN = 1 [00:19:05]Connected sock=10 [00:19:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 D3 06 07 01 DD 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CD 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CD 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 77 A9 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6D 41 01 00 35 04 06 00 92 59 01 8E 17 75 9D A9 6C 51 03 42 8E 8B [00:19:05]*** CUTSNS_PIN = 0 [00:19:05]*** Brake cut motor [00:19:06]Read from MH i2c: 01 [00:19:06]MH_I2C_Read... [00:19:06]*** Stop cut motor [00:19:06]*** Cut end [00:19:06]Read from MH i2c: 01 07 00 [00:19:06]MH_I2C_Read... [00:19:06]Read from MH i2c: 01 07 00 B3 02 00 00 00 00 00 FF 0F CA [00:19:06]process_action close_receipt done [00:19:06]requested_data is exist [00:19:06]produce_requested_data [00:19:06]requested_item fm.sn is exist - process it [00:19:06]wFMCommunicate request_size=4 [00:19:06]MH_SAM_APDU [00:19:06]CAPDU: 80 11 00 00 [00:19:06]Write to MH i2c: E2 08 00 B4 02 80 11 00 00 00 00 00 00 30 [00:19:06]Write i2c OK [00:19:06]MH_I2C_Read... [00:19:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:06]Read from MH i2c: E2 [00:19:06]MH_I2C_Read... [00:19:06]Read from MH i2c: E2 17 00 [00:19:06]MH_I2C_Read... [00:19:06]Read from MH i2c: E2 17 00 B4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 82 [00:19:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:19:06]wFMCommunicate OK [00:19:06]requested_item fd.num is exist - process it [00:19:06]SAM_PROTO_GetFieldsCounters [00:19:06]wFMCommunicate request_size=4 [00:19:06]MH_SAM_APDU [00:19:06]CAPDU: 80 13 00 00 [00:19:06]Write to MH i2c: E2 08 00 B5 02 80 13 00 00 00 00 00 00 33 [00:19:06]Write i2c OK [00:19:06]MH_I2C_Read... [00:19:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:06]Read from MH i2c: E2 [00:19:06]MH_I2C_Read... [00:19:06]Read from MH i2c: E2 62 00 [00:19:06]MH_I2C_Read... [00:19:06]Read from MH i2c: E2 62 00 B5 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 6D 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [00:19:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 6D 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:19:06]wFMCommunicate OK [00:19:06]SAM_PROTO_GetFieldsCounters done [00:19:06]requested_item shift.num is exist - process it [00:19:06]requested_item shift.opened is exist - process it [00:19:06]req_shift_opened [00:19:06]FM_GetShiftState [00:19:06]SAM_PROTO_GetShiftState [00:19:06]wFMCommunicate request_size=4 [00:19:06]MH_SAM_APDU [00:19:06]CAPDU: 80 13 01 00 [00:19:06]Write to MH i2c: E2 08 00 B6 02 80 13 01 00 00 00 00 00 35 [00:19:06]Write i2c OK [00:19:06]MH_I2C_Read... [00:19:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:06]Read from MH i2c: E2 [00:19:06]MH_I2C_Read... [00:19:06]Read from MH i2c: E2 0E 00 [00:19:06]MH_I2C_Read... [00:19:06]Read from MH i2c: E2 0E 00 B6 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 3D [00:19:06]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [00:19:06]wFMCommunicate OK [00:19:06]SAM_PROTO_GetShiftState done [00:19:06]FM_GetShiftState done [00:19:06]req_shift_opened done [00:19:06]requested_item shift.open_date is exist - process it [00:19:06]req_shift_open_date [00:19:06]req_shift_open_date done [00:19:06]produce_requested_data done [00:19:06]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82285,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [00:19:06]process_action_free close_receipt [00:19:06]json_value_free [00:19:06]json_value_free done [00:19:06]process_json_proto returns [00:19:06]Send response to host [00:19:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82285,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [00:19:06]free response buf [00:19:06]execute_script done [00:19:06]execute_script returns [00:19:06]free content buf [00:19:06]Sock 7.Close socket [00:19:06]Sock 7.Thread stoped [00:19:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 C6 80 47 00 A1 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6D 41 01 00 F4 03 04 00 B4 4E 11 67 B6 04 01 00 00 16 FC DC 4A 60 8F 85 69 [00:19:06]CommunicateWithHost err = 0 [00:19:06]CheckOFDResponse [00:19:06]1017 (14) - 77093643461234 [00:19:06]1041 (16) - 0000000000871843 [00:19:06]1040 (4) - 82285 [00:19:06]1012 (4) - 17.10.2024 17:51 [00:19:06]1206 (1) - 0 [00:19:06]OFD Sender: Remove packet 82285 [00:19:06]ProducePacketName [00:19:06]name=ofd_packets/00082285 [00:19:06]NVStorageDeleteData [00:19:07]OFD Sender: No OFD packet to send [00:19:12]recv_with_timeout no data received [00:19:12]OFD Sender: No OFD packet to send [00:19:17]OFD Sender: No OFD packet to send [00:19:22]OFD Sender: No OFD packet to send [00:19:22]recv_with_timeout no data received [00:19:27]OFD Sender: No OFD packet to send [00:19:32]OFD Sender: No OFD packet to send [00:19:35]recv_with_timeout no data received [00:19:37]OFD Sender: No OFD packet to send [00:19:42]OFD Sender: No OFD packet to send [00:19:47]OFD Sender: No OFD packet to send [00:19:47]recv_with_timeout no data received [00:19:52]OFD Sender: No OFD packet to send [00:19:57]OFD Sender: No OFD packet to send [00:20:02]OFD Sender: No OFD packet to send [00:20:07]OFD Sender: No OFD packet to send [00:20:12]OFD Sender: No OFD packet to send [00:20:17]OFD Sender: No OFD packet to send [00:20:22]OFD Sender: No OFD packet to send [00:20:27]OFD Sender: No OFD packet to send [00:20:32]OFD Sender: No OFD packet to send [00:20:37]OFD Sender: No OFD packet to send [00:20:42]OFD Sender: No OFD packet to send [00:20:47]OFD Sender: No OFD packet to send [00:20:50]recv_with_timeout no data received [00:20:52]OFD Sender: No OFD packet to send [00:20:57]OFD Sender: No OFD packet to send [00:21:02]OFD Sender: No OFD packet to send [00:21:07]OFD Sender: No OFD packet to send [00:21:12]OFD Sender: No OFD packet to send [00:21:17]OFD Sender: No OFD packet to send [00:21:22]OFD Sender: No OFD packet to send [00:21:27]OFD Sender: No OFD packet to send [00:21:32]OFD Sender: No OFD packet to send [00:21:37]OFD Sender: No OFD packet to send [00:21:42]OFD Sender: No OFD packet to send [00:21:47]OFD Sender: No OFD packet to send [00:21:52]OFD Sender: No OFD packet to send [00:21:57]OFD Sender: No OFD packet to send [00:22:02]OFD Sender: No OFD packet to send [00:22:07]OFD Sender: No OFD packet to send [00:22:09]recv_with_timeout no data received [00:22:12]OFD Sender: No OFD packet to send [00:22:17]OFD Sender: No OFD packet to send [00:22:22]OFD Sender: No OFD packet to send [00:22:27]OFD Sender: No OFD packet to send [00:22:32]OFD Sender: No OFD packet to send [00:22:37]OFD Sender: No OFD packet to send [00:22:42]OFD Sender: No OFD packet to send [00:22:47]OFD Sender: No OFD packet to send [00:22:52]OFD Sender: No OFD packet to send [00:22:57]OFD Sender: No OFD packet to send [00:23:02]OFD Sender: No OFD packet to send [00:23:07]OFD Sender: No OFD packet to send [00:23:09]recv_with_timeout no data received [00:23:12]OFD Sender: No OFD packet to send [00:23:17]OFD Sender: No OFD packet to send [00:23:22]OFD Sender: No OFD packet to send [00:23:27]OFD Sender: No OFD packet to send [00:23:27]recv_with_timeout no data received [00:23:32]OFD Sender: No OFD packet to send [00:23:37]OFD Sender: No OFD packet to send [00:23:42]OFD Sender: No OFD packet to send [00:23:44]recv_with_timeout no data received [00:23:47]OFD Sender: No OFD packet to send [00:23:52]OFD Sender: No OFD packet to send [00:23:57]OFD Sender: No OFD packet to send [00:24:02]OFD Sender: No OFD packet to send [00:24:03]recv_with_timeout no data received [00:24:07]OFD Sender: No OFD packet to send [00:24:12]OFD Sender: No OFD packet to send [00:24:17]OFD Sender: No OFD packet to send [00:24:22]OFD Sender: No OFD packet to send [00:24:27]OFD Sender: No OFD packet to send [00:24:32]OFD Sender: No OFD packet to send [00:24:33]recv_with_timeout no data received [00:24:37]OFD Sender: No OFD packet to send [00:24:42]OFD Sender: No OFD packet to send [00:24:47]OFD Sender: No OFD packet to send [00:24:52]OFD Sender: No OFD packet to send [00:24:57]OFD Sender: No OFD packet to send [00:25:02]OFD Sender: No OFD packet to send [00:25:07]OFD Sender: No OFD packet to send [00:25:12]OFD Sender: No OFD packet to send [00:25:17]OFD Sender: No OFD packet to send [00:25:21]recv_with_timeout no data received [00:25:22]OFD Sender: No OFD packet to send [00:25:27]OFD Sender: No OFD packet to send [00:25:32]OFD Sender: No OFD packet to send [00:25:37]OFD Sender: No OFD packet to send [00:25:42]OFD Sender: No OFD packet to send [00:25:47]OFD Sender: No OFD packet to send [00:25:52]OFD Sender: No OFD packet to send [00:25:57]OFD Sender: No OFD packet to send [00:26:02]OFD Sender: No OFD packet to send [00:26:07]OFD Sender: No OFD packet to send [00:26:12]OFD Sender: No OFD packet to send [00:26:17]OFD Sender: No OFD packet to send [00:26:22]OFD Sender: No OFD packet to send [00:26:27]OFD Sender: No OFD packet to send [00:26:32]OFD Sender: No OFD packet to send [00:26:37]OFD Sender: No OFD packet to send [00:26:42]OFD Sender: No OFD packet to send [00:26:43]accept exits with 9 [00:26:43]New connection [00:26:43]New thread 3067362660 created [00:26:43]Thread 3067506020 joined [00:26:43]Waiting for new connection... [00:26:43] Sock 9.Parse request [00:26:43]Sock 9.Check first char [00:26:43]Sock 9.First char is OK [00:26:43]request: POST /json_proto HTTP/1.0 [00:26:43]Method: POST [00:26:43]URL: /json_proto [00:26:43]Method is POST - this is cgi request [00:26:43]url: /json_proto [00:26:43]query_string will be loaded in cgi processing [00:26:43]execute_cgi json_proto POST (null) [00:26:43]execute_cgi path=json_proto method=POST [00:26:43]POST find Content-Length [00:26:43]Host: 172.17.44.67:8080 [00:26:43]Content-Length: 677 [00:26:43]Content-Type: application/json [00:26:43] [00:26:43]POST finish read [00:26:43]Found Content-Length = 677 [00:26:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:43]execute_script... [00:26: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)918788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:43]POST & json_proto [00:26:43]process_json_proto [00:26:43]json parsed OK: [00:26:43]protocol is kg_v1.0 [00:26:43]action value=close_receipt [00:26:43]process_action close_receipt [00:26:43]cmd_close_receipt [00:26:43]MH_GetDate [00:26:43]Write to MH i2c: F0 00 00 B7 02 A8 [00:26:43]Write i2c OK [00:26:43]MH_I2C_Read... [00:26:43]Read from MH i2c: F0 [00:26:43]MH_I2C_Read... [00:26:43]Read from MH i2c: F0 09 00 [00:26:43]MH_I2C_Read... [00:26:43]Read from MH i2c: F0 09 00 B7 02 00 43 AB 11 67 F1 C7 6B 64 9E [00:26:43]GetLastDocTimeStamp 1729210743 [00:26:43]current date 1729211203 [00:26:43]FM_GetShiftState [00:26:43]SAM_PROTO_GetShiftState [00:26:43]wFMCommunicate request_size=4 [00:26:43]MH_SAM_APDU [00:26:43]CAPDU: 80 13 01 00 [00:26:43]Write to MH i2c: E2 08 00 B8 02 80 13 01 00 00 00 00 00 37 [00:26:43]Write i2c OK [00:26:43]MH_I2C_Read... [00:26:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:43]Read from MH i2c: E2 [00:26:43]MH_I2C_Read... [00:26:43]Read from MH i2c: E2 0E 00 [00:26:43]MH_I2C_Read... [00:26:43]Read from MH i2c: E2 0E 00 B8 02 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 3F [00:26:43]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [00:26:43]wFMCommunicate OK [00:26:43]SAM_PROTO_GetShiftState done [00:26:43]FM_GetShiftState done [00:26:43]opened in 1729125927 [00:26:43]opened+sec_in_day 1729212327 [00:26:43]quantity*price = 60009 [00:26:43]sum+1 = 60010 [00:26:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 212 18.10.2024 00:26 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82286 ФПД: 65005616527673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T002643&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82286&fm=65005616527673&tin=02508201610067®Number=0000000000091680&sum=60000 [00:26:44]StoreToDocumentArchive [00:26:44]shift 525 fd 82286 [00:26:44]save to /storage/0525/doc_00082286 [00:26:44]save last doc name /storage/0525/doc_00082286 to /storage/kkm_last_doc_name [00:26:44]save OK [00:26:44]Clear old archive folders... [00:26:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:26:44]tlvbuf is 00B8C2A0 [00:26:44]SAM_PROTO_ClearQueue [00:26:44]wFMCommunicate request_size=4 [00:26:44]MH_SAM_APDU [00:26:44]CAPDU: 80 09 00 00 [00:26:44]Write to MH i2c: E2 08 00 C5 02 80 09 00 00 00 00 00 00 39 [00:26:44]Write i2c OK [00:26:44]MH_I2C_Read... [00:26:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:26:44]Read from MH i2c: E2 [00:26:44]MH_I2C_Read... [00:26:44]Read from MH i2c: E2 03 00 [00:26:44]MH_I2C_Read... [00:26:44]Read from MH i2c: E2 03 00 C5 02 00 90 00 3B [00:26:44]RAPDU: 90 00 [00:26:44]wFMCommunicate OK [00:26:44]SAM_PROTO_ClearQueue done [00:26:44]KKMCreateOFDPacket [00:26:44]OFDProtocolAddRootSTLVToBuf [00:26:44]FM_MakeSignedData [00:26:44]FM_MakeSignedData [00:26:44]SAM_PROTO_SignData [00:26:44]wFMCommunicate request_size=4 [00:26:44]MH_SAM_APDU [00:26:44]CAPDU: 80 0D 01 02 [00:26:44]Write to MH i2c: E2 08 00 C6 02 80 0D 01 02 00 00 00 00 41 [00:26:44]Write i2c OK [00:26:44]MH_I2C_Read... [00:26:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:26:44]Read from MH i2c: E2 [00:26:44]MH_I2C_Read... [00:26:44]Read from MH i2c: E2 03 00 [00:26:44]MH_I2C_Read... [00:26:44]Read from MH i2c: E2 03 00 C6 02 00 90 00 3C [00:26:44]RAPDU: 90 00 [00:26:44]wFMCommunicate OK [00:26:44]wFMCommunicate request_size=255 [00:26:44]MH_SAM_APDU [00:26:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 43 AB 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6E 41 01 00 35 04 06 00 3B [00:26:44]Write to MH i2c: E2 02 01 C7 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 43 AB 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6E 41 01 00 35 04 06 00 3B 00 00 DE [00:26:44]Write i2c OK [00:26:44]MH_I2C_Read... [00:26:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:44]Read from MH i2c: E2 [00:26:44]MH_I2C_Read... [00:26:44]Read from MH i2c: E2 03 00 [00:26:44]MH_I2C_Read... [00:26:44]Read from MH i2c: E2 03 00 C7 02 00 90 00 3D [00:26:44]RAPDU: 90 00 [00:26:44]wFMCommunicate OK [00:26:44]wFMCommunicate request_size=10 [00:26:44]MH_SAM_APDU [00:26:44]CAPDU: 80 0D 02 02 05 1F 4C AE 79 39 [00:26:44]Write to MH i2c: E2 0D 00 C8 02 80 0D 02 02 05 00 1F 4C AE 79 39 00 00 19 [00:26:44]Write i2c OK [00:26:44]MH_I2C_Read... [00:26:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:44]Read from MH i2c: E2 [00:26:44]MH_I2C_Read... [00:26:44]Read from MH i2c: E2 03 00 [00:26:44]MH_I2C_Read... [00:26:44]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [00:26:44]RAPDU: 90 00 [00:26:44]wFMCommunicate OK [00:26:44]wFMCommunicate request_size=4 [00:26:44]MH_SAM_APDU [00:26:44]CAPDU: 80 0D 03 02 [00:26:44]Write to MH i2c: E2 08 00 C9 02 80 0D 03 02 00 00 00 00 46 [00:26:44]Write i2c OK [00:26:44]MH_I2C_Read... [00:26:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:26:44]Read from MH i2c: E2 [00:26:44]MH_I2C_Read... [00:26:44]Read from MH i2c: E2 0B 00 [00:26:44]MH_I2C_Read... [00:26:44]Read from MH i2c: E2 0B 00 C9 02 00 21 2F FF 14 75 8B 6E C9 90 00 E1 [00:26:44]RAPDU: 21 2F FF 14 75 8B 6E C9 90 00 [00:26:44]wFMCommunicate OK [00:26:44]SAM_PROTO_SignData done [00:26:44]FM_MakeSignedData done [00:26:44]CreateOFDProtocolMessage [00:26:44]wFMCommunicate request_size=4 [00:26:44]MH_SAM_APDU [00:26:44]CAPDU: 80 11 00 00 [00:26:44]Write to MH i2c: E2 08 00 CA 02 80 11 00 00 00 00 00 00 46 [00:26:44]Write i2c OK [00:26:44]MH_I2C_Read... [00:26:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:26:44]Read from MH i2c: E2 [00:26:44]MH_I2C_Read... [00:26:44]Read from MH i2c: E2 17 00 [00:26:44]MH_I2C_Read... [00:26:44]Read from MH i2c: E2 17 00 CA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 98 [00:26:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:26:44]wFMCommunicate OK [00:26:44]CreateOFDProtocolMessage done [00:26:44]OFDSenderStorePacket 82286 [00:26:44]StoreOFDPacket docnum=82286 [00:26:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 5F AD 07 01 B9 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 43 AB 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6E 41 01 00 35 04 06 00 3B 1F 4C AE 79 39 21 2F FF 14 75 8B 6E C9 [00:26:44]CheckFolder [00:26:44]dirname=/storage/ofd_packets [00:26:44]CheckFolder done [00:26:44]ProducePacketName [00:26:44]name=ofd_packets/00082286 [00:26:44]NVStorageSaveData ofd_packets/00082286 [00:26:44]File name is /storage/ofd_packets/00082286 [00:26:44]Write 301 bytes [00:26:44]NVStorageSaveData done [00:26:44]OFDSenderStorePacket done [00:26:44]KKMCreateOFDPacket done [00:26:44]NVStorageSaveData kkm_last_timestamp [00:26:44]File name is /storage/kkm_last_timestamp [00:26:44]Write 4 bytes [00:26:44]NVStorageSaveData done [00:26:44]ExternCall_PrintAddStr [00:26:44]wPrintStart [00:26:44]Write to MH i2c: 01 00 00 CB 02 CD [00:26:44]Write i2c OK [00:26:44]MH_I2C_Read... [00:26:44]Read from MH i2c: 01 [00:26:44]MH_I2C_Read... [00:26:44]Read from MH i2c: 01 07 00 [00:26:44]MH_I2C_Read... [00:26:44]Read from MH i2c: 01 07 00 CB 02 00 00 00 00 00 FF 0F E2 [00:26:44]RasterBufferAndPrint [00:26:44]line Счет N : (1)918788 [00:26:44]line ИНН: 02508201610067 [00:26:44]line Контрольно-Кассовый Чек [00:26:44]line ПРОДАЖА [00:26:44]line ТРК (МРК, ГНК) : 11 [00:26:44]line Товар: 2710124130 [00:26:44]line Аи-92-К-4 [00:26:44]line 8.970 * 66.90 [00:26:44]line = 600.09 [00:26:44]line НДС 12% НСП 1% [00:26:44]line > о реализуемом товаре [00:26:44]line ОКРУГЛЕНИЕ: -0.09 [00:26:44]line ИТОГО: 600.00 [00:26:44]line Внесено: 600.00 [00:26:44]line СДАЧА: 0.00 [00:26:44]line НСП 1% : 5.31 [00:26:44]line НДС 12% : 63.73 [00:26:44]line Наличными: 600.00 [00:26:44]line Безнал.: 0.00 [00:26:44]line Место: АЗС № 114 "Партнер Нефть" [00:26:44]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [00:26:44]line СНО: Общий режим [00:26:44]line Чек 212 18.10.2024 00:26 [00:26:44]line Смена: 525 ФФД: 1.0 [00:26:44]line ЗНМ: 0300000086 [00:26:44]line РНМ: 0000000000091680 [00:26:44]line Версия ККМ: 001 [00:26:44]line ФМ: 0000000000871843 [00:26:44]line ФД: 82286 [00:26:44]line ФПД: 65005616527673 [00:26:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T002643&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82286&fm=65005616527673&tin=02508201610067®Number=0000000000091680&sum=60000 [00:26:45]OFD Sender: Processing packet 82286 [packets to send 254, broken 253] [00:26:45]ProducePacketName [00:26:45]name=ofd_packets/00082286 [00:26:45]OFD Sender: To server: pG, [00:26:45]CommunicateWithHost lk.salyk.kg:30040 [00:26:45]ConnectInit lk.salyk.kg [00:26:45]written 0, free lines is 4095 [00:26:45]Write to MH i2c: 01 00 00 F6 02 F8 [00:26:45]Write i2c OK [00:26:45]MH_I2C_Read... [00:26:45]Read from MH i2c: 01 [00:26:45]MH_I2C_Read... [00:26:45]Read from MH i2c: 01 07 00 [00:26:45]MH_I2C_Read... [00:26:45]Read from MH i2c: 01 07 00 F6 02 00 00 00 00 00 CD 0C D8 [00:26:45]RasterBufferAndPrint [00:26:45]line [00:26:45]line [00:26:45]line [00:26:45]line [00:26:45]line [00:26:45]written 0, free lines is 3283 [00:26:45]MH_Cut [00:26:45]Write to MH i2c: D1 01 00 FD 02 01 D1 [00:26:45]Write i2c OK [00:26:45]MH_I2C_Read... [00:26:45]Read from MH i2c: D1 [00:26:45]MH_I2C_Read... [00:26:45]Read from MH i2c: D1 01 00 [00:26:45]MH_I2C_Read... [00:26:45]Read from MH i2c: D1 01 00 FD 02 00 D0 [00:26:45]Write to MH i2c: 01 00 00 FE 02 00 [00:26:45]Write i2c OK [00:26:45]MH_I2C_Read... [00:26:46]*** Cut start [00:26:46]*** Partial cut [00:26:46]*** CUTSNS_PIN = 1 [00:26:46]*** CUTSNS_PIN = 0 [00:26:46]*** Brake cut motor [00:26:47]Read from MH i2c: 01 [00:26:47]MH_I2C_Read... [00:26:47]*** Stop cut motor [00:26:47]Read from MH i2c: 01 07 00 [00:26:47]MH_I2C_Read... [00:26:47]*** Cut end [00:26:47]Read from MH i2c: 01 07 00 FE 02 00 00 00 00 00 FF 0F 15 [00:26:47]process_action close_receipt done [00:26:47]requested_data is exist [00:26:47]produce_requested_data [00:26:47]requested_item fm.sn is exist - process it [00:26:47]wFMCommunicate request_size=4 [00:26:47]MH_SAM_APDU [00:26:47]CAPDU: 80 11 00 00 [00:26:47]Write to MH i2c: E2 08 00 FF 02 80 11 00 00 00 00 00 00 7B [00:26:47]Write i2c OK [00:26:47]MH_I2C_Read... [00:26:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:26:47]Read from MH i2c: E2 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 17 00 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 17 00 FF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 CD [00:26:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:26:47]wFMCommunicate OK [00:26:47]requested_item fd.num is exist - process it [00:26:47]SAM_PROTO_GetFieldsCounters [00:26:47]wFMCommunicate request_size=4 [00:26:47]MH_SAM_APDU [00:26:47]CAPDU: 80 13 00 00 [00:26:47]Write to MH i2c: E2 08 00 00 03 80 13 00 00 00 00 00 00 7F [00:26:47]Write i2c OK [00:26:47]MH_I2C_Read... [00:26:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:26:47]Read from MH i2c: E2 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 62 00 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 62 00 00 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 6E 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [00:26:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 6E 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:26:47]wFMCommunicate OK [00:26:47]SAM_PROTO_GetFieldsCounters done [00:26:47]requested_item shift.num is exist - process it [00:26:47]requested_item shift.opened is exist - process it [00:26:47]req_shift_opened [00:26:47]FM_GetShiftState [00:26:47]SAM_PROTO_GetShiftState [00:26:47]wFMCommunicate request_size=4 [00:26:47]MH_SAM_APDU [00:26:47]CAPDU: 80 13 01 00 [00:26:47]Write to MH i2c: E2 08 00 01 03 80 13 01 00 00 00 00 00 81 [00:26:47]Write i2c OK [00:26:47]MH_I2C_Read... [00:26:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:47]Read from MH i2c: E2 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 0E 00 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 0E 00 01 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 89 [00:26:47]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [00:26:47]wFMCommunicate OK [00:26:47]SAM_PROTO_GetShiftState done [00:26:47]FM_GetShiftState done [00:26:47]req_shift_opened done [00:26:47]requested_item shift.open_date is exist - process it [00:26:47]req_shift_open_date [00:26:47]req_shift_open_date done [00:26:47]produce_requested_data done [00:26:47]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82286,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [00:26:47]process_action_free close_receipt [00:26:47]json_value_free [00:26:47]json_value_free done [00:26:47]process_json_proto returns [00:26:47]Send response to host [00:26:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82286,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [00:26:47]free response buf [00:26:47]execute_script done [00:26:47]execute_script returns [00:26:47]free content buf [00:26:47]Sock 9.Close socket [00:26:47]Sock 9.Thread stoped [00:26:50]ConnectInit Can't take IP for lk.salyk.kg [00:26:50]CommunicateWithHost connect error [00:26:50]CommunicateWithHost err = -1 [00:26:50]OFD Sender: Server communicate error [00:26:55]OFD Sender: Processing packet 82286 [packets to send 254, broken 253] [00:26:55]ProducePacketName [00:26:55]name=ofd_packets/00082286 [00:26:55]OFD Sender: To server: pG, [00:26:55]CommunicateWithHost lk.salyk.kg:30040 [00:26:55]ConnectInit lk.salyk.kg [00:26:56]recv_with_timeout no data received [00:27:00]ConnectInit Can't take IP for lk.salyk.kg [00:27:00]CommunicateWithHost connect error [00:27:00]CommunicateWithHost err = -1 [00:27:00]OFD Sender: Server communicate error [00:27:05]OFD Sender: Processing packet 82286 [packets to send 254, broken 253] [00:27:05]ProducePacketName [00:27:05]name=ofd_packets/00082286 [00:27:05]OFD Sender: To server: pG, [00:27:05]CommunicateWithHost lk.salyk.kg:30040 [00:27:05]ConnectInit lk.salyk.kg [00:27:08]Connected sock=10 [00:27:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 5F AD 07 01 B9 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 43 AB 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6E 41 01 00 35 04 06 00 3B 1F 4C AE 79 39 21 2F FF 14 75 8B 6E C9 [00:27:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 76 88 47 00 C4 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6E 41 01 00 F4 03 04 00 96 50 11 67 B6 04 01 00 00 4D 80 F6 11 35 DC 51 EF [00:27:08]CommunicateWithHost err = 0 [00:27:08]CheckOFDResponse [00:27:08]1017 (14) - 77093643461234 [00:27:08]1041 (16) - 0000000000871843 [00:27:08]1040 (4) - 82286 [00:27:08]1012 (4) - 17.10.2024 17:59 [00:27:08]1206 (1) - 0 [00:27:08]OFD Sender: Remove packet 82286 [00:27:08]ProducePacketName [00:27:08]name=ofd_packets/00082286 [00:27:08]NVStorageDeleteData [00:27:08]recv_with_timeout no data received [00:27:09]OFD Sender: No OFD packet to send [00:27:14]OFD Sender: No OFD packet to send [00:27:19]OFD Sender: No OFD packet to send [00:27:19]recv_with_timeout no data received [00:27:24]OFD Sender: No OFD packet to send [00:27:29]OFD Sender: No OFD packet to send [00:27:34]OFD Sender: No OFD packet to send [00:27:39]OFD Sender: No OFD packet to send [00:27:44]OFD Sender: No OFD packet to send [00:27:49]OFD Sender: No OFD packet to send [00:27:54]OFD Sender: No OFD packet to send [00:27:59]OFD Sender: No OFD packet to send [00:28:04]OFD Sender: No OFD packet to send [00:28:09]OFD Sender: No OFD packet to send [00:28:14]OFD Sender: No OFD packet to send [00:28:19]OFD Sender: No OFD packet to send [00:28:24]OFD Sender: No OFD packet to send [00:28:29]OFD Sender: No OFD packet to send [00:28:34]OFD Sender: No OFD packet to send [00:28:37]recv_with_timeout no data received [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:54]accept exits with 7 [00:28:54]New connection [00:28:54]New thread 3067506020 created [00:28:54]Thread 3067362660 joined [00:28:54]Waiting for new connection... [00:28:54] Sock 7.Parse request [00:28:54]Sock 7.Check first char [00:28:54]Sock 7.First char is OK [00:28:54]request: POST /json_proto HTTP/1.0 [00:28:54]Method: POST [00:28:54]URL: /json_proto [00:28:54]Method is POST - this is cgi request [00:28:54]url: /json_proto [00:28:54]query_string will be loaded in cgi processing [00:28:54]execute_cgi json_proto POST (null) [00:28:54]execute_cgi path=json_proto method=POST [00:28:54]POST find Content-Length [00:28:54]Host: 172.17.44.67:8080 [00:28:54]Content-Length: 682 [00:28:54]Content-Type: application/json [00:28:54] [00:28:54]POST finish read [00:28:54]Found Content-Length = 682 [00:28:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:28:54]execute_script... [00:28:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:28:54]POST & json_proto [00:28:54]process_json_proto [00:28:54]json parsed OK: [00:28:54]protocol is kg_v1.0 [00:28:54]action value=close_receipt [00:28:54]process_action close_receipt [00:28:54]cmd_close_receipt [00:28:54]MH_GetDate [00:28:54]Write to MH i2c: F0 00 00 02 03 F4 [00:28:54]Write i2c OK [00:28:54]MH_I2C_Read... [00:28:54]Read from MH i2c: F0 [00:28:54]MH_I2C_Read... [00:28:54]Read from MH i2c: F0 09 00 [00:28:54]MH_I2C_Read... [00:28:54]Read from MH i2c: F0 09 00 02 03 00 C7 AB 11 67 F1 C7 6B 64 6E [00:28:54]GetLastDocTimeStamp 1729211203 [00:28:54]current date 1729211335 [00:28:54]FM_GetShiftState [00:28:54]SAM_PROTO_GetShiftState [00:28:54]wFMCommunicate request_size=4 [00:28:54]MH_SAM_APDU [00:28:54]CAPDU: 80 13 01 00 [00:28:54]Write to MH i2c: E2 08 00 03 03 80 13 01 00 00 00 00 00 83 [00:28:54]Write i2c OK [00:28:54]MH_I2C_Read... [00:28:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:28:54]Read from MH i2c: E2 [00:28:54]MH_I2C_Read... [00:28:54]Read from MH i2c: E2 0E 00 [00:28:54]MH_I2C_Read... [00:28:54]Read from MH i2c: E2 0E 00 03 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 8B [00:28:54]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [00:28:54]wFMCommunicate OK [00:28:54]SAM_PROTO_GetShiftState done [00:28:54]FM_GetShiftState done [00:28:54]opened in 1729125927 [00:28:54]opened+sec_in_day 1729212327 [00:28:54]quantity*price = 250054 [00:28:54]sum+1 = 250055 [00:28:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 213 18.10.2024 00:28 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82287 ФПД: 57005995631951 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T002855&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82287&fm=57005995631951&tin=02508201610067®Number=0000000000091680&sum=250000 [00:28:55]StoreToDocumentArchive [00:28:55]shift 525 fd 82287 [00:28:55]save to /storage/0525/doc_00082287 [00:28:55]save last doc name /storage/0525/doc_00082287 to /storage/kkm_last_doc_name [00:28:55]save OK [00:28:55]Clear old archive folders... [00:28:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:28:55]tlvbuf is 00B890F0 [00:28:55]SAM_PROTO_ClearQueue [00:28:55]wFMCommunicate request_size=4 [00:28:55]MH_SAM_APDU [00:28:55]CAPDU: 80 09 00 00 [00:28:55]Write to MH i2c: E2 08 00 10 03 80 09 00 00 00 00 00 00 85 [00:28:55]Write i2c OK [00:28:55]MH_I2C_Read... [00:28:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:28:56]Read from MH i2c: E2 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: E2 03 00 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: E2 03 00 10 03 00 90 00 87 [00:28:56]RAPDU: 90 00 [00:28:56]wFMCommunicate OK [00:28:56]SAM_PROTO_ClearQueue done [00:28:56]KKMCreateOFDPacket [00:28:56]OFDProtocolAddRootSTLVToBuf [00:28:56]FM_MakeSignedData [00:28:56]FM_MakeSignedData [00:28:56]SAM_PROTO_SignData [00:28:56]wFMCommunicate request_size=4 [00:28:56]MH_SAM_APDU [00:28:56]CAPDU: 80 0D 01 02 [00:28:56]Write to MH i2c: E2 08 00 11 03 80 0D 01 02 00 00 00 00 8D [00:28:56]Write i2c OK [00:28:56]MH_I2C_Read... [00:28:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:28:56]Read from MH i2c: E2 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: E2 03 00 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: E2 03 00 11 03 00 90 00 88 [00:28:56]RAPDU: 90 00 [00:28:56]wFMCommunicate OK [00:28:56]wFMCommunicate request_size=255 [00:28:56]MH_SAM_APDU [00:28:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 C7 AB 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6F 41 01 00 35 04 06 00 33 [00:28:56]Write to MH i2c: E2 02 01 12 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 C7 AB 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6F 41 01 00 35 04 06 00 33 00 00 B7 [00:28:56]Write i2c OK [00:28:56]MH_I2C_Read... [00:28:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:28:56]Read from MH i2c: E2 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: E2 03 00 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: E2 03 00 12 03 00 90 00 89 [00:28:56]RAPDU: 90 00 [00:28:56]wFMCommunicate OK [00:28:56]wFMCommunicate request_size=10 [00:28:56]MH_SAM_APDU [00:28:56]CAPDU: 80 0D 02 02 05 D8 BE 1E A5 4F [00:28:56]Write to MH i2c: E2 0D 00 13 03 80 0D 02 02 05 00 D8 BE 1E A5 4F 00 00 42 [00:28:56]Write i2c OK [00:28:56]MH_I2C_Read... [00:28:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:28:56]Read from MH i2c: E2 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: E2 03 00 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: E2 03 00 13 03 00 90 00 8A [00:28:56]RAPDU: 90 00 [00:28:56]wFMCommunicate OK [00:28:56]wFMCommunicate request_size=4 [00:28:56]MH_SAM_APDU [00:28:56]CAPDU: 80 0D 03 02 [00:28:56]Write to MH i2c: E2 08 00 14 03 80 0D 03 02 00 00 00 00 92 [00:28:56]Write i2c OK [00:28:56]MH_I2C_Read... [00:28:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:28:56]Read from MH i2c: E2 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: E2 0B 00 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: E2 0B 00 14 03 00 82 2C 22 86 D5 51 DC 53 90 00 3E [00:28:56]RAPDU: 82 2C 22 86 D5 51 DC 53 90 00 [00:28:56]wFMCommunicate OK [00:28:56]SAM_PROTO_SignData done [00:28:56]FM_MakeSignedData done [00:28:56]CreateOFDProtocolMessage [00:28:56]wFMCommunicate request_size=4 [00:28:56]MH_SAM_APDU [00:28:56]CAPDU: 80 11 00 00 [00:28:56]Write to MH i2c: E2 08 00 15 03 80 11 00 00 00 00 00 00 92 [00:28:56]Write i2c OK [00:28:56]MH_I2C_Read... [00:28:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:28:56]Read from MH i2c: E2 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: E2 17 00 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: E2 17 00 15 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 E4 [00:28:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:28:56]wFMCommunicate OK [00:28:56]CreateOFDProtocolMessage done [00:28:56]OFDSenderStorePacket 82287 [00:28:56]StoreOFDPacket docnum=82287 [00:28:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 89 42 07 01 72 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 C7 AB 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6F 41 01 00 35 04 06 00 33 D8 BE 1E A5 4F 82 2C 22 86 D5 51 DC 53 [00:28:56]CheckFolder [00:28:56]dirname=/storage/ofd_packets [00:28:56]CheckFolder done [00:28:56]ProducePacketName [00:28:56]name=ofd_packets/00082287 [00:28:56]NVStorageSaveData ofd_packets/00082287 [00:28:56]File name is /storage/ofd_packets/00082287 [00:28:56]Write 301 bytes [00:28:56]NVStorageSaveData done [00:28:56]OFDSenderStorePacket done [00:28:56]KKMCreateOFDPacket done [00:28:56]NVStorageSaveData kkm_last_timestamp [00:28:56]File name is /storage/kkm_last_timestamp [00:28:56]Write 4 bytes [00:28:56]NVStorageSaveData done [00:28:56]ExternCall_PrintAddStr [00:28:56]wPrintStart [00:28:56]Write to MH i2c: 01 00 00 16 03 19 [00:28:56]Write i2c OK [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: 01 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: 01 07 00 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: 01 07 00 16 03 00 00 00 00 00 FF 0F 2E [00:28:56]RasterBufferAndPrint [00:28:56]line Счет N : (1)918789 [00:28:56]line ИНН: 02508201610067 [00:28:56]line Контрольно-Кассовый Чек [00:28:56]line ПРОДАЖА [00:28:56]line ТРК (МРК, ГНК) : 12 [00:28:56]line Товар: 2710124500 [00:28:56]line Аи-95-К-5 [00:28:56]line 33.700 * 74.20 [00:28:56]line = 2500.54 [00:28:56]line НДС 12% НСП 1% [00:28:56]line > о реализуемом товаре [00:28:56]line ОКРУГЛЕНИЕ: -0.54 [00:28:56]line ИТОГО: 2500.00 [00:28:56]line Внесено: 2500.00 [00:28:56]line СДАЧА: 0.00 [00:28:56]line НСП 1% : 22.13 [00:28:56]line НДС 12% : 265.54 [00:28:56]line Наличными: 2500.00 [00:28:56]line Безнал.: 0.00 [00:28:56]line Место: АЗС № 114 "Партнер Нефть" [00:28:56]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [00:28:56]line СНО: Общий режим [00:28:56]line Чек 213 18.10.2024 00:28 [00:28:56]line Смена: 525 ФФД: 1.0 [00:28:56]line ЗНМ: 0300000086 [00:28:56]line РНМ: 0000000000091680 [00:28:56]line Версия ККМ: 001 [00:28:56]line ФМ: 0000000000871843 [00:28:56]line ФД: 82287 [00:28:56]line ФПД: 57005995631951 [00:28:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T002855&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82287&fm=57005995631951&tin=02508201610067®Number=0000000000091680&sum=250000 [00:28:56]OFD Sender: Processing packet 82287 [packets to send 254, broken 253] [00:28:56]ProducePacketName [00:28:56]name=ofd_packets/00082287 [00:28:56]OFD Sender: To server: pG, [00:28:56]CommunicateWithHost lk.salyk.kg:30040 [00:28:56]ConnectInit lk.salyk.kg [00:28:56]written 0, free lines is 4095 [00:28:57]Write to MH i2c: 01 00 00 41 03 44 [00:28:57]Write i2c OK [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: 01 [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: 01 07 00 [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: 01 07 00 41 03 00 00 00 00 00 D3 0C 2A [00:28:57]RasterBufferAndPrint [00:28:57]line [00:28:57]line [00:28:57]line [00:28:57]line [00:28:57]line [00:28:57]written 0, free lines is 3287 [00:28:57]MH_Cut [00:28:57]Write to MH i2c: D1 01 00 48 03 01 1D [00:28:57]Write i2c OK [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: D1 [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: D1 01 00 [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: D1 01 00 48 03 00 1C [00:28:57]Write to MH i2c: 01 00 00 49 03 4C [00:28:57]Write i2c OK [00:28:57]MH_I2C_Read... [00:28:58]*** Cut start [00:28:58]*** Partial cut [00:28:58]*** CUTSNS_PIN = 1 [00:28:58]*** CUTSNS_PIN = 0 [00:28:58]*** Brake cut motor [00:28:58]Connected sock=9 [00:28:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 89 42 07 01 72 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 C7 AB 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6F 41 01 00 35 04 06 00 33 D8 BE 1E A5 4F 82 2C 22 86 D5 51 DC 53 [00:28:58]Read from MH i2c: 01 [00:28:58]MH_I2C_Read... [00:28:58]*** Stop cut motor [00:28:58]*** Cut end [00:28:58]Read from MH i2c: 01 07 00 [00:28:58]MH_I2C_Read... [00:28:58]Read from MH i2c: 01 07 00 49 03 00 00 00 00 00 FF 0F 61 [00:28:58]process_action close_receipt done [00:28:58]requested_data is exist [00:28:58]produce_requested_data [00:28:58]requested_item fm.sn is exist - process it [00:28:58]wFMCommunicate request_size=4 [00:28:58]MH_SAM_APDU [00:28:58]CAPDU: 80 11 00 00 [00:28:58]Write to MH i2c: E2 08 00 4A 03 80 11 00 00 00 00 00 00 C7 [00:28:58]Write i2c OK [00:28:58]MH_I2C_Read... [00:28:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:28:58]Read from MH i2c: E2 [00:28:58]MH_I2C_Read... [00:28:58]Read from MH i2c: E2 17 00 [00:28:58]MH_I2C_Read... [00:28:58]Read from MH i2c: E2 17 00 4A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 19 [00:28:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:28:58]wFMCommunicate OK [00:28:58]requested_item fd.num is exist - process it [00:28:58]SAM_PROTO_GetFieldsCounters [00:28:58]wFMCommunicate request_size=4 [00:28:58]MH_SAM_APDU [00:28:58]CAPDU: 80 13 00 00 [00:28:58]Write to MH i2c: E2 08 00 4B 03 80 13 00 00 00 00 00 00 CA [00:28:58]Write i2c OK [00:28:58]MH_I2C_Read... [00:28:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:28:58]Read from MH i2c: E2 [00:28:58]MH_I2C_Read... [00:28:58]Read from MH i2c: E2 62 00 [00:28:58]MH_I2C_Read... [00:28:58]Read from MH i2c: E2 62 00 4B 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 6F 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [00:28:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 6F 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:28:58]wFMCommunicate OK [00:28:58]SAM_PROTO_GetFieldsCounters done [00:28:58]requested_item shift.num is exist - process it [00:28:58]requested_item shift.opened is exist - process it [00:28:58]req_shift_opened [00:28:58]FM_GetShiftState [00:28:58]SAM_PROTO_GetShiftState [00:28:58]wFMCommunicate request_size=4 [00:28:58]MH_SAM_APDU [00:28:58]CAPDU: 80 13 01 00 [00:28:58]Write to MH i2c: E2 08 00 4C 03 80 13 01 00 00 00 00 00 CC [00:28:58]Write i2c OK [00:28:58]MH_I2C_Read... [00:28:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:28:58]Read from MH i2c: E2 [00:28:58]MH_I2C_Read... [00:28:58]Read from MH i2c: E2 0E 00 [00:28:58]MH_I2C_Read... [00:28:58]Read from MH i2c: E2 0E 00 4C 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 D4 [00:28:58]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [00:28:58]wFMCommunicate OK [00:28:58]SAM_PROTO_GetShiftState done [00:28:58]FM_GetShiftState done [00:28:58]req_shift_opened done [00:28:58]requested_item shift.open_date is exist - process it [00:28:58]req_shift_open_date [00:28:58]req_shift_open_date done [00:28:58]produce_requested_data done [00:28:58]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82287,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [00:28:58]process_action_free close_receipt [00:28:58]json_value_free [00:28:58]json_value_free done [00:28:58]process_json_proto returns [00:28:58]Send response to host [00:28:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82287,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [00:28:58]free response buf [00:28:58]execute_script done [00:28:58]execute_script returns [00:28:59]free content buf [00:28:59]Sock 7.Close socket [00:28:59]Sock 7.Thread stoped [00:28:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 10 AF 47 00 A7 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 6F 41 01 00 F4 03 04 00 05 51 11 67 B6 04 01 00 00 C2 F1 AC E0 73 00 97 6B [00:28:59]CommunicateWithHost err = 0 [00:28:59]CheckOFDResponse [00:28:59]1017 (14) - 77093643461234 [00:28:59]1041 (16) - 0000000000871843 [00:28:59]1040 (4) - 82287 [00:28:59]1012 (4) - 17.10.2024 18:01 [00:28:59]1206 (1) - 0 [00:28:59]OFD Sender: Remove packet 82287 [00:28:59]ProducePacketName [00:28:59]name=ofd_packets/00082287 [00:28:59]NVStorageDeleteData [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:15]recv_with_timeout no data received [00:29:19]OFD Sender: No OFD packet to send [00:29:24]OFD Sender: No OFD packet to send [00:29:26]recv_with_timeout no data received [00:29:27]accept exits with 10 [00:29:27]New connection [00:29:27]New thread 3067362660 created [00:29:27]Thread 3067506020 joined [00:29:27]Waiting for new connection... [00:29:27] Sock 10.Parse request [00:29:27]Sock 10.Check first char [00:29:27]Sock 10.First char is OK [00:29:27]request: POST /json_proto HTTP/1.0 [00:29:27]Method: POST [00:29:27]URL: /json_proto [00:29:27]Method is POST - this is cgi request [00:29:27]url: /json_proto [00:29:27]query_string will be loaded in cgi processing [00:29:27]execute_cgi json_proto POST (null) [00:29:27]execute_cgi path=json_proto method=POST [00:29:27]POST find Content-Length [00:29:27]Host: 172.17.44.67:8080 [00:29:27]Content-Length: 777 [00:29:27]Content-Type: application/json [00:29:27] [00:29:27]POST finish read [00:29:27]Found Content-Length = 777 [00:29:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 196.860, "sum" : 15000.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 15000.73 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:27]execute_script... [00:29:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 196.860, "sum" : 15000.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 15000.73 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:27]POST & json_proto [00:29:27]process_json_proto [00:29:27]json parsed OK: [00:29:27]protocol is kg_v1.0 [00:29:27]action value=close_receipt [00:29:27]process_action close_receipt [00:29:27]cmd_close_receipt [00:29:27]MH_GetDate [00:29:27]Write to MH i2c: F0 00 00 4D 03 3F [00:29:27]Write i2c OK [00:29:27]MH_I2C_Read... [00:29:27]Read from MH i2c: F0 [00:29:27]MH_I2C_Read... [00:29:27]Read from MH i2c: F0 09 00 [00:29:27]MH_I2C_Read... [00:29:27]Read from MH i2c: F0 09 00 4D 03 00 E8 AB 11 67 F1 C7 6B 64 DA [00:29:27]GetLastDocTimeStamp 1729211335 [00:29:27]current date 1729211368 [00:29:27]FM_GetShiftState [00:29:27]SAM_PROTO_GetShiftState [00:29:27]wFMCommunicate request_size=4 [00:29:27]MH_SAM_APDU [00:29:27]CAPDU: 80 13 01 00 [00:29:27]Write to MH i2c: E2 08 00 4E 03 80 13 01 00 00 00 00 00 CE [00:29:27]Write i2c OK [00:29:27]MH_I2C_Read... [00:29:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:28]Read from MH i2c: E2 [00:29:28]MH_I2C_Read... [00:29:28]Read from MH i2c: E2 0E 00 [00:29:28]MH_I2C_Read... [00:29:28]Read from MH i2c: E2 0E 00 4E 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 D6 [00:29:28]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [00:29:28]wFMCommunicate OK [00:29:28]SAM_PROTO_GetShiftState done [00:29:28]FM_GetShiftState done [00:29:28]opened in 1729125927 [00:29:28]opened+sec_in_day 1729212327 [00:29:28]quantity*price = 1500073 [00:29:28]sum+1 = 1500074 [00:29:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 15000.73 НСП 1% : 132.75 НДС 12% : 1593.00 Наличными: 0.00 Безнал.: 15000.73 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 214 18.10.2024 00:29 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82288 ФПД: 167569523548014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T002928&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82288&fm=167569523548014&tin=02508201610067®Number=0000000000091680&sum=1500073 [00:29:29]StoreToDocumentArchive [00:29:29]shift 525 fd 82288 [00:29:29]save to /storage/0525/doc_00082288 [00:29:29]save last doc name /storage/0525/doc_00082288 to /storage/kkm_last_doc_name [00:29:29]save OK [00:29:29]Clear old archive folders... [00:29:29]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:29:29]tlvbuf is 00B88A30 [00:29:29]SAM_PROTO_ClearQueue [00:29:29]wFMCommunicate request_size=4 [00:29:29]MH_SAM_APDU [00:29:29]CAPDU: 80 09 00 00 [00:29:29]Write to MH i2c: E2 08 00 5B 03 80 09 00 00 00 00 00 00 D0 [00:29:29]Write i2c OK [00:29:29]MH_I2C_Read... [00:29:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:29:29]Read from MH i2c: E2 [00:29:29]MH_I2C_Read... [00:29:29]Read from MH i2c: E2 03 00 [00:29:29]MH_I2C_Read... [00:29:29]Read from MH i2c: E2 03 00 5B 03 00 90 00 D2 [00:29:29]RAPDU: 90 00 [00:29:29]wFMCommunicate OK [00:29:29]SAM_PROTO_ClearQueue done [00:29:29]KKMCreateOFDPacket [00:29:29]OFDProtocolAddRootSTLVToBuf [00:29:29]FM_MakeSignedData [00:29:29]FM_MakeSignedData [00:29:29]SAM_PROTO_SignData [00:29:29]wFMCommunicate request_size=4 [00:29:29]MH_SAM_APDU [00:29:29]CAPDU: 80 0D 01 02 [00:29:29]Write to MH i2c: E2 08 00 5C 03 80 0D 01 02 00 00 00 00 D8 [00:29:29]Write i2c OK [00:29:29]MH_I2C_Read... [00:29:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:29:29]Read from MH i2c: E2 [00:29:29]MH_I2C_Read... [00:29:29]Read from MH i2c: E2 03 00 [00:29:29]MH_I2C_Read... [00:29:29]Read from MH i2c: E2 03 00 5C 03 00 90 00 D3 [00:29:29]RAPDU: 90 00 [00:29:29]wFMCommunicate OK [00:29:29]wFMCommunicate request_size=255 [00:29:29]MH_SAM_APDU [00:29:29]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 FC 00 03 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A9 E3 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A9 E3 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 33 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 6E 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A9 E3 16 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 E8 AB 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 70 41 01 00 35 04 06 00 [00:29:29]Write to MH i2c: E2 02 01 5D 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 FC 00 03 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A9 E3 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A9 E3 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 33 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 6E 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A9 E3 16 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 E8 AB 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 70 41 01 00 35 04 06 00 00 00 45 [00:29:29]Write i2c OK [00:29:29]MH_I2C_Read... [00:29:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:29:29]Read from MH i2c: E2 [00:29:29]MH_I2C_Read... [00:29:29]Read from MH i2c: E2 03 00 [00:29:29]MH_I2C_Read... [00:29:29]Read from MH i2c: E2 03 00 5D 03 00 90 00 D4 [00:29:29]RAPDU: 90 00 [00:29:29]wFMCommunicate OK [00:29:29]wFMCommunicate request_size=11 [00:29:29]MH_SAM_APDU [00:29:29]CAPDU: 80 0D 02 02 06 98 67 51 ED 1F 6E [00:29:29]Write to MH i2c: E2 0E 00 5E 03 80 0D 02 02 06 00 98 67 51 ED 1F 6E 00 00 B1 [00:29:29]Write i2c OK [00:29:29]MH_I2C_Read... [00:29:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:29:29]Read from MH i2c: E2 [00:29:29]MH_I2C_Read... [00:29:29]Read from MH i2c: E2 03 00 [00:29:29]MH_I2C_Read... [00:29:29]Read from MH i2c: E2 03 00 5E 03 00 90 00 D5 [00:29:29]RAPDU: 90 00 [00:29:29]wFMCommunicate OK [00:29:29]wFMCommunicate request_size=4 [00:29:29]MH_SAM_APDU [00:29:29]CAPDU: 80 0D 03 02 [00:29:29]Write to MH i2c: E2 08 00 5F 03 80 0D 03 02 00 00 00 00 DD [00:29:29]Write i2c OK [00:29:29]MH_I2C_Read... [00:29:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:29:29]Read from MH i2c: E2 [00:29:29]MH_I2C_Read... [00:29:29]Read from MH i2c: E2 0B 00 [00:29:29]MH_I2C_Read... [00:29:29]Read from MH i2c: E2 0B 00 5F 03 00 D0 C3 6A 5C 39 09 56 0B 90 00 DA [00:29:29]RAPDU: D0 C3 6A 5C 39 09 56 0B 90 00 [00:29:29]wFMCommunicate OK [00:29:29]SAM_PROTO_SignData done [00:29:29]FM_MakeSignedData done [00:29:29]CreateOFDProtocolMessage [00:29:29]wFMCommunicate request_size=4 [00:29:29]MH_SAM_APDU [00:29:29]CAPDU: 80 11 00 00 [00:29:29]Write to MH i2c: E2 08 00 60 03 80 11 00 00 00 00 00 00 DD [00:29:29]Write i2c OK [00:29:29]MH_I2C_Read... [00:29:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:29:29]Read from MH i2c: E2 [00:29:29]MH_I2C_Read... [00:29:29]Read from MH i2c: E2 17 00 [00:29:29]MH_I2C_Read... [00:29:29]Read from MH i2c: E2 17 00 60 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 2F [00:29:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:29:29]wFMCommunicate OK [00:29:29]CreateOFDProtocolMessage done [00:29:29]OFDSenderStorePacket 82288 [00:29:29]StoreOFDPacket docnum=82288 [00:29:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 6D B6 08 01 35 FE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 FC 00 03 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A9 E3 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A9 E3 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 33 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 6E 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A9 E3 16 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 E8 AB 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 70 41 01 00 35 04 06 00 98 67 51 ED 1F 6E D0 C3 6A 5C 39 09 56 0B [00:29:29]CheckFolder [00:29:29]dirname=/storage/ofd_packets [00:29:29]CheckFolder done [00:29:29]ProducePacketName [00:29:29]name=ofd_packets/00082288 [00:29:29]NVStorageSaveData ofd_packets/00082288 [00:29:29]File name is /storage/ofd_packets/00082288 [00:29:29]Write 302 bytes [00:29:29]NVStorageSaveData done [00:29:29]OFDSenderStorePacket done [00:29:29]KKMCreateOFDPacket done [00:29:29]NVStorageSaveData kkm_last_timestamp [00:29:29]File name is /storage/kkm_last_timestamp [00:29:29]Write 4 bytes [00:29:29]NVStorageSaveData done [00:29:29]ExternCall_PrintAddStr [00:29:29]wPrintStart [00:29:29]Write to MH i2c: 01 00 00 61 03 64 [00:29:29]Write i2c OK [00:29:29]MH_I2C_Read... [00:29:29]Read from MH i2c: 01 [00:29:29]MH_I2C_Read... [00:29:29]Read from MH i2c: 01 07 00 [00:29:29]MH_I2C_Read... [00:29:29]Read from MH i2c: 01 07 00 61 03 00 00 00 00 00 FF 0F 79 [00:29:29]RasterBufferAndPrint [00:29:29]line Счет N : (1)918787 [00:29:29]line ИНН: 02508201610067 [00:29:29]line Контрольно-Кассовый Чек [00:29:29]line ПРОДАЖА [00:29:29]line ТРК (МРК, ГНК) : 31 [00:29:29]line Товар: 2710194210 [00:29:29]line ДТ(л)-К-5 [00:29:29]line 196.860 * 76.20 [00:29:29]line = 15000.73 [00:29:29]line НДС 12% НСП 1% [00:29:29]line > о реализуемом товаре [00:29:29]line ИТОГО: 15000.73 [00:29:29]line НСП 1% : 132.75 [00:29:29]line НДС 12% : 1593.00 [00:29:29]line Наличными: 0.00 [00:29:29]line Безнал.: 15000.73 [00:29:29]line Место: АЗС № 114 "Партнер Нефть" [00:29:29]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [00:29:29]line СНО: Общий режим [00:29:29]line Чек 214 18.10.2024 00:29 [00:29:29]line Смена: 525 ФФД: 1.0 [00:29:29]line ЗНМ: 0300000086 [00:29:29]line РНМ: 0000000000091680 [00:29:29]line Версия ККМ: 001 [00:29:29]line Платежная система: Mbank [00:29:29]line ФМ: 0000000000871843 [00:29:29]line ФД: 82288 [00:29:29]line ФПД: 167569523548014 [00:29:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T002928&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82288&fm=167569523548014&tin=02508201610067®Number=0000000000091680&sum=1500073 [00:29:30]written 0, free lines is 4095 [00:29:30]OFD Sender: Processing packet 82288 [packets to send 254, broken 253] [00:29:30]ProducePacketName [00:29:30]name=ofd_packets/00082288 [00:29:30]OFD Sender: To server: pG, [00:29:30]CommunicateWithHost lk.salyk.kg:30040 [00:29:30]ConnectInit lk.salyk.kg [00:29:30]Write to MH i2c: 01 00 00 8A 03 8D [00:29:30]Write i2c OK [00:29:30]MH_I2C_Read... [00:29:30]Read from MH i2c: 01 [00:29:30]MH_I2C_Read... [00:29:30]Read from MH i2c: 01 07 00 [00:29:30]MH_I2C_Read... [00:29:30]Read from MH i2c: 01 07 00 8A 03 00 00 00 00 00 FC 0C 9C [00:29:30]RasterBufferAndPrint [00:29:30]line [00:29:30]line [00:29:30]line [00:29:30]line [00:29:30]line [00:29:30]written 0, free lines is 3329 [00:29:30]MH_Cut [00:29:30]Write to MH i2c: D1 01 00 91 03 01 66 [00:29:30]Write i2c OK [00:29:30]MH_I2C_Read... [00:29:30]Read from MH i2c: D1 [00:29:30]MH_I2C_Read... [00:29:30]Read from MH i2c: D1 01 00 [00:29:30]MH_I2C_Read... [00:29:30]Read from MH i2c: D1 01 00 91 03 00 65 [00:29:30]Write to MH i2c: 01 00 00 92 03 95 [00:29:30]Write i2c OK [00:29:30]MH_I2C_Read... [00:29:30]Connected sock=9 [00:29:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 6D B6 08 01 35 FE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 FC 00 03 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A9 E3 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A9 E3 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 33 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 6E 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A9 E3 16 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 E8 AB 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 70 41 01 00 35 04 06 00 98 67 51 ED 1F 6E D0 C3 6A 5C 39 09 56 0B [00:29:31]*** Cut start [00:29:31]*** Partial cut [00:29:31]*** CUTSNS_PIN = 1 [00:29:31]*** CUTSNS_PIN = 0 [00:29:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 D8 91 47 00 77 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 70 41 01 00 F4 03 04 00 25 51 11 67 B6 04 01 00 00 EA F8 F3 F0 09 46 9F 7A [00:29:31]CommunicateWithHost err = 0 [00:29:31]CheckOFDResponse [00:29:31]1017 (14) - 77093643461234 [00:29:31]1041 (16) - 0000000000871843 [00:29:31]1040 (4) - 82288 [00:29:31]1012 (4) - 17.10.2024 18:02 [00:29:31]1206 (1) - 0 [00:29:31]OFD Sender: Remove packet 82288 [00:29:31]ProducePacketName [00:29:31]name=ofd_packets/00082288 [00:29:31]NVStorageDeleteData [00:29:31]*** Brake cut motor [00:29:31]OFD Sender: No OFD packet to send [00:29:31]Read from MH i2c: 01 [00:29:31]MH_I2C_Read... [00:29:31]*** Stop cut motor [00:29:31]*** Cut end [00:29:31]Read from MH i2c: 01 07 00 [00:29:31]MH_I2C_Read... [00:29:31]Read from MH i2c: 01 07 00 92 03 00 00 00 00 00 FF 0F AA [00:29:31]process_action close_receipt done [00:29:31]requested_data is exist [00:29:31]produce_requested_data [00:29:31]requested_item fm.sn is exist - process it [00:29:31]wFMCommunicate request_size=4 [00:29:31]MH_SAM_APDU [00:29:31]CAPDU: 80 11 00 00 [00:29:31]Write to MH i2c: E2 08 00 93 03 80 11 00 00 00 00 00 00 10 [00:29:31]Write i2c OK [00:29:31]MH_I2C_Read... [00:29:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:29:31]Read from MH i2c: E2 [00:29:31]MH_I2C_Read... [00:29:31]Read from MH i2c: E2 17 00 [00:29:31]MH_I2C_Read... [00:29:31]Read from MH i2c: E2 17 00 93 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 62 [00:29:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:29:31]wFMCommunicate OK [00:29:31]requested_item fd.num is exist - process it [00:29:31]SAM_PROTO_GetFieldsCounters [00:29:31]wFMCommunicate request_size=4 [00:29:31]MH_SAM_APDU [00:29:31]CAPDU: 80 13 00 00 [00:29:31]Write to MH i2c: E2 08 00 94 03 80 13 00 00 00 00 00 00 13 [00:29:31]Write i2c OK [00:29:31]MH_I2C_Read... [00:29:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:29:32]Read from MH i2c: E2 [00:29:32]MH_I2C_Read... [00:29:32]Read from MH i2c: E2 62 00 [00:29:32]MH_I2C_Read... [00:29:32]Read from MH i2c: E2 62 00 94 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 70 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [00:29:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 70 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:29:32]wFMCommunicate OK [00:29:32]SAM_PROTO_GetFieldsCounters done [00:29:32]requested_item shift.num is exist - process it [00:29:32]requested_item shift.opened is exist - process it [00:29:32]req_shift_opened [00:29:32]FM_GetShiftState [00:29:32]SAM_PROTO_GetShiftState [00:29:32]wFMCommunicate request_size=4 [00:29:32]MH_SAM_APDU [00:29:32]CAPDU: 80 13 01 00 [00:29:32]Write to MH i2c: E2 08 00 95 03 80 13 01 00 00 00 00 00 15 [00:29:32]Write i2c OK [00:29:32]MH_I2C_Read... [00:29:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:32]Read from MH i2c: E2 [00:29:32]MH_I2C_Read... [00:29:32]Read from MH i2c: E2 0E 00 [00:29:32]MH_I2C_Read... [00:29:32]Read from MH i2c: E2 0E 00 95 03 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 1D [00:29:32]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [00:29:32]wFMCommunicate OK [00:29:32]SAM_PROTO_GetShiftState done [00:29:32]FM_GetShiftState done [00:29:32]req_shift_opened done [00:29:32]requested_item shift.open_date is exist - process it [00:29:32]req_shift_open_date [00:29:32]req_shift_open_date done [00:29:32]produce_requested_data done [00:29:32]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82288,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [00:29:32]process_action_free close_receipt [00:29:32]json_value_free [00:29:32]json_value_free done [00:29:32]process_json_proto returns [00:29:32]Send response to host [00:29:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82288,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [00:29:32]free response buf [00:29:32]execute_script done [00:29:32]execute_script returns [00:29:32]free content buf [00:29:32]Sock 10.Close socket [00:29:32]Sock 10.Thread stoped [00:29:36]recv_with_timeout no data received [00:29:36]OFD Sender: No OFD packet to send [00:29:41]OFD Sender: No OFD packet to send [00:29:46]OFD Sender: No OFD packet to send [00:29:51]OFD Sender: No OFD packet to send [00:29:56]recv_with_timeout no data received [00:29:56]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]/dev/ttyS4 opened [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 53 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725AE (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 44426293+1684785137=1729211430 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 54 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 26 AC 11 67 F1 C7 6B 64 D0 [00:30:30]Current date/time: 18.10.2024 00:30 [00:30:30]FM_Init [00:30:30]wFMConnect [00:30:30]MH_SAM_On [00:30:30]Write to MH i2c: E0 00 00 08 00 E7 [00:30:30]Write i2c OK [00:30:30]MH_I2C_Read... [00:30:30]*** iso7816_init finished! [00:30:30]*** atr: [00:30:30]*** 0F 3B D5 18 FF 81 91 FE [00:30:30]*** 1F C3 80 73 C8 21 10 0A [00:30:30]*** 00 00 00 00 00 00 00 00 [00:30:30]*** 00 00 00 00 00 00 00 00 [00:30:30]*** 00 00 00 00 00 00 00 00 [00:30:30]*** 00 00 00 00 00 00 00 00 [00:30:30]*** 00 00 00 00 00 00 00 00 [00:30:30]*** 00 00 00 00 00 00 00 00 [00:30:30]Read from MH i2c: E0 [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: E0 10 00 [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [00:30:30]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [00:30:30]wFMCommunicate request_size=10 [00:30:30]MH_SAM_APDU [00:30:30]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [00:30:30]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [00:30:30]Write i2c OK [00:30:30]MH_I2C_Read... [00:30:30]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [00:30:30]Read from MH i2c: E2 [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: E2 03 00 [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [00:30:30]RAPDU: 90 00 [00:30:30]wFMCommunicate OK [00:30:30]wFMCommunicate request_size=4 [00:30:30]MH_SAM_APDU [00:30:30]CAPDU: 80 11 00 00 [00:30:30]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [00:30:30]Write i2c OK [00:30:30]MH_I2C_Read... [00:30:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:30]Read from MH i2c: E2 [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: E2 17 00 [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D6 [00:30:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:30:30]wFMCommunicate OK [00:30:30]Detected FM SN is 0000000000871843 [00:30:30]Stored FM SN is 0000000000871843 [00:30:30]wFMCommunicate request_size=9 [00:30:30]MH_SAM_APDU [00:30:30]CAPDU: 80 16 00 00 04 C3 A3 00 00 [00:30:30]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 C3 A3 00 00 00 00 F8 [00:30:30]Write i2c OK [00:30:30]MH_I2C_Read... [00:30:30]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [00:30:30]Read from MH i2c: E2 [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: E2 03 00 [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [00:30:30]RAPDU: 90 00 [00:30:30]wFMCommunicate OK [00:30:30]FM PIN OK [00:30:30]wFMCommunicate request_size=8 [00:30:30]MH_SAM_APDU [00:30:30]CAPDU: 80 14 04 00 03 02 00 01 [00:30:30]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [00:30:30]Write i2c OK [00:30:30]MH_I2C_Read... [00:30:30]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [00:30:30]Read from MH i2c: E2 [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: E2 03 00 [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [00:30:30]RAPDU: 90 00 [00:30:30]wFMCommunicate OK [00:30:30]wFMCommunicate request_size=13 [00:30:30]MH_SAM_APDU [00:30:30]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [00:30:30]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [00:30:30]Write i2c OK [00:30:30]MH_I2C_Read... [00:30:30]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [00:30:30]Read from MH i2c: E2 [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: E2 03 00 [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [00:30:30]RAPDU: 90 00 [00:30:30]wFMCommunicate OK [00:30:30]wFMCommunicate request_size=4 [00:30:30]MH_SAM_APDU [00:30:30]CAPDU: 80 11 00 00 [00:30:30]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [00:30:30]Write i2c OK [00:30:30]MH_I2C_Read... [00:30:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:30]Read from MH i2c: E2 [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: E2 17 00 [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DA [00:30:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:30:30]wFMCommunicate OK [00:30:30]DocumentArchiveInit [00:30:30]Start Httpd... [00:30:30]Httpd thread 3067727204 created [00:30:30]Write to MH i2c: 01 00 00 0F 00 0F [00:30:30]Write i2c OK [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: 01 [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: 01 07 00 [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [00:30:30]Allocated Socket 5 [00:30:30]Bind OK [00:30:30]Listen OK [00:30:30]httpd running on port 8080 [00:30:30]Waiting for new connection... [00:30:30]MH Int Process started [00:30:30]OFD Sender: No OFD packet to send [00:30:35]OFD Sender: No OFD packet to send [00:30:38]accept exits with 6 [00:30:38]New connection [00:30:38]New thread 3067440484 created [00:30:38]Waiting for new connection... [00:30:38] Sock 6.Parse request [00:30:38]Sock 6.Check first char [00:30:38]Sock 6.First char is OK [00:30:38]request: POST /json_proto HTTP/1.0 [00:30:38]Method: POST [00:30:38]URL: /json_proto [00:30:38]Method is POST - this is cgi request [00:30:38]url: /json_proto [00:30:38]query_string will be loaded in cgi processing [00:30:38]execute_cgi json_proto POST (null) [00:30:38]execute_cgi path=json_proto method=POST [00:30:38]POST find Content-Length [00:30:38]Host: 172.17.44.67:8080 [00:30:38]Content-Length: 215 [00:30:38]Content-Type: application/json [00:30:38] [00:30:38]POST finish read [00:30:38]Found Content-Length = 215 [00:30:38]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:38]execute_script... [00:30:38]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:38]POST & json_proto [00:30:38]process_json_proto [00:30:38]json parsed OK: [00:30:38]protocol is kg_v1.0 [00:30:38]action value=get_value [00:30:38]process_action get_value [00:30:38]cmd_get_value [00:30:38]process_action get_value done [00:30:38]requested_data is exist [00:30:38]produce_requested_data [00:30:38]requested_item kkm.sn is exist - process it [00:30:38]requested_item kkm.ver is exist - process it [00:30:38]requested_item fm.sn is exist - process it [00:30:38]wFMCommunicate request_size=4 [00:30:38]MH_SAM_APDU [00:30:38]CAPDU: 80 11 00 00 [00:30:38]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [00:30:38]Write i2c OK [00:30:38]MH_I2C_Read... [00:30:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:38]Read from MH i2c: E2 [00:30:38]MH_I2C_Read... [00:30:38]Read from MH i2c: E2 17 00 [00:30:38]MH_I2C_Read... [00:30:38]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DC [00:30:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:30:38]wFMCommunicate OK [00:30:38]requested_item fd.num is exist - process it [00:30:38]SAM_PROTO_GetFieldsCounters [00:30:38]wFMCommunicate request_size=4 [00:30:38]MH_SAM_APDU [00:30:38]CAPDU: 80 13 00 00 [00:30:38]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [00:30:38]Write i2c OK [00:30:38]MH_I2C_Read... [00:30:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:38]Read from MH i2c: E2 [00:30:38]MH_I2C_Read... [00:30:38]Read from MH i2c: E2 62 00 [00:30:38]MH_I2C_Read... [00:30:38]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 70 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [00:30:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 70 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:30:38]wFMCommunicate OK [00:30:38]SAM_PROTO_GetFieldsCounters done [00:30:38]requested_item shift.num is exist - process it [00:30:38]requested_item shift.opened is exist - process it [00:30:38]req_shift_opened [00:30:38]FM_GetShiftState [00:30:38]SAM_PROTO_GetShiftState [00:30:38]wFMCommunicate request_size=4 [00:30:38]MH_SAM_APDU [00:30:38]CAPDU: 80 13 01 00 [00:30:38]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [00:30:38]Write i2c OK [00:30:38]MH_I2C_Read... [00:30:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:38]Read from MH i2c: E2 [00:30:38]MH_I2C_Read... [00:30:38]Read from MH i2c: E2 0E 00 [00:30:38]MH_I2C_Read... [00:30:38]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 97 [00:30:38]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [00:30:38]wFMCommunicate OK [00:30:38]SAM_PROTO_GetShiftState done [00:30:38]FM_GetShiftState done [00:30:38]req_shift_opened done [00:30:38]requested_item shift.open_date is exist - process it [00:30:38]req_shift_open_date [00:30:38]req_shift_open_date done [00:30:38]produce_requested_data done [00:30:38]produce_requested_data return {"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82288,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [00:30:38]process_action_free get_value [00:30:38]json_value_free [00:30:38]json_value_free done [00:30:38]process_json_proto returns [00:30:38]Send response to host [00:30:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82288,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [00:30:38]free response buf [00:30:38]execute_script done [00:30:38]execute_script returns [00:30:38]free content buf [00:30:38]Sock 6.Close socket [00:30:38]Sock 6.Thread stoped [00:30:38]accept exits with 10 [00:30:38]New connection [00:30:38]New thread 3067297124 created [00:30:38]Thread 3067440484 joined [00:30:38]Waiting for new connection... [00:30:38] Sock 10.Parse request [00:30:38]Sock 10.Check first char [00:30:38]Sock 10.First char is OK [00:30:38]request: POST /json_proto HTTP/1.0 [00:30:38]Method: POST [00:30:38]URL: /json_proto [00:30:38]Method is POST - this is cgi request [00:30:38]url: /json_proto [00:30:38]query_string will be loaded in cgi processing [00:30:38]execute_cgi json_proto POST (null) [00:30:38]execute_cgi path=json_proto method=POST [00:30:38]POST find Content-Length [00:30:38]Host: 172.17.44.67:8080 [00:30:38]Content-Length: 331 [00:30:38]Content-Type: application/json [00:30:38] [00:30:38]POST finish read [00:30:38]Found Content-Length = 331 [00:30:38]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:38]execute_script... [00:30:38]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:38]POST & json_proto [00:30:38]process_json_proto [00:30:38]json parsed OK: [00:30:38]protocol is kg_v1.0 [00:30:38]action value=get_value [00:30:38]process_action get_value [00:30:38]cmd_get_value [00:30:38]process_action get_value done [00:30:38]requested_data is exist [00:30:38]produce_requested_data [00:30:38]requested_item fm.sale.total is exist - process it [00:30:38]SAM_PROTO_GetFMData [00:30:38]wFMCommunicate request_size=4 [00:30:38]MH_SAM_APDU [00:30:38]CAPDU: 80 13 03 00 [00:30:38]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [00:30:38]Write i2c OK [00:30:38]MH_I2C_Read... [00:30:39]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:30:39]Read from MH i2c: E2 [00:30:39]MH_I2C_Read... [00:30:39]Read from MH i2c: E2 FD 00 [00:30:39]MH_I2C_Read... [00:30:39]Read from MH i2c: E2 FD 00 13 00 00 C7 04 85 04 C3 04 6E 04 04 00 56 3D 01 00 69 04 A3 00 6F 04 04 00 BE 3A 01 00 B1 04 05 00 AB 12 5C 7B 01 70 04 05 00 30 08 26 41 01 72 04 04 00 7B 0A 36 3A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C8 B5 4C 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 83 A6 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 98 02 00 00 B1 04 04 00 70 95 0F 13 70 04 04 00 08 53 0F 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AD 37 06 02 EF 90 00 B5 [00:30:39]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 56 3D 01 00 69 04 A3 00 6F 04 04 00 BE 3A 01 00 B1 04 05 00 AB 12 5C 7B 01 70 04 05 00 30 08 26 41 01 72 04 04 00 7B 0A 36 3A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C8 B5 4C 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 83 A6 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 98 02 00 00 B1 04 04 00 70 95 0F 13 70 04 04 00 08 53 0F 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AD 37 06 02 EF 90 00 [00:30:39]wFMCommunicate OK [00:30:39]wFMCommunicate request_size=4 [00:30:39]MH_SAM_APDU [00:30:39]CAPDU: 80 17 00 00 [00:30:39]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [00:30:39]Write i2c OK [00:30:39]MH_I2C_Read... [00:30:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:39]Read from MH i2c: E2 [00:30:39]MH_I2C_Read... [00:30:39]Read from MH i2c: E2 FD 00 [00:30:39]MH_I2C_Read... [00:30:39]Read from MH i2c: E2 FD 00 14 00 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0A 2F 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 90 00 05 [00:30:39]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0A 2F 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 90 00 [00:30:39]wFMCommunicate OK [00:30:39]wFMCommunicate request_size=4 [00:30:39]MH_SAM_APDU [00:30:39]CAPDU: 80 17 00 00 [00:30:39]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [00:30:39]Write i2c OK [00:30:39]MH_I2C_Read... [00:30:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:39]Read from MH i2c: E2 [00:30:39]MH_I2C_Read... [00:30:39]Read from MH i2c: E2 FD 00 [00:30:39]MH_I2C_Read... [00:30:39]Read from MH i2c: E2 FD 00 15 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 6D [00:30:39]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [00:30:39]wFMCommunicate OK [00:30:39]wFMCommunicate request_size=4 [00:30:39]MH_SAM_APDU [00:30:39]CAPDU: 80 17 00 00 [00:30:39]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [00:30:39]Write i2c OK [00:30:39]MH_I2C_Read... [00:30:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:40]Read from MH i2c: E2 [00:30:40]MH_I2C_Read... [00:30:40]Read from MH i2c: E2 FD 00 [00:30:40]MH_I2C_Read... [00:30:40]Read from MH i2c: E2 FD 00 16 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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 11 [00:30:40]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:30:40]wFMCommunicate OK [00:30:40]wFMCommunicate request_size=4 [00:30:40]MH_SAM_APDU [00:30:40]CAPDU: 80 17 00 00 [00:30:40]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [00:30:40]Write i2c OK [00:30:40]MH_I2C_Read... [00:30:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:30:40]Read from MH i2c: E2 [00:30:40]MH_I2C_Read... [00:30:40]Read from MH i2c: E2 E4 00 [00:30:40]MH_I2C_Read... [00:30:40]Read from MH i2c: E2 E4 00 17 00 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 77 [00:30:40]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:30:40]wFMCommunicate OK [00:30:40]SAM_PROTO_GetFMData done [00:30:40]requested_item fm.sale_refund.total is exist - process it [00:30:40]requested_item fm.buy.total is exist - process it [00:30:40]requested_item shift.sale.total is exist - process it [00:30:40]SAM_PROTO_GetShiftData [00:30:40]wFMCommunicate request_size=4 [00:30:40]MH_SAM_APDU [00:30:40]CAPDU: 80 13 02 00 [00:30:40]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [00:30:40]Write i2c OK [00:30:40]MH_I2C_Read... [00:30:40]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:30:40]Read from MH i2c: E2 [00:30:40]MH_I2C_Read... [00:30:40]Read from MH i2c: E2 FD 00 [00:30:40]MH_I2C_Read... [00:30:40]Read from MH i2c: E2 FD 00 18 00 00 BA 04 AA 04 B6 04 6E 04 04 00 D6 00 00 00 69 04 9C 00 6F 04 04 00 D3 00 00 00 B1 04 03 00 92 79 D1 70 04 03 00 F4 38 91 72 04 03 00 9E 40 40 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 20 40 16 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 A9 DA 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 FC 0A 70 04 03 00 80 FC 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BD 2A 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 F3 [00:30:40]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 D6 00 00 00 69 04 9C 00 6F 04 04 00 D3 00 00 00 B1 04 03 00 92 79 D1 70 04 03 00 F4 38 91 72 04 03 00 9E 40 40 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 20 40 16 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 A9 DA 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 FC 0A 70 04 03 00 80 FC 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BD 2A 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:30:40]wFMCommunicate OK [00:30:40]wFMCommunicate request_size=4 [00:30:40]MH_SAM_APDU [00:30:40]CAPDU: 80 17 00 00 [00:30:40]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [00:30:40]Write i2c OK [00:30:40]MH_I2C_Read... [00:30:40]OFD Sender: No OFD packet to send [00:30:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:41]Read from MH i2c: E2 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: E2 FD 00 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: E2 FD 00 19 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 3F [00:30:41]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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:30:41]wFMCommunicate OK [00:30:41]wFMCommunicate request_size=4 [00:30:41]MH_SAM_APDU [00:30:41]CAPDU: 80 17 00 00 [00:30:41]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [00:30:41]Write i2c OK [00:30:41]MH_I2C_Read... [00:30:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:41]Read from MH i2c: E2 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: E2 FD 00 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: E2 FD 00 1A 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 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 C6 [00:30:41]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:30:41]wFMCommunicate OK [00:30:41]wFMCommunicate request_size=4 [00:30:41]MH_SAM_APDU [00:30:41]CAPDU: 80 17 00 00 [00:30:41]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [00:30:41]Write i2c OK [00:30:41]MH_I2C_Read... [00:30:41]recv_with_timeout no data received [00:30:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:41]Read from MH i2c: E2 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: E2 FD 00 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: E2 FD 00 1B 00 00 00 EF 03 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 13 [00:30:41]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:30:41]wFMCommunicate OK [00:30:41]wFMCommunicate request_size=4 [00:30:41]MH_SAM_APDU [00:30:41]CAPDU: 80 17 00 00 [00:30:41]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [00:30:41]Write i2c OK [00:30:41]MH_I2C_Read... [00:30:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:30:41]Read from MH i2c: E2 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: E2 D7 00 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: E2 D7 00 1C 00 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 7F [00:30:41]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:30:42]wFMCommunicate OK [00:30:42]SAM_PROTO_GetShiftData done [00:30:42]requested_item shift.sale.total_cash is exist - process it [00:30:42]requested_item shift.sale_refund.total is exist - process it [00:30:42]requested_item shift.sale_refund.total_cash is exist - process it [00:30:42]requested_item shift.buy.total is exist - process it [00:30:42]requested_item shift.buy.total_cash is exist - process it [00:30:42]produce_requested_data done [00:30:42]produce_requested_data return {"fm.sale.total":63645989.55,"fm.sale_refund.total":3197884.00,"fm.buy.total":0.00,"shift.sale.total":137281.46,"shift.sale.total_cash":95173.00,"shift.sale_refund.total":7200.00,"shift.sale_refund.total_cash":7200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:30:42]process_action_free get_value [00:30:42]json_value_free [00:30:42]json_value_free done [00:30:42]process_json_proto returns [00:30:42]Send response to host [00:30:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":63645989.55,"fm.sale_refund.total":3197884.00,"fm.buy.total":0.00,"shift.sale.total":137281.46,"shift.sale.total_cash":95173.00,"shift.sale_refund.total":7200.00,"shift.sale_refund.total_cash":7200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:30:42]free response buf [00:30:42]execute_script done [00:30:42]execute_script returns [00:30:42]free content buf [00:30:42]Sock 10.Close socket [00:30:42]Sock 10.Thread stoped [00:30:45]OFD Sender: No OFD packet to send [00:30:50]OFD Sender: No OFD packet to send [00:30:51]recv_with_timeout no data received [00:30:55]OFD Sender: No OFD packet to send [00:31:00]OFD Sender: No OFD packet to send [00:31:05]OFD Sender: No OFD packet to send [00:31:10]OFD Sender: No OFD packet to send [00:31:12]recv_with_timeout no data received [00:31:15]OFD Sender: No OFD packet to send [00:31:20]OFD Sender: No OFD packet to send [00:31:25]OFD Sender: No OFD packet to send [00:31:30]OFD Sender: No OFD packet to send [00:31:32]recv_with_timeout no data received [00:31:35]OFD Sender: No OFD packet to send [00:31:40]OFD Sender: No OFD packet to send [00:31:45]OFD Sender: No OFD packet to send [00:31:50]OFD Sender: No OFD packet to send [00:31:55]OFD Sender: No OFD packet to send [00:32:01]OFD Sender: No OFD packet to send [00:32:06]OFD Sender: No OFD packet to send [00:32:11]OFD Sender: No OFD packet to send [00:32:11]recv_with_timeout no data received [00:32:16]OFD Sender: No OFD packet to send [00:32:21]OFD Sender: No OFD packet to send [00:32:26]OFD Sender: No OFD packet to send [00:32:31]OFD Sender: No OFD packet to send [00:32:36]OFD Sender: No OFD packet to send [00:32:41]OFD Sender: No OFD packet to send [00:32:46]OFD Sender: No OFD packet to send [00:32:51]OFD Sender: No OFD packet to send [00:32:56]OFD Sender: No OFD packet to send [00:33:01]OFD Sender: No OFD packet to send [00:33:06]OFD Sender: No OFD packet to send [00:33:11]OFD Sender: No OFD packet to send [00:33:16]OFD Sender: No OFD packet to send [00:33:21]OFD Sender: No OFD packet to send [00:33:26]OFD Sender: No OFD packet to send [00:33:31]OFD Sender: No OFD packet to send [00:33:31]accept exits with 6 [00:33:31]New connection [00:33:31]New thread 3067440484 created [00:33:31]Thread 3067297124 joined [00:33:31]Waiting for new connection... [00:33:31] Sock 6.Parse request [00:33:31]Sock 6.Check first char [00:33:31]Sock 6.First char is OK [00:33:31]request: POST /json_proto HTTP/1.0 [00:33:31]Method: POST [00:33:31]URL: /json_proto [00:33:31]Method is POST - this is cgi request [00:33:31]url: /json_proto [00:33:31]query_string will be loaded in cgi processing [00:33:31]execute_cgi json_proto POST (null) [00:33:31]execute_cgi path=json_proto method=POST [00:33:31]POST find Content-Length [00:33:31]Host: 172.17.44.67:8080 [00:33:31]Content-Length: 677 [00:33:31]Content-Type: application/json [00:33:31] [00:33:31]POST finish read [00:33:31]Found Content-Length = 677 [00:33:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 2.970, "sum" : 220.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:33:31]execute_script... [00:33:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 2.970, "sum" : 220.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:33:31]POST & json_proto [00:33:31]process_json_proto [00:33:31]json parsed OK: [00:33:31]protocol is kg_v1.0 [00:33:31]action value=close_receipt [00:33:31]process_action close_receipt [00:33:31]cmd_close_receipt [00:33:31]MH_GetDate [00:33:31]Write to MH i2c: F0 00 00 1D 00 0C [00:33:31]Write i2c OK [00:33:31]MH_I2C_Read... [00:33:31]Read from MH i2c: F0 [00:33:31]MH_I2C_Read... [00:33:31]Read from MH i2c: F0 09 00 [00:33:31]MH_I2C_Read... [00:33:31]Read from MH i2c: F0 09 00 1D 00 00 DC AC 11 67 F1 C7 6B 64 9C [00:33:31]GetLastDocTimeStamp 1729211368 [00:33:31]current date 1729211612 [00:33:31]FM_GetShiftState [00:33:31]SAM_PROTO_GetShiftState [00:33:31]wFMCommunicate request_size=4 [00:33:31]MH_SAM_APDU [00:33:31]CAPDU: 80 13 01 00 [00:33:31]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [00:33:31]Write i2c OK [00:33:31]MH_I2C_Read... [00:33:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:31]Read from MH i2c: E2 [00:33:31]MH_I2C_Read... [00:33:31]Read from MH i2c: E2 0E 00 [00:33:31]MH_I2C_Read... [00:33:31]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 A3 [00:33:31]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [00:33:31]wFMCommunicate OK [00:33:31]SAM_PROTO_GetShiftState done [00:33:31]FM_GetShiftState done [00:33:31]opened in 1729125927 [00:33:31]opened+sec_in_day 1729212327 [00:33:31]quantity*price = 22037 [00:33:31]sum+1 = 22038 [00:33:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.40 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 215 18.10.2024 00:33 Смена: 525 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82289 ФПД: 113398750253900 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T003332&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82289&fm=113398750253900&tin=02508201610067®Number=0000000000091680&sum=22000 [00:33:33]StoreToDocumentArchive [00:33:33]shift 525 fd 82289 [00:33:33]save to /storage/0525/doc_00082289 [00:33:33]save last doc name /storage/0525/doc_00082289 to /storage/kkm_last_doc_name [00:33:33]save OK [00:33:33]Clear old archive folders... [00:33:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:33:33]tlvbuf is 00B16B80 [00:33:33]SAM_PROTO_ClearQueue [00:33:33]wFMCommunicate request_size=4 [00:33:33]MH_SAM_APDU [00:33:33]CAPDU: 80 09 00 00 [00:33:33]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [00:33:33]Write i2c OK [00:33:33]MH_I2C_Read... [00:33:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:33:33]Read from MH i2c: E2 [00:33:33]MH_I2C_Read... [00:33:33]Read from MH i2c: E2 03 00 [00:33:33]MH_I2C_Read... [00:33:33]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [00:33:33]RAPDU: 90 00 [00:33:33]wFMCommunicate OK [00:33:33]SAM_PROTO_ClearQueue done [00:33:33]KKMCreateOFDPacket [00:33:33]OFDProtocolAddRootSTLVToBuf [00:33:33]FM_MakeSignedData [00:33:33]FM_MakeSignedData [00:33:33]SAM_PROTO_SignData [00:33:33]wFMCommunicate request_size=4 [00:33:33]MH_SAM_APDU [00:33:33]CAPDU: 80 0D 01 02 [00:33:33]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [00:33:33]Write i2c OK [00:33:33]MH_I2C_Read... [00:33:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:33:33]Read from MH i2c: E2 [00:33:33]MH_I2C_Read... [00:33:33]Read from MH i2c: E2 03 00 [00:33:33]MH_I2C_Read... [00:33:33]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [00:33:33]RAPDU: 90 00 [00:33:33]wFMCommunicate OK [00:33:33]wFMCommunicate request_size=255 [00:33:33]MH_SAM_APDU [00:33:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 15 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 DC AC 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 71 41 01 00 35 04 06 00 67 [00:33:33]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 15 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 DC AC 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 71 41 01 00 35 04 06 00 67 00 00 53 [00:33:33]Write i2c OK [00:33:33]MH_I2C_Read... [00:33:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:33:33]Read from MH i2c: E2 [00:33:33]MH_I2C_Read... [00:33:33]Read from MH i2c: E2 03 00 [00:33:33]MH_I2C_Read... [00:33:33]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [00:33:33]RAPDU: 90 00 [00:33:33]wFMCommunicate OK [00:33:33]wFMCommunicate request_size=10 [00:33:33]MH_SAM_APDU [00:33:33]CAPDU: 80 0D 02 02 05 22 B4 3A 13 4C [00:33:33]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 22 B4 3A 13 4C 00 00 21 [00:33:33]Write i2c OK [00:33:33]MH_I2C_Read... [00:33:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:33:33]Read from MH i2c: E2 [00:33:33]MH_I2C_Read... [00:33:33]Read from MH i2c: E2 03 00 [00:33:33]MH_I2C_Read... [00:33:33]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [00:33:33]RAPDU: 90 00 [00:33:33]wFMCommunicate OK [00:33:33]wFMCommunicate request_size=4 [00:33:33]MH_SAM_APDU [00:33:33]CAPDU: 80 0D 03 02 [00:33:33]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [00:33:33]Write i2c OK [00:33:33]MH_I2C_Read... [00:33:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:33:33]Read from MH i2c: E2 [00:33:33]MH_I2C_Read... [00:33:33]Read from MH i2c: E2 0B 00 [00:33:33]MH_I2C_Read... [00:33:33]Read from MH i2c: E2 0B 00 2F 00 00 F3 4A 8B D0 9A 08 4E 6D 90 00 A0 [00:33:33]RAPDU: F3 4A 8B D0 9A 08 4E 6D 90 00 [00:33:33]wFMCommunicate OK [00:33:33]SAM_PROTO_SignData done [00:33:33]FM_MakeSignedData done [00:33:33]CreateOFDProtocolMessage [00:33:33]wFMCommunicate request_size=4 [00:33:33]MH_SAM_APDU [00:33:33]CAPDU: 80 11 00 00 [00:33:33]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [00:33:33]Write i2c OK [00:33:33]MH_I2C_Read... [00:33:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:33:33]Read from MH i2c: E2 [00:33:33]MH_I2C_Read... [00:33:33]Read from MH i2c: E2 17 00 [00:33:33]MH_I2C_Read... [00:33:33]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 FC [00:33:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:33:33]wFMCommunicate OK [00:33:33]CreateOFDProtocolMessage done [00:33:33]OFDSenderStorePacket 82289 [00:33:33]StoreOFDPacket docnum=82289 [00:33:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 FF 31 07 01 19 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 15 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 DC AC 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 71 41 01 00 35 04 06 00 67 22 B4 3A 13 4C F3 4A 8B D0 9A 08 4E 6D [00:33:33]CheckFolder [00:33:33]dirname=/storage/ofd_packets [00:33:33]CheckFolder done [00:33:33]ProducePacketName [00:33:33]name=ofd_packets/00082289 [00:33:33]NVStorageSaveData ofd_packets/00082289 [00:33:33]File name is /storage/ofd_packets/00082289 [00:33:33]Write 301 bytes [00:33:33]NVStorageSaveData done [00:33:33]OFDSenderStorePacket done [00:33:33]KKMCreateOFDPacket done [00:33:33]NVStorageSaveData kkm_last_timestamp [00:33:33]File name is /storage/kkm_last_timestamp [00:33:33]Write 4 bytes [00:33:33]NVStorageSaveData done [00:33:33]OFD Sender: Processing packet 82289 [packets to send 254, broken 253] [00:33:33]ProducePacketName [00:33:33]name=ofd_packets/00082289 [00:33:33]OFD Sender: To server: pG, [00:33:33]CommunicateWithHost lk.salyk.kg:30040 [00:33:33]ConnectInit lk.salyk.kg [00:33:33]ExternCall_PrintAddStr [00:33:33]wPrintStart [00:33:33]Write to MH i2c: 01 00 00 31 00 31 [00:33:33]Write i2c OK [00:33:33]MH_I2C_Read... [00:33:33]Read from MH i2c: 01 [00:33:33]MH_I2C_Read... [00:33:33]Read from MH i2c: 01 07 00 [00:33:33]MH_I2C_Read... [00:33:33]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [00:33:33]RasterBufferAndPrint [00:33:33]line Счет N : (1)918790 [00:33:33]line ИНН: 02508201610067 [00:33:33]line Контрольно-Кассовый Чек [00:33:33]line ПРОДАЖА [00:33:33]line ТРК (МРК, ГНК) : 12 [00:33:33]line Товар: 2710124500 [00:33:33]line Аи-95-К-5 [00:33:33]line 2.970 * 74.20 [00:33:33]line = 220.37 [00:33:33]line НДС 12% НСП 1% [00:33:33]line > о реализуемом товаре [00:33:33]line ОКРУГЛЕНИЕ: -0.37 [00:33:33]line ИТОГО: 220.00 [00:33:33]line Внесено: 220.00 [00:33:33]line СДАЧА: 0.00 [00:33:33]line НСП 1% : 1.95 [00:33:33]line НДС 12% : 23.40 [00:33:33]line Наличными: 220.00 [00:33:33]line Безнал.: 0.00 [00:33:33]line Место: АЗС № 114 "Партнер Нефть" [00:33:33]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [00:33:33]line СНО: Общий режим [00:33:33]line Чек 215 18.10.2024 00:33 [00:33:33]line Смена: 525 ФФД: 1.0 [00:33:33]line ЗНМ: 0300000086 [00:33:33]line РНМ: 0000000000091680 [00:33:33]line Версия ККМ: 001 [00:33:33]line ФМ: 0000000000871843 [00:33:33]line ФД: 82289 [00:33:33]line ФПД: 113398750253900 [00:33:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T003332&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82289&fm=113398750253900&tin=02508201610067®Number=0000000000091680&sum=22000 [00:33:33]written 0, free lines is 4095 [00:33:34]Write to MH i2c: 01 00 00 5C 00 5C [00:33:34]Write i2c OK [00:33:34]MH_I2C_Read... [00:33:34]Read from MH i2c: 01 [00:33:34]MH_I2C_Read... [00:33:34]Read from MH i2c: 01 07 00 [00:33:34]MH_I2C_Read... [00:33:34]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 DC 0C 4B [00:33:34]RasterBufferAndPrint [00:33:34]line [00:33:34]line [00:33:34]line [00:33:34]line [00:33:34]line [00:33:34]written 0, free lines is 3298 [00:33:34]MH_Cut [00:33:34]Write to MH i2c: D1 01 00 63 00 01 35 [00:33:34]Write i2c OK [00:33:34]MH_I2C_Read... [00:33:34]Read from MH i2c: D1 [00:33:34]MH_I2C_Read... [00:33:34]Read from MH i2c: D1 01 00 [00:33:34]MH_I2C_Read... [00:33:34]Read from MH i2c: D1 01 00 63 00 00 34 [00:33:34]Write to MH i2c: 01 00 00 64 00 64 [00:33:34]Write i2c OK [00:33:34]MH_I2C_Read... [00:33:34]*** Cut start [00:33:34]*** Partial cut [00:33:34]*** CUTSNS_PIN = 1 [00:33:34]*** CUTSNS_PIN = 0 [00:33:35]*** Brake cut motor [00:33:35]Read from MH i2c: 01 [00:33:35]MH_I2C_Read... [00:33:35]*** Stop cut motor [00:33:35]*** Cut end [00:33:35]Read from MH i2c: 01 07 00 [00:33:35]MH_I2C_Read... [00:33:35]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [00:33:35]process_action close_receipt done [00:33:35]requested_data is exist [00:33:35]produce_requested_data [00:33:35]requested_item fm.sn is exist - process it [00:33:35]wFMCommunicate request_size=4 [00:33:35]MH_SAM_APDU [00:33:35]CAPDU: 80 11 00 00 [00:33:35]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [00:33:35]Write i2c OK [00:33:35]MH_I2C_Read... [00:33:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:33:35]Read from MH i2c: E2 [00:33:35]MH_I2C_Read... [00:33:35]Read from MH i2c: E2 17 00 [00:33:35]MH_I2C_Read... [00:33:35]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 31 [00:33:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:33:35]wFMCommunicate OK [00:33:35]requested_item fd.num is exist - process it [00:33:35]SAM_PROTO_GetFieldsCounters [00:33:35]wFMCommunicate request_size=4 [00:33:35]MH_SAM_APDU [00:33:35]CAPDU: 80 13 00 00 [00:33:35]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [00:33:35]Write i2c OK [00:33:35]MH_I2C_Read... [00:33:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:33:35]Read from MH i2c: E2 [00:33:35]MH_I2C_Read... [00:33:35]Read from MH i2c: E2 62 00 [00:33:35]MH_I2C_Read... [00:33:35]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 71 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [00:33:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 71 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:33:35]wFMCommunicate OK [00:33:35]SAM_PROTO_GetFieldsCounters done [00:33:35]requested_item shift.num is exist - process it [00:33:35]requested_item shift.opened is exist - process it [00:33:35]req_shift_opened [00:33:35]FM_GetShiftState [00:33:35]SAM_PROTO_GetShiftState [00:33:35]wFMCommunicate request_size=4 [00:33:35]MH_SAM_APDU [00:33:35]CAPDU: 80 13 01 00 [00:33:35]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [00:33:35]Write i2c OK [00:33:35]MH_I2C_Read... [00:33:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:35]Read from MH i2c: E2 [00:33:35]MH_I2C_Read... [00:33:35]Read from MH i2c: E2 0E 00 [00:33:35]MH_I2C_Read... [00:33:35]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 EC [00:33:35]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [00:33:35]wFMCommunicate OK [00:33:35]SAM_PROTO_GetShiftState done [00:33:35]FM_GetShiftState done [00:33:35]req_shift_opened done [00:33:35]requested_item shift.open_date is exist - process it [00:33:35]req_shift_open_date [00:33:35]req_shift_open_date done [00:33:35]produce_requested_data done [00:33:35]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82289,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [00:33:35]process_action_free close_receipt [00:33:35]json_value_free [00:33:35]json_value_free done [00:33:35]process_json_proto returns [00:33:35]Send response to host [00:33:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82289,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [00:33:35]free response buf [00:33:35]execute_script done [00:33:35]execute_script returns [00:33:35]free content buf [00:33:35]Sock 6.Close socket [00:33:35]Sock 6.Thread stoped [00:33:36]Connected sock=12 [00:33:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 FF 31 07 01 19 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 15 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 DC AC 11 67 0E 04 04 00 0D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 71 41 01 00 35 04 06 00 67 22 B4 3A 13 4C F3 4A 8B D0 9A 08 4E 6D [00:33:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 5C 79 47 00 7D 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 71 41 01 00 F4 03 04 00 1B 52 11 67 B6 04 01 00 00 71 DA 27 A6 08 5E 79 F1 [00:33:36]CommunicateWithHost err = 0 [00:33:36]CheckOFDResponse [00:33:36]1017 (14) - 77093643461234 [00:33:36]1041 (16) - 0000000000871843 [00:33:36]1040 (4) - 82289 [00:33:36]1012 (4) - 17.10.2024 18:06 [00:33:36]1206 (1) - 0 [00:33:36]OFD Sender: Remove packet 82289 [00:33:36]ProducePacketName [00:33:36]name=ofd_packets/00082289 [00:33:36]NVStorageDeleteData [00:33:37]OFD Sender: No OFD packet to send [00:33:42]OFD Sender: No OFD packet to send [00:33:47]OFD Sender: No OFD packet to send [00:33:52]OFD Sender: No OFD packet to send [00:33:55]recv_with_timeout no data received [00:33:57]OFD Sender: No OFD packet to send [00:34:02]OFD Sender: No OFD packet to send [00:34:06]recv_with_timeout no data received [00:34:07]OFD Sender: No OFD packet to send [00:34:12]OFD Sender: No OFD packet to send [00:34:17]OFD Sender: No OFD packet to send [00:34:22]OFD Sender: No OFD packet to send [00:34:27]OFD Sender: No OFD packet to send [00:34:32]OFD Sender: No OFD packet to send [00:34:37]OFD Sender: No OFD packet to send [00:34:42]OFD Sender: No OFD packet to send [00:34:47]OFD Sender: No OFD packet to send [00:34:52]OFD Sender: No OFD packet to send [00:34:57]OFD Sender: No OFD packet to send [00:35:02]OFD Sender: No OFD packet to send [00:35:07]OFD Sender: No OFD packet to send [00:35:07]recv_with_timeout no data received [00:35:12]OFD Sender: No OFD packet to send [00:35:17]OFD Sender: No OFD packet to send [00:35:22]OFD Sender: No OFD packet to send [00:35:27]OFD Sender: No OFD packet to send [00:35:32]OFD Sender: No OFD packet to send [00:35:37]OFD Sender: No OFD packet to send [00:35:42]OFD Sender: No OFD packet to send [00:35:47]OFD Sender: No OFD packet to send [00:35:52]OFD Sender: No OFD packet to send [00:35:57]OFD Sender: No OFD packet to send [00:36:02]OFD Sender: No OFD packet to send [00:36:07]OFD Sender: No OFD packet to send [00:36:12]OFD Sender: No OFD packet to send [00:36:17]OFD Sender: No OFD packet to send [00:36:22]OFD Sender: No OFD packet to send [00:36:27]OFD Sender: No OFD packet to send [00:36:32]OFD Sender: No OFD packet to send [00:36:37]OFD Sender: No OFD packet to send [00:36:42]OFD Sender: No OFD packet to send [00:36:47]OFD Sender: No OFD packet to send [00:36:52]OFD Sender: No OFD packet to send [00:36:57]OFD Sender: No OFD packet to send [00:37:02]OFD Sender: No OFD packet to send [00:37:07]OFD Sender: No OFD packet to send [00:37:12]OFD Sender: No OFD packet to send [00:37:17]OFD Sender: No OFD packet to send [00:37:22]OFD Sender: No OFD packet to send [00:37:24]recv_with_timeout no data received [00:37:27]OFD Sender: No OFD packet to send [00:37:32]OFD Sender: No OFD packet to send [00:37:37]OFD Sender: No OFD packet to send [00:37:42]OFD Sender: No OFD packet to send [00:37:47]OFD Sender: No OFD packet to send [00:37:52]OFD Sender: No OFD packet to send [00:37:55]recv_with_timeout no data received [00:37:57]OFD Sender: No OFD packet to send [00:38:02]OFD Sender: No OFD packet to send [00:38:07]OFD Sender: No OFD packet to send [00:38:12]OFD Sender: No OFD packet to send [00:38:17]OFD Sender: No OFD packet to send [00:38:22]OFD Sender: No OFD packet to send [00:38:27]OFD Sender: No OFD packet to send [00:38:32]OFD Sender: No OFD packet to send [00:38:37]OFD Sender: No OFD packet to send [00:38:42]OFD Sender: No OFD packet to send [00:38:47]OFD Sender: No OFD packet to send [00:38:49]recv_with_timeout no data received [00:38:52]OFD Sender: No OFD packet to send [00:38:57]OFD Sender: No OFD packet to send [00:39:02]OFD Sender: No OFD packet to send [00:39:07]OFD Sender: No OFD packet to send [00:39:12]OFD Sender: No OFD packet to send [00:39:17]OFD Sender: No OFD packet to send [00:39:22]OFD Sender: No OFD packet to send [00:39:27]OFD Sender: No OFD packet to send [00:39:32]OFD Sender: No OFD packet to send [00:39:37]OFD Sender: No OFD packet to send [00:39:42]OFD Sender: No OFD packet to send [00:39:47]OFD Sender: No OFD packet to send [00:39:52]OFD Sender: No OFD packet to send [00:39:57]OFD Sender: No OFD packet to send [00:40:02]OFD Sender: No OFD packet to send [00:40:07]OFD Sender: No OFD packet to send [00:40:12]OFD Sender: No OFD packet to send [00:40:17]OFD Sender: No OFD packet to send [00:40:22]OFD Sender: No OFD packet to send [00:40:27]OFD Sender: No OFD packet to send [00:40:32]OFD Sender: No OFD packet to send [00:40:35]recv_with_timeout no data received [00:40:37]OFD Sender: No OFD packet to send [00:40:42]OFD Sender: No OFD packet to send [00:40:47]OFD Sender: No OFD packet to send [00:40:52]OFD Sender: No OFD packet to send [00:40:57]OFD Sender: No OFD packet to send [00:41:02]OFD Sender: No OFD packet to send [00:41:07]OFD Sender: No OFD packet to send [00:41:12]OFD Sender: No OFD packet to send [00:41:17]OFD Sender: No OFD packet to send [00:41:22]OFD Sender: No OFD packet to send [00:41:27]OFD Sender: No OFD packet to send [00:41:32]OFD Sender: No OFD packet to send [00:41:37]OFD Sender: No OFD packet to send [00:41:42]OFD Sender: No OFD packet to send [00:41:47]OFD Sender: No OFD packet to send [00:41:52]OFD Sender: No OFD packet to send [00:41:55]accept exits with 10 [00:41:55]New connection [00:41:55]New thread 3067297124 created [00:41:55]Thread 3067440484 joined [00:41:55]Waiting for new connection... [00:41:55] Sock 10.Parse request [00:41:55]Sock 10.Check first char [00:41:55]Sock 10.First char is OK [00:41:55]request: POST /json_proto HTTP/1.0 [00:41:55]Method: POST [00:41:55]URL: /json_proto [00:41:55]Method is POST - this is cgi request [00:41:55]url: /json_proto [00:41:55]query_string will be loaded in cgi processing [00:41:55]execute_cgi json_proto POST (null) [00:41:55]execute_cgi path=json_proto method=POST [00:41:55]POST find Content-Length [00:41:55]Host: 172.17.44.67:8080 [00:41:55]Content-Length: 215 [00:41:55]Content-Type: application/json [00:41:55] [00:41:55]POST finish read [00:41:55]Found Content-Length = 215 [00:41:55]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:41:55]execute_script... [00:41:55]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:41:55]POST & json_proto [00:41:55]process_json_proto [00:41:55]json parsed OK: [00:41:55]protocol is kg_v1.0 [00:41:55]action value=get_value [00:41:55]process_action get_value [00:41:55]cmd_get_value [00:41:55]process_action get_value done [00:41:55]requested_data is exist [00:41:55]produce_requested_data [00:41:55]requested_item kkm.sn is exist - process it [00:41:55]requested_item kkm.ver is exist - process it [00:41:55]requested_item fm.sn is exist - process it [00:41:55]wFMCommunicate request_size=4 [00:41:55]MH_SAM_APDU [00:41:55]CAPDU: 80 11 00 00 [00:41:55]Write to MH i2c: E2 08 00 68 00 80 11 00 00 00 00 00 00 E2 [00:41:55]Write i2c OK [00:41:55]MH_I2C_Read... [00:41:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:55]Read from MH i2c: E2 [00:41:55]MH_I2C_Read... [00:41:55]Read from MH i2c: E2 17 00 [00:41:55]MH_I2C_Read... [00:41:55]Read from MH i2c: E2 17 00 68 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 34 [00:41:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:41:55]wFMCommunicate OK [00:41:55]requested_item fd.num is exist - process it [00:41:55]SAM_PROTO_GetFieldsCounters [00:41:55]wFMCommunicate request_size=4 [00:41:55]MH_SAM_APDU [00:41:55]CAPDU: 80 13 00 00 [00:41:55]Write to MH i2c: E2 08 00 69 00 80 13 00 00 00 00 00 00 E5 [00:41:55]Write i2c OK [00:41:55]MH_I2C_Read... [00:41:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:41:55]Read from MH i2c: E2 [00:41:55]MH_I2C_Read... [00:41:55]Read from MH i2c: E2 62 00 [00:41:55]MH_I2C_Read... [00:41:55]Read from MH i2c: E2 62 00 69 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 71 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [00:41:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 71 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:41:55]wFMCommunicate OK [00:41:55]SAM_PROTO_GetFieldsCounters done [00:41:55]requested_item shift.num is exist - process it [00:41:55]requested_item shift.opened is exist - process it [00:41:55]req_shift_opened [00:41:55]FM_GetShiftState [00:41:55]SAM_PROTO_GetShiftState [00:41:55]wFMCommunicate request_size=4 [00:41:55]MH_SAM_APDU [00:41:55]CAPDU: 80 13 01 00 [00:41:55]Write to MH i2c: E2 08 00 6A 00 80 13 01 00 00 00 00 00 E7 [00:41:55]Write i2c OK [00:41:55]MH_I2C_Read... [00:41:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:55]Read from MH i2c: E2 [00:41:55]MH_I2C_Read... [00:41:55]Read from MH i2c: E2 0E 00 [00:41:55]MH_I2C_Read... [00:41:55]Read from MH i2c: E2 0E 00 6A 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 EF [00:41:55]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [00:41:55]wFMCommunicate OK [00:41:55]SAM_PROTO_GetShiftState done [00:41:55]FM_GetShiftState done [00:41:55]req_shift_opened done [00:41:55]requested_item shift.open_date is exist - process it [00:41:55]req_shift_open_date [00:41:55]req_shift_open_date done [00:41:55]produce_requested_data done [00:41:55]produce_requested_data return {"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82289,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [00:41:55]process_action_free get_value [00:41:55]json_value_free [00:41:55]json_value_free done [00:41:55]process_json_proto returns [00:41:55]Send response to host [00:41:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82289,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [00:41:55]free response buf [00:41:55]execute_script done [00:41:55]execute_script returns [00:41:55]free content buf [00:41:55]Sock 10.Close socket [00:41:55]Sock 10.Thread stoped [00:41:55]accept exits with 9 [00:41:55]New connection [00:41:55]New thread 3067440484 created [00:41:55]Thread 3067297124 joined [00:41:55]Waiting for new connection... [00:41:55] Sock 9.Parse request [00:41:55]Sock 9.Check first char [00:41:55]Sock 9.First char is OK [00:41:55]request: POST /json_proto HTTP/1.0 [00:41:55]Method: POST [00:41:55]URL: /json_proto [00:41:55]Method is POST - this is cgi request [00:41:55]url: /json_proto [00:41:55]query_string will be loaded in cgi processing [00:41:55]execute_cgi json_proto POST (null) [00:41:55]execute_cgi path=json_proto method=POST [00:41:55]POST find Content-Length [00:41:55]Host: 172.17.44.67:8080 [00:41:55]Content-Length: 331 [00:41:55]Content-Type: application/json [00:41:55] [00:41:55]POST finish read [00:41:55]Found Content-Length = 331 [00:41: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:41:55]execute_script... [00:41: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:41:56]POST & json_proto [00:41:56]process_json_proto [00:41:56]json parsed OK: [00:41:56]protocol is kg_v1.0 [00:41:56]action value=get_value [00:41:56]process_action get_value [00:41:56]cmd_get_value [00:41:56]process_action get_value done [00:41:56]requested_data is exist [00:41:56]produce_requested_data [00:41:56]requested_item fm.sale.total is exist - process it [00:41:56]SAM_PROTO_GetFMData [00:41:56]wFMCommunicate request_size=4 [00:41:56]MH_SAM_APDU [00:41:56]CAPDU: 80 13 03 00 [00:41:56]Write to MH i2c: E2 08 00 6B 00 80 13 03 00 00 00 00 00 EA [00:41:56]Write i2c OK [00:41:56]MH_I2C_Read... [00:41:56]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:41:56]Read from MH i2c: E2 [00:41:56]MH_I2C_Read... [00:41:56]Read from MH i2c: E2 FD 00 [00:41:56]MH_I2C_Read... [00:41:56]Read from MH i2c: E2 FD 00 6B 00 00 C7 04 85 04 C3 04 6E 04 04 00 57 3D 01 00 69 04 A3 00 6F 04 04 00 BF 3A 01 00 B1 04 05 00 9B 68 5C 7B 01 70 04 05 00 20 5E 26 41 01 72 04 04 00 7B 0A 36 3A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EC BE 4C 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 46 A7 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 98 02 00 00 B1 04 04 00 70 95 0F 13 70 04 04 00 08 53 0F 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AD 37 06 02 EF 90 00 8C [00:41:56]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 57 3D 01 00 69 04 A3 00 6F 04 04 00 BF 3A 01 00 B1 04 05 00 9B 68 5C 7B 01 70 04 05 00 20 5E 26 41 01 72 04 04 00 7B 0A 36 3A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EC BE 4C 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 46 A7 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 98 02 00 00 B1 04 04 00 70 95 0F 13 70 04 04 00 08 53 0F 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AD 37 06 02 EF 90 00 [00:41:56]wFMCommunicate OK [00:41:56]wFMCommunicate request_size=4 [00:41:56]MH_SAM_APDU [00:41:56]CAPDU: 80 17 00 00 [00:41:56]Write to MH i2c: E2 08 00 6C 00 80 17 00 00 00 00 00 00 EC [00:41:56]Write i2c OK [00:41:56]MH_I2C_Read... [00:41:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:56]Read from MH i2c: E2 [00:41:56]MH_I2C_Read... [00:41:56]Read from MH i2c: E2 FD 00 [00:41:56]MH_I2C_Read... [00:41:56]Read from MH i2c: E2 FD 00 6C 00 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0A 2F 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 90 00 5D [00:41:56]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0A 2F 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 90 00 [00:41:56]wFMCommunicate OK [00:41:56]wFMCommunicate request_size=4 [00:41:56]MH_SAM_APDU [00:41:56]CAPDU: 80 17 00 00 [00:41:56]Write to MH i2c: E2 08 00 6D 00 80 17 00 00 00 00 00 00 ED [00:41:56]Write i2c OK [00:41:56]MH_I2C_Read... [00:41:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:57]Read from MH i2c: E2 [00:41:57]MH_I2C_Read... [00:41:57]Read from MH i2c: E2 FD 00 [00:41:57]MH_I2C_Read... [00:41:57]Read from MH i2c: E2 FD 00 6D 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 C5 [00:41:57]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [00:41:57]wFMCommunicate OK [00:41:57]wFMCommunicate request_size=4 [00:41:57]MH_SAM_APDU [00:41:57]CAPDU: 80 17 00 00 [00:41:57]Write to MH i2c: E2 08 00 6E 00 80 17 00 00 00 00 00 00 EE [00:41:57]Write i2c OK [00:41:57]MH_I2C_Read... [00:41:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:57]Read from MH i2c: E2 [00:41:57]MH_I2C_Read... [00:41:57]Read from MH i2c: E2 FD 00 [00:41:57]MH_I2C_Read... [00:41:57]Read from MH i2c: E2 FD 00 6E 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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 69 [00:41:57]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:41:57]wFMCommunicate OK [00:41:57]wFMCommunicate request_size=4 [00:41:57]MH_SAM_APDU [00:41:57]CAPDU: 80 17 00 00 [00:41:57]Write to MH i2c: E2 08 00 6F 00 80 17 00 00 00 00 00 00 EF [00:41:57]Write i2c OK [00:41:57]MH_I2C_Read... [00:41:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:41:57]Read from MH i2c: E2 [00:41:57]MH_I2C_Read... [00:41:57]Read from MH i2c: E2 E4 00 [00:41:57]MH_I2C_Read... [00:41:57]Read from MH i2c: E2 E4 00 6F 00 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 CF [00:41:57]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:41:57]wFMCommunicate OK [00:41:57]SAM_PROTO_GetFMData done [00:41:57]requested_item fm.sale_refund.total is exist - process it [00:41:57]requested_item fm.buy.total is exist - process it [00:41:57]requested_item shift.sale.total is exist - process it [00:41:57]SAM_PROTO_GetShiftData [00:41:57]wFMCommunicate request_size=4 [00:41:57]MH_SAM_APDU [00:41:57]CAPDU: 80 13 02 00 [00:41:57]Write to MH i2c: E2 08 00 70 00 80 13 02 00 00 00 00 00 EE [00:41:57]Write i2c OK [00:41:57]MH_I2C_Read... [00:41:57]OFD Sender: No OFD packet to send [00:41:58]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:41:58]Read from MH i2c: E2 [00:41:58]MH_I2C_Read... [00:41:58]Read from MH i2c: E2 FD 00 [00:41:58]MH_I2C_Read... [00:41:58]Read from MH i2c: E2 FD 00 70 00 00 BA 04 AA 04 B6 04 6E 04 04 00 D7 00 00 00 69 04 9C 00 6F 04 04 00 D4 00 00 00 B1 04 03 00 82 CF D1 70 04 03 00 E4 8E 91 72 04 03 00 9E 40 40 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 44 49 16 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 6C DB 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 FC 0A 70 04 03 00 80 FC 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BD 2A 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 CA [00:41:58]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 D7 00 00 00 69 04 9C 00 6F 04 04 00 D4 00 00 00 B1 04 03 00 82 CF D1 70 04 03 00 E4 8E 91 72 04 03 00 9E 40 40 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 44 49 16 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 6C DB 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 FC 0A 70 04 03 00 80 FC 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BD 2A 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:41:58]wFMCommunicate OK [00:41:58]wFMCommunicate request_size=4 [00:41:58]MH_SAM_APDU [00:41:58]CAPDU: 80 17 00 00 [00:41:58]Write to MH i2c: E2 08 00 71 00 80 17 00 00 00 00 00 00 F1 [00:41:58]Write i2c OK [00:41:58]MH_I2C_Read... [00:41:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:58]Read from MH i2c: E2 [00:41:58]MH_I2C_Read... [00:41:58]Read from MH i2c: E2 FD 00 [00:41:58]MH_I2C_Read... [00:41:58]Read from MH i2c: E2 FD 00 71 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 97 [00:41:58]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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:41:58]wFMCommunicate OK [00:41:58]wFMCommunicate request_size=4 [00:41:58]MH_SAM_APDU [00:41:58]CAPDU: 80 17 00 00 [00:41:58]Write to MH i2c: E2 08 00 72 00 80 17 00 00 00 00 00 00 F2 [00:41:58]Write i2c OK [00:41:58]MH_I2C_Read... [00:41:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:58]Read from MH i2c: E2 [00:41:58]MH_I2C_Read... [00:41:58]Read from MH i2c: E2 FD 00 [00:41:58]MH_I2C_Read... [00:41:58]Read from MH i2c: E2 FD 00 72 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 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 1E [00:41:58]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:41:58]wFMCommunicate OK [00:41:58]wFMCommunicate request_size=4 [00:41:58]MH_SAM_APDU [00:41:58]CAPDU: 80 17 00 00 [00:41:58]Write to MH i2c: E2 08 00 73 00 80 17 00 00 00 00 00 00 F3 [00:41:58]Write i2c OK [00:41:58]MH_I2C_Read... [00:41:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:58]Read from MH i2c: E2 [00:41:58]MH_I2C_Read... [00:41:58]Read from MH i2c: E2 FD 00 [00:41:58]MH_I2C_Read... [00:41:58]Read from MH i2c: E2 FD 00 73 00 00 00 EF 03 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 6B [00:41:59]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:41:59]wFMCommunicate OK [00:41:59]wFMCommunicate request_size=4 [00:41:59]MH_SAM_APDU [00:41:59]CAPDU: 80 17 00 00 [00:41:59]Write to MH i2c: E2 08 00 74 00 80 17 00 00 00 00 00 00 F4 [00:41:59]Write i2c OK [00:41:59]MH_I2C_Read... [00:41:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:41:59]Read from MH i2c: E2 [00:41:59]MH_I2C_Read... [00:41:59]Read from MH i2c: E2 D7 00 [00:41:59]MH_I2C_Read... [00:41:59]Read from MH i2c: E2 D7 00 74 00 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 D7 [00:41:59]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:41:59]wFMCommunicate OK [00:41:59]SAM_PROTO_GetShiftData done [00:41:59]requested_item shift.sale.total_cash is exist - process it [00:41:59]requested_item shift.sale_refund.total is exist - process it [00:41:59]requested_item shift.sale_refund.total_cash is exist - process it [00:41:59]requested_item shift.buy.total is exist - process it [00:41:59]requested_item shift.buy.total_cash is exist - process it [00:41:59]produce_requested_data done [00:41:59]produce_requested_data return {"fm.sale.total":63646209.55,"fm.sale_refund.total":3197884.00,"fm.buy.total":0.00,"shift.sale.total":137501.46,"shift.sale.total_cash":95393.00,"shift.sale_refund.total":7200.00,"shift.sale_refund.total_cash":7200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:41:59]process_action_free get_value [00:41:59]json_value_free [00:41:59]json_value_free done [00:41:59]process_json_proto returns [00:41:59]Send response to host [00:41:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":63646209.55,"fm.sale_refund.total":3197884.00,"fm.buy.total":0.00,"shift.sale.total":137501.46,"shift.sale.total_cash":95393.00,"shift.sale_refund.total":7200.00,"shift.sale_refund.total_cash":7200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:41:59]free response buf [00:41:59]execute_script done [00:41:59]execute_script returns [00:41:59]free content buf [00:41:59]Sock 9.Close socket [00:41:59]Sock 9.Thread stoped [00:41:59]accept exits with 8 [00:41:59]New connection [00:41:59]New thread 3067297124 created [00:41:59]Thread 3067440484 joined [00:41:59]Waiting for new connection... [00:41:59] Sock 8.Parse request [00:41:59]Sock 8.Check first char [00:41:59]Sock 8.First char is OK [00:41:59]request: POST /json_proto HTTP/1.0 [00:41:59]Method: POST [00:41:59]URL: /json_proto [00:41:59]Method is POST - this is cgi request [00:41:59]url: /json_proto [00:41:59]query_string will be loaded in cgi processing [00:41:59]execute_cgi json_proto POST (null) [00:41:59]execute_cgi path=json_proto method=POST [00:41:59]POST find Content-Length [00:41:59]Host: 172.17.44.67:8080 [00:41:59]Content-Length: 331 [00:41:59]Content-Type: application/json [00:41:59] [00:41:59]POST finish read [00:41:59]Found Content-Length = 331 [00:41:59]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:41:59]execute_script... [00:41:59]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:41:59]POST & json_proto [00:41:59]process_json_proto [00:41:59]json parsed OK: [00:41:59]protocol is kg_v1.0 [00:41:59]action value=get_value [00:41:59]process_action get_value [00:41:59]cmd_get_value [00:41:59]process_action get_value done [00:41:59]requested_data is exist [00:41:59]produce_requested_data [00:41:59]requested_item fm.sale.total is exist - process it [00:41:59]SAM_PROTO_GetFMData [00:41:59]wFMCommunicate request_size=4 [00:41:59]MH_SAM_APDU [00:41:59]CAPDU: 80 13 03 00 [00:41:59]Write to MH i2c: E2 08 00 75 00 80 13 03 00 00 00 00 00 F4 [00:41:59]Write i2c OK [00:41:59]MH_I2C_Read... [00:41:59]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:41:59]Read from MH i2c: E2 [00:41:59]MH_I2C_Read... [00:41:59]Read from MH i2c: E2 FD 00 [00:41:59]MH_I2C_Read... [00:41:59]Read from MH i2c: E2 FD 00 75 00 00 C7 04 85 04 C3 04 6E 04 04 00 57 3D 01 00 69 04 A3 00 6F 04 04 00 BF 3A 01 00 B1 04 05 00 9B 68 5C 7B 01 70 04 05 00 20 5E 26 41 01 72 04 04 00 7B 0A 36 3A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EC BE 4C 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 46 A7 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 98 02 00 00 B1 04 04 00 70 95 0F 13 70 04 04 00 08 53 0F 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AD 37 06 02 EF 90 00 96 [00:42:00]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 57 3D 01 00 69 04 A3 00 6F 04 04 00 BF 3A 01 00 B1 04 05 00 9B 68 5C 7B 01 70 04 05 00 20 5E 26 41 01 72 04 04 00 7B 0A 36 3A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EC BE 4C 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 46 A7 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 98 02 00 00 B1 04 04 00 70 95 0F 13 70 04 04 00 08 53 0F 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AD 37 06 02 EF 90 00 [00:42:00]wFMCommunicate OK [00:42:00]wFMCommunicate request_size=4 [00:42:00]MH_SAM_APDU [00:42:00]CAPDU: 80 17 00 00 [00:42:00]Write to MH i2c: E2 08 00 76 00 80 17 00 00 00 00 00 00 F6 [00:42:00]Write i2c OK [00:42:00]MH_I2C_Read... [00:42:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:00]Read from MH i2c: E2 [00:42:00]MH_I2C_Read... [00:42:00]Read from MH i2c: E2 FD 00 [00:42:00]MH_I2C_Read... [00:42:00]Read from MH i2c: E2 FD 00 76 00 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0A 2F 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 90 00 67 [00:42:00]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0A 2F 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 90 00 [00:42:00]wFMCommunicate OK [00:42:00]wFMCommunicate request_size=4 [00:42:00]MH_SAM_APDU [00:42:00]CAPDU: 80 17 00 00 [00:42:00]Write to MH i2c: E2 08 00 77 00 80 17 00 00 00 00 00 00 F7 [00:42:00]Write i2c OK [00:42:00]MH_I2C_Read... [00:42:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:00]Read from MH i2c: E2 [00:42:00]MH_I2C_Read... [00:42:00]Read from MH i2c: E2 FD 00 [00:42:00]MH_I2C_Read... [00:42:00]Read from MH i2c: E2 FD 00 77 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 CF [00:42:00]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [00:42:00]wFMCommunicate OK [00:42:00]wFMCommunicate request_size=4 [00:42:00]MH_SAM_APDU [00:42:00]CAPDU: 80 17 00 00 [00:42:00]Write to MH i2c: E2 08 00 78 00 80 17 00 00 00 00 00 00 F8 [00:42:00]Write i2c OK [00:42:00]MH_I2C_Read... [00:42:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:01]Read from MH i2c: E2 [00:42:01]MH_I2C_Read... [00:42:01]Read from MH i2c: E2 FD 00 [00:42:01]MH_I2C_Read... [00:42:01]Read from MH i2c: E2 FD 00 78 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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 73 [00:42:01]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:42:01]wFMCommunicate OK [00:42:01]wFMCommunicate request_size=4 [00:42:01]MH_SAM_APDU [00:42:01]CAPDU: 80 17 00 00 [00:42:01]Write to MH i2c: E2 08 00 79 00 80 17 00 00 00 00 00 00 F9 [00:42:01]Write i2c OK [00:42:01]MH_I2C_Read... [00:42:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:42:01]Read from MH i2c: E2 [00:42:01]MH_I2C_Read... [00:42:01]Read from MH i2c: E2 E4 00 [00:42:01]MH_I2C_Read... [00:42:01]Read from MH i2c: E2 E4 00 79 00 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D9 [00:42:01]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:42:01]wFMCommunicate OK [00:42:01]SAM_PROTO_GetFMData done [00:42:01]requested_item fm.sale_refund.total is exist - process it [00:42:01]requested_item fm.buy.total is exist - process it [00:42:01]requested_item shift.sale.total is exist - process it [00:42:01]SAM_PROTO_GetShiftData [00:42:01]wFMCommunicate request_size=4 [00:42:01]MH_SAM_APDU [00:42:01]CAPDU: 80 13 02 00 [00:42:01]Write to MH i2c: E2 08 00 7A 00 80 13 02 00 00 00 00 00 F8 [00:42:01]Write i2c OK [00:42:01]MH_I2C_Read... [00:42:01]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:42:01]Read from MH i2c: E2 [00:42:01]MH_I2C_Read... [00:42:01]Read from MH i2c: E2 FD 00 [00:42:01]MH_I2C_Read... [00:42:01]Read from MH i2c: E2 FD 00 7A 00 00 BA 04 AA 04 B6 04 6E 04 04 00 D7 00 00 00 69 04 9C 00 6F 04 04 00 D4 00 00 00 B1 04 03 00 82 CF D1 70 04 03 00 E4 8E 91 72 04 03 00 9E 40 40 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 44 49 16 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 6C DB 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 FC 0A 70 04 03 00 80 FC 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BD 2A 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 D4 [00:42:02]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 D7 00 00 00 69 04 9C 00 6F 04 04 00 D4 00 00 00 B1 04 03 00 82 CF D1 70 04 03 00 E4 8E 91 72 04 03 00 9E 40 40 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 44 49 16 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 6C DB 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 FC 0A 70 04 03 00 80 FC 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BD 2A 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:42:02]wFMCommunicate OK [00:42:02]wFMCommunicate request_size=4 [00:42:02]MH_SAM_APDU [00:42:02]CAPDU: 80 17 00 00 [00:42:02]Write to MH i2c: E2 08 00 7B 00 80 17 00 00 00 00 00 00 FB [00:42:02]Write i2c OK [00:42:02]MH_I2C_Read... [00:42:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:02]Read from MH i2c: E2 [00:42:02]MH_I2C_Read... [00:42:02]Read from MH i2c: E2 FD 00 [00:42:02]MH_I2C_Read... [00:42:02]Read from MH i2c: E2 FD 00 7B 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 A1 [00:42:02]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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:42:02]wFMCommunicate OK [00:42:02]wFMCommunicate request_size=4 [00:42:02]MH_SAM_APDU [00:42:02]CAPDU: 80 17 00 00 [00:42:02]Write to MH i2c: E2 08 00 7C 00 80 17 00 00 00 00 00 00 FC [00:42:02]Write i2c OK [00:42:02]MH_I2C_Read... [00:42:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:02]Read from MH i2c: E2 [00:42:02]MH_I2C_Read... [00:42:02]Read from MH i2c: E2 FD 00 [00:42:02]MH_I2C_Read... [00:42:02]Read from MH i2c: E2 FD 00 7C 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 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 28 [00:42:02]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:42:02]wFMCommunicate OK [00:42:02]wFMCommunicate request_size=4 [00:42:02]MH_SAM_APDU [00:42:02]CAPDU: 80 17 00 00 [00:42:02]Write to MH i2c: E2 08 00 7D 00 80 17 00 00 00 00 00 00 FD [00:42:02]Write i2c OK [00:42:02]MH_I2C_Read... [00:42:02]OFD Sender: No OFD packet to send [00:42:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:03]Read from MH i2c: E2 [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: E2 FD 00 [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: E2 FD 00 7D 00 00 00 EF 03 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 75 [00:42:03]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:42:03]wFMCommunicate OK [00:42:03]wFMCommunicate request_size=4 [00:42:03]MH_SAM_APDU [00:42:03]CAPDU: 80 17 00 00 [00:42:03]Write to MH i2c: E2 08 00 7E 00 80 17 00 00 00 00 00 00 FE [00:42:03]Write i2c OK [00:42:03]MH_I2C_Read... [00:42:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:42:03]Read from MH i2c: E2 [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: E2 D7 00 [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: E2 D7 00 7E 00 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 E1 [00:42:03]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:42:03]wFMCommunicate OK [00:42:03]SAM_PROTO_GetShiftData done [00:42:03]requested_item shift.sale.total_cash is exist - process it [00:42:03]requested_item shift.sale_refund.total is exist - process it [00:42:03]requested_item shift.sale_refund.total_cash is exist - process it [00:42:03]requested_item shift.buy.total is exist - process it [00:42:03]requested_item shift.buy.total_cash is exist - process it [00:42:03]produce_requested_data done [00:42:03]produce_requested_data return {"fm.sale.total":63646209.55,"fm.sale_refund.total":3197884.00,"fm.buy.total":0.00,"shift.sale.total":137501.46,"shift.sale.total_cash":95393.00,"shift.sale_refund.total":7200.00,"shift.sale_refund.total_cash":7200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:42:03]process_action_free get_value [00:42:03]json_value_free [00:42:03]json_value_free done [00:42:03]process_json_proto returns [00:42:03]Send response to host [00:42:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":63646209.55,"fm.sale_refund.total":3197884.00,"fm.buy.total":0.00,"shift.sale.total":137501.46,"shift.sale.total_cash":95393.00,"shift.sale_refund.total":7200.00,"shift.sale_refund.total_cash":7200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:42:03]free response buf [00:42:03]execute_script done [00:42:03]execute_script returns [00:42:03]free content buf [00:42:03]Sock 8.Close socket [00:42:03]Sock 8.Thread stoped [00:42:03]accept exits with 9 [00:42:03]New connection [00:42:03]New thread 3067440484 created [00:42:03]Thread 3067297124 joined [00:42:03]Waiting for new connection... [00:42:03] Sock 9.Parse request [00:42:03]Sock 9.Check first char [00:42:03]Sock 9.First char is OK [00:42:03]request: POST /json_proto HTTP/1.0 [00:42:03]Method: POST [00:42:03]URL: /json_proto [00:42:03]Method is POST - this is cgi request [00:42:03]url: /json_proto [00:42:03]query_string will be loaded in cgi processing [00:42:03]execute_cgi json_proto POST (null) [00:42:03]execute_cgi path=json_proto method=POST [00:42:03]POST find Content-Length [00:42:03]Host: 172.17.44.67:8080 [00:42:03]Content-Length: 245 [00:42:03]Content-Type: application/json [00:42:03] [00:42:03]POST finish read [00:42:03]Found Content-Length = 245 [00:42:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0427\u043E\u043F\u043E\u0435\u0432 \u0418. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:42:03]execute_script... [00:42:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0427\u043E\u043F\u043E\u0435\u0432 \u0418. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:42:03]POST & json_proto [00:42:03]process_json_proto [00:42:03]json parsed OK: [00:42:03]protocol is kg_v1.0 [00:42:03]action value=x_report [00:42:03]process_action x_report [00:42:03]cmd_x_report [00:42:03]MH_GetDate [00:42:03]Write to MH i2c: F0 00 00 7F 00 6E [00:42:03]Write i2c OK [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: F0 [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: F0 09 00 [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: F0 09 00 7F 00 00 DC AE 11 67 F1 C7 6B 64 00 [00:42:03]GetLastDocTimeStamp 1729211612 [00:42:03]current date 1729212124 [00:42:03]FM_GetShiftState [00:42:03]SAM_PROTO_GetShiftState [00:42:03]wFMCommunicate request_size=4 [00:42:03]MH_SAM_APDU [00:42:03]CAPDU: 80 13 01 00 [00:42:03]Write to MH i2c: E2 08 00 80 00 80 13 01 00 00 00 00 00 FD [00:42:03]Write i2c OK [00:42:03]MH_I2C_Read... [00:42:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:42:03]Read from MH i2c: E2 [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: E2 0E 00 [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: E2 0E 00 80 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 05 [00:42:03]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [00:42:03]wFMCommunicate OK [00:42:03]SAM_PROTO_GetShiftState done [00:42:03]FM_GetShiftState done [00:42:03]KKMCreateXReportDocument [00:42:03]Load OK [00:42:03]Malloc new data [00:42:03]MH_GetDate [00:42:03]Write to MH i2c: F0 00 00 81 00 70 [00:42:03]Write i2c OK [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: F0 [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: F0 09 00 [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: F0 09 00 81 00 00 DC AE 11 67 F1 C7 6B 64 02 [00:42:03]Malloc new data [00:42:03]Malloc new data [00:42:03]wFMCommunicate request_size=4 [00:42:03]MH_SAM_APDU [00:42:03]CAPDU: 80 11 00 00 [00:42:03]Write to MH i2c: E2 08 00 82 00 80 11 00 00 00 00 00 00 FC [00:42:03]Write i2c OK [00:42:03]MH_I2C_Read... [00:42:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:42:03]Read from MH i2c: E2 [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: E2 17 00 [00:42:03]MH_I2C_Read... [00:42:03]Read from MH i2c: E2 17 00 82 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 4E [00:42:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:42:03]wFMCommunicate OK [00:42:03]SAM_PROTO_GetFieldsCounters [00:42:03]wFMCommunicate request_size=4 [00:42:03]MH_SAM_APDU [00:42:03]CAPDU: 80 13 00 00 [00:42:03]Write to MH i2c: E2 08 00 83 00 80 13 00 00 00 00 00 00 FF [00:42:03]Write i2c OK [00:42:03]MH_I2C_Read... [00:42:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:42:04]Read from MH i2c: E2 [00:42:04]MH_I2C_Read... [00:42:04]Read from MH i2c: E2 62 00 [00:42:04]MH_I2C_Read... [00:42:04]Read from MH i2c: E2 62 00 83 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 71 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [00:42:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 71 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:42:04]wFMCommunicate OK [00:42:04]SAM_PROTO_GetFieldsCounters done [00:42:04]Malloc new data [00:42:04]Malloc new data [00:42:04]Malloc new data [00:42:04]KKMCreateXReportDocument OK [00:42:04]KKMSetXReportData OK [00:42:04]KKMPrepareXReportFMData [00:42:04]SAM_PROTO_GetShiftData [00:42:04]wFMCommunicate request_size=4 [00:42:04]MH_SAM_APDU [00:42:04]CAPDU: 80 13 02 00 [00:42:04]Write to MH i2c: E2 08 00 84 00 80 13 02 00 00 00 00 00 02 [00:42:04]Write i2c OK [00:42:04]MH_I2C_Read... [00:42:04]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:42:04]Read from MH i2c: E2 [00:42:04]MH_I2C_Read... [00:42:04]Read from MH i2c: E2 FD 00 [00:42:04]MH_I2C_Read... [00:42:04]Read from MH i2c: E2 FD 00 84 00 00 BA 04 AA 04 B6 04 6E 04 04 00 D7 00 00 00 69 04 9C 00 6F 04 04 00 D4 00 00 00 B1 04 03 00 82 CF D1 70 04 03 00 E4 8E 91 72 04 03 00 9E 40 40 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 44 49 16 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 6C DB 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 FC 0A 70 04 03 00 80 FC 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BD 2A 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 DE [00:42:04]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 D7 00 00 00 69 04 9C 00 6F 04 04 00 D4 00 00 00 B1 04 03 00 82 CF D1 70 04 03 00 E4 8E 91 72 04 03 00 9E 40 40 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 44 49 16 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 6C DB 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 FC 0A 70 04 03 00 80 FC 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BD 2A 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:42:04]wFMCommunicate OK [00:42:04]wFMCommunicate request_size=4 [00:42:04]MH_SAM_APDU [00:42:04]CAPDU: 80 17 00 00 [00:42:04]Write to MH i2c: E2 08 00 85 00 80 17 00 00 00 00 00 00 05 [00:42:04]Write i2c OK [00:42:04]MH_I2C_Read... [00:42:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:05]Read from MH i2c: E2 [00:42:05]MH_I2C_Read... [00:42:05]Read from MH i2c: E2 FD 00 [00:42:05]MH_I2C_Read... [00:42:05]Read from MH i2c: E2 FD 00 85 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 AB [00:42:05]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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:42:05]wFMCommunicate OK [00:42:05]wFMCommunicate request_size=4 [00:42:05]MH_SAM_APDU [00:42:05]CAPDU: 80 17 00 00 [00:42:05]Write to MH i2c: E2 08 00 86 00 80 17 00 00 00 00 00 00 06 [00:42:05]Write i2c OK [00:42:05]MH_I2C_Read... [00:42:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:05]Read from MH i2c: E2 [00:42:05]MH_I2C_Read... [00:42:05]Read from MH i2c: E2 FD 00 [00:42:05]MH_I2C_Read... [00:42:05]Read from MH i2c: E2 FD 00 86 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 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 32 [00:42:05]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:42:05]wFMCommunicate OK [00:42:05]wFMCommunicate request_size=4 [00:42:05]MH_SAM_APDU [00:42:05]CAPDU: 80 17 00 00 [00:42:05]Write to MH i2c: E2 08 00 87 00 80 17 00 00 00 00 00 00 07 [00:42:05]Write i2c OK [00:42:05]MH_I2C_Read... [00:42:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:05]Read from MH i2c: E2 [00:42:05]MH_I2C_Read... [00:42:05]Read from MH i2c: E2 FD 00 [00:42:05]MH_I2C_Read... [00:42:06]Read from MH i2c: E2 FD 00 87 00 00 00 EF 03 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 7F [00:42:06]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:42:06]wFMCommunicate OK [00:42:06]wFMCommunicate request_size=4 [00:42:06]MH_SAM_APDU [00:42:06]CAPDU: 80 17 00 00 [00:42:06]Write to MH i2c: E2 08 00 88 00 80 17 00 00 00 00 00 00 08 [00:42:06]Write i2c OK [00:42:06]MH_I2C_Read... [00:42:06]recv_with_timeout no data received [00:42:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:42:06]Read from MH i2c: E2 [00:42:06]MH_I2C_Read... [00:42:06]Read from MH i2c: E2 D7 00 [00:42:06]MH_I2C_Read... [00:42:06]Read from MH i2c: E2 D7 00 88 00 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 EB [00:42:06]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:42:06]wFMCommunicate OK [00:42:06]SAM_PROTO_GetShiftData done [00:42:06]1194 (1206) - счетчики итогов смены [00:42:06] 1134 (4) - 215 - количество чеков со всеми признаками расчетов [00:42:06] 1129 (156) - счетчики операций «приход» [00:42:06] 1135 (4) - 212 - количество чеков по признаку расчетов [00:42:06] 1201 (3) - 137501.46 - общая итоговая сумма в чеках [00:42:06] 1136 (3) - 95393.00 - итоговая сумма в чеках наличными [00:42:06] 1138 (3) - 42108.46 - итоговая сумма в чеках безналичными [00:42:06] 1024 (123) - суммы налогов [00:42:06] 1006 (9) - суммы НДС [00:42:06] 1010 (1) - 0% - код ставки НДС [00:42:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:42:06] 1006 (12) - суммы НДС [00:42:06] 1010 (1) - 12% - код ставки НДС [00:42:06] 1011 (3) - 14605.48 - сумма НДС по ставке [00:42:06] 1007 (9) - суммы НСП [00:42:06] 1014 (1) - 0% - код ставки НСП [00:42:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:06] 1007 (12) - суммы НСП [00:42:06] 1014 (1) - 1% - код ставки НСП [00:42:06] 1015 (3) - 1217.08 - сумма НСП по ставке [00:42:06] 1007 (9) - суммы НСП [00:42:06] 1014 (1) - 2% - код ставки НСП [00:42:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:06] 1007 (9) - суммы НСП [00:42:06] 1014 (1) - 3% - код ставки НСП [00:42:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:06] 1007 (9) - суммы НСП [00:42:06] 1014 (1) - 5% - код ставки НСП [00:42:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:06] 1007 (9) - суммы НСП [00:42:06] 1014 (1) - 0,50% - код ставки НСП [00:42:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:06] 1007 (9) - суммы НСП [00:42:06] 1014 (1) - 1,50% - код ставки НСП [00:42:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:06] 1130 (152) - счетчики операций «возврат прихода» [00:42:06] 1135 (4) - 3 - количество чеков по признаку расчетов [00:42:06] 1201 (3) - 7200.00 - общая итоговая сумма в чеках [00:42:06] 1136 (3) - 7200.00 - итоговая сумма в чеках наличными [00:42:06] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:42:06] 1024 (122) - суммы налогов [00:42:06] 1006 (9) - суммы НДС [00:42:06] 1010 (1) - 0% - код ставки НДС [00:42:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:42:06] 1006 (12) - суммы НДС [00:42:06] 1010 (1) - 12% - код ставки НДС [00:42:06] 1011 (3) - 764.77 - сумма НДС по ставке [00:42:06] 1007 (9) - суммы НСП [00:42:06] 1014 (1) - 0% - код ставки НСП [00:42:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:06] 1007 (11) - суммы НСП [00:42:06] 1014 (1) - 1% - код ставки НСП [00:42:06] 1015 (2) - 63.72 - сумма НСП по ставке [00:42:06] 1007 (9) - суммы НСП [00:42:06] 1014 (1) - 2% - код ставки НСП [00:42:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:06] 1007 (9) - суммы НСП [00:42:06] 1014 (1) - 3% - код ставки НСП [00:42:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:06] 1007 (9) - суммы НСП [00:42:06] 1014 (1) - 5% - код ставки НСП [00:42:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:06] 1007 (9) - суммы НСП [00:42:06] 1014 (1) - 0,50% - код ставки НСП [00:42:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:06] 1007 (9) - суммы НСП [00:42:06] 1014 (1) - 1,50% - код ставки НСП [00:42:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:06] 1131 (141) - счетчики операций «расход» [00:42:06] 1135 (4) - 0 - количество чеков по признаку расчетов [00:42:06] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:42:06] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:42:06] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:42:06] 1024 (117) - суммы налогов [00:42:06] 1006 (9) - суммы НДС [00:42:06] 1010 (1) - 0% - код ставки НДС [00:42:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:42:06] 1006 (9) - суммы НДС [00:42:06] 1010 (1) - 12% - код ставки НДС [00:42:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:42:06] 1007 (9) - суммы НСП [00:42:06] 1014 (1) - 0% - код ставки НСП [00:42:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:06] 1007 (9) - суммы НСП [00:42:06] 1014 (1) - 1% - код ставки НСП [00:42:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:06] 1007 (9) - суммы НСП [00:42:06] 1014 (1) - 2% - код ставки НСП [00:42:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:06] 1007 (9) - суммы НСП [00:42:06] 1014 (1) - 3% - код ставки НСП [00:42:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:06] 1007 (9) - суммы НСП [00:42:06] 1014 (1) - 5% - код ставки НСП [00:42:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:06] 1007 (9) - суммы НСП [00:42:06] 1014 (1) - 0,50% - код ставки НСП [00:42:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:06] 1007 (9) - суммы НСП [00:42:06] 1014 (1) - 1,50% - код ставки НСП [00:42:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:06] 1132 (141) - счетчики операций «возврат расхода» [00:42:06] 1135 (4) - 0 - количество чеков по признаку расчетов [00:42:06] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:42:06] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:42:06] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:42:06] 1024 (117) - суммы налогов [00:42:06] 1006 (9) - суммы НДС [00:42:06] 1010 (1) - 0% - код ставки НДС [00:42:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:42:06] 1006 (9) - суммы НДС [00:42:06] 1010 (1) - 12% - код ставки НДС [00:42:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:42:06] 1007 (9) - суммы НСП [00:42:06] 1014 (1) - 0% - код ставки НСП [00:42:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:06] 1007 (9) - суммы НСП [00:42:06] 1014 (1) - 1% - код ставки НСП [00:42:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:06] 1007 (9) - суммы НСП [00:42:06] 1014 (1) - 2% - код ставки НСП [00:42:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:06] 1007 (9) - суммы НСП [00:42:06] 1014 (1) - 3% - код ставки НСП [00:42:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:06] 1007 (9) - суммы НСП [00:42:06] 1014 (1) - 5% - код ставки НСП [00:42:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:06] 1007 (9) - суммы НСП [00:42:06] 1014 (1) - 0,50% - код ставки НСП [00:42:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:06] 1007 (9) - суммы НСП [00:42:06] 1014 (1) - 1,50% - код ставки НСП [00:42:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:06] 1133 (588) - - счетчики коррекции - не используются [00:42:06]SetTLVBufToDocument [00:42:06]Processing tag 1194 (04AA) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1134 (046E) [00:42:07]Malloc new data [00:42:07]Processing tag 1129 (0469) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1135 (046F) [00:42:07]Malloc new data [00:42:07]Processing tag 1201 (04B1) [00:42:07]Malloc new data [00:42:07]Processing tag 1136 (0470) [00:42:07]Malloc new data [00:42:07]Processing tag 1138 (0472) [00:42:07]Malloc new data [00:42:07]Processing tag 1024 (0400) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1006 (03EE) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1010 (03F2) [00:42:07]Malloc new data [00:42:07]Processing tag 1011 (03F3) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Processing tag 1006 (03EE) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1010 (03F2) [00:42:07]Malloc new data [00:42:07]Processing tag 1011 (03F3) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Processing tag 1007 (03EF) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1014 (03F6) [00:42:07]Malloc new data [00:42:07]Processing tag 1015 (03F7) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Processing tag 1007 (03EF) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1014 (03F6) [00:42:07]Malloc new data [00:42:07]Processing tag 1015 (03F7) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Processing tag 1007 (03EF) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1014 (03F6) [00:42:07]Malloc new data [00:42:07]Processing tag 1015 (03F7) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Processing tag 1007 (03EF) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1014 (03F6) [00:42:07]Malloc new data [00:42:07]Processing tag 1015 (03F7) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Processing tag 1007 (03EF) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1014 (03F6) [00:42:07]Malloc new data [00:42:07]Processing tag 1015 (03F7) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Processing tag 1007 (03EF) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1014 (03F6) [00:42:07]Malloc new data [00:42:07]Processing tag 1015 (03F7) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Processing tag 1007 (03EF) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1014 (03F6) [00:42:07]Malloc new data [00:42:07]Processing tag 1015 (03F7) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]SetTLVBufToDocument err=0 [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Processing tag 1130 (046A) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1135 (046F) [00:42:07]Malloc new data [00:42:07]Processing tag 1201 (04B1) [00:42:07]Malloc new data [00:42:07]Processing tag 1136 (0470) [00:42:07]Malloc new data [00:42:07]Processing tag 1138 (0472) [00:42:07]Malloc new data [00:42:07]Processing tag 1024 (0400) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1006 (03EE) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1010 (03F2) [00:42:07]Malloc new data [00:42:07]Processing tag 1011 (03F3) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Processing tag 1006 (03EE) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1010 (03F2) [00:42:07]Malloc new data [00:42:07]Processing tag 1011 (03F3) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Processing tag 1007 (03EF) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1014 (03F6) [00:42:07]Malloc new data [00:42:07]Processing tag 1015 (03F7) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Processing tag 1007 (03EF) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1014 (03F6) [00:42:07]Malloc new data [00:42:07]Processing tag 1015 (03F7) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Processing tag 1007 (03EF) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1014 (03F6) [00:42:07]Malloc new data [00:42:07]Processing tag 1015 (03F7) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Processing tag 1007 (03EF) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1014 (03F6) [00:42:07]Malloc new data [00:42:07]Processing tag 1015 (03F7) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Processing tag 1007 (03EF) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1014 (03F6) [00:42:07]Malloc new data [00:42:07]Processing tag 1015 (03F7) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Processing tag 1007 (03EF) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1014 (03F6) [00:42:07]Malloc new data [00:42:07]Processing tag 1015 (03F7) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Processing tag 1007 (03EF) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1014 (03F6) [00:42:07]Malloc new data [00:42:07]Processing tag 1015 (03F7) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]SetTLVBufToDocument err=0 [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Processing tag 1131 (046B) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1135 (046F) [00:42:07]Malloc new data [00:42:07]Processing tag 1201 (04B1) [00:42:07]Malloc new data [00:42:07]Processing tag 1136 (0470) [00:42:07]Malloc new data [00:42:07]Processing tag 1138 (0472) [00:42:07]Malloc new data [00:42:07]Processing tag 1024 (0400) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1006 (03EE) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1010 (03F2) [00:42:07]Malloc new data [00:42:07]Processing tag 1011 (03F3) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Processing tag 1006 (03EE) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1010 (03F2) [00:42:07]Malloc new data [00:42:07]Processing tag 1011 (03F3) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Processing tag 1007 (03EF) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1014 (03F6) [00:42:07]Malloc new data [00:42:07]Processing tag 1015 (03F7) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Processing tag 1007 (03EF) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1014 (03F6) [00:42:07]Malloc new data [00:42:07]Processing tag 1015 (03F7) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Processing tag 1007 (03EF) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1014 (03F6) [00:42:07]Malloc new data [00:42:07]Processing tag 1015 (03F7) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Processing tag 1007 (03EF) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1014 (03F6) [00:42:07]Malloc new data [00:42:07]Processing tag 1015 (03F7) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Processing tag 1007 (03EF) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1014 (03F6) [00:42:07]Malloc new data [00:42:07]Processing tag 1015 (03F7) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Processing tag 1007 (03EF) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1014 (03F6) [00:42:07]Malloc new data [00:42:07]Processing tag 1015 (03F7) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Processing tag 1007 (03EF) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1014 (03F6) [00:42:07]Malloc new data [00:42:07]Processing tag 1015 (03F7) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]SetTLVBufToDocument err=0 [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Processing tag 1132 (046C) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1135 (046F) [00:42:07]Malloc new data [00:42:07]Processing tag 1201 (04B1) [00:42:07]Malloc new data [00:42:07]Processing tag 1136 (0470) [00:42:07]Malloc new data [00:42:07]Processing tag 1138 (0472) [00:42:07]Malloc new data [00:42:07]Processing tag 1024 (0400) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1006 (03EE) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1010 (03F2) [00:42:07]Malloc new data [00:42:07]Processing tag 1011 (03F3) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Processing tag 1006 (03EE) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1010 (03F2) [00:42:07]Malloc new data [00:42:07]Processing tag 1011 (03F3) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Processing tag 1007 (03EF) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1014 (03F6) [00:42:07]Malloc new data [00:42:07]Processing tag 1015 (03F7) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Processing tag 1007 (03EF) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1014 (03F6) [00:42:07]Malloc new data [00:42:07]Processing tag 1015 (03F7) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Processing tag 1007 (03EF) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1014 (03F6) [00:42:07]Malloc new data [00:42:07]Processing tag 1015 (03F7) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Processing tag 1007 (03EF) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1014 (03F6) [00:42:07]Malloc new data [00:42:07]Processing tag 1015 (03F7) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Processing tag 1007 (03EF) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1014 (03F6) [00:42:07]Malloc new data [00:42:07]Processing tag 1015 (03F7) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Processing tag 1007 (03EF) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1014 (03F6) [00:42:07]Malloc new data [00:42:07]Processing tag 1015 (03F7) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Processing tag 1007 (03EF) [00:42:07]Load OK [00:42:07]SetTLVBufToDocument [00:42:07]Processing tag 1014 (03F6) [00:42:07]Malloc new data [00:42:07]Processing tag 1015 (03F7) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]SetTLVBufToDocument err=0 [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Processing tag 1133 (046D) [00:42:07]Malloc new data [00:42:07]SetTLVBufToDocument err=0 [00:42:07]SetTLVBufToDocument err=0 [00:42:07]Malloc new data [00:42:07]SAM_PROTO_GetFMData [00:42:07]wFMCommunicate request_size=4 [00:42:07]MH_SAM_APDU [00:42:07]CAPDU: 80 13 03 00 [00:42:07]Write to MH i2c: E2 08 00 89 00 80 13 03 00 00 00 00 00 08 [00:42:07]Write i2c OK [00:42:07]MH_I2C_Read... [00:42:07]OFD Sender: No OFD packet to send [00:42:08]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:42:08]Read from MH i2c: E2 [00:42:08]MH_I2C_Read... [00:42:08]Read from MH i2c: E2 FD 00 [00:42:08]MH_I2C_Read... [00:42:08]Read from MH i2c: E2 FD 00 89 00 00 C7 04 85 04 C3 04 6E 04 04 00 57 3D 01 00 69 04 A3 00 6F 04 04 00 BF 3A 01 00 B1 04 05 00 9B 68 5C 7B 01 70 04 05 00 20 5E 26 41 01 72 04 04 00 7B 0A 36 3A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EC BE 4C 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 46 A7 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 98 02 00 00 B1 04 04 00 70 95 0F 13 70 04 04 00 08 53 0F 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AD 37 06 02 EF 90 00 AA [00:42:08]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 57 3D 01 00 69 04 A3 00 6F 04 04 00 BF 3A 01 00 B1 04 05 00 9B 68 5C 7B 01 70 04 05 00 20 5E 26 41 01 72 04 04 00 7B 0A 36 3A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EC BE 4C 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 46 A7 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 98 02 00 00 B1 04 04 00 70 95 0F 13 70 04 04 00 08 53 0F 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AD 37 06 02 EF 90 00 [00:42:08]wFMCommunicate OK [00:42:08]wFMCommunicate request_size=4 [00:42:08]MH_SAM_APDU [00:42:08]CAPDU: 80 17 00 00 [00:42:08]Write to MH i2c: E2 08 00 8A 00 80 17 00 00 00 00 00 00 0A [00:42:08]Write i2c OK [00:42:08]MH_I2C_Read... [00:42:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:08]Read from MH i2c: E2 [00:42:08]MH_I2C_Read... [00:42:08]Read from MH i2c: E2 FD 00 [00:42:08]MH_I2C_Read... [00:42:08]Read from MH i2c: E2 FD 00 8A 00 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0A 2F 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 90 00 7B [00:42:09]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0A 2F 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 90 00 [00:42:09]wFMCommunicate OK [00:42:09]wFMCommunicate request_size=4 [00:42:09]MH_SAM_APDU [00:42:09]CAPDU: 80 17 00 00 [00:42:09]Write to MH i2c: E2 08 00 8B 00 80 17 00 00 00 00 00 00 0B [00:42:09]Write i2c OK [00:42:09]MH_I2C_Read... [00:42:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:09]Read from MH i2c: E2 [00:42:09]MH_I2C_Read... [00:42:09]Read from MH i2c: E2 FD 00 [00:42:09]MH_I2C_Read... [00:42:09]Read from MH i2c: E2 FD 00 8B 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 E3 [00:42:09]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [00:42:09]wFMCommunicate OK [00:42:09]wFMCommunicate request_size=4 [00:42:09]MH_SAM_APDU [00:42:09]CAPDU: 80 17 00 00 [00:42:09]Write to MH i2c: E2 08 00 8C 00 80 17 00 00 00 00 00 00 0C [00:42:09]Write i2c OK [00:42:09]MH_I2C_Read... [00:42:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:10]Read from MH i2c: E2 [00:42:10]MH_I2C_Read... [00:42:10]Read from MH i2c: E2 FD 00 [00:42:10]MH_I2C_Read... [00:42:10]Read from MH i2c: E2 FD 00 8C 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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 87 [00:42:10]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:42:10]wFMCommunicate OK [00:42:10]wFMCommunicate request_size=4 [00:42:10]MH_SAM_APDU [00:42:10]CAPDU: 80 17 00 00 [00:42:10]Write to MH i2c: E2 08 00 8D 00 80 17 00 00 00 00 00 00 0D [00:42:10]Write i2c OK [00:42:10]MH_I2C_Read... [00:42:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:42:10]Read from MH i2c: E2 [00:42:10]MH_I2C_Read... [00:42:10]Read from MH i2c: E2 E4 00 [00:42:10]MH_I2C_Read... [00:42:10]Read from MH i2c: E2 E4 00 8D 00 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 ED [00:42:10]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:42:10]wFMCommunicate OK [00:42:10]SAM_PROTO_GetFMData done [00:42:10]FM_GetFMData:85 04 C3 04 6E 04 04 00 57 3D 01 00 69 04 A3 00 6F 04 04 00 BF 3A 01 00 B1 04 05 00 9B 68 5C 7B 01 70 04 05 00 20 5E 26 41 01 72 04 04 00 7B 0A 36 3A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EC BE 4C 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 46 A7 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 98 02 00 00 B1 04 04 00 70 95 0F 13 70 04 04 00 08 53 0F 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AD 37 06 02 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 0A 2F 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:42:11]oper:6F 04 04 00 BF 3A 01 00 B1 04 05 00 9B 68 5C 7B 01 70 04 05 00 20 5E 26 41 01 72 04 04 00 7B 0A 36 3A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EC BE 4C 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 46 A7 5B 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 [00:42:12]total:9B 68 5C 7B 01 [00:42:12]Malloc new data [00:42:12]oper:6F 04 04 00 98 02 00 00 B1 04 04 00 70 95 0F 13 70 04 04 00 08 53 0F 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AD 37 06 02 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 0A 2F 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:42:12]total:70 95 0F 13 [00:42:12]Malloc new data [00:42:12]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:42:12]total: [00:42:12]Malloc new data [00:42:12]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:42:12]total: [00:42:12]Malloc new data [00:42:12]KKMPrepareXReportFMData err=0 [00:42:12]Х отчет ИНН: 02508201610067 Кассир: Чопоев И. 18.10.2024 00:42 Смена: 522 РНМ: 0000000000091680 ЗНМ: 0300000086 СНО: Общий режим Всего чеков: 215 ИТОГИ ПРИХОД Чеков: 212 Общий итог: 137501.46 Итого наличными: 95393.00 Итого безнал.: 42108.46 НДС 0% : 0.00 НДС 12% : 14605.48 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1217.08 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 3 Общий итог: 7200.00 Итого наличными: 7200.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 764.77 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 63.72 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 88193.00 НС Приход: 63646209.55 НС Возвр.Прихода: 3197884.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871843 [00:42:12]StoreToDocumentArchive [00:42:12]MH_GetDate [00:42:12]Write to MH i2c: F0 00 00 8E 00 7D [00:42:12]Write i2c OK [00:42:12]MH_I2C_Read... [00:42:12]Read from MH i2c: F0 [00:42:12]MH_I2C_Read... [00:42:12]Read from MH i2c: F0 09 00 [00:42:12]MH_I2C_Read... [00:42:12]Read from MH i2c: F0 09 00 8E 00 00 E5 AE 11 67 F1 C7 6B 64 18 [00:42:12]shift 522 fd 1729212133 [00:42:12]Create dir for shift 0522 [00:42:12]save to /storage/0522/doc_1729212133 [00:42:12]save last doc name /storage/0522/doc_1729212133 to /storage/kkm_last_doc_name [00:42:12]save OK [00:42:12]Clear old archive folders... [00:42:12]NVStorageSaveData kkm_last_timestamp [00:42:12]File name is /storage/kkm_last_timestamp [00:42:12]Write 4 bytes [00:42:12]NVStorageSaveData done [00:42:12]ExternCall_PrintAddStr [00:42:12]wPrintStart [00:42:12]Write to MH i2c: 01 00 00 8F 00 8F [00:42:12]Write i2c OK [00:42:12]MH_I2C_Read... [00:42:12]Read from MH i2c: 01 [00:42:12]MH_I2C_Read... [00:42:12]Read from MH i2c: 01 07 00 [00:42:12]MH_I2C_Read... [00:42:12]Read from MH i2c: 01 07 00 8F 00 00 00 00 00 00 FF 0F A4 [00:42:12]RasterBufferAndPrint [00:42:12]line Х отчет [00:42:12]line ИНН: 02508201610067 [00:42:12]line Кассир: Чопоев И. [00:42:12]line 18.10.2024 00:42 [00:42:12]line Смена: 522 [00:42:12]line РНМ: 0000000000091680 [00:42:12]line ЗНМ: 0300000086 [00:42:12]line СНО: Общий режим [00:42:12]line Всего чеков: 215 [00:42:12]line ИТОГИ ПРИХОД [00:42:12]line Чеков: 212 [00:42:12]line Общий итог: 137501.46 [00:42:12]line Итого наличными: 95393.00 [00:42:12]line Итого безнал.: 42108.46 [00:42:12]line НДС 0% : 0.00 [00:42:12]line НДС 12% : 14605.48 [00:42:12]line НСП 0% : 0.00 [00:42:12]line НСП 1,50% : 0.00 [00:42:12]line НСП 0,50% : 0.00 [00:42:12]line НСП 5% : 0.00 [00:42:12]line НСП 3% : 0.00 [00:42:12]line НСП 2% : 0.00 [00:42:12]line НСП 1% : 1217.08 [00:42:12]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:42:12]line Чеков: 3 [00:42:12]line Общий итог: 7200.00 [00:42:12]line Итого наличными: 7200.00 [00:42:12]line Итого безнал.: 0.00 [00:42:12]line НДС 0% : 0.00 [00:42:12]line НДС 12% : 764.77 [00:42:12]line НСП 0% : 0.00 [00:42:12]line НСП 1,50% : 0.00 [00:42:12]line НСП 0,50% : 0.00 [00:42:12]line НСП 5% : 0.00 [00:42:12]line НСП 3% : 0.00 [00:42:12]line НСП 2% : 0.00 [00:42:12]line НСП 1% : 63.72 [00:42:12]line ИТОГИ РАСХОД [00:42:12]line Чеков: 0 [00:42:12]line Общий итог: 0.00 [00:42:12]line Итого наличными: 0.00 [00:42:12]line Итого безнал.: 0.00 [00:42:12]line НДС 0% : 0.00 [00:42:12]line НДС 12% : 0.00 [00:42:12]line НСП 0% : 0.00 [00:42:12]line НСП 1,50% : 0.00 [00:42:12]line НСП 0,50% : 0.00 [00:42:12]line НСП 5% : 0.00 [00:42:12]line НСП 3% : 0.00 [00:42:12]line НСП 2% : 0.00 [00:42:12]line НСП 1% : 0.00 [00:42:12]line ИТОГИ ВОЗВРАТ РАСХОДА [00:42:12]line Чеков: 0 [00:42:12]line Общий итог: 0.00 [00:42:12]line Итого наличными: 0.00 [00:42:12]line Итого безнал.: 0.00 [00:42:12]line НДС 0% : 0.00 [00:42:12]line НДС 12% : 0.00 [00:42:12]line НСП 0% : 0.00 [00:42:12]line НСП 1,50% : 0.00 [00:42:12]line НСП 0,50% : 0.00 [00:42:12]line НСП 5% : 0.00 [00:42:12]line НСП 3% : 0.00 [00:42:12]line НСП 2% : 0.00 [00:42:12]line НСП 1% : 0.00 [00:42:12]line Сумма внесений: 0.00 [00:42:12]line Сумма выплат: 0.00 [00:42:12]line Нал. в кассе: 88193.00 [00:42:12]line НС Приход: 63646209.55 [00:42:12]line НС Возвр.Прихода: 3197884.00 [00:42:12]line НС Расход: 0.00 [00:42:12]line НС Возвр.Расхода: 0.00 [00:42:12]line ФМ: 0000000000871843 [00:42:12]written 0, free lines is 4095 [00:42:13]OFD Sender: No OFD packet to send [00:42:13]Write to MH i2c: 01 00 00 DA 00 DA [00:42:13]Write i2c OK [00:42:13]MH_I2C_Read... [00:42:13]Read from MH i2c: 01 [00:42:13]MH_I2C_Read... [00:42:13]Read from MH i2c: 01 07 00 [00:42:13]MH_I2C_Read... [00:42:13]Read from MH i2c: 01 07 00 DA 00 00 00 00 00 00 AE 0A 99 [00:42:13]RasterBufferAndPrint [00:42:13]line [00:42:13]line [00:42:13]line [00:42:13]line [00:42:13]line [00:42:13]written 0, free lines is 2771 [00:42:13]MH_Cut [00:42:13]Write to MH i2c: D1 01 00 E1 00 01 B3 [00:42:13]Write i2c OK [00:42:13]MH_I2C_Read... [00:42:13]Read from MH i2c: D1 [00:42:13]MH_I2C_Read... [00:42:13]Read from MH i2c: D1 01 00 [00:42:13]MH_I2C_Read... [00:42:13]Read from MH i2c: D1 01 00 E1 00 00 B2 [00:42:13]Write to MH i2c: 01 00 00 E2 00 E2 [00:42:13]Write i2c OK [00:42:13]MH_I2C_Read... [00:42:14]*** Cut start [00:42:14]*** Partial cut [00:42:14]*** CUTSNS_PIN = 1 [00:42:14]*** CUTSNS_PIN = 0 [00:42:14]*** Brake cut motor [00:42:15]Read from MH i2c: 01 [00:42:15]MH_I2C_Read... [00:42:15]*** Stop cut motor [00:42:15]*** Cut end [00:42:15]Read from MH i2c: 01 07 00 [00:42:15]MH_I2C_Read... [00:42:15]Read from MH i2c: 01 07 00 E2 00 00 00 00 00 00 FF 0F F7 [00:42:15]process_action x_report done [00:42:15]requested_data is exist [00:42:15]produce_requested_data [00:42:15]requested_item fd.num is exist - process it [00:42:15]SAM_PROTO_GetFieldsCounters [00:42:15]wFMCommunicate request_size=4 [00:42:15]MH_SAM_APDU [00:42:15]CAPDU: 80 13 00 00 [00:42:15]Write to MH i2c: E2 08 00 E3 00 80 13 00 00 00 00 00 00 5F [00:42:15]Write i2c OK [00:42:15]MH_I2C_Read... [00:42:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:42:15]Read from MH i2c: E2 [00:42:15]MH_I2C_Read... [00:42:15]Read from MH i2c: E2 62 00 [00:42:15]MH_I2C_Read... [00:42:15]Read from MH i2c: E2 62 00 E3 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 71 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [00:42:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 71 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:42:15]wFMCommunicate OK [00:42:15]SAM_PROTO_GetFieldsCounters done [00:42:15]requested_item shift.num is exist - process it [00:42:15]requested_item shift.opened is exist - process it [00:42:15]req_shift_opened [00:42:15]FM_GetShiftState [00:42:15]SAM_PROTO_GetShiftState [00:42:15]wFMCommunicate request_size=4 [00:42:15]MH_SAM_APDU [00:42:15]CAPDU: 80 13 01 00 [00:42:15]Write to MH i2c: E2 08 00 E4 00 80 13 01 00 00 00 00 00 61 [00:42:15]Write i2c OK [00:42:15]MH_I2C_Read... [00:42:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:42:15]Read from MH i2c: E2 [00:42:15]MH_I2C_Read... [00:42:15]Read from MH i2c: E2 0E 00 [00:42:15]MH_I2C_Read... [00:42:15]Read from MH i2c: E2 0E 00 E4 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 69 [00:42:15]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [00:42:15]wFMCommunicate OK [00:42:15]SAM_PROTO_GetShiftState done [00:42:15]FM_GetShiftState done [00:42:15]req_shift_opened done [00:42:15]requested_item shift.open_date is exist - process it [00:42:15]req_shift_open_date [00:42:15]req_shift_open_date done [00:42:15]produce_requested_data done [00:42:15]produce_requested_data return {"fd.num":82289,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [00:42:15]process_action_free x_report [00:42:15]json_value_free [00:42:15]json_value_free done [00:42:15]process_json_proto returns [00:42:15]Send response to host [00:42:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":82289,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [00:42:15]free response buf [00:42:15]execute_script done [00:42:15]execute_script returns [00:42:15]free content buf [00:42:15]Sock 9.Close socket [00:42:15]Sock 9.Thread stoped [00:42:18]OFD Sender: No OFD packet to send [00:42:18]accept exits with 8 [00:42:18]New connection [00:42:18]New thread 3067297124 created [00:42:18]Thread 3067440484 joined [00:42:18]Waiting for new connection... [00:42:18] Sock 8.Parse request [00:42:18]Sock 8.Check first char [00:42:18]Sock 8.First char is OK [00:42:18]request: POST /json_proto HTTP/1.0 [00:42:18]Method: POST [00:42:18]URL: /json_proto [00:42:18]Method is POST - this is cgi request [00:42:18]url: /json_proto [00:42:18]query_string will be loaded in cgi processing [00:42:18]execute_cgi json_proto POST (null) [00:42:18]execute_cgi path=json_proto method=POST [00:42:18]POST find Content-Length [00:42:18]Host: 172.17.44.67:8080 [00:42:18]Content-Length: 215 [00:42:18]Content-Type: application/json [00:42:18] [00:42:18]POST finish read [00:42:18]Found Content-Length = 215 [00:42: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:42:18]execute_script... [00:42: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:42:18]POST & json_proto [00:42:18]process_json_proto [00:42:18]json parsed OK: [00:42:18]protocol is kg_v1.0 [00:42:18]action value=get_value [00:42:18]process_action get_value [00:42:18]cmd_get_value [00:42:18]process_action get_value done [00:42:18]requested_data is exist [00:42:18]produce_requested_data [00:42:18]requested_item kkm.sn is exist - process it [00:42:18]requested_item kkm.ver is exist - process it [00:42:18]requested_item fm.sn is exist - process it [00:42:18]wFMCommunicate request_size=4 [00:42:18]MH_SAM_APDU [00:42:18]CAPDU: 80 11 00 00 [00:42:18]Write to MH i2c: E2 08 00 E5 00 80 11 00 00 00 00 00 00 5F [00:42:18]Write i2c OK [00:42:18]MH_I2C_Read... [00:42:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:42:18]Read from MH i2c: E2 [00:42:18]MH_I2C_Read... [00:42:18]Read from MH i2c: E2 17 00 [00:42:18]MH_I2C_Read... [00:42:18]Read from MH i2c: E2 17 00 E5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 B1 [00:42:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:42:18]wFMCommunicate OK [00:42:18]requested_item fd.num is exist - process it [00:42:18]SAM_PROTO_GetFieldsCounters [00:42:18]wFMCommunicate request_size=4 [00:42:18]MH_SAM_APDU [00:42:18]CAPDU: 80 13 00 00 [00:42:18]Write to MH i2c: E2 08 00 E6 00 80 13 00 00 00 00 00 00 62 [00:42:18]Write i2c OK [00:42:18]MH_I2C_Read... [00:42:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:42:18]Read from MH i2c: E2 [00:42:18]MH_I2C_Read... [00:42:18]Read from MH i2c: E2 62 00 [00:42:18]MH_I2C_Read... [00:42:18]Read from MH i2c: E2 62 00 E6 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 71 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [00:42:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 71 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:42:19]wFMCommunicate OK [00:42:19]SAM_PROTO_GetFieldsCounters done [00:42:19]requested_item shift.num is exist - process it [00:42:19]requested_item shift.opened is exist - process it [00:42:19]req_shift_opened [00:42:19]FM_GetShiftState [00:42:19]SAM_PROTO_GetShiftState [00:42:19]wFMCommunicate request_size=4 [00:42:19]MH_SAM_APDU [00:42:19]CAPDU: 80 13 01 00 [00:42:19]Write to MH i2c: E2 08 00 E7 00 80 13 01 00 00 00 00 00 64 [00:42:19]Write i2c OK [00:42:19]MH_I2C_Read... [00:42:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:42:19]Read from MH i2c: E2 [00:42:19]MH_I2C_Read... [00:42:19]Read from MH i2c: E2 0E 00 [00:42:19]MH_I2C_Read... [00:42:19]Read from MH i2c: E2 0E 00 E7 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 6C [00:42:19]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [00:42:19]wFMCommunicate OK [00:42:19]SAM_PROTO_GetShiftState done [00:42:19]FM_GetShiftState done [00:42:19]req_shift_opened done [00:42:19]requested_item shift.open_date is exist - process it [00:42:19]req_shift_open_date [00:42:19]req_shift_open_date done [00:42:19]produce_requested_data done [00:42:19]produce_requested_data return {"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82289,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927} [00:42:19]process_action_free get_value [00:42:19]json_value_free [00:42:19]json_value_free done [00:42:19]process_json_proto returns [00:42:19]Send response to host [00:42:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82289,"shift.num":525,"shift.opened":1,"shift.open_date":1729125927}}} [00:42:19]free response buf [00:42:19]execute_script done [00:42:19]execute_script returns [00:42:19]free content buf [00:42:19]Sock 8.Close socket [00:42:19]Sock 8.Thread stoped [00:42:19]accept exits with 9 [00:42:19]New connection [00:42:19]New thread 3067440484 created [00:42:19]Thread 3067297124 joined [00:42:19]Waiting for new connection... [00:42:19] Sock 9.Parse request [00:42:19]Sock 9.Check first char [00:42:19]Sock 9.First char is OK [00:42:19]request: POST /json_proto HTTP/1.0 [00:42:19]Method: POST [00:42:19]URL: /json_proto [00:42:19]Method is POST - this is cgi request [00:42:19]url: /json_proto [00:42:19]query_string will be loaded in cgi processing [00:42:19]execute_cgi json_proto POST (null) [00:42:19]execute_cgi path=json_proto method=POST [00:42:19]POST find Content-Length [00:42:19]Host: 172.17.44.67:8080 [00:42:19]Content-Length: 331 [00:42:19]Content-Type: application/json [00:42:19] [00:42:19]POST finish read [00:42:19]Found Content-Length = 331 [00:42:19]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:42:19]execute_script... [00:42:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:42:19]POST & json_proto [00:42:19]process_json_proto [00:42:19]json parsed OK: [00:42:19]protocol is kg_v1.0 [00:42:19]action value=get_value [00:42:19]process_action get_value [00:42:19]cmd_get_value [00:42:19]process_action get_value done [00:42:19]requested_data is exist [00:42:19]produce_requested_data [00:42:19]requested_item fm.sale.total is exist - process it [00:42:19]SAM_PROTO_GetFMData [00:42:19]wFMCommunicate request_size=4 [00:42:19]MH_SAM_APDU [00:42:19]CAPDU: 80 13 03 00 [00:42:19]Write to MH i2c: E2 08 00 E8 00 80 13 03 00 00 00 00 00 67 [00:42:19]Write i2c OK [00:42:19]MH_I2C_Read... [00:42:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:42:19]Read from MH i2c: E2 [00:42:19]MH_I2C_Read... [00:42:19]Read from MH i2c: E2 FD 00 [00:42:19]MH_I2C_Read... [00:42:19]Read from MH i2c: E2 FD 00 E8 00 00 C7 04 85 04 C3 04 6E 04 04 00 57 3D 01 00 69 04 A3 00 6F 04 04 00 BF 3A 01 00 B1 04 05 00 9B 68 5C 7B 01 70 04 05 00 20 5E 26 41 01 72 04 04 00 7B 0A 36 3A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EC BE 4C 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 46 A7 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 98 02 00 00 B1 04 04 00 70 95 0F 13 70 04 04 00 08 53 0F 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AD 37 06 02 EF 90 00 09 [00:42:19]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 57 3D 01 00 69 04 A3 00 6F 04 04 00 BF 3A 01 00 B1 04 05 00 9B 68 5C 7B 01 70 04 05 00 20 5E 26 41 01 72 04 04 00 7B 0A 36 3A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EC BE 4C 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 46 A7 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 98 02 00 00 B1 04 04 00 70 95 0F 13 70 04 04 00 08 53 0F 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AD 37 06 02 EF 90 00 [00:42:20]wFMCommunicate OK [00:42:20]wFMCommunicate request_size=4 [00:42:20]MH_SAM_APDU [00:42:20]CAPDU: 80 17 00 00 [00:42:20]Write to MH i2c: E2 08 00 E9 00 80 17 00 00 00 00 00 00 69 [00:42:20]Write i2c OK [00:42:20]MH_I2C_Read... [00:42:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:20]Read from MH i2c: E2 [00:42:20]MH_I2C_Read... [00:42:20]Read from MH i2c: E2 FD 00 [00:42:20]MH_I2C_Read... [00:42:20]Read from MH i2c: E2 FD 00 E9 00 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0A 2F 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 90 00 DA [00:42:20]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0A 2F 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 90 00 [00:42:20]wFMCommunicate OK [00:42:20]wFMCommunicate request_size=4 [00:42:20]MH_SAM_APDU [00:42:20]CAPDU: 80 17 00 00 [00:42:20]Write to MH i2c: E2 08 00 EA 00 80 17 00 00 00 00 00 00 6A [00:42:20]Write i2c OK [00:42:20]MH_I2C_Read... [00:42:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:21]Read from MH i2c: E2 [00:42:21]MH_I2C_Read... [00:42:21]Read from MH i2c: E2 FD 00 [00:42:21]MH_I2C_Read... [00:42:21]Read from MH i2c: E2 FD 00 EA 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 42 [00:42:21]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [00:42:21]wFMCommunicate OK [00:42:21]wFMCommunicate request_size=4 [00:42:21]MH_SAM_APDU [00:42:21]CAPDU: 80 17 00 00 [00:42:21]Write to MH i2c: E2 08 00 EB 00 80 17 00 00 00 00 00 00 6B [00:42:21]Write i2c OK [00:42:21]MH_I2C_Read... [00:42:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:21]Read from MH i2c: E2 [00:42:21]MH_I2C_Read... [00:42:21]Read from MH i2c: E2 FD 00 [00:42:21]MH_I2C_Read... [00:42:21]Read from MH i2c: E2 FD 00 EB 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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 E6 [00:42:21]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:42:22]wFMCommunicate OK [00:42:22]wFMCommunicate request_size=4 [00:42:22]MH_SAM_APDU [00:42:22]CAPDU: 80 17 00 00 [00:42:22]Write to MH i2c: E2 08 00 EC 00 80 17 00 00 00 00 00 00 6C [00:42:22]Write i2c OK [00:42:22]MH_I2C_Read... [00:42:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:42:22]Read from MH i2c: E2 [00:42:22]MH_I2C_Read... [00:42:22]Read from MH i2c: E2 E4 00 [00:42:22]MH_I2C_Read... [00:42:22]Read from MH i2c: E2 E4 00 EC 00 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 4C [00:42:22]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:42:22]wFMCommunicate OK [00:42:22]SAM_PROTO_GetFMData done [00:42:22]requested_item fm.sale_refund.total is exist - process it [00:42:22]requested_item fm.buy.total is exist - process it [00:42:22]requested_item shift.sale.total is exist - process it [00:42:22]SAM_PROTO_GetShiftData [00:42:22]wFMCommunicate request_size=4 [00:42:22]MH_SAM_APDU [00:42:22]CAPDU: 80 13 02 00 [00:42:22]Write to MH i2c: E2 08 00 ED 00 80 13 02 00 00 00 00 00 6B [00:42:22]Write i2c OK [00:42:22]MH_I2C_Read... [00:42:23]OFD Sender: No OFD packet to send [00:42:23]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:42:23]Read from MH i2c: E2 [00:42:23]MH_I2C_Read... [00:42:23]Read from MH i2c: E2 FD 00 [00:42:23]MH_I2C_Read... [00:42:23]Read from MH i2c: E2 FD 00 ED 00 00 BA 04 AA 04 B6 04 6E 04 04 00 D7 00 00 00 69 04 9C 00 6F 04 04 00 D4 00 00 00 B1 04 03 00 82 CF D1 70 04 03 00 E4 8E 91 72 04 03 00 9E 40 40 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 44 49 16 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 6C DB 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 FC 0A 70 04 03 00 80 FC 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BD 2A 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 47 [00:42:23]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 D7 00 00 00 69 04 9C 00 6F 04 04 00 D4 00 00 00 B1 04 03 00 82 CF D1 70 04 03 00 E4 8E 91 72 04 03 00 9E 40 40 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 44 49 16 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 6C DB 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 FC 0A 70 04 03 00 80 FC 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BD 2A 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:42:23]wFMCommunicate OK [00:42:23]wFMCommunicate request_size=4 [00:42:23]MH_SAM_APDU [00:42:23]CAPDU: 80 17 00 00 [00:42:23]Write to MH i2c: E2 08 00 EE 00 80 17 00 00 00 00 00 00 6E [00:42:23]Write i2c OK [00:42:23]MH_I2C_Read... [00:42:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:23]Read from MH i2c: E2 [00:42:23]MH_I2C_Read... [00:42:23]Read from MH i2c: E2 FD 00 [00:42:23]MH_I2C_Read... [00:42:23]Read from MH i2c: E2 FD 00 EE 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 14 [00:42:24]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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:42:24]wFMCommunicate OK [00:42:24]wFMCommunicate request_size=4 [00:42:24]MH_SAM_APDU [00:42:24]CAPDU: 80 17 00 00 [00:42:24]Write to MH i2c: E2 08 00 EF 00 80 17 00 00 00 00 00 00 6F [00:42:24]Write i2c OK [00:42:24]MH_I2C_Read... [00:42:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:24]Read from MH i2c: E2 [00:42:24]MH_I2C_Read... [00:42:24]Read from MH i2c: E2 FD 00 [00:42:24]MH_I2C_Read... [00:42:24]Read from MH i2c: E2 FD 00 EF 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 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 9B [00:42:24]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:42:25]wFMCommunicate OK [00:42:25]wFMCommunicate request_size=4 [00:42:25]MH_SAM_APDU [00:42:25]CAPDU: 80 17 00 00 [00:42:25]Write to MH i2c: E2 08 00 F0 00 80 17 00 00 00 00 00 00 70 [00:42:25]Write i2c OK [00:42:25]MH_I2C_Read... [00:42:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:25]Read from MH i2c: E2 [00:42:25]MH_I2C_Read... [00:42:25]Read from MH i2c: E2 FD 00 [00:42:25]MH_I2C_Read... [00:42:25]Read from MH i2c: E2 FD 00 F0 00 00 00 EF 03 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 E8 [00:42:25]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:42:25]wFMCommunicate OK [00:42:25]wFMCommunicate request_size=4 [00:42:25]MH_SAM_APDU [00:42:25]CAPDU: 80 17 00 00 [00:42:25]Write to MH i2c: E2 08 00 F1 00 80 17 00 00 00 00 00 00 71 [00:42:25]Write i2c OK [00:42:25]MH_I2C_Read... [00:42:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:42:26]Read from MH i2c: E2 [00:42:26]MH_I2C_Read... [00:42:26]Read from MH i2c: E2 D7 00 [00:42:26]MH_I2C_Read... [00:42:26]Read from MH i2c: E2 D7 00 F1 00 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 54 [00:42: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:42:26]wFMCommunicate OK [00:42:26]SAM_PROTO_GetShiftData done [00:42:26]requested_item shift.sale.total_cash is exist - process it [00:42:26]requested_item shift.sale_refund.total is exist - process it [00:42:26]requested_item shift.sale_refund.total_cash is exist - process it [00:42:26]requested_item shift.buy.total is exist - process it [00:42:26]requested_item shift.buy.total_cash is exist - process it [00:42:26]produce_requested_data done [00:42:26]produce_requested_data return {"fm.sale.total":63646209.55,"fm.sale_refund.total":3197884.00,"fm.buy.total":0.00,"shift.sale.total":137501.46,"shift.sale.total_cash":95393.00,"shift.sale_refund.total":7200.00,"shift.sale_refund.total_cash":7200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:42:26]process_action_free get_value [00:42:26]json_value_free [00:42:26]json_value_free done [00:42:26]process_json_proto returns [00:42:26]Send response to host [00:42:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":63646209.55,"fm.sale_refund.total":3197884.00,"fm.buy.total":0.00,"shift.sale.total":137501.46,"shift.sale.total_cash":95393.00,"shift.sale_refund.total":7200.00,"shift.sale_refund.total_cash":7200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:42:26]free response buf [00:42:26]execute_script done [00:42:26]execute_script returns [00:42:26]free content buf [00:42:26]Sock 9.Close socket [00:42:26]Sock 9.Thread stoped [00:42:26]accept exits with 8 [00:42:26]New connection [00:42:26]New thread 3067297124 created [00:42:26]Thread 3067440484 joined [00:42:26]Waiting for new connection... [00:42:26] Sock 8.Parse request [00:42:26]Sock 8.Check first char [00:42:26]Sock 8.First char is OK [00:42:26]request: POST /json_proto HTTP/1.0 [00:42:26]Method: POST [00:42:26]URL: /json_proto [00:42:26]Method is POST - this is cgi request [00:42:26]url: /json_proto [00:42:26]query_string will be loaded in cgi processing [00:42:26]execute_cgi json_proto POST (null) [00:42:26]execute_cgi path=json_proto method=POST [00:42:26]POST find Content-Length [00:42:26]Host: 172.17.44.67:8080 [00:42:26]Content-Length: 331 [00:42:26]Content-Type: application/json [00:42:26] [00:42:26]POST finish read [00:42:26]Found Content-Length = 331 [00:42:26]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:42:26]execute_script... [00:42:26]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:42:26]POST & json_proto [00:42:26]process_json_proto [00:42:26]json parsed OK: [00:42:26]protocol is kg_v1.0 [00:42:26]action value=get_value [00:42:26]process_action get_value [00:42:26]cmd_get_value [00:42:26]process_action get_value done [00:42:26]requested_data is exist [00:42:26]produce_requested_data [00:42:26]requested_item fm.sale.total is exist - process it [00:42:26]SAM_PROTO_GetFMData [00:42:26]wFMCommunicate request_size=4 [00:42:26]MH_SAM_APDU [00:42:26]CAPDU: 80 13 03 00 [00:42:26]Write to MH i2c: E2 08 00 F2 00 80 13 03 00 00 00 00 00 71 [00:42:26]Write i2c OK [00:42:26]MH_I2C_Read... [00:42:27]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:42:27]Read from MH i2c: E2 [00:42:27]MH_I2C_Read... [00:42:27]Read from MH i2c: E2 FD 00 [00:42:27]MH_I2C_Read... [00:42:27]Read from MH i2c: E2 FD 00 F2 00 00 C7 04 85 04 C3 04 6E 04 04 00 57 3D 01 00 69 04 A3 00 6F 04 04 00 BF 3A 01 00 B1 04 05 00 9B 68 5C 7B 01 70 04 05 00 20 5E 26 41 01 72 04 04 00 7B 0A 36 3A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EC BE 4C 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 46 A7 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 98 02 00 00 B1 04 04 00 70 95 0F 13 70 04 04 00 08 53 0F 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AD 37 06 02 EF 90 00 13 [00:42:27]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 57 3D 01 00 69 04 A3 00 6F 04 04 00 BF 3A 01 00 B1 04 05 00 9B 68 5C 7B 01 70 04 05 00 20 5E 26 41 01 72 04 04 00 7B 0A 36 3A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EC BE 4C 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 46 A7 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 98 02 00 00 B1 04 04 00 70 95 0F 13 70 04 04 00 08 53 0F 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AD 37 06 02 EF 90 00 [00:42:27]wFMCommunicate OK [00:42:27]wFMCommunicate request_size=4 [00:42:27]MH_SAM_APDU [00:42:27]CAPDU: 80 17 00 00 [00:42:27]Write to MH i2c: E2 08 00 F3 00 80 17 00 00 00 00 00 00 73 [00:42:27]Write i2c OK [00:42:27]MH_I2C_Read... [00:42:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:27]Read from MH i2c: E2 [00:42:27]MH_I2C_Read... [00:42:27]Read from MH i2c: E2 FD 00 [00:42:27]MH_I2C_Read... [00:42:27]Read from MH i2c: E2 FD 00 F3 00 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0A 2F 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 90 00 E4 [00:42:28]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0A 2F 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 OFD Sender: No OFD packet to send [00:42:28]F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 90 00 [00:42:28]wFMCommunicate OK [00:42:28]wFMCommunicate request_size=4 [00:42:28]MH_SAM_APDU [00:42:28]CAPDU: 80 17 00 00 [00:42:28]Write to MH i2c: E2 08 00 F4 00 80 17 00 00 00 00 00 00 74 [00:42:28]Write i2c OK [00:42:28]MH_I2C_Read... [00:42:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:28]Read from MH i2c: E2 [00:42:28]MH_I2C_Read... [00:42:28]Read from MH i2c: E2 FD 00 [00:42:28]MH_I2C_Read... [00:42:28]Read from MH i2c: E2 FD 00 F4 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 4C [00:42:28]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [00:42:29]wFMCommunicate OK [00:42:29]wFMCommunicate request_size=4 [00:42:29]MH_SAM_APDU [00:42:29]CAPDU: 80 17 00 00 [00:42:29]Write to MH i2c: E2 08 00 F5 00 80 17 00 00 00 00 00 00 75 [00:42:29]Write i2c OK [00:42:29]MH_I2C_Read... [00:42:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:29]Read from MH i2c: E2 [00:42:29]MH_I2C_Read... [00:42:29]Read from MH i2c: E2 FD 00 [00:42:29]MH_I2C_Read... [00:42:29]Read from MH i2c: E2 FD 00 F5 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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 F0 [00:42:29]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:42:29]wFMCommunicate OK [00:42:29]wFMCommunicate request_size=4 [00:42:29]MH_SAM_APDU [00:42:29]CAPDU: 80 17 00 00 [00:42:29]Write to MH i2c: E2 08 00 F6 00 80 17 00 00 00 00 00 00 76 [00:42:29]Write i2c OK [00:42:29]MH_I2C_Read... [00:42:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:42:30]Read from MH i2c: E2 [00:42:30]MH_I2C_Read... [00:42:30]Read from MH i2c: E2 E4 00 [00:42:30]MH_I2C_Read... [00:42:30]Read from MH i2c: E2 E4 00 F6 00 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 56 [00:42:30]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:42:30]wFMCommunicate OK [00:42:30]SAM_PROTO_GetFMData done [00:42:30]requested_item fm.sale_refund.total is exist - process it [00:42:30]requested_item fm.buy.total is exist - process it [00:42:30]requested_item shift.sale.total is exist - process it [00:42:30]SAM_PROTO_GetShiftData [00:42:30]wFMCommunicate request_size=4 [00:42:30]MH_SAM_APDU [00:42:30]CAPDU: 80 13 02 00 [00:42:30]Write to MH i2c: E2 08 00 F7 00 80 13 02 00 00 00 00 00 75 [00:42:30]Write i2c OK [00:42:30]MH_I2C_Read... [00:42:31]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:42:31]Read from MH i2c: E2 [00:42:31]MH_I2C_Read... [00:42:31]Read from MH i2c: E2 FD 00 [00:42:31]MH_I2C_Read... [00:42:31]Read from MH i2c: E2 FD 00 F7 00 00 BA 04 AA 04 B6 04 6E 04 04 00 D7 00 00 00 69 04 9C 00 6F 04 04 00 D4 00 00 00 B1 04 03 00 82 CF D1 70 04 03 00 E4 8E 91 72 04 03 00 9E 40 40 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 44 49 16 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 6C DB 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 FC 0A 70 04 03 00 80 FC 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BD 2A 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 51 [00:42:31]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 D7 00 00 00 69 04 9C 00 6F 04 04 00 D4 00 00 00 B1 04 03 00 82 CF D1 70 04 03 00 E4 8E 91 72 04 03 00 9E 40 40 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 44 49 16 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 6C DB 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 FC 0A 70 04 03 00 80 FC 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BD 2A 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:42:31]wFMCommunicate OK [00:42:31]wFMCommunicate request_size=4 [00:42:31]MH_SAM_APDU [00:42:31]CAPDU: 80 17 00 00 [00:42:31]Write to MH i2c: E2 08 00 F8 00 80 17 00 00 00 00 00 00 78 [00:42:31]Write i2c OK [00:42:31]MH_I2C_Read... [00:42:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:31]Read from MH i2c: E2 [00:42:31]MH_I2C_Read... [00:42:31]Read from MH i2c: E2 FD 00 [00:42:31]MH_I2C_Read... [00:42:31]Read from MH i2c: E2 FD 00 F8 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 1E [00:42:32]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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:42:32]wFMCommunicate OK [00:42:32]wFMCommunicate request_size=4 [00:42:32]MH_SAM_APDU [00:42:32]CAPDU: 80 17 00 00 [00:42:32]Write to MH i2c: E2 08 00 F9 00 80 17 00 00 00 00 00 00 79 [00:42:32]Write i2c OK [00:42:32]MH_I2C_Read... [00:42:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:32]Read from MH i2c: E2 [00:42:32]MH_I2C_Read... [00:42:32]Read from MH i2c: E2 FD 00 [00:42:32]MH_I2C_Read... [00:42:32]Read from MH i2c: E2 FD 00 F9 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 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 A5 [00:42: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:42:33]wFMCommunicate OK [00:42:33]wFMCommunicate request_size=4 [00:42:33]MH_SAM_APDU [00:42:33]CAPDU: 80 17 00 00 [00:42:33]Write to MH i2c: E2 08 00 FA 00 80 17 00 00 00 00 00 00 7A [00:42:33]Write i2c OK [00:42:33]MH_I2C_Read... [00:42:33]OFD Sender: No OFD packet to send [00:42:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:33]Read from MH i2c: E2 [00:42:33]MH_I2C_Read... [00:42:33]Read from MH i2c: E2 FD 00 [00:42:33]MH_I2C_Read... [00:42:33]Read from MH i2c: E2 FD 00 FA 00 00 00 EF 03 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 F2 [00:42:33]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:42:33]wFMCommunicate OK [00:42:33]wFMCommunicate request_size=4 [00:42:33]MH_SAM_APDU [00:42:33]CAPDU: 80 17 00 00 [00:42:33]Write to MH i2c: E2 08 00 FB 00 80 17 00 00 00 00 00 00 7B [00:42:33]Write i2c OK [00:42:33]MH_I2C_Read... [00:42:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:42:34]Read from MH i2c: E2 [00:42:34]MH_I2C_Read... [00:42:34]Read from MH i2c: E2 D7 00 [00:42:34]MH_I2C_Read... [00:42:34]Read from MH i2c: E2 D7 00 FB 00 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 5E [00:42:34]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:42:34]wFMCommunicate OK [00:42:34]SAM_PROTO_GetShiftData done [00:42:34]requested_item shift.sale.total_cash is exist - process it [00:42:34]requested_item shift.sale_refund.total is exist - process it [00:42:34]requested_item shift.sale_refund.total_cash is exist - process it [00:42:34]requested_item shift.buy.total is exist - process it [00:42:34]requested_item shift.buy.total_cash is exist - process it [00:42:34]produce_requested_data done [00:42:34]produce_requested_data return {"fm.sale.total":63646209.55,"fm.sale_refund.total":3197884.00,"fm.buy.total":0.00,"shift.sale.total":137501.46,"shift.sale.total_cash":95393.00,"shift.sale_refund.total":7200.00,"shift.sale_refund.total_cash":7200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:42:34]process_action_free get_value [00:42:34]json_value_free [00:42:34]json_value_free done [00:42:34]process_json_proto returns [00:42:34]Send response to host [00:42:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":63646209.55,"fm.sale_refund.total":3197884.00,"fm.buy.total":0.00,"shift.sale.total":137501.46,"shift.sale.total_cash":95393.00,"shift.sale_refund.total":7200.00,"shift.sale_refund.total_cash":7200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:42:34]free response buf [00:42:34]execute_script done [00:42:34]execute_script returns [00:42:34]free content buf [00:42:34]Sock 8.Close socket [00:42:34]Sock 8.Thread stoped [00:42:34]accept exits with 9 [00:42:34]New connection [00:42:34]New thread 3067440484 created [00:42:34]Thread 3067297124 joined [00:42:34]Waiting for new connection... [00:42:34] Sock 9.Parse request [00:42:34]Sock 9.Check first char [00:42:34]Sock 9.First char is OK [00:42:34]request: POST /json_proto HTTP/1.0 [00:42:34]Method: POST [00:42:34]URL: /json_proto [00:42:34]Method is POST - this is cgi request [00:42:34]url: /json_proto [00:42:34]query_string will be loaded in cgi processing [00:42:34]execute_cgi json_proto POST (null) [00:42:34]execute_cgi path=json_proto method=POST [00:42:34]POST find Content-Length [00:42:34]Host: 172.17.44.67:8080 [00:42:34]Content-Length: 248 [00:42:34]Content-Type: application/json [00:42:34] [00:42:34]POST finish read [00:42:34]Found Content-Length = 248 [00:42:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0427\u043E\u043F\u043E\u0435\u0432 \u0418. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:42:34]execute_script... [00:42:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0427\u043E\u043F\u043E\u0435\u0432 \u0418. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:42:34]POST & json_proto [00:42:34]process_json_proto [00:42:34]json parsed OK: [00:42:34]protocol is kg_v1.0 [00:42:34]action value=close_shift [00:42:34]process_action close_shift [00:42:34]cmd_close_shift [00:42:34]MH_GetDate [00:42:34]Write to MH i2c: F0 00 00 FC 00 EB [00:42:34]Write i2c OK [00:42:34]MH_I2C_Read... [00:42:34]Read from MH i2c: F0 [00:42:34]MH_I2C_Read... [00:42:34]Read from MH i2c: F0 09 00 [00:42:34]MH_I2C_Read... [00:42:34]Read from MH i2c: F0 09 00 FC 00 00 FB AE 11 67 F1 C7 6B 64 9C [00:42:34]GetLastDocTimeStamp 1729212124 [00:42:34]current date 1729212155 [00:42:34]FM_GetShiftState [00:42:34]SAM_PROTO_GetShiftState [00:42:34]wFMCommunicate request_size=4 [00:42:34]MH_SAM_APDU [00:42:34]CAPDU: 80 13 01 00 [00:42:34]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [00:42:34]Write i2c OK [00:42:34]MH_I2C_Read... [00:42:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:42:34]Read from MH i2c: E2 [00:42:34]MH_I2C_Read... [00:42:34]Read from MH i2c: E2 0E 00 [00:42:34]MH_I2C_Read... [00:42:34]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 27 5E 10 67 00 00 00 00 90 00 82 [00:42:34]RAPDU: 09 00 01 27 5E 10 67 00 00 00 00 90 00 [00:42:34]wFMCommunicate OK [00:42:34]SAM_PROTO_GetShiftState done [00:42:34]FM_GetShiftState done [00:42:34]KKMCreateCloseShiftDocument [00:42:34]Load OK [00:42:34]Malloc new data [00:42:34]MH_GetDate [00:42:34]Write to MH i2c: F0 00 00 FE 00 ED [00:42:34]Write i2c OK [00:42:34]MH_I2C_Read... [00:42:34]Read from MH i2c: F0 [00:42:34]MH_I2C_Read... [00:42:34]Read from MH i2c: F0 09 00 [00:42:34]MH_I2C_Read... [00:42:34]Read from MH i2c: F0 09 00 FE 00 00 FB AE 11 67 F1 C7 6B 64 9E [00:42:34]Malloc new data [00:42:34]Malloc new data [00:42:34]Malloc new data [00:42:34]Malloc new data [00:42:34]KKMCreateCloseShiftDocument OK [00:42:34]KKMSetCloseShiftData OK [00:42:34]ProcessDocumentItem done err = 0, tmpTLVsize=67 [00:42:34]tlvbuf is B6E1F510 [00:42:34]KKMLoadAndSignCloseShiftData [00:42:34]SAM_PROTO_ProcessDocument [00:42:34]wFMCommunicate request_size=9 [00:42:34]MH_SAM_APDU [00:42:34]CAPDU: 80 15 01 00 04 05 00 43 00 [00:42:35]Write to MH i2c: E2 0C 00 FF 00 80 15 01 00 04 00 05 00 43 00 00 00 CE [00:42:35]Write i2c OK [00:42:35]MH_I2C_Read... [00:42:35]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:42:35]Read from MH i2c: E2 [00:42:35]MH_I2C_Read... [00:42:35]Read from MH i2c: E2 03 00 [00:42:35]MH_I2C_Read... [00:42:35]Read from MH i2c: E2 03 00 FF 00 00 90 00 73 [00:42:35]RAPDU: 90 00 [00:42:35]wFMCommunicate OK [00:42:35]wFMCommunicate request_size=23 [00:42:35]MH_SAM_APDU [00:42:35]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:42:35]Write to MH i2c: E2 1A 00 00 01 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 76 [00:42:35]Write i2c OK [00:42:35]MH_I2C_Read... [00:42:35]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:42:35]Read from MH i2c: E2 [00:42:35]MH_I2C_Read... [00:42:35]Read from MH i2c: E2 03 00 [00:42:35]MH_I2C_Read... [00:42:35]Read from MH i2c: E2 03 00 00 01 00 90 00 75 [00:42:35]RAPDU: 90 00 [00:42:35]wFMCommunicate OK [00:42:35]wFMCommunicate request_size=26 [00:42:35]MH_SAM_APDU [00:42:35]CAPDU: 80 15 02 00 15 FD 03 11 00 D0 A7 D0 BE D0 BF D0 BE D0 B5 D0 B2 20 D0 98 2E 20 [00:42:35]Write to MH i2c: E2 1D 00 01 01 80 15 02 00 15 00 FD 03 11 00 D0 A7 D0 BE D0 BF D0 BE D0 B5 D0 B2 20 D0 98 2E 20 00 00 BC [00:42:35]Write i2c OK [00:42:35]MH_I2C_Read... [00:42:35]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:42:35]Read from MH i2c: E2 [00:42:35]MH_I2C_Read... [00:42:35]Read from MH i2c: E2 03 00 [00:42:35]MH_I2C_Read... [00:42:35]Read from MH i2c: E2 03 00 01 01 00 90 00 76 [00:42:35]RAPDU: 90 00 [00:42:35]wFMCommunicate OK [00:42:35]wFMCommunicate request_size=13 [00:42:35]MH_SAM_APDU [00:42:35]CAPDU: 80 15 02 00 08 F4 03 04 00 FB AE 11 67 [00:42:35]Write to MH i2c: E2 10 00 02 01 80 15 02 00 08 00 F4 03 04 00 FB AE 11 67 00 00 AF [00:42:35]Write i2c OK [00:42:35]MH_I2C_Read... [00:42:35]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:42:35]Read from MH i2c: E2 [00:42:35]MH_I2C_Read... [00:42:35]Read from MH i2c: E2 03 00 [00:42:35]MH_I2C_Read... [00:42:35]Read from MH i2c: E2 03 00 02 01 00 90 00 77 [00:42:35]RAPDU: 90 00 [00:42:35]wFMCommunicate OK [00:42:35]wFMCommunicate request_size=25 [00:42:35]MH_SAM_APDU [00:42:35]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 [00:42:35]Write to MH i2c: E2 1C 00 03 01 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 00 00 E5 [00:42:35]Write i2c OK [00:42:35]MH_I2C_Read... [00:42:35]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:42:35]Read from MH i2c: E2 [00:42:35]MH_I2C_Read... [00:42:35]Read from MH i2c: E2 03 00 [00:42:35]MH_I2C_Read... [00:42:35]Read from MH i2c: E2 03 00 03 01 00 90 00 78 [00:42:35]RAPDU: 90 00 [00:42:35]wFMCommunicate OK [00:42:35]wFMCommunicate request_size=4 [00:42:35]MH_SAM_APDU [00:42:35]CAPDU: 80 15 03 00 [00:42:35]Write to MH i2c: E2 08 00 04 01 80 15 03 00 00 00 00 00 86 [00:42:35]Write i2c OK [00:42:35]MH_I2C_Read... [00:42:36]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:42:36]Read from MH i2c: E2 [00:42:36]MH_I2C_Read... [00:42:36]Read from MH i2c: E2 FD 00 [00:42:36]MH_I2C_Read... [00:42:36]Read from MH i2c: E2 FD 00 04 01 00 FD 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 72 41 01 00 0E 04 04 00 0D 02 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D9 00 00 00 AA 04 B6 04 6E 04 04 00 D7 00 00 00 69 04 9C 00 6F 04 04 00 D4 00 00 00 B1 04 03 00 82 CF D1 70 04 03 00 E4 8E 91 72 04 03 00 9E 40 40 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 44 49 16 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 6C DB 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 FC 0A 90 00 70 [00:42:36]RAPDU: FD 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 72 41 01 00 0E 04 04 00 0D 02 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D9 00 00 00 AA 04 B6 04 6E 04 04 00 D7 00 00 00 69 04 9C 00 6F 04 04 00 D4 00 00 00 B1 04 03 00 82 CF D1 70 04 03 00 E4 8E 91 72 04 03 00 9E 40 40 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 44 49 16 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 6C DB 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 FC 0A 90 00 [00:42:36]wFMCommunicate OK [00:42:36]SAM_PROTO_ProcessDocument answer len = 1277 [00:42:36]SAM_PROTO_ProcessDocument remain to read = 1029 [00:42:36]wFMCommunicate request_size=4 [00:42:36]MH_SAM_APDU [00:42:36]CAPDU: 80 17 00 00 [00:42:36]Write to MH i2c: E2 08 00 05 01 80 17 00 00 00 00 00 00 86 [00:42:36]Write i2c OK [00:42:36]MH_I2C_Read... [00:42:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:36]Read from MH i2c: E2 [00:42:37]MH_I2C_Read... [00:42:37]Read from MH i2c: E2 FD 00 [00:42:37]MH_I2C_Read... [00:42:37]Read from MH i2c: E2 FD 00 05 01 00 70 04 03 00 80 FC 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BD 2A 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 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 CD [00:42:37]RAPDU: 70 04 03 00 80 FC 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BD 2A 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 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:42:37]wFMCommunicate OK [00:42:37]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:42:37]SAM_PROTO_ProcessDocument remain to read = 779 [00:42:37]wFMCommunicate request_size=4 [00:42:37]MH_SAM_APDU [00:42:37]CAPDU: 80 17 00 00 [00:42:37]Write to MH i2c: E2 08 00 06 01 80 17 00 00 00 00 00 00 87 [00:42:37]Write i2c OK [00:42:37]MH_I2C_Read... [00:42:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:37]Read from MH i2c: E2 [00:42:37]MH_I2C_Read... [00:42:37]Read from MH i2c: E2 FD 00 [00:42:37]MH_I2C_Read... [00:42:37]Read from MH i2c: E2 FD 00 06 01 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 ED [00:42:38]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:42:38]wFMCommunicate OK [00:42:38]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:42:38]SAM_PROTO_ProcessDocument remain to read = 529 [00:42:38]wFMCommunicate request_size=4 [00:42:38]MH_SAM_APDU [00:42:38]CAPDU: 80 17 00 00 [00:42:38]Write to MH i2c: E2 08 00 07 01 80 17 00 00 00 00 00 00 88 [00:42:38]Write i2c OK [00:42:38]MH_I2C_Read... [00:42:38]OFD Sender: No OFD packet to send [00:42:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:38]Read from MH i2c: E2 [00:42:38]MH_I2C_Read... [00:42:38]Read from MH i2c: E2 FD 00 [00:42:38]MH_I2C_Read... [00:42:38]Read from MH i2c: E2 FD 00 07 01 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 97 [00:42:38]RAPDU: 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 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:42:39]wFMCommunicate OK [00:42:39]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:42:39]SAM_PROTO_ProcessDocument remain to read = 279 [00:42:39]wFMCommunicate request_size=4 [00:42:39]MH_SAM_APDU [00:42:39]CAPDU: 80 17 00 00 [00:42:39]Write to MH i2c: E2 08 00 08 01 80 17 00 00 00 00 00 00 89 [00:42:39]Write i2c OK [00:42:39]MH_I2C_Read... [00:42:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:39]Read from MH i2c: E2 [00:42:39]MH_I2C_Read... [00:42:39]Read from MH i2c: E2 FD 00 [00:42:39]MH_I2C_Read... [00:42:39]Read from MH i2c: E2 FD 00 08 01 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 C7 [00:42:39]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:42:40]wFMCommunicate OK [00:42:40]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:42:40]SAM_PROTO_ProcessDocument remain to read = 29 [00:42:40]wFMCommunicate request_size=4 [00:42:40]MH_SAM_APDU [00:42:40]CAPDU: 80 17 00 00 [00:42:40]Write to MH i2c: E2 08 00 09 01 80 17 00 00 00 00 00 00 8A [00:42:40]Write i2c OK [00:42:40]MH_I2C_Read... [00:42:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 29! [00:42:40]Read from MH i2c: E2 [00:42:40]MH_I2C_Read... [00:42:40]Read from MH i2c: E2 20 00 [00:42:40]MH_I2C_Read... [00:42:40]Read from MH i2c: E2 20 00 09 01 00 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 76 34 7F 15 35 DC 90 00 1D [00:42:40]RAPDU: 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 76 34 7F 15 35 DC 90 00 [00:42:40]wFMCommunicate OK [00:42:40]SAM_PROTO_ProcessDocument received (without SW) 29 bytes [00:42:40]SAM_PROTO_ProcessDocument done [00:42:40]1209 (1) - 1.0 - номер версии ФФД [00:42:40]1041 (16) - 0000000000871843 - номер ФМ [00:42:40]1040 (4) - 82290 - номер ФД [00:42:40]1038 (4) - 525 - номер смены [00:42:40]1118 (4) - 215 - количество кассовых чеков за смену [00:42:40]1111 (4) - 217 - общее количество ФД за смену [00:42:40]1194 (1206) - счетчики итогов смены [00:42:40] 1134 (4) - 215 - количество чеков со всеми признаками расчетов [00:42:40] 1129 (156) - счетчики операций «приход» [00:42:40] 1135 (4) - 212 - количество чеков по признаку расчетов [00:42:40] 1201 (3) - 137501.46 - общая итоговая сумма в чеках [00:42:40] 1136 (3) - 95393.00 - итоговая сумма в чеках наличными [00:42:40] 1138 (3) - 42108.46 - итоговая сумма в чеках безналичными [00:42:40] 1024 (123) - суммы налогов [00:42:40] 1006 (9) - суммы НДС [00:42:40] 1010 (1) - 0% - код ставки НДС [00:42:40] 1011 (0) - 0.00 - сумма НДС по ставке [00:42:40] 1006 (12) - суммы НДС [00:42:40] 1010 (1) - 12% - код ставки НДС [00:42:40] 1011 (3) - 14605.48 - сумма НДС по ставке [00:42:40] 1007 (9) - суммы НСП [00:42:40] 1014 (1) - 0% - код ставки НСП [00:42:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:40] 1007 (12) - суммы НСП [00:42:40] 1014 (1) - 1% - код ставки НСП [00:42:40] 1015 (3) - 1217.08 - сумма НСП по ставке [00:42:40] 1007 (9) - суммы НСП [00:42:40] 1014 (1) - 2% - код ставки НСП [00:42:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:40] 1007 (9) - суммы НСП [00:42:40] 1014 (1) - 3% - код ставки НСП [00:42:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:40] 1007 (9) - суммы НСП [00:42:40] 1014 (1) - 5% - код ставки НСП [00:42:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:40] 1007 (9) - суммы НСП [00:42:40] 1014 (1) - 0,50% - код ставки НСП [00:42:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:40] 1007 (9) - суммы НСП [00:42:40] recv_with_timeout no data received [00:42:40] 1014 (1) - 1,50% - код ставки НСП [00:42:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:40] 1130 (152) - счетчики операций «возврат прихода» [00:42:40] 1135 (4) - 3 - количество чеков по признаку расчетов [00:42:40] 1201 (3) - 7200.00 - общая итоговая сумма в чеках [00:42:40] 1136 (3) - 7200.00 - итоговая сумма в чеках наличными [00:42:40] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:42:40] 1024 (122) - суммы налогов [00:42:40] 1006 (9) - суммы НДС [00:42:40] 1010 (1) - 0% - код ставки НДС [00:42:40] 1011 (0) - 0.00 - сумма НДС по ставке [00:42:40] 1006 (12) - суммы НДС [00:42:40] 1010 (1) - 12% - код ставки НДС [00:42:40] 1011 (3) - 764.77 - сумма НДС по ставке [00:42:40] 1007 (9) - суммы НСП [00:42:40] 1014 (1) - 0% - код ставки НСП [00:42:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:40] 1007 (11) - суммы НСП [00:42:40] 1014 (1) - 1% - код ставки НСП [00:42:40] 1015 (2) - 63.72 - сумма НСП по ставке [00:42:40] 1007 (9) - суммы НСП [00:42:40] 1014 (1) - 2% - код ставки НСП [00:42:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:40] 1007 (9) - суммы НСП [00:42:40] 1014 (1) - 3% - код ставки НСП [00:42:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:40] 1007 (9) - суммы НСП [00:42:40] 1014 (1) - 5% - код ставки НСП [00:42:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:40] 1007 (9) - суммы НСП [00:42:40] 1014 (1) - 0,50% - код ставки НСП [00:42:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:40] 1007 (9) - суммы НСП [00:42:40] 1014 (1) - 1,50% - код ставки НСП [00:42:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:40] 1131 (141) - счетчики операций «расход» [00:42:40] 1135 (4) - 0 - количество чеков по признаку расчетов [00:42:40] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:42:40] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:42:40] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:42:40] 1024 (117) - суммы налогов [00:42:40] 1006 (9) - суммы НДС [00:42:40] 1010 (1) - 0% - код ставки НДС [00:42:40] 1011 (0) - 0.00 - сумма НДС по ставке [00:42:40] 1006 (9) - суммы НДС [00:42:40] 1010 (1) - 12% - код ставки НДС [00:42:40] 1011 (0) - 0.00 - сумма НДС по ставке [00:42:40] 1007 (9) - суммы НСП [00:42:40] 1014 (1) - 0% - код ставки НСП [00:42:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:40] 1007 (9) - суммы НСП [00:42:40] 1014 (1) - 1% - код ставки НСП [00:42:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:40] 1007 (9) - суммы НСП [00:42:40] 1014 (1) - 2% - код ставки НСП [00:42:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:40] 1007 (9) - суммы НСП [00:42:40] 1014 (1) - 3% - код ставки НСП [00:42:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:40] 1007 (9) - суммы НСП [00:42:40] 1014 (1) - 5% - код ставки НСП [00:42:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:40] 1007 (9) - суммы НСП [00:42:40] 1014 (1) - 0,50% - код ставки НСП [00:42:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:40] 1007 (9) - суммы НСП [00:42:40] 1014 (1) - 1,50% - код ставки НСП [00:42:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:40] 1132 (141) - счетчики операций «возврат расхода» [00:42:40] 1135 (4) - 0 - количество чеков по признаку расчетов [00:42:40] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:42:40] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:42:40] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:42:40] 1024 (117) - суммы налогов [00:42:40] 1006 (9) - суммы НДС [00:42:40] 1010 (1) - 0% - код ставки НДС [00:42:40] 1011 (0) - 0.00 - сумма НДС по ставке [00:42:40] 1006 (9) - суммы НДС [00:42:40] 1010 (1) - 12% - код ставки НДС [00:42:40] 1011 (0) - 0.00 - сумма НДС по ставке [00:42:40] 1007 (9) - суммы НСП [00:42:40] 1014 (1) - 0% - код ставки НСП [00:42:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:40] 1007 (9) - суммы НСП [00:42:40] 1014 (1) - 1% - код ставки НСП [00:42:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:40] 1007 (9) - суммы НСП [00:42:40] 1014 (1) - 2% - код ставки НСП [00:42:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:40] 1007 (9) - суммы НСП [00:42:40] 1014 (1) - 3% - код ставки НСП [00:42:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:40] 1007 (9) - суммы НСП [00:42:40] 1014 (1) - 5% - код ставки НСП [00:42:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:40] 1007 (9) - суммы НСП [00:42:40] 1014 (1) - 0,50% - код ставки НСП [00:42:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:41] 1007 (9) - суммы НСП [00:42:41] 1014 (1) - 1,50% - код ставки НСП [00:42:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:42:41] 1133 (588) - - счетчики коррекции - не используются [00:42:41]1077 (6) - 129967842473436 - ФПД [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1209 (04B9) [00:42:41]Malloc new data [00:42:41]Processing tag 1041 (0411) [00:42:41]Processing tag 1040 (0410) [00:42:41]Malloc new data [00:42:41]Processing tag 1038 (040E) [00:42:41]Malloc new data [00:42:41]Processing tag 1118 (045E) [00:42:41]Malloc new data [00:42:41]Processing tag 1111 (0457) [00:42:41]Malloc new data [00:42:41]Processing tag 1194 (04AA) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1134 (046E) [00:42:41]Malloc new data [00:42:41]Processing tag 1129 (0469) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1135 (046F) [00:42:41]Malloc new data [00:42:41]Processing tag 1201 (04B1) [00:42:41]Malloc new data [00:42:41]Processing tag 1136 (0470) [00:42:41]Malloc new data [00:42:41]Processing tag 1138 (0472) [00:42:41]Malloc new data [00:42:41]Processing tag 1024 (0400) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1006 (03EE) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1010 (03F2) [00:42:41]Malloc new data [00:42:41]Processing tag 1011 (03F3) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1006 (03EE) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1010 (03F2) [00:42:41]Malloc new data [00:42:41]Processing tag 1011 (03F3) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1007 (03EF) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1014 (03F6) [00:42:41]Malloc new data [00:42:41]Processing tag 1015 (03F7) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1007 (03EF) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1014 (03F6) [00:42:41]Malloc new data [00:42:41]Processing tag 1015 (03F7) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1007 (03EF) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1014 (03F6) [00:42:41]Malloc new data [00:42:41]Processing tag 1015 (03F7) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1007 (03EF) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1014 (03F6) [00:42:41]Malloc new data [00:42:41]Processing tag 1015 (03F7) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1007 (03EF) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1014 (03F6) [00:42:41]Malloc new data [00:42:41]Processing tag 1015 (03F7) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1007 (03EF) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1014 (03F6) [00:42:41]Malloc new data [00:42:41]Processing tag 1015 (03F7) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1007 (03EF) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1014 (03F6) [00:42:41]Malloc new data [00:42:41]Processing tag 1015 (03F7) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]SetTLVBufToDocument err=0 [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1130 (046A) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1135 (046F) [00:42:41]Malloc new data [00:42:41]Processing tag 1201 (04B1) [00:42:41]Malloc new data [00:42:41]Processing tag 1136 (0470) [00:42:41]Malloc new data [00:42:41]Processing tag 1138 (0472) [00:42:41]Malloc new data [00:42:41]Processing tag 1024 (0400) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1006 (03EE) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1010 (03F2) [00:42:41]Malloc new data [00:42:41]Processing tag 1011 (03F3) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1006 (03EE) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1010 (03F2) [00:42:41]Malloc new data [00:42:41]Processing tag 1011 (03F3) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1007 (03EF) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1014 (03F6) [00:42:41]Malloc new data [00:42:41]Processing tag 1015 (03F7) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1007 (03EF) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1014 (03F6) [00:42:41]Malloc new data [00:42:41]Processing tag 1015 (03F7) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1007 (03EF) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1014 (03F6) [00:42:41]Malloc new data [00:42:41]Processing tag 1015 (03F7) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1007 (03EF) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1014 (03F6) [00:42:41]Malloc new data [00:42:41]Processing tag 1015 (03F7) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1007 (03EF) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1014 (03F6) [00:42:41]Malloc new data [00:42:41]Processing tag 1015 (03F7) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1007 (03EF) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1014 (03F6) [00:42:41]Malloc new data [00:42:41]Processing tag 1015 (03F7) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1007 (03EF) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1014 (03F6) [00:42:41]Malloc new data [00:42:41]Processing tag 1015 (03F7) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]SetTLVBufToDocument err=0 [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1131 (046B) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1135 (046F) [00:42:41]Malloc new data [00:42:41]Processing tag 1201 (04B1) [00:42:41]Malloc new data [00:42:41]Processing tag 1136 (0470) [00:42:41]Malloc new data [00:42:41]Processing tag 1138 (0472) [00:42:41]Malloc new data [00:42:41]Processing tag 1024 (0400) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1006 (03EE) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1010 (03F2) [00:42:41]Malloc new data [00:42:41]Processing tag 1011 (03F3) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1006 (03EE) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1010 (03F2) [00:42:41]Malloc new data [00:42:41]Processing tag 1011 (03F3) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1007 (03EF) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1014 (03F6) [00:42:41]Malloc new data [00:42:41]Processing tag 1015 (03F7) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1007 (03EF) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1014 (03F6) [00:42:41]Malloc new data [00:42:41]Processing tag 1015 (03F7) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1007 (03EF) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1014 (03F6) [00:42:41]Malloc new data [00:42:41]Processing tag 1015 (03F7) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1007 (03EF) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1014 (03F6) [00:42:41]Malloc new data [00:42:41]Processing tag 1015 (03F7) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1007 (03EF) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1014 (03F6) [00:42:41]Malloc new data [00:42:41]Processing tag 1015 (03F7) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1007 (03EF) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1014 (03F6) [00:42:41]Malloc new data [00:42:41]Processing tag 1015 (03F7) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1007 (03EF) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1014 (03F6) [00:42:41]Malloc new data [00:42:41]Processing tag 1015 (03F7) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]SetTLVBufToDocument err=0 [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1132 (046C) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1135 (046F) [00:42:41]Malloc new data [00:42:41]Processing tag 1201 (04B1) [00:42:41]Malloc new data [00:42:41]Processing tag 1136 (0470) [00:42:41]Malloc new data [00:42:41]Processing tag 1138 (0472) [00:42:41]Malloc new data [00:42:41]Processing tag 1024 (0400) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1006 (03EE) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1010 (03F2) [00:42:41]Malloc new data [00:42:41]Processing tag 1011 (03F3) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1006 (03EE) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1010 (03F2) [00:42:41]Malloc new data [00:42:41]Processing tag 1011 (03F3) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1007 (03EF) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1014 (03F6) [00:42:41]Malloc new data [00:42:41]Processing tag 1015 (03F7) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1007 (03EF) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1014 (03F6) [00:42:41]Malloc new data [00:42:41]Processing tag 1015 (03F7) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1007 (03EF) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1014 (03F6) [00:42:41]Malloc new data [00:42:41]Processing tag 1015 (03F7) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1007 (03EF) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1014 (03F6) [00:42:41]Malloc new data [00:42:41]Processing tag 1015 (03F7) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1007 (03EF) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1014 (03F6) [00:42:41]Malloc new data [00:42:41]Processing tag 1015 (03F7) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1007 (03EF) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1014 (03F6) [00:42:41]Malloc new data [00:42:41]Processing tag 1015 (03F7) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1007 (03EF) [00:42:41]Load OK [00:42:41]SetTLVBufToDocument [00:42:41]Processing tag 1014 (03F6) [00:42:41]Malloc new data [00:42:41]Processing tag 1015 (03F7) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]SetTLVBufToDocument err=0 [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1133 (046D) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Processing tag 1077 (0435) [00:42:41]Malloc new data [00:42:41]SetTLVBufToDocument err=0 [00:42:41]Malloc new data [00:42:41]SAM_PROTO_GetFMData [00:42:41]wFMCommunicate request_size=4 [00:42:41]MH_SAM_APDU [00:42:41]CAPDU: 80 13 03 00 [00:42:41]Write to MH i2c: E2 08 00 0A 01 80 13 03 00 00 00 00 00 8A [00:42:41]Write i2c OK [00:42:41]MH_I2C_Read... [00:42:41]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:42:41]Read from MH i2c: E2 [00:42:41]MH_I2C_Read... [00:42:41]Read from MH i2c: E2 FD 00 [00:42:41]MH_I2C_Read... [00:42:41]Read from MH i2c: E2 FD 00 0A 01 00 C7 04 85 04 C3 04 6E 04 04 00 57 3D 01 00 69 04 A3 00 6F 04 04 00 BF 3A 01 00 B1 04 05 00 9B 68 5C 7B 01 70 04 05 00 20 5E 26 41 01 72 04 04 00 7B 0A 36 3A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EC BE 4C 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 46 A7 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 98 02 00 00 B1 04 04 00 70 95 0F 13 70 04 04 00 08 53 0F 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AD 37 06 02 EF 90 00 2C [00:42:42]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 57 3D 01 00 69 04 A3 00 6F 04 04 00 BF 3A 01 00 B1 04 05 00 9B 68 5C 7B 01 70 04 05 00 20 5E 26 41 01 72 04 04 00 7B 0A 36 3A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EC BE 4C 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 46 A7 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 98 02 00 00 B1 04 04 00 70 95 0F 13 70 04 04 00 08 53 0F 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AD 37 06 02 EF 90 00 [00:42:42]wFMCommunicate OK [00:42:42]wFMCommunicate request_size=4 [00:42:42]MH_SAM_APDU [00:42:42]CAPDU: 80 17 00 00 [00:42:42]Write to MH i2c: E2 08 00 0B 01 80 17 00 00 00 00 00 00 8C [00:42:42]Write i2c OK [00:42:42]MH_I2C_Read... [00:42:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:42]Read from MH i2c: E2 [00:42:42]MH_I2C_Read... [00:42:42]Read from MH i2c: E2 FD 00 [00:42:42]MH_I2C_Read... [00:42:42]Read from MH i2c: E2 FD 00 0B 01 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0A 2F 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 90 00 FD [00:42:43]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0A 2F 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 90 00 [00:42:43]wFMCommunicate OK [00:42:43]wFMCommunicate request_size=4 [00:42:43]MH_SAM_APDU [00:42:43]CAPDU: 80 17 00 00 [00:42:43]Write to MH i2c: E2 08 00 0C 01 80 17 00 00 00 00 00 00 8D [00:42:43]OFD Sender: No OFD packet to send [00:42:43]Write i2c OK [00:42:43]MH_I2C_Read... [00:42:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:43]Read from MH i2c: E2 [00:42:43]MH_I2C_Read... [00:42:43]Read from MH i2c: E2 FD 00 [00:42:43]MH_I2C_Read... [00:42:43]Read from MH i2c: E2 FD 00 0C 01 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 65 [00:42:44]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [00:42:44]wFMCommunicate OK [00:42:44]wFMCommunicate request_size=4 [00:42:44]MH_SAM_APDU [00:42:44]CAPDU: 80 17 00 00 [00:42:44]Write to MH i2c: E2 08 00 0D 01 80 17 00 00 00 00 00 00 8E [00:42:44]Write i2c OK [00:42:44]MH_I2C_Read... [00:42:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:44]Read from MH i2c: E2 [00:42:44]MH_I2C_Read... [00:42:44]Read from MH i2c: E2 FD 00 [00:42:44]MH_I2C_Read... [00:42:44]Read from MH i2c: E2 FD 00 0D 01 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 09 [00:42:44]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:42:45]wFMCommunicate OK [00:42:45]wFMCommunicate request_size=4 [00:42:45]MH_SAM_APDU [00:42:45]CAPDU: 80 17 00 00 [00:42:45]Write to MH i2c: E2 08 00 0E 01 80 17 00 00 00 00 00 00 8F [00:42:45]Write i2c OK [00:42:45]MH_I2C_Read... [00:42:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:42:45]Read from MH i2c: E2 [00:42:45]MH_I2C_Read... [00:42:45]Read from MH i2c: E2 E4 00 [00:42:45]MH_I2C_Read... [00:42:45]Read from MH i2c: E2 E4 00 0E 01 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 6F [00:42:45]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:42:46]wFMCommunicate OK [00:42:46]SAM_PROTO_GetFMData done [00:42:46]Malloc new data [00:42:46]Malloc new data [00:42:46]Malloc new data [00:42:46]Malloc new data [00:42:46]KKMLoadAndSignCloseShiftData err=0 [00:42:46]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Чопоев И. 18.10.2024 00:42 Смена: 525 РНМ: 0000000000091680 ЗНМ: 0300000086 СНО: Общий режим Чеков за смену: 215 ФД за смену: 217 Всего чеков: 215 ИТОГИ ПРИХОД Чеков: 212 Общий итог: 137501.46 Итого наличными: 95393.00 Итого безнал.: 42108.46 НДС 0% : 0.00 НДС 12% : 14605.48 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1217.08 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 3 Общий итог: 7200.00 Итого наличными: 7200.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 764.77 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 63.72 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 88193.00 НС Приход: 63646209.55 НС Возвр.Прихода: 3197884.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 82290 ФМ: 0000000000871843 ФПД: 129967842473436 [00:42:46]StoreToDocumentArchive [00:42:46]shift 525 fd 82290 [00:42:46]save to /storage/0525/doc_00082290 [00:42:46]save last doc name /storage/0525/doc_00082290 to /storage/kkm_last_doc_name [00:42:46]save OK [00:42:46]Clear old archive folders... [00:42:46]Remove dir /storage/0522 [00:42:46]opendir ok [00:42:46]file . [00:42:46]file .. [00:42:46]file doc_1729212133 [00:42:46]remove file /storage/0522/doc_1729212133 [00:42:46]remove dir /storage/0522 [00:42:46]NVStorageSaveData kkm_registers [00:42:46]File name is /storage/kkm_registers [00:42:46]Write 24 bytes [00:42:46]NVStorageSaveData done [00:42:46]NVStorageSaveData kkm_registers [00:42:46]File name is /storage/kkm_registers [00:42:46]Write 24 bytes [00:42:46]NVStorageSaveData done [00:42:46]ProcessDocumentItem done err = 0, tmpTLVsize=1383 [00:42:46]tlvbuf is 00B5CAC0 [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 0F 01 80 09 00 00 00 00 00 00 82 [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 0F 01 00 90 00 84 [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 10 01 80 0D 01 02 00 00 00 00 8A [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 10 01 00 90 00 85 [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 05 00 67 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 11 00 D0 A7 D0 BE D0 BF D0 BE D0 B5 D0 B2 20 D0 98 2E 20 F4 03 04 00 FB AE 11 67 0E 04 04 00 0D 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 5E 04 04 00 D7 00 00 00 57 04 04 00 D9 00 00 00 AA 04 DD 04 6E 04 04 00 D7 00 00 00 69 04 A3 00 6F 04 04 00 D4 00 00 00 B1 04 03 00 82 CF D1 70 04 03 00 E4 8E 91 72 04 03 00 9E 40 40 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 44 49 16 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 [00:42:46]Write to MH i2c: E2 02 01 11 01 80 0D 02 02 FA 00 05 00 67 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 11 00 D0 A7 D0 BE D0 BF D0 BE D0 B5 D0 B2 20 D0 98 2E 20 F4 03 04 00 FB AE 11 67 0E 04 04 00 0D 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 5E 04 04 00 D7 00 00 00 57 04 04 00 D9 00 00 00 AA 04 DD 04 6E 04 04 00 D7 00 00 00 69 04 A3 00 6F 04 04 00 D4 00 00 00 B1 04 03 00 82 CF D1 70 04 03 00 E4 8E 91 72 04 03 00 9E 40 40 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 44 49 16 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 00 00 57 [00:42:47]Write i2c OK [00:42:47]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 11 01 00 90 00 86 [00:42:47]RAPDU: 90 00 [00:42:47]wFMCommunicate OK [00:42:47]wFMCommunicate request_size=255 [00:42:47]MH_SAM_APDU [00:42:47]CAPDU: 80 0D 02 02 FA 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6C DB 01 6A 04 A0 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 FC 0A 70 04 03 00 80 FC 0A 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BD 2A 01 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 18 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:42:47]Write to MH i2c: E2 02 01 12 01 80 0D 02 02 FA 00 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6C DB 01 6A 04 A0 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 FC 0A 70 04 03 00 80 FC 0A 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BD 2A 01 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 18 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 5E [00:42:47]Write i2c OK [00:42:47]MH_I2C_Read... [00:42:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:42:48]Read from MH i2c: E2 [00:42:48]MH_I2C_Read... [00:42:48]Read from MH i2c: E2 03 00 [00:42:48]MH_I2C_Read... [00:42:48]Read from MH i2c: E2 03 00 12 01 00 90 00 87 [00:42:48]RAPDU: 90 00 [00:42:48]wFMCommunicate OK [00:42:48]wFMCommunicate request_size=255 [00:42:48]MH_SAM_APDU [00:42:48]CAPDU: 80 0D 02 02 FA 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:42:48]Write to MH i2c: E2 02 01 13 01 80 0D 02 02 FA 00 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 OFD Sender: No OFD packet to send [00:42:48]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 00 54 [00:42:48]Write i2c OK [00:42:48]MH_I2C_Read... [00:42:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:42:49]Read from MH i2c: E2 [00:42:49]MH_I2C_Read... [00:42:49]Read from MH i2c: E2 03 00 [00:42:49]MH_I2C_Read... [00:42:49]Read from MH i2c: E2 03 00 13 01 00 90 00 88 [00:42:49]RAPDU: 90 00 [00:42:49]wFMCommunicate OK [00:42:49]wFMCommunicate request_size=255 [00:42:49]MH_SAM_APDU [00:42:49]CAPDU: 80 0D 02 02 FA 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 [00:42:49]Write to MH i2c: E2 02 01 14 01 80 0D 02 02 FA 00 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 00 00 53 [00:42:49]Write i2c OK [00:42:49]MH_I2C_Read... [00:42:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:42:50]Read from MH i2c: E2 [00:42:50]MH_I2C_Read... [00:42:50]Read from MH i2c: E2 03 00 [00:42:50]MH_I2C_Read... [00:42:50]Read from MH i2c: E2 03 00 14 01 00 90 00 89 [00:42:50]RAPDU: 90 00 [00:42:50]wFMCommunicate OK [00:42:50]wFMCommunicate request_size=255 [00:42:50]MH_SAM_APDU [00:42:50]CAPDU: 80 0D 02 02 FA 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 [00:42:50]Write to MH i2c: E2 02 01 15 01 80 0D 02 02 FA 00 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 00 00 18 [00:42:50]Write i2c OK [00:42:50]MH_I2C_Read... [00:42:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:42:51]Read from MH i2c: E2 [00:42:51]MH_I2C_Read... [00:42:51]Read from MH i2c: E2 03 00 [00:42:51]MH_I2C_Read... [00:42:51]Read from MH i2c: E2 03 00 15 01 00 90 00 8A [00:42:51]RAPDU: 90 00 [00:42:51]wFMCommunicate OK [00:42:51]wFMCommunicate request_size=142 [00:42:51]MH_SAM_APDU [00:42:51]CAPDU: 80 0D 02 02 89 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 72 41 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 35 04 06 00 76 34 7F 15 35 DC [00:42:51]Write to MH i2c: E2 91 00 16 01 80 0D 02 02 89 00 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 72 41 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 35 04 06 00 76 34 7F 15 35 DC 00 00 DA [00:42:51]Write i2c OK [00:42:51]MH_I2C_Read... [00:42:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:42:51]Read from MH i2c: E2 [00:42:51]MH_I2C_Read... [00:42:51]Read from MH i2c: E2 03 00 [00:42:51]MH_I2C_Read... [00:42:51]Read from MH i2c: E2 03 00 16 01 00 90 00 8B [00:42:51]RAPDU: 90 00 [00:42:51]wFMCommunicate OK [00:42:51]wFMCommunicate request_size=4 [00:42:51]MH_SAM_APDU [00:42:51]CAPDU: 80 0D 03 02 [00:42:51]Write to MH i2c: E2 08 00 17 01 80 0D 03 02 00 00 00 00 93 [00:42:51]Write i2c OK [00:42:51]MH_I2C_Read... [00:42:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:42:51]Read from MH i2c: E2 [00:42:51]MH_I2C_Read... [00:42:51]Read from MH i2c: E2 0B 00 [00:42:51]MH_I2C_Read... [00:42:51]Read from MH i2c: E2 0B 00 17 01 00 5E 45 63 60 E0 5D B7 06 90 00 F4 [00:42:51]RAPDU: 5E 45 63 60 E0 5D B7 06 90 00 [00:42:51]wFMCommunicate OK [00:42:51]SAM_PROTO_SignData done [00:42:51]FM_MakeSignedData done [00:42:51]CreateOFDProtocolMessage [00:42:51]wFMCommunicate request_size=4 [00:42:51]MH_SAM_APDU [00:42:51]CAPDU: 80 11 00 00 [00:42:51]Write to MH i2c: E2 08 00 18 01 80 11 00 00 00 00 00 00 93 [00:42:51]Write i2c OK [00:42:51]MH_I2C_Read... [00:42:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:42:51]Read from MH i2c: E2 [00:42:51]MH_I2C_Read... [00:42:51]Read from MH i2c: E2 17 00 [00:42:51]MH_I2C_Read... [00:42:51]Read from MH i2c: E2 17 00 18 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 E5 [00:42:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:42:51]wFMCommunicate OK [00:42:51]CreateOFDProtocolMessage done [00:42:51]OFDSenderStorePacket 82290 [00:42:51]StoreOFDPacket docnum=82290 [00:42:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 7B 05 00 00 A8 D0 73 05 51 31 5A 05 01 00 05 00 67 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 11 00 D0 A7 D0 BE D0 BF D0 BE D0 B5 D0 B2 20 D0 98 2E 20 F4 03 04 00 FB AE 11 67 0E 04 04 00 0D 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 5E 04 04 00 D7 00 00 00 57 04 04 00 D9 00 00 00 AA 04 DD 04 6E 04 04 00 D7 00 00 00 69 04 A3 00 6F 04 04 00 D4 00 00 00 B1 04 03 00 82 CF D1 70 04 03 00 E4 8E 91 72 04 03 00 9E 40 40 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 44 49 16 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6C DB 01 6A 04 A0 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 FC 0A 70 04 03 00 80 FC 0A 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BD 2A 01 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 18 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 72 41 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 35 04 06 00 76 34 7F 15 35 DC 5E 45 63 60 E0 5D B7 06 [00:42:52]CheckFolder [00:42:52]dirname=/storage/ofd_packets [00:42:52]CheckFolder done [00:42:52]ProducePacketName [00:42:52]name=ofd_packets/00082290 [00:42:52]NVStorageSaveData ofd_packets/00082290 [00:42:52]File name is /storage/ofd_packets/00082290 [00:42:52]Write 1433 bytes [00:42:52]NVStorageSaveData done [00:42:52]OFDSenderStorePacket done [00:42:52]KKMCreateOFDPacket done [00:42:52]NVStorageSaveData kkm_last_timestamp [00:42:52]File name is /storage/kkm_last_timestamp [00:42:52]Write 4 bytes [00:42:52]NVStorageSaveData done [00:42:52]ExternCall_PrintAddStr [00:42:52]wPrintStart [00:42:52]Write to MH i2c: 01 00 00 19 01 1A [00:42:52]Write i2c OK [00:42:52]MH_I2C_Read... [00:42:52]Read from MH i2c: 01 [00:42:52]MH_I2C_Read... [00:42:52]Read from MH i2c: 01 07 00 [00:42:52]MH_I2C_Read... [00:42:52]Read from MH i2c: 01 07 00 19 01 00 00 00 00 00 FF 0F 2F [00:42:52]RasterBufferAndPrint [00:42:52]line Отчет о закрытии смены [00:42:52]line ФФД: 1.0 [00:42:52]line ИНН: 02508201610067 [00:42:52]line Кассир: Чопоев И. [00:42:52]line 18.10.2024 00:42 [00:42:52]line Смена: 525 [00:42:52]line РНМ: 0000000000091680 [00:42:52]line ЗНМ: 0300000086 [00:42:52]line СНО: Общий режим [00:42:52]line Чеков за смену: 215 [00:42:52]line ФД за смену: 217 [00:42:52]line Всего чеков: 215 [00:42:52]line ИТОГИ ПРИХОД [00:42:52]line Чеков: 212 [00:42:52]line Общий итог: 137501.46 [00:42:52]line Итого наличными: 95393.00 [00:42:52]line Итого безнал.: 42108.46 [00:42:52]line НДС 0% : 0.00 [00:42:52]line НДС 12% : 14605.48 [00:42:52]line НСП 0% : 0.00 [00:42:52]line НСП 1,50% : 0.00 [00:42:52]line НСП 0,50% : 0.00 [00:42:52]line НСП 5% : 0.00 [00:42:52]line НСП 3% : 0.00 [00:42:52]line НСП 2% : 0.00 [00:42:52]line НСП 1% : 1217.08 [00:42:52]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:42:52]line Чеков: 3 [00:42:52]line Общий итог: 7200.00 [00:42:52]line Итого наличными: 7200.00 [00:42:52]OFD Sender: Processing packet 82290 [packets to send 254, broken 253] [00:42:52]line Итого безнал.: 0.00 [00:42:52]ProducePacketName [00:42:52]line НДС 0% : 0.00 [00:42:52]name=ofd_packets/00082290 [00:42:52]line НДС 12% : 764.77 [00:42:52]OFD Sender: To server: pG, [00:42:52]recv_with_timeout no data received [00:42:52]CommunicateWithHost lk.salyk.kg:30040 [00:42:52]ConnectInit lk.salyk.kg [00:42:52]line НСП 0% : 0.00 [00:42:52]line НСП 1,50% : 0.00 [00:42:52]line НСП 0,50% : 0.00 [00:42:52]line НСП 5% : 0.00 [00:42:52]line НСП 3% : 0.00 [00:42:52]line НСП 2% : 0.00 [00:42:52]line НСП 1% : 63.72 [00:42:52]line ИТОГИ РАСХОД [00:42:52]line Чеков: 0 [00:42:52]line Общий итог: 0.00 [00:42:52]line Итого наличными: 0.00 [00:42:52]line Итого безнал.: 0.00 [00:42:52]line НДС 0% : 0.00 [00:42:52]line НДС 12% : 0.00 [00:42:52]line НСП 0% : 0.00 [00:42:52]line НСП 1,50% : 0.00 [00:42:52]line НСП 0,50% : 0.00 [00:42:52]line НСП 5% : 0.00 [00:42:52]line НСП 3% : 0.00 [00:42:52]line НСП 2% : 0.00 [00:42:52]line НСП 1% : 0.00 [00:42:52]line ИТОГИ ВОЗВРАТ РАСХОДА [00:42:52]line Чеков: 0 [00:42:52]line Общий итог: 0.00 [00:42:52]line Итого наличными: 0.00 [00:42:52]line Итого безнал.: 0.00 [00:42:52]line НДС 0% : 0.00 [00:42:52]line НДС 12% : 0.00 [00:42:52]line НСП 0% : 0.00 [00:42:52]line НСП 1,50% : 0.00 [00:42:52]line НСП 0,50% : 0.00 [00:42:52]line НСП 5% : 0.00 [00:42:52]line НСП 3% : 0.00 [00:42:52]line НСП 2% : 0.00 [00:42:52]line НСП 1% : 0.00 [00:42:52]line Сумма внесений: 0.00 [00:42:52]line Сумма выплат: 0.00 [00:42:52]line Нал. в кассе: 88193.00 [00:42:52]line НС Приход: 63646209.55 [00:42:52]line НС Возвр.Прихода: 3197884.00 [00:42:52]line НС Расход: 0.00 [00:42:52]line НС Возвр.Расхода: 0.00 [00:42:52]line ФД: 82290 [00:42:52]line ФМ: 0000000000871843 [00:42:52]line ФПД: 129967842473436 [00:42:52]written 0, free lines is 4095 [00:42:53]Write to MH i2c: 01 00 00 69 01 6A [00:42:53]Write i2c OK [00:42:53]MH_I2C_Read... [00:42:53]Read from MH i2c: 01 [00:42:53]MH_I2C_Read... [00:42:53]Read from MH i2c: 01 07 00 [00:42:53]MH_I2C_Read... [00:42:53]Read from MH i2c: 01 07 00 69 01 00 00 00 00 00 72 0A ED [00:42:53]RasterBufferAndPrint [00:42:53]line [00:42:53]line [00:42:53]line [00:42:53]line [00:42:53]line [00:42:53]written 0, free lines is 2745 [00:42:53]MH_Cut [00:42:53]Write to MH i2c: D1 01 00 70 01 01 43 [00:42:53]Write i2c OK [00:42:53]MH_I2C_Read... [00:42:53]Read from MH i2c: D1 [00:42:53]MH_I2C_Read... [00:42:53]Read from MH i2c: D1 01 00 [00:42:53]MH_I2C_Read... [00:42:53]Read from MH i2c: D1 01 00 70 01 00 42 [00:42:53]Write to MH i2c: 01 00 00 71 01 72 [00:42:53]Write i2c OK [00:42:53]MH_I2C_Read... [00:42:54]*** Cut start [00:42:54]*** Partial cut [00:42:54]*** CUTSNS_PIN = 1 [00:42:54]*** CUTSNS_PIN = 0 [00:42:54]*** Brake cut motor [00:42:55]Connected sock=10 [00:42:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 7B 05 00 00 A8 D0 73 05 51 31 5A 05 01 00 05 00 67 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 11 00 D0 A7 D0 BE D0 BF D0 BE D0 B5 D0 B2 20 D0 98 2E 20 F4 03 04 00 FB AE 11 67 0E 04 04 00 0D 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 *** Stop cut motor [00:42:55]30 *** Cut end [00:42:55]39 31 36 38 30 5E 04 04 00 D7 00 00 00 57 04 04 00 D9 00 00 00 AA 04 DD 04 6E 04 04 00 D7 00 00 00 69 04 A3 00 6F 04 04 00 D4 00 00 00 B1 04 03 00 82 CF D1 70 04 03 00 E4 8E 91 72 04 03 00 9E 40 40 Read from MH i2c: 00 01 04 [00:42:55]82 MH_I2C_Read... [00:42:55]00 EE 03 0A 00 F2 03 01 Read from MH i2c: 00 01 00 07 F3 00 03 [00:42:55]01 MH_I2C_Read... [00:42:55]00 00 EE 03 0C 00 F2 03 01 00 01 F3 Read from MH i2c: 03 01 03 07 00 00 44 71 49 01 16 00 EF 00 03 0A 00 F6 03 01 00 00 00 F7 00 03 00 01 FF 00 00 EF 03 0A 00 F6 03 01 0F 00 87 06 [00:42:55]F7 process_action close_shift done [00:42:55]03 requested_data is exist [00:42:55]01 produce_requested_data [00:42:55]00 requested_item fd.num is exist - process it [00:42:55]00 SAM_PROTO_GetFieldsCounters [00:42:55]EF wFMCommunicate request_size=4 [00:42:55]03 MH_SAM_APDU [00:42:55]0A CAPDU: 00 F6 03 01 00 05 F7 03 01 80 00 13 00 00 EF 00 03 0A 00 F6 03 01 00 04 F7 [00:42:55]03 Write to MH i2c: 01 E2 00 08 00 00 EF 72 03 01 0A 80 13 00 00 00 00 00 00 EF [00:42:55]00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6C DB 01 6A 04 A0 00 Write i2c OK [00:42:55]6F MH_I2C_Read... [00:42:55]04 04 00 03 00 00 00 B1 04 03 00 80 FC 0A 70 04 03 00 80 FC 0A 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BD 2A 01 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 Read from MH i2c: 0A E2 00 [00:42:55]F6 MH_I2C_Read... [00:42:55]03 01 00 06 F7 03 01 00 00 Read from MH i2c: EF E2 03 62 0A 00 00 F6 03 01 00 05 F7 03 01 [00:42:56]00 MH_I2C_Read... [00:42:56]00 Read from MH i2c: EF E2 03 0A 00 F6 62 03 00 01 00 04 F7 03 72 01 01 00 00 EF 03 0A 00 00 5D *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:42:56]00 F6 B9 03 04 01 01 00 00 03 01 F7 11 03 01 00 00 EF 03 0A 00 F6 04 03 10 01 00 00 30 02 F7 03 01 00 00 EF 03 30 0B 30 00 30 F6 30 03 01 00 01 F7 03 02 00 E4 30 18 30 6B 30 30 04 99 00 6F 04 04 00 00 00 30 00 38 00 37 B1 31 04 01 00 00 70 04 01 00 38 00 34 72 33 04 0D 01 00 00 00 04 7E 00 EE 03 04 0A 10 00 00 F2 30 03 30 01 30 00 30 00 30 F3 30 03 30 01 30 00 00 EE 03 0A 00 F2 03 01 30 00 30 01 30 F3 39 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 31 EF 36 03 38 0A 30 00 10 F6 04 03 04 01 00 72 41 01 00 0E 04 04 00 00 0D 05 02 F7 00 03 00 01 12 00 04 00 04 EF 00 03 D7 0A 00 00 00 F6 00 03 5E 01 04 00 04 00 D7 00 00 00 57 04 04 04 00 F7 D9 03 00 01 00 00 19 04 04 00 00 00 00 00 00 00 EF 90 03 00 57 [00:42:56]RAPDU: 5D 00 B9 04 0A 01 00 00 F6 01 03 11 04 10 00 30 30 30 30 01 30 00 30 03 30 F7 30 30 30 38 37 31 38 34 33 03 0D 01 04 00 10 00 00 EF 30 03 30 0A 30 00 F6 03 01 00 02 30 F7 30 03 30 01 30 00 30 00 30 EF 30 03 30 0A 39 00 31 F6 36 03 38 01 30 10 04 04 00 72 41 01 00 00 0E 01 04 F7 04 03 00 01 0D 00 02 00 00 6C 00 04 12 99 04 00 04 6F 00 04 D7 04 00 00 00 00 00 00 00 5E 00 04 B1 04 04 00 01 D7 00 00 00 00 70 00 04 57 01 04 00 00 72 04 01 00 00 00 04 04 7E 00 00 D9 EE 00 03 00 0A 00 00 19 F2 04 03 04 01 00 00 00 00 F3 03 01 00 00 EE 03 0A 00 00 00 F2 00 03 90 01 00 00 01 [00:42:56]F3 wFMCommunicate OK [00:42:56]03 SAM_PROTO_GetFieldsCounters done [00:42:56]requested_item shift.num is exist - process it [00:42:56]requested_item shift.opened is exist - process it [00:42:56]req_shift_opened [00:42:56]FM_GetShiftState [00:42:56]SAM_PROTO_GetShiftState [00:42:56]wFMCommunicate request_size=4 [00:42:56]MH_SAM_APDU [00:42:57]CAPDU: 80 13 01 00 [00:42:57]Write to MH i2c: E2 08 00 73 01 80 13 01 01 00 00 00 00 EF 03 0A 00 F6 03 01 00 00 00 00 F7 00 03 F1 01 00 00 EF 03 0A 00 F6 [00:42:57]03 Write i2c OK [00:42:57]01 MH_I2C_Read... [00:42:57]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 Read from MH i2c: 00 79 04 8D 00 6F 04 E2 04 [00:42:57]00 MH_I2C_Read... [00:42:57]00 00 00 00 B1 Read from MH i2c: 04 E2 00 0E 00 00 70 [00:42:57]04 MH_I2C_Read... [00:42:57]00 Read from MH i2c: 00 E2 72 0E 04 00 00 00 00 04 73 75 01 00 EE 03 09 00 00 F2 09 03 01 00 00 F3 00 03 00 00 00 EE 03 09 00 00 00 *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:42:57]00 00 00 F2 00 03 00 00 90 00 FC 01 [00:42:57]00 RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:42:57]wFMCommunicate OK [00:42:57]SAM_PROTO_GetShiftState done [00:42:57]FM_GetShiftState done [00:42:57]req_shift_opened done [00:42:57]requested_item shift.open_date is exist - process it [00:42:57]req_shift_open_date [00:42:57]FM_GetShiftState [00:42:57]SAM_PROTO_GetShiftState [00:42:57]wFMCommunicate request_size=4 [00:42:57]MH_SAM_APDU [00:42:57]CAPDU: 80 13 01 01 00 [00:42:57]Write to MH i2c: E2 08 00 74 F3 03 00 00 EF 03 09 01 80 13 01 00 00 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 00 F2 [00:42:57]Write i2c OK [00:42:57]MH_I2C_Read... [00:42:57]03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:42:57]00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 Read from MH i2c: 00 E2 F2 [00:42:58]03 MH_I2C_Read... [00:42:58]01 00 01 F3 Read from MH i2c: 03 E2 00 0E 00 00 EF 03 09 00 F6 03 01 00 00 [00:42:58]F7 MH_I2C_Read... [00:42:58]03 00 00 EF 03 09 00 F6 03 01 00 01 Read from MH i2c: F7 E2 03 0E 00 00 00 74 EF 01 03 00 09 09 00 F6 03 01 00 02 F7 03 00 00 00 00 00 EF 00 03 09 00 F6 03 01 00 03 F7 00 03 00 00 00 00 00 EF 03 09 00 F6 03 01 00 00 04 00 F7 90 03 00 00 00 EF 03 09 00 F6 03 01 FD 00 [00:42:58]05 RAPDU: F7 09 03 00 00 EF 03 09 00 F6 03 00 01 00 00 00 06 00 F7 00 03 00 00 00 00 00 00 00 90 00 [00:42:58]wFMCommunicate OK [00:42:58]SAM_PROTO_GetShiftState done [00:42:58]FM_GetShiftState done [00:42:58]7A req_shift_open_date done [00:42:58]04 produce_requested_data done [00:42:58]8D produce_requested_data return {"fd.num":82290,"shift.num":525,"shift.opened":0,"shift.open_date":0} [00:42:58]00 6F 04 04 00 00 00 00 00 process_action_free close_shift [00:42:58]B1 json_value_free [00:42:58]04 json_value_free done [00:42:58]00 process_json_proto returns [00:42:58]00 Send response to host [00:42:58]70 {"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":82290,"shift.num":525,"shift.opened":0,"shift.open_date":0}}} [00:42:58]04 free response buf [00:42:58]00 execute_script done [00:42:58]00 execute_script returns [00:42:58]free content buf [00:42:58]Sock 9.Close socket [00:42:58]Sock 9.Thread stoped [00:42:58]72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 72 41 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 35 04 06 00 76 34 7F 15 35 DC 5E 45 63 60 E0 5D B7 06 [00:43:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 F0 49 47 00 65 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 72 41 01 00 F4 03 04 00 4F 54 11 67 B6 04 01 00 00 AE E0 8E 92 2D E3 35 C2 [00:43:01]CommunicateWithHost err = 0 [00:43:01]CheckOFDResponse [00:43:01]1017 (14) - 77093643461234 [00:43:01]1041 (16) - 0000000000871843 [00:43:01]1040 (4) - 82290 [00:43:01]1012 (4) - 17.10.2024 18:15 [00:43:01]1206 (1) - 0 [00:43:01]OFD Sender: Remove packet 82290 [00:43:01]ProducePacketName [00:43:01]name=ofd_packets/00082290 [00:43:01]NVStorageDeleteData [00:43:01]OFD Sender: No OFD packet to send [00:43:06]OFD Sender: No OFD packet to send [00:43:11]OFD Sender: No OFD packet to send [00:43:14]recv_with_timeout no data received [00:43:16]OFD Sender: No OFD packet to send [00:43:21]OFD Sender: No OFD packet to send [00:43:25]recv_with_timeout no data received [00:43:26]OFD Sender: No OFD packet to send [00:43:31]OFD Sender: No OFD packet to send [00:43:36]OFD Sender: No OFD packet to send [00:43:41]OFD Sender: No OFD packet to send [00:43:46]recv_with_timeout no data received [00:43:46]OFD Sender: No OFD packet to send [00:43:51]OFD Sender: No OFD packet to send [00:43:56]OFD Sender: No OFD packet to send [00:43:58]recv_with_timeout no data received [00:44:01]OFD Sender: No OFD packet to send [00:44:06]OFD Sender: No OFD packet to send [00:44:08]recv_with_timeout no data received [00:44:11]OFD Sender: No OFD packet to send [00:44:16]OFD Sender: No OFD packet to send [00:44:19]recv_with_timeout no data received [00:44:21]OFD Sender: No OFD packet to send [00:44:26]OFD Sender: No OFD packet to send [00:44:31]OFD Sender: No OFD packet to send [00:44:36]OFD Sender: No OFD packet to send [00:44:36]recv_with_timeout no data received [00:44:41]OFD Sender: No OFD packet to send [00:44:46]OFD Sender: No OFD packet to send [00:44:49]recv_with_timeout no data received [00:44:51]OFD Sender: No OFD packet to send [00:44:56]OFD Sender: No OFD packet to send [00:45:01]OFD Sender: No OFD packet to send [00:45:06]OFD Sender: No OFD packet to send [00:45:09]recv_with_timeout no data received [00:45:11]accept exits with 8 [00:45:11]New connection [00:45:11]New thread 3067297124 created [00:45:11]Thread 3067440484 joined [00:45:11]Waiting for new connection... [00:45:11] Sock 8.Parse request [00:45:11]Sock 8.Check first char [00:45:11]Sock 8.First char is OK [00:45:11]request: POST /json_proto HTTP/1.0 [00:45:11]Method: POST [00:45:11]URL: /json_proto [00:45:11]Method is POST - this is cgi request [00:45:11]url: /json_proto [00:45:11]query_string will be loaded in cgi processing [00:45:11]execute_cgi json_proto POST (null) [00:45:11]execute_cgi path=json_proto method=POST [00:45:11]POST find Content-Length [00:45:11]Host: 172.17.44.67:8080 [00:45:11]Content-Length: 215 [00:45:11]Content-Type: application/json [00:45:11] [00:45:11]POST finish read [00:45:11]Found Content-Length = 215 [00:45:11]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:45:11]execute_script... [00:45:11]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:45:11]POST & json_proto [00:45:11]process_json_proto [00:45:11]json parsed OK: [00:45:11]protocol is kg_v1.0 [00:45:11]action value=get_value [00:45:11]process_action get_value [00:45:11]cmd_get_value [00:45:11]process_action get_value done [00:45:11]requested_data is exist [00:45:11]produce_requested_data [00:45:11]requested_item kkm.sn is exist - process it [00:45:11]requested_item kkm.ver is exist - process it [00:45:11]requested_item fm.sn is exist - process it [00:45:11]wFMCommunicate request_size=4 [00:45:11]MH_SAM_APDU [00:45:11]CAPDU: 80 11 00 00 [00:45:11]Write to MH i2c: E2 08 00 75 01 80 11 00 00 00 00 00 00 F0 [00:45:11]Write i2c OK [00:45:11]MH_I2C_Read... [00:45:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:11]Read from MH i2c: E2 [00:45:11]MH_I2C_Read... [00:45:11]Read from MH i2c: E2 17 00 [00:45:11]MH_I2C_Read... [00:45:11]Read from MH i2c: E2 17 00 75 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 42 [00:45:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:45:11]wFMCommunicate OK [00:45:11]requested_item fd.num is exist - process it [00:45:11]SAM_PROTO_GetFieldsCounters [00:45:11]wFMCommunicate request_size=4 [00:45:11]MH_SAM_APDU [00:45:11]CAPDU: 80 13 00 00 [00:45:11]Write to MH i2c: E2 08 00 76 01 80 13 00 00 00 00 00 00 F3 [00:45:11]Write i2c OK [00:45:11]MH_I2C_Read... [00:45:11]OFD Sender: No OFD packet to send [00:45:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:45:11]Read from MH i2c: E2 [00:45:11]MH_I2C_Read... [00:45:11]Read from MH i2c: E2 62 00 [00:45:11]MH_I2C_Read... [00:45:11]Read from MH i2c: E2 62 00 76 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 72 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [00:45:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 72 41 01 00 0E 04 04 00 0D 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:45:11]wFMCommunicate OK [00:45:11]SAM_PROTO_GetFieldsCounters done [00:45:11]requested_item shift.num is exist - process it [00:45:11]requested_item shift.opened is exist - process it [00:45:11]req_shift_opened [00:45:11]FM_GetShiftState [00:45:11]SAM_PROTO_GetShiftState [00:45:11]wFMCommunicate request_size=4 [00:45:11]MH_SAM_APDU [00:45:11]CAPDU: 80 13 01 00 [00:45:11]Write to MH i2c: E2 08 00 77 01 80 13 01 00 00 00 00 00 F5 [00:45:11]Write i2c OK [00:45:11]MH_I2C_Read... [00:45:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:12]Read from MH i2c: E2 [00:45:12]MH_I2C_Read... [00:45:12]Read from MH i2c: E2 0E 00 [00:45:12]MH_I2C_Read... [00:45:12]Read from MH i2c: E2 0E 00 77 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 00 [00:45:12]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:45:12]wFMCommunicate OK [00:45:12]SAM_PROTO_GetShiftState done [00:45:12]FM_GetShiftState done [00:45:12]req_shift_opened done [00:45:12]requested_item shift.open_date is exist - process it [00:45:12]req_shift_open_date [00:45:12]FM_GetShiftState [00:45:12]SAM_PROTO_GetShiftState [00:45:12]wFMCommunicate request_size=4 [00:45:12]MH_SAM_APDU [00:45:12]CAPDU: 80 13 01 00 [00:45:12]Write to MH i2c: E2 08 00 78 01 80 13 01 00 00 00 00 00 F6 [00:45:12]Write i2c OK [00:45:12]MH_I2C_Read... [00:45:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:12]Read from MH i2c: E2 [00:45:12]MH_I2C_Read... [00:45:12]Read from MH i2c: E2 0E 00 [00:45:12]MH_I2C_Read... [00:45:12]Read from MH i2c: E2 0E 00 78 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 01 [00:45:12]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:45:12]wFMCommunicate OK [00:45:12]SAM_PROTO_GetShiftState done [00:45:12]FM_GetShiftState done [00:45:12]req_shift_open_date done [00:45:12]produce_requested_data done [00:45:12]produce_requested_data return {"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82290,"shift.num":525,"shift.opened":0,"shift.open_date":0} [00:45:12]process_action_free get_value [00:45:12]json_value_free [00:45:12]json_value_free done [00:45:12]process_json_proto returns [00:45:12]Send response to host [00:45:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82290,"shift.num":525,"shift.opened":0,"shift.open_date":0}}} [00:45:12]free response buf [00:45:12]execute_script done [00:45:12]execute_script returns [00:45:12]free content buf [00:45:12]Sock 8.Close socket [00:45:12]Sock 8.Thread stoped [00:45:12]accept exits with 9 [00:45:12]New connection [00:45:12]New thread 3067440484 created [00:45:12]Thread 3067297124 joined [00:45:12]Waiting for new connection... [00:45:12] Sock 9.Parse request [00:45:12]Sock 9.Check first char [00:45:12]Sock 9.First char is OK [00:45:12]request: POST /json_proto HTTP/1.0 [00:45:12]Method: POST [00:45:12]URL: /json_proto [00:45:12]Method is POST - this is cgi request [00:45:12]url: /json_proto [00:45:12]query_string will be loaded in cgi processing [00:45:12]execute_cgi json_proto POST (null) [00:45:12]execute_cgi path=json_proto method=POST [00:45:12]POST find Content-Length [00:45:12]Host: 172.17.44.67:8080 [00:45:12]Content-Length: 331 [00:45:12]Content-Type: application/json [00:45:12] [00:45:12]POST finish read [00:45:12]Found Content-Length = 331 [00:45:12]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:45:12]execute_script... [00:45:12]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:45:12]POST & json_proto [00:45:12]process_json_proto [00:45:12]json parsed OK: [00:45:12]protocol is kg_v1.0 [00:45:12]action value=get_value [00:45:12]process_action get_value [00:45:12]cmd_get_value [00:45:12]process_action get_value done [00:45:12]requested_data is exist [00:45:12]produce_requested_data [00:45:12]requested_item fm.sale.total is exist - process it [00:45:12]SAM_PROTO_GetFMData [00:45:12]wFMCommunicate request_size=4 [00:45:12]MH_SAM_APDU [00:45:12]CAPDU: 80 13 03 00 [00:45:12]Write to MH i2c: E2 08 00 79 01 80 13 03 00 00 00 00 00 F9 [00:45:12]Write i2c OK [00:45:12]MH_I2C_Read... [00:45:12]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:45:12]Read from MH i2c: E2 [00:45:12]MH_I2C_Read... [00:45:12]Read from MH i2c: E2 FD 00 [00:45:12]MH_I2C_Read... [00:45:12]Read from MH i2c: E2 FD 00 79 01 00 C7 04 85 04 C3 04 6E 04 04 00 57 3D 01 00 69 04 A3 00 6F 04 04 00 BF 3A 01 00 B1 04 05 00 9B 68 5C 7B 01 70 04 05 00 20 5E 26 41 01 72 04 04 00 7B 0A 36 3A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EC BE 4C 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 46 A7 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 98 02 00 00 B1 04 04 00 70 95 0F 13 70 04 04 00 08 53 0F 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AD 37 06 02 EF 90 00 9B [00:45:12]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 57 3D 01 00 69 04 A3 00 6F 04 04 00 BF 3A 01 00 B1 04 05 00 9B 68 5C 7B 01 70 04 05 00 20 5E 26 41 01 72 04 04 00 7B 0A 36 3A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EC BE 4C 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 46 A7 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 98 02 00 00 B1 04 04 00 70 95 0F 13 70 04 04 00 08 53 0F 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AD 37 06 02 EF 90 00 [00:45:12]wFMCommunicate OK [00:45:12]wFMCommunicate request_size=4 [00:45:12]MH_SAM_APDU [00:45:12]CAPDU: 80 17 00 00 [00:45:12]Write to MH i2c: E2 08 00 7A 01 80 17 00 00 00 00 00 00 FB [00:45:12]Write i2c OK [00:45:12]MH_I2C_Read... [00:45:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:45:13]Read from MH i2c: E2 [00:45:13]MH_I2C_Read... [00:45:13]Read from MH i2c: E2 FD 00 [00:45:13]MH_I2C_Read... [00:45:13]Read from MH i2c: E2 FD 00 7A 01 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0A 2F 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 90 00 6C [00:45:13]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0A 2F 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 90 00 [00:45:13]wFMCommunicate OK [00:45:13]wFMCommunicate request_size=4 [00:45:13]MH_SAM_APDU [00:45:13]CAPDU: 80 17 00 00 [00:45:13]Write to MH i2c: E2 08 00 7B 01 80 17 00 00 00 00 00 00 FC [00:45:13]Write i2c OK [00:45:13]MH_I2C_Read... [00:45:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:45:13]Read from MH i2c: E2 [00:45:13]MH_I2C_Read... [00:45:13]Read from MH i2c: E2 FD 00 [00:45:13]MH_I2C_Read... [00:45:13]Read from MH i2c: E2 FD 00 7B 01 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 D4 [00:45:13]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [00:45:14]wFMCommunicate OK [00:45:14]wFMCommunicate request_size=4 [00:45:14]MH_SAM_APDU [00:45:14]CAPDU: 80 17 00 00 [00:45:14]Write to MH i2c: E2 08 00 7C 01 80 17 00 00 00 00 00 00 FD [00:45:14]Write i2c OK [00:45:14]MH_I2C_Read... [00:45:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:45:14]Read from MH i2c: E2 [00:45:14]MH_I2C_Read... [00:45:14]Read from MH i2c: E2 FD 00 [00:45:14]MH_I2C_Read... [00:45:14]Read from MH i2c: E2 FD 00 7C 01 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 78 [00:45:14]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:45:14]wFMCommunicate OK [00:45:14]wFMCommunicate request_size=4 [00:45:14]MH_SAM_APDU [00:45:14]CAPDU: 80 17 00 00 [00:45:14]Write to MH i2c: E2 08 00 7D 01 80 17 00 00 00 00 00 00 FE [00:45:14]Write i2c OK [00:45:14]MH_I2C_Read... [00:45:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:45:15]Read from MH i2c: E2 [00:45:15]MH_I2C_Read... [00:45:15]Read from MH i2c: E2 E4 00 [00:45:15]MH_I2C_Read... [00:45:15]Read from MH i2c: E2 E4 00 7D 01 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DE [00:45:15]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:45:15]wFMCommunicate OK [00:45:15]SAM_PROTO_GetFMData done [00:45:15]requested_item fm.sale_refund.total is exist - process it [00:45:15]requested_item fm.buy.total is exist - process it [00:45:15]requested_item shift.sale.total is exist - process it [00:45:15]SAM_PROTO_GetShiftData [00:45:15]wFMCommunicate request_size=4 [00:45:15]MH_SAM_APDU [00:45:15]CAPDU: 80 13 02 00 [00:45:15]Write to MH i2c: E2 08 00 7E 01 80 13 02 00 00 00 00 00 FD [00:45:15]Write i2c OK [00:45:15]MH_I2C_Read... [00:45:15]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:45:15]Read from MH i2c: E2 [00:45:15]MH_I2C_Read... [00:45:15]Read from MH i2c: E2 FD 00 [00:45:15]MH_I2C_Read... [00:45:15]Read from MH i2c: E2 FD 00 7E 01 00 BA 04 AA 04 B6 04 6E 04 04 00 D7 00 00 00 69 04 9C 00 6F 04 04 00 D4 00 00 00 B1 04 03 00 82 CF D1 70 04 03 00 E4 8E 91 72 04 03 00 9E 40 40 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 44 49 16 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 6C DB 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 FC 0A 70 04 03 00 80 FC 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BD 2A 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 D9 [00:45:15]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 D7 00 00 00 69 04 9C 00 6F 04 04 00 D4 00 00 00 B1 04 03 00 82 CF D1 70 04 03 00 E4 8E 91 72 04 03 00 9E 40 40 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 44 49 16 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 6C DB 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 FC 0A 70 04 03 00 80 FC 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BD 2A 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:45:16]wFMCommunicate OK [00:45:16]wFMCommunicate request_size=4 [00:45:16]MH_SAM_APDU [00:45:16]CAPDU: 80 17 00 00 [00:45:16]Write to MH i2c: E2 08 00 7F 01 80 17 00 00 00 00 00 00 00 [00:45:16]Write i2c OK [00:45:16]MH_I2C_Read... [00:45:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:45:16]Read from MH i2c: E2 [00:45:16]MH_I2C_Read... [00:45:16]Read from MH i2c: E2 FD 00 [00:45:16]MH_I2C_Read... [00:45:16]Read from MH i2c: E2 FD 00 7F 01 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 A6 [00:45:16]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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:45:16]wFMCommunicate OK [00:45:16]wFMCommunicate request_size=4 [00:45:16]MH_SAM_APDU [00:45:16]CAPDU: 80 17 00 00 [00:45:16]Write to MH i2c: E2 08 00 80 01 80 17 00 00 00 00 00 00 01 [00:45:16]Write i2c OK [00:45:16]MH_I2C_Read... [00:45:16]OFD Sender: No OFD packet to send [00:45:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:45:16]Read from MH i2c: E2 [00:45:16]MH_I2C_Read... [00:45:16]Read from MH i2c: E2 FD 00 [00:45:16]MH_I2C_Read... [00:45:16]Read from MH i2c: E2 FD 00 80 01 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 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 2D [00:45:17]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:45:17]wFMCommunicate OK [00:45:17]wFMCommunicate request_size=4 [00:45:17]MH_SAM_APDU [00:45:17]CAPDU: 80 17 00 00 [00:45:17]Write to MH i2c: E2 08 00 81 01 80 17 00 00 00 00 00 00 02 [00:45:17]Write i2c OK [00:45:17]MH_I2C_Read... [00:45:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:45:17]Read from MH i2c: E2 [00:45:17]MH_I2C_Read... [00:45:17]Read from MH i2c: E2 FD 00 [00:45:17]MH_I2C_Read... [00:45:17]Read from MH i2c: E2 FD 00 81 01 00 00 EF 03 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 7A [00:45:17]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:45:17]wFMCommunicate OK [00:45:17]wFMCommunicate request_size=4 [00:45:17]MH_SAM_APDU [00:45:17]CAPDU: 80 17 00 00 [00:45:17]Write to MH i2c: E2 08 00 82 01 80 17 00 00 00 00 00 00 03 [00:45:17]Write i2c OK [00:45:17]MH_I2C_Read... [00:45:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:45:18]Read from MH i2c: E2 [00:45:18]MH_I2C_Read... [00:45:18]Read from MH i2c: E2 D7 00 [00:45:18]MH_I2C_Read... [00:45:18]Read from MH i2c: E2 D7 00 82 01 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 E6 [00:45: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:45:18]wFMCommunicate OK [00:45:18]SAM_PROTO_GetShiftData done [00:45:18]requested_item shift.sale.total_cash is exist - process it [00:45:18]requested_item shift.sale_refund.total is exist - process it [00:45:18]requested_item shift.sale_refund.total_cash is exist - process it [00:45:18]requested_item shift.buy.total is exist - process it [00:45:18]requested_item shift.buy.total_cash is exist - process it [00:45:18]produce_requested_data done [00:45:18]produce_requested_data return {"fm.sale.total":63646209.55,"fm.sale_refund.total":3197884.00,"fm.buy.total":0.00,"shift.sale.total":137501.46,"shift.sale.total_cash":95393.00,"shift.sale_refund.total":7200.00,"shift.sale_refund.total_cash":7200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:45:18]process_action_free get_value [00:45:18]json_value_free [00:45:18]json_value_free done [00:45:18]process_json_proto returns [00:45:18]Send response to host [00:45:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":63646209.55,"fm.sale_refund.total":3197884.00,"fm.buy.total":0.00,"shift.sale.total":137501.46,"shift.sale.total_cash":95393.00,"shift.sale_refund.total":7200.00,"shift.sale_refund.total_cash":7200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:45:18]free response buf [00:45:18]execute_script done [00:45:18]execute_script returns [00:45:18]free content buf [00:45:18]Sock 9.Close socket [00:45:18]Sock 9.Thread stoped [00:45:18]accept exits with 8 [00:45:18]New connection [00:45:18]New thread 3067297124 created [00:45:18]Thread 3067440484 joined [00:45:18]Waiting for new connection... [00:45:18] Sock 8.Parse request [00:45:18]Sock 8.Check first char [00:45:18]Sock 8.First char is OK [00:45:18]request: POST /json_proto HTTP/1.0 [00:45:18]Method: POST [00:45:18]URL: /json_proto [00:45:18]Method is POST - this is cgi request [00:45:18]url: /json_proto [00:45:18]query_string will be loaded in cgi processing [00:45:18]execute_cgi json_proto POST (null) [00:45:18]execute_cgi path=json_proto method=POST [00:45:18]POST find Content-Length [00:45:18]Host: 172.17.44.67:8080 [00:45:18]Content-Length: 265 [00:45:18]Content-Type: application/json [00:45:18] [00:45:18]POST finish read [00:45:18]Found Content-Length = 265 [00:45:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041C\u0430\u043C\u0430\u0436\u0430\u043D\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:45:18]execute_script... [00:45:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041C\u0430\u043C\u0430\u0436\u0430\u043D\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:45:18]POST & json_proto [00:45:18]process_json_proto [00:45:18]json parsed OK: [00:45:18]protocol is kg_v1.0 [00:45:18]action value=open_shift [00:45:18]process_action open_shift [00:45:18]cmd_open_shift [00:45:18]MH_GetDate [00:45:18]Write to MH i2c: F0 00 00 83 01 73 [00:45:18]Write i2c OK [00:45:18]MH_I2C_Read... [00:45:18]Read from MH i2c: F0 [00:45:18]MH_I2C_Read... [00:45:18]Read from MH i2c: F0 09 00 [00:45:18]MH_I2C_Read... [00:45:18]Read from MH i2c: F0 09 00 83 01 00 9F AF 11 67 F1 C7 6B 64 C9 [00:45:18]GetLastDocTimeStamp 1729212155 [00:45:18]current date 1729212319 [00:45:18]FM_GetShiftState [00:45:18]SAM_PROTO_GetShiftState [00:45:18]wFMCommunicate request_size=4 [00:45:18]MH_SAM_APDU [00:45:18]CAPDU: 80 13 01 00 [00:45:18]Write to MH i2c: E2 08 00 84 01 80 13 01 00 00 00 00 00 02 [00:45:18]Write i2c OK [00:45:18]MH_I2C_Read... [00:45:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:18]Read from MH i2c: E2 [00:45:18]MH_I2C_Read... [00:45:18]Read from MH i2c: E2 0E 00 [00:45:18]MH_I2C_Read... [00:45:18]Read from MH i2c: E2 0E 00 84 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 0D [00:45:18]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:45:18]wFMCommunicate OK [00:45:18]SAM_PROTO_GetShiftState done [00:45:18]FM_GetShiftState done [00:45:18]KKMCreateOpenShiftDocument [00:45:18]Load OK [00:45:18]Malloc new data [00:45:18]MH_GetDate [00:45:18]Write to MH i2c: F0 00 00 85 01 75 [00:45:18]Write i2c OK [00:45:18]MH_I2C_Read... [00:45:18]Read from MH i2c: F0 [00:45:18]MH_I2C_Read... [00:45:18]Read from MH i2c: F0 09 00 [00:45:18]MH_I2C_Read... [00:45:18]Read from MH i2c: F0 09 00 85 01 00 9F AF 11 67 F1 C7 6B 64 CB [00:45:18]Malloc new data [00:45:18]KKMCreateOpenShiftDocument OK [00:45:18]KKMSetOpenShiftData OK [00:45:18]ProcessDocumentItem done err = 0, tmpTLVsize=219 [00:45:18]tlvbuf is 00CAD150 [00:45:18]KKMLoadAndSignOpenShiftData [00:45:18]SAM_PROTO_ProcessDocument [00:45:18]wFMCommunicate request_size=9 [00:45:18]MH_SAM_APDU [00:45:18]CAPDU: 80 15 01 00 04 02 00 DB 00 [00:45:18]Write to MH i2c: E2 0C 00 86 01 80 15 01 00 04 00 02 00 DB 00 00 00 EB [00:45:18]Write i2c OK [00:45:18]MH_I2C_Read... [00:45:18]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:45:18]Read from MH i2c: E2 [00:45:18]MH_I2C_Read... [00:45:18]Read from MH i2c: E2 03 00 [00:45:18]MH_I2C_Read... [00:45:18]Read from MH i2c: E2 03 00 86 01 00 90 00 FB [00:45:18]RAPDU: 90 00 [00:45:18]wFMCommunicate OK [00:45:18]wFMCommunicate request_size=23 [00:45:18]MH_SAM_APDU [00:45:18]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:45:18]Write to MH i2c: E2 1A 00 87 01 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 FD [00:45:18]Write i2c OK [00:45:18]MH_I2C_Read... [00:45:19]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:45:19]Read from MH i2c: E2 [00:45:19]MH_I2C_Read... [00:45:19]Read from MH i2c: E2 03 00 [00:45:19]MH_I2C_Read... [00:45:19]Read from MH i2c: E2 03 00 87 01 00 90 00 FC [00:45:19]RAPDU: 90 00 [00:45:19]wFMCommunicate OK [00:45:19]wFMCommunicate request_size=32 [00:45:19]MH_SAM_APDU [00:45:19]CAPDU: 80 15 02 00 1B FD 03 17 00 D0 9C D0 B0 D0 BC D0 B0 D0 B6 D0 B0 D0 BD D0 BE D0 B2 20 D0 90 2E 20 [00:45:19]Write to MH i2c: E2 23 00 88 01 80 15 02 00 1B 00 FD 03 17 00 D0 9C D0 B0 D0 BC D0 B0 D0 B6 D0 B0 D0 BD D0 BE D0 B2 20 D0 90 2E 20 00 00 BF [00:45:19]Write i2c OK [00:45:19]MH_I2C_Read... [00:45:19]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:45:19]Read from MH i2c: E2 [00:45:19]MH_I2C_Read... [00:45:19]Read from MH i2c: E2 03 00 [00:45:19]MH_I2C_Read... [00:45:19]Read from MH i2c: E2 03 00 88 01 00 90 00 FD [00:45:19]RAPDU: 90 00 [00:45:19]wFMCommunicate OK [00:45:19]wFMCommunicate request_size=105 [00:45:19]MH_SAM_APDU [00:45:19]CAPDU: 80 15 02 00 64 F1 03 60 00 37 32 30 30 30 31 2C 20 63 2E 20 D0 9B D0 B0 D0 B2 D0 B4 D0 B0 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 9A D1 83 D1 80 D0 BC D0 B0 D0 BD D0 B1 D0 B5 D0 BA 20 D0 91 D0 B0 D0 B0 D1 82 D1 8B D1 80 20 34 38 2C 20 34 30 2E 39 32 32 33 31 34 2C 20 37 32 2E 39 36 31 36 39 39 [00:45:19]Write to MH i2c: E2 6C 00 89 01 80 15 02 00 64 00 F1 03 60 00 37 32 30 30 30 31 2C 20 63 2E 20 D0 9B D0 B0 D0 B2 D0 B4 D0 B0 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 9A D1 83 D1 80 D0 BC D0 B0 D0 BD D0 B1 D0 B5 D0 BA 20 D0 91 D0 B0 D0 B0 D1 82 D1 8B D1 80 20 34 38 2C 20 34 30 2E 39 32 32 33 31 34 2C 20 37 32 2E 39 36 31 36 39 39 00 00 22 [00:45:19]Write i2c OK [00:45:19]MH_I2C_Read... [00:45:19]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:45:19]Read from MH i2c: E2 [00:45:19]MH_I2C_Read... [00:45:19]Read from MH i2c: E2 03 00 [00:45:19]MH_I2C_Read... [00:45:19]Read from MH i2c: E2 03 00 89 01 00 90 00 FE [00:45:19]RAPDU: 90 00 [00:45:19]wFMCommunicate OK [00:45:19]wFMCommunicate request_size=51 [00:45:19]MH_SAM_APDU [00:45:19]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 34 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:45:19]Write to MH i2c: E2 36 00 8A 01 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 34 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 B3 [00:45:19]Write i2c OK [00:45:19]MH_I2C_Read... [00:45:19]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:45:19]Read from MH i2c: E2 [00:45:19]MH_I2C_Read... [00:45:19]Read from MH i2c: E2 03 00 [00:45:19]MH_I2C_Read... [00:45:19]Read from MH i2c: E2 03 00 8A 01 00 90 00 FF [00:45:19]RAPDU: 90 00 [00:45:19]wFMCommunicate OK [00:45:19]wFMCommunicate request_size=13 [00:45:19]MH_SAM_APDU [00:45:19]CAPDU: 80 15 02 00 08 F4 03 04 00 9F AF 11 67 [00:45:19]Write to MH i2c: E2 10 00 8B 01 80 15 02 00 08 00 F4 03 04 00 9F AF 11 67 00 00 DD [00:45:19]Write i2c OK [00:45:19]MH_I2C_Read... [00:45:19]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:45:19]Read from MH i2c: E2 [00:45:19]MH_I2C_Read... [00:45:19]Read from MH i2c: E2 03 00 [00:45:19]MH_I2C_Read... [00:45:19]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [00:45:19]RAPDU: 90 00 [00:45:19]wFMCommunicate OK [00:45:19]wFMCommunicate request_size=25 [00:45:19]MH_SAM_APDU [00:45:19]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 [00:45:19]Write to MH i2c: E2 1C 00 8C 01 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 00 00 6E [00:45:19]Write i2c OK [00:45:19]MH_I2C_Read... [00:45:19]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:45:19]Read from MH i2c: E2 [00:45:19]MH_I2C_Read... [00:45:19]Read from MH i2c: E2 03 00 [00:45:19]MH_I2C_Read... [00:45:19]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [00:45:19]RAPDU: 90 00 [00:45:19]wFMCommunicate OK [00:45:19]wFMCommunicate request_size=4 [00:45:19]MH_SAM_APDU [00:45:19]CAPDU: 80 15 03 00 [00:45:19]Write to MH i2c: E2 08 00 8D 01 80 15 03 00 00 00 00 00 0F [00:45:19]Write i2c OK [00:45:19]MH_I2C_Read... [00:45:20]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:45:20]Read from MH i2c: E2 [00:45:20]MH_I2C_Read... [00:45:20]Read from MH i2c: E2 38 00 [00:45:20]MH_I2C_Read... [00:45:20]Read from MH i2c: E2 38 00 8D 01 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 73 41 01 00 0E 04 04 00 0E 02 00 00 35 04 06 00 7D 0C 87 DB 23 D3 90 00 80 [00:45:20]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 73 41 01 00 0E 04 04 00 0E 02 00 00 35 04 06 00 7D 0C 87 DB 23 D3 90 00 [00:45:20]wFMCommunicate OK [00:45:20]SAM_PROTO_ProcessDocument answer len = 51 [00:45:20]SAM_PROTO_ProcessDocument done [00:45:20]SetTLVBufToDocument [00:45:20]Processing tag 1209 (04B9) [00:45:20]Malloc new data [00:45:20]Processing tag 1041 (0411) [00:45:20]Processing tag 1040 (0410) [00:45:20]Malloc new data [00:45:20]Processing tag 1038 (040E) [00:45:20]Malloc new data [00:45:20]Processing tag 1077 (0435) [00:45:20]Malloc new data [00:45:20]SetTLVBufToDocument err=0 [00:45:20]KKMLoadAndSignOpenShiftData store KKM data [00:45:20]KKMLoadAndSignOpenShiftData err=0 [00:45:20]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Мамажанов А. Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 Место: АЗС № 114 "Партнер Нефть" 18.10.2024 00:45 Смена: 526 РНМ: 0000000000091680 ЗНМ: 0300000086 ФД: 82291 ФМ: 0000000000871843 ФПД: 137492772365267 [00:45:20]StoreToDocumentArchive [00:45:20]shift 526 fd 82291 [00:45:20]Create dir for shift 0526 [00:45:20]save to /storage/0526/doc_00082291 [00:45:20]save last doc name /storage/0526/doc_00082291 to /storage/kkm_last_doc_name [00:45:20]save OK [00:45:20]Clear old archive folders... [00:45:20]Remove dir /storage/0525 [00:45:20]opendir ok [00:45:20]file . [00:45:20]file .. [00:45:20]file doc_00082074 [00:45:20]remove file /storage/0525/doc_00082074 [00:45:20]file doc_00082075 [00:45:20]remove file /storage/0525/doc_00082075 [00:45:20]file doc_00082076 [00:45:20]remove file /storage/0525/doc_00082076 [00:45:20]file doc_00082077 [00:45:20]remove file /storage/0525/doc_00082077 [00:45:20]file doc_00082078 [00:45:20]remove file /storage/0525/doc_00082078 [00:45:20]file doc_00082079 [00:45:20]remove file /storage/0525/doc_00082079 [00:45:20]file doc_00082080 [00:45:20]remove file /storage/0525/doc_00082080 [00:45:20]file doc_00082081 [00:45:20]remove file /storage/0525/doc_00082081 [00:45:20]file doc_00082082 [00:45:20]remove file /storage/0525/doc_00082082 [00:45:20]file doc_00082083 [00:45:20]remove file /storage/0525/doc_00082083 [00:45:20]file doc_00082084 [00:45:20]remove file /storage/0525/doc_00082084 [00:45:20]file doc_00082085 [00:45:20]remove file /storage/0525/doc_00082085 [00:45:20]file doc_00082086 [00:45:20]remove file /storage/0525/doc_00082086 [00:45:20]file doc_00082087 [00:45:20]remove file /storage/0525/doc_00082087 [00:45:20]file doc_00082088 [00:45:20]remove file /storage/0525/doc_00082088 [00:45:20]file doc_00082089 [00:45:20]remove file /storage/0525/doc_00082089 [00:45:20]file doc_00082090 [00:45:20]remove file /storage/0525/doc_00082090 [00:45:20]file doc_00082091 [00:45:20]remove file /storage/0525/doc_00082091 [00:45:20]file doc_00082092 [00:45:20]remove file /storage/0525/doc_00082092 [00:45:20]file doc_00082093 [00:45:20]remove file /storage/0525/doc_00082093 [00:45:20]file doc_00082094 [00:45:20]remove file /storage/0525/doc_00082094 [00:45:20]file doc_00082095 [00:45:20]remove file /storage/0525/doc_00082095 [00:45:20]file doc_00082096 [00:45:20]remove file /storage/0525/doc_00082096 [00:45:20]file doc_00082097 [00:45:20]remove file /storage/0525/doc_00082097 [00:45:20]file doc_00082098 [00:45:20]remove file /storage/0525/doc_00082098 [00:45:20]file doc_00082099 [00:45:20]remove file /storage/0525/doc_00082099 [00:45:20]file doc_00082100 [00:45:20]remove file /storage/0525/doc_00082100 [00:45:20]file doc_00082101 [00:45:20]remove file /storage/0525/doc_00082101 [00:45:20]file doc_00082102 [00:45:20]remove file /storage/0525/doc_00082102 [00:45:20]file doc_00082103 [00:45:20]remove file /storage/0525/doc_00082103 [00:45:20]file doc_00082104 [00:45:20]remove file /storage/0525/doc_00082104 [00:45:20]file doc_00082105 [00:45:20]remove file /storage/0525/doc_00082105 [00:45:20]file doc_00082106 [00:45:20]remove file /storage/0525/doc_00082106 [00:45:20]file doc_00082107 [00:45:20]remove file /storage/0525/doc_00082107 [00:45:20]file doc_00082108 [00:45:20]remove file /storage/0525/doc_00082108 [00:45:20]file doc_00082109 [00:45:20]remove file /storage/0525/doc_00082109 [00:45:20]file doc_00082110 [00:45:20]remove file /storage/0525/doc_00082110 [00:45:20]file doc_00082111 [00:45:20]remove file /storage/0525/doc_00082111 [00:45:20]file doc_00082112 [00:45:20]remove file /storage/0525/doc_00082112 [00:45:20]file doc_00082113 [00:45:20]remove file /storage/0525/doc_00082113 [00:45:20]file doc_00082114 [00:45:20]remove file /storage/0525/doc_00082114 [00:45:20]file doc_00082115 [00:45:20]remove file /storage/0525/doc_00082115 [00:45:20]file doc_00082116 [00:45:20]remove file /storage/0525/doc_00082116 [00:45:20]file doc_00082117 [00:45:20]remove file /storage/0525/doc_00082117 [00:45:20]file doc_00082118 [00:45:20]remove file /storage/0525/doc_00082118 [00:45:20]file doc_00082119 [00:45:20]remove file /storage/0525/doc_00082119 [00:45:20]file doc_00082120 [00:45:20]remove file /storage/0525/doc_00082120 [00:45:20]file doc_00082121 [00:45:20]remove file /storage/0525/doc_00082121 [00:45:20]file doc_00082122 [00:45:20]remove file /storage/0525/doc_00082122 [00:45:20]file doc_00082123 [00:45:20]remove file /storage/0525/doc_00082123 [00:45:20]file doc_00082124 [00:45:20]remove file /storage/0525/doc_00082124 [00:45:20]file doc_00082125 [00:45:20]remove file /storage/0525/doc_00082125 [00:45:20]file doc_00082126 [00:45:20]remove file /storage/0525/doc_00082126 [00:45:20]file doc_00082127 [00:45:20]remove file /storage/0525/doc_00082127 [00:45:20]file doc_00082128 [00:45:20]remove file /storage/0525/doc_00082128 [00:45:20]file doc_00082129 [00:45:20]remove file /storage/0525/doc_00082129 [00:45:20]file doc_00082130 [00:45:20]remove file /storage/0525/doc_00082130 [00:45:20]file doc_00082131 [00:45:20]remove file /storage/0525/doc_00082131 [00:45:20]file doc_00082132 [00:45:20]remove file /storage/0525/doc_00082132 [00:45:20]file doc_00082133 [00:45:20]remove file /storage/0525/doc_00082133 [00:45:20]file doc_00082134 [00:45:20]remove file /storage/0525/doc_00082134 [00:45:20]file doc_00082135 [00:45:20]remove file /storage/0525/doc_00082135 [00:45:20]file doc_00082136 [00:45:20]remove file /storage/0525/doc_00082136 [00:45:20]file doc_00082137 [00:45:20]remove file /storage/0525/doc_00082137 [00:45:20]file doc_00082138 [00:45:20]remove file /storage/0525/doc_00082138 [00:45:20]file doc_00082139 [00:45:20]remove file /storage/0525/doc_00082139 [00:45:20]file doc_00082140 [00:45:20]remove file /storage/0525/doc_00082140 [00:45:20]file doc_00082141 [00:45:20]remove file /storage/0525/doc_00082141 [00:45:20]file doc_00082142 [00:45:20]remove file /storage/0525/doc_00082142 [00:45:20]file doc_00082143 [00:45:20]remove file /storage/0525/doc_00082143 [00:45:20]file doc_00082144 [00:45:20]remove file /storage/0525/doc_00082144 [00:45:20]file doc_00082145 [00:45:20]remove file /storage/0525/doc_00082145 [00:45:20]file doc_00082146 [00:45:20]remove file /storage/0525/doc_00082146 [00:45:20]file doc_00082147 [00:45:20]remove file /storage/0525/doc_00082147 [00:45:20]file doc_00082148 [00:45:20]remove file /storage/0525/doc_00082148 [00:45:20]file doc_00082149 [00:45:20]remove file /storage/0525/doc_00082149 [00:45:20]file doc_00082150 [00:45:20]remove file /storage/0525/doc_00082150 [00:45:20]file doc_00082151 [00:45:20]remove file /storage/0525/doc_00082151 [00:45:20]file doc_00082152 [00:45:20]remove file /storage/0525/doc_00082152 [00:45:20]file doc_00082153 [00:45:20]remove file /storage/0525/doc_00082153 [00:45:20]file doc_00082154 [00:45:20]remove file /storage/0525/doc_00082154 [00:45:20]file doc_00082155 [00:45:20]remove file /storage/0525/doc_00082155 [00:45:20]file doc_00082156 [00:45:20]remove file /storage/0525/doc_00082156 [00:45:20]file doc_00082157 [00:45:20]remove file /storage/0525/doc_00082157 [00:45:20]file doc_00082158 [00:45:20]remove file /storage/0525/doc_00082158 [00:45:20]file doc_00082159 [00:45:20]remove file /storage/0525/doc_00082159 [00:45:20]file doc_00082160 [00:45:20]remove file /storage/0525/doc_00082160 [00:45:20]file doc_00082161 [00:45:20]remove file /storage/0525/doc_00082161 [00:45:20]file doc_00082162 [00:45:20]remove file /storage/0525/doc_00082162 [00:45:20]file doc_00082163 [00:45:20]remove file /storage/0525/doc_00082163 [00:45:20]file doc_00082164 [00:45:20]remove file /storage/0525/doc_00082164 [00:45:20]file doc_00082165 [00:45:20]remove file /storage/0525/doc_00082165 [00:45:20]file doc_00082166 [00:45:20]remove file /storage/0525/doc_00082166 [00:45:20]file doc_00082167 [00:45:20]remove file /storage/0525/doc_00082167 [00:45:20]file doc_00082168 [00:45:20]remove file /storage/0525/doc_00082168 [00:45:20]file doc_00082169 [00:45:20]remove file /storage/0525/doc_00082169 [00:45:20]file doc_00082170 [00:45:20]remove file /storage/0525/doc_00082170 [00:45:20]file doc_00082171 [00:45:20]remove file /storage/0525/doc_00082171 [00:45:20]file doc_00082172 [00:45:20]remove file /storage/0525/doc_00082172 [00:45:20]file doc_00082173 [00:45:20]remove file /storage/0525/doc_00082173 [00:45:20]file doc_00082174 [00:45:20]remove file /storage/0525/doc_00082174 [00:45:20]file doc_00082175 [00:45:20]remove file /storage/0525/doc_00082175 [00:45:20]file doc_00082176 [00:45:20]remove file /storage/0525/doc_00082176 [00:45:20]file doc_00082177 [00:45:20]remove file /storage/0525/doc_00082177 [00:45:20]file doc_00082178 [00:45:20]remove file /storage/0525/doc_00082178 [00:45:20]file doc_00082179 [00:45:20]remove file /storage/0525/doc_00082179 [00:45:20]file doc_00082180 [00:45:20]remove file /storage/0525/doc_00082180 [00:45:20]file doc_00082181 [00:45:20]remove file /storage/0525/doc_00082181 [00:45:20]file doc_00082182 [00:45:20]remove file /storage/0525/doc_00082182 [00:45:20]file doc_00082183 [00:45:20]remove file /storage/0525/doc_00082183 [00:45:20]file doc_00082184 [00:45:20]remove file /storage/0525/doc_00082184 [00:45:20]file doc_00082185 [00:45:20]remove file /storage/0525/doc_00082185 [00:45:20]file doc_00082186 [00:45:20]remove file /storage/0525/doc_00082186 [00:45:20]file doc_00082187 [00:45:20]remove file /storage/0525/doc_00082187 [00:45:20]file doc_00082188 [00:45:20]remove file /storage/0525/doc_00082188 [00:45:20]file doc_00082189 [00:45:20]remove file /storage/0525/doc_00082189 [00:45:20]file doc_00082190 [00:45:20]remove file /storage/0525/doc_00082190 [00:45:20]file doc_00082191 [00:45:20]remove file /storage/0525/doc_00082191 [00:45:20]file doc_00082192 [00:45:20]remove file /storage/0525/doc_00082192 [00:45:20]file doc_00082193 [00:45:20]remove file /storage/0525/doc_00082193 [00:45:20]file doc_00082194 [00:45:20]remove file /storage/0525/doc_00082194 [00:45:20]file doc_00082195 [00:45:20]remove file /storage/0525/doc_00082195 [00:45:20]file doc_00082196 [00:45:20]remove file /storage/0525/doc_00082196 [00:45:20]file doc_00082197 [00:45:20]remove file /storage/0525/doc_00082197 [00:45:20]file doc_00082198 [00:45:20]remove file /storage/0525/doc_00082198 [00:45:20]file doc_00082199 [00:45:20]remove file /storage/0525/doc_00082199 [00:45:20]file doc_00082200 [00:45:20]remove file /storage/0525/doc_00082200 [00:45:20]file doc_00082201 [00:45:20]remove file /storage/0525/doc_00082201 [00:45:20]file doc_00082202 [00:45:20]remove file /storage/0525/doc_00082202 [00:45:20]file doc_00082203 [00:45:20]remove file /storage/0525/doc_00082203 [00:45:20]file doc_00082204 [00:45:20]remove file /storage/0525/doc_00082204 [00:45:20]file doc_00082205 [00:45:20]remove file /storage/0525/doc_00082205 [00:45:20]file doc_00082206 [00:45:20]remove file /storage/0525/doc_00082206 [00:45:20]file doc_00082207 [00:45:20]remove file /storage/0525/doc_00082207 [00:45:20]file doc_00082208 [00:45:20]remove file /storage/0525/doc_00082208 [00:45:20]file doc_00082209 [00:45:20]remove file /storage/0525/doc_00082209 [00:45:20]file doc_00082210 [00:45:20]remove file /storage/0525/doc_00082210 [00:45:20]file doc_00082211 [00:45:20]remove file /storage/0525/doc_00082211 [00:45:20]file doc_00082212 [00:45:20]remove file /storage/0525/doc_00082212 [00:45:20]file doc_00082213 [00:45:20]remove file /storage/0525/doc_00082213 [00:45:20]file doc_00082214 [00:45:20]remove file /storage/0525/doc_00082214 [00:45:20]file doc_00082215 [00:45:20]remove file /storage/0525/doc_00082215 [00:45:20]file doc_00082216 [00:45:20]remove file /storage/0525/doc_00082216 [00:45:20]file doc_00082217 [00:45:20]remove file /storage/0525/doc_00082217 [00:45:20]file doc_00082218 [00:45:20]remove file /storage/0525/doc_00082218 [00:45:20]file doc_00082219 [00:45:20]remove file /storage/0525/doc_00082219 [00:45:20]file doc_00082220 [00:45:20]remove file /storage/0525/doc_00082220 [00:45:20]file doc_00082221 [00:45:20]remove file /storage/0525/doc_00082221 [00:45:20]file doc_00082222 [00:45:20]remove file /storage/0525/doc_00082222 [00:45:20]file doc_00082223 [00:45:20]remove file /storage/0525/doc_00082223 [00:45:20]file doc_00082224 [00:45:20]remove file /storage/0525/doc_00082224 [00:45:20]file doc_00082225 [00:45:20]remove file /storage/0525/doc_00082225 [00:45:20]file doc_00082226 [00:45:20]remove file /storage/0525/doc_00082226 [00:45:20]file doc_00082227 [00:45:20]remove file /storage/0525/doc_00082227 [00:45:20]file doc_00082228 [00:45:20]remove file /storage/0525/doc_00082228 [00:45:20]file doc_00082229 [00:45:20]remove file /storage/0525/doc_00082229 [00:45:20]file doc_00082230 [00:45:20]remove file /storage/0525/doc_00082230 [00:45:20]file doc_00082231 [00:45:20]remove file /storage/0525/doc_00082231 [00:45:20]file doc_00082232 [00:45:20]remove file /storage/0525/doc_00082232 [00:45:20]file doc_00082233 [00:45:20]remove file /storage/0525/doc_00082233 [00:45:20]file doc_00082234 [00:45:20]remove file /storage/0525/doc_00082234 [00:45:20]file doc_00082235 [00:45:20]remove file /storage/0525/doc_00082235 [00:45:20]file doc_00082236 [00:45:20]remove file /storage/0525/doc_00082236 [00:45:20]file doc_00082237 [00:45:20]remove file /storage/0525/doc_00082237 [00:45:20]file doc_00082238 [00:45:20]remove file /storage/0525/doc_00082238 [00:45:20]file doc_00082239 [00:45:20]remove file /storage/0525/doc_00082239 [00:45:20]file doc_00082240 [00:45:20]remove file /storage/0525/doc_00082240 [00:45:20]file doc_00082241 [00:45:20]remove file /storage/0525/doc_00082241 [00:45:20]file doc_00082242 [00:45:20]remove file /storage/0525/doc_00082242 [00:45:20]file doc_00082243 [00:45:20]remove file /storage/0525/doc_00082243 [00:45:20]file doc_00082244 [00:45:20]remove file /storage/0525/doc_00082244 [00:45:20]file doc_00082245 [00:45:20]remove file /storage/0525/doc_00082245 [00:45:20]file doc_00082246 [00:45:20]remove file /storage/0525/doc_00082246 [00:45:20]file doc_00082247 [00:45:20]remove file /storage/0525/doc_00082247 [00:45:20]file doc_00082248 [00:45:20]remove file /storage/0525/doc_00082248 [00:45:20]file doc_00082249 [00:45:20]remove file /storage/0525/doc_00082249 [00:45:20]file doc_00082250 [00:45:20]remove file /storage/0525/doc_00082250 [00:45:20]file doc_00082251 [00:45:20]remove file /storage/0525/doc_00082251 [00:45:20]file doc_00082252 [00:45:20]remove file /storage/0525/doc_00082252 [00:45:20]file doc_00082253 [00:45:20]remove file /storage/0525/doc_00082253 [00:45:20]file doc_00082254 [00:45:20]remove file /storage/0525/doc_00082254 [00:45:20]file doc_00082255 [00:45:21]remove file /storage/0525/doc_00082255 [00:45:21]file doc_00082256 [00:45:21]remove file /storage/0525/doc_00082256 [00:45:21]file doc_00082257 [00:45:21]remove file /storage/0525/doc_00082257 [00:45:21]file doc_00082258 [00:45:21]remove file /storage/0525/doc_00082258 [00:45:21]file doc_00082259 [00:45:21]remove file /storage/0525/doc_00082259 [00:45:21]file doc_00082260 [00:45:21]remove file /storage/0525/doc_00082260 [00:45:21]file doc_00082261 [00:45:21]remove file /storage/0525/doc_00082261 [00:45:21]file doc_00082262 [00:45:21]remove file /storage/0525/doc_00082262 [00:45:21]file doc_00082263 [00:45:21]remove file /storage/0525/doc_00082263 [00:45:21]file doc_00082264 [00:45:21]remove file /storage/0525/doc_00082264 [00:45:21]file doc_00082265 [00:45:21]remove file /storage/0525/doc_00082265 [00:45:21]file doc_00082266 [00:45:21]remove file /storage/0525/doc_00082266 [00:45:21]file doc_00082267 [00:45:21]remove file /storage/0525/doc_00082267 [00:45:21]file doc_00082268 [00:45:21]remove file /storage/0525/doc_00082268 [00:45:21]file doc_00082269 [00:45:21]remove file /storage/0525/doc_00082269 [00:45:21]file doc_00082270 [00:45:21]remove file /storage/0525/doc_00082270 [00:45:21]file doc_00082271 [00:45:21]remove file /storage/0525/doc_00082271 [00:45:21]file doc_00082272 [00:45:21]remove file /storage/0525/doc_00082272 [00:45:21]file doc_00082273 [00:45:21]remove file /storage/0525/doc_00082273 [00:45:21]file doc_00082274 [00:45:21]remove file /storage/0525/doc_00082274 [00:45:21]file doc_00082275 [00:45:21]remove file /storage/0525/doc_00082275 [00:45:21]file doc_00082276 [00:45:21]remove file /storage/0525/doc_00082276 [00:45:21]file doc_00082277 [00:45:21]remove file /storage/0525/doc_00082277 [00:45:21]file doc_00082278 [00:45:21]remove file /storage/0525/doc_00082278 [00:45:21]file doc_00082279 [00:45:21]remove file /storage/0525/doc_00082279 [00:45:21]file doc_00082280 [00:45:21]remove file /storage/0525/doc_00082280 [00:45:21]file doc_00082281 [00:45:21]remove file /storage/0525/doc_00082281 [00:45:21]file doc_00082282 [00:45:21]remove file /storage/0525/doc_00082282 [00:45:21]file doc_00082283 [00:45:21]remove file /storage/0525/doc_00082283 [00:45:21]file doc_00082284 [00:45:21]remove file /storage/0525/doc_00082284 [00:45:21]file doc_00082285 [00:45:21]remove file /storage/0525/doc_00082285 [00:45:21]file doc_00082286 [00:45:21]remove file /storage/0525/doc_00082286 [00:45:21]file doc_00082287 [00:45:21]remove file /storage/0525/doc_00082287 [00:45:21]file doc_00082288 [00:45:21]remove file /storage/0525/doc_00082288 [00:45:21]file doc_00082289 [00:45:21]remove file /storage/0525/doc_00082289 [00:45:21]file doc_00082290 [00:45:21]remove file /storage/0525/doc_00082290 [00:45:21]remove dir /storage/0525 [00:45:21]ProcessDocumentItem done err = 0, tmpTLVsize=270 [00:45:21]tlvbuf is 00CA5910 [00:45:21]SAM_PROTO_ClearQueue [00:45:21]wFMCommunicate request_size=4 [00:45:21]MH_SAM_APDU [00:45:21]CAPDU: 80 09 00 00 [00:45:21]Write to MH i2c: E2 08 00 8E 01 80 09 00 00 00 00 00 00 01 [00:45:21]Write i2c OK [00:45:21]MH_I2C_Read... [00:45:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:45:21]Read from MH i2c: E2 [00:45:21]MH_I2C_Read... [00:45:21]Read from MH i2c: E2 03 00 [00:45:21]MH_I2C_Read... [00:45:21]Read from MH i2c: E2 03 00 8E 01 00 90 00 03 [00:45:21]RAPDU: 90 00 [00:45:21]wFMCommunicate OK [00:45:21]SAM_PROTO_ClearQueue done [00:45:21]KKMCreateOFDPacket [00:45:21]OFDProtocolAddRootSTLVToBuf [00:45:21]FM_MakeSignedData [00:45:21]FM_MakeSignedData [00:45:21]SAM_PROTO_SignData [00:45:21]wFMCommunicate request_size=4 [00:45:21]MH_SAM_APDU [00:45:21]CAPDU: 80 0D 01 02 [00:45:21]Write to MH i2c: E2 08 00 8F 01 80 0D 01 02 00 00 00 00 09 [00:45:21]Write i2c OK [00:45:21]MH_I2C_Read... [00:45:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:45:21]Read from MH i2c: E2 [00:45:21]MH_I2C_Read... [00:45:21]Read from MH i2c: E2 03 00 [00:45:21]MH_I2C_Read... [00:45:21]Read from MH i2c: E2 03 00 8F 01 00 90 00 04 [00:45:21]RAPDU: 90 00 [00:45:21]wFMCommunicate OK [00:45:21]wFMCommunicate request_size=255 [00:45:21]MH_SAM_APDU [00:45:21]CAPDU: 80 0D 02 02 FA 02 00 0E 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 9C D0 B0 D0 BC D0 B0 D0 B6 D0 B0 D0 BD D0 BE D0 B2 20 D0 90 2E 20 F1 03 60 00 37 32 30 30 30 31 2C 20 63 2E 20 D0 9B D0 B0 D0 B2 D0 B4 D0 B0 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 9A D1 83 D1 80 D0 BC D0 B0 D0 BD D0 B1 D0 B5 D0 BA 20 D0 91 D0 B0 D0 B0 D1 82 D1 8B D1 80 20 34 38 2C 20 34 30 2E 39 32 32 33 31 34 2C 20 37 32 2E 39 36 31 36 39 39 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 34 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 9F AF 11 67 0E 04 04 00 0E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 73 41 01 00 11 04 10 00 30 30 [00:45:21]Write to MH i2c: E2 02 01 90 01 80 0D 02 02 FA 00 02 00 0E 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 9C D0 B0 D0 BC D0 B0 D0 B6 D0 B0 D0 BD D0 BE D0 B2 20 D0 90 2E 20 F1 03 60 00 37 32 30 30 30 31 2C 20 63 2E 20 D0 9B D0 B0 D0 B2 D0 B4 D0 B0 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 9A D1 83 D1 80 D0 BC D0 B0 D0 BD D0 B1 D0 B5 D0 BA 20 D0 91 D0 B0 D0 B0 D1 82 D1 8B D1 80 20 34 38 2C 20 34 30 2E 39 32 32 33 31 34 2C 20 37 32 2E 39 36 31 36 39 39 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 34 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 9F AF 11 67 0E 04 04 00 0E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 73 41 01 00 11 04 10 00 30 30 00 00 2F [00:45:22]OFD Sender: No OFD packet to send [00:45:22]Write i2c OK [00:45:22]MH_I2C_Read... [00:45:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:22]Read from MH i2c: E2 [00:45:22]MH_I2C_Read... [00:45:22]Read from MH i2c: E2 03 00 [00:45:22]MH_I2C_Read... [00:45:22]Read from MH i2c: E2 03 00 90 01 00 90 00 05 [00:45:22]RAPDU: 90 00 [00:45:22]wFMCommunicate OK [00:45:22]wFMCommunicate request_size=29 [00:45:22]MH_SAM_APDU [00:45:22]CAPDU: 80 0D 02 02 18 30 30 30 30 30 30 30 30 38 37 31 38 34 33 35 04 06 00 7D 0C 87 DB 23 D3 [00:45:22]Write to MH i2c: E2 20 00 91 01 80 0D 02 02 18 00 30 30 30 30 30 30 30 30 38 37 31 38 34 33 35 04 06 00 7D 0C 87 DB 23 D3 00 00 1B [00:45:22]Write i2c OK [00:45:22]MH_I2C_Read... [00:45:22]Read from MH i2c: E2 [00:45:22]MH_I2C_Read... [00:45:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:22]Read from MH i2c: E2 03 00 [00:45:22]MH_I2C_Read... [00:45:22]Read from MH i2c: E2 03 00 91 01 00 90 00 06 [00:45:22]RAPDU: 90 00 [00:45:22]wFMCommunicate OK [00:45:22]wFMCommunicate request_size=4 [00:45:22]MH_SAM_APDU [00:45:22]CAPDU: 80 0D 03 02 [00:45:22]Write to MH i2c: E2 08 00 92 01 80 0D 03 02 00 00 00 00 0E [00:45:22]Write i2c OK [00:45:22]MH_I2C_Read... [00:45:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:45:22]Read from MH i2c: E2 [00:45:22]MH_I2C_Read... [00:45:22]Read from MH i2c: E2 0B 00 [00:45:22]MH_I2C_Read... [00:45:22]Read from MH i2c: E2 0B 00 92 01 00 F4 9A CE 70 F4 40 A8 56 90 00 0D [00:45:22]RAPDU: F4 9A CE 70 F4 40 A8 56 90 00 [00:45:22]wFMCommunicate OK [00:45:22]SAM_PROTO_SignData done [00:45:22]FM_MakeSignedData done [00:45:22]CreateOFDProtocolMessage [00:45:22]wFMCommunicate request_size=4 [00:45:22]MH_SAM_APDU [00:45:22]CAPDU: 80 11 00 00 [00:45:22]Write to MH i2c: E2 08 00 93 01 80 11 00 00 00 00 00 00 0E [00:45:22]Write i2c OK [00:45:22]MH_I2C_Read... [00:45:22]Read from MH i2c: E2 [00:45:22]MH_I2C_Read... [00:45:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:22]Read from MH i2c: E2 17 00 [00:45:22]MH_I2C_Read... [00:45:22]Read from MH i2c: E2 17 00 93 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 60 [00:45:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:45:22]wFMCommunicate OK [00:45:22]CreateOFDProtocolMessage done [00:45:22]OFDSenderStorePacket 82291 [00:45:22]StoreOFDPacket docnum=82291 [00:45:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 22 01 00 00 51 A0 1A 01 F3 AB 5A 02 01 00 02 00 0E 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 9C D0 B0 D0 BC D0 B0 D0 B6 D0 B0 D0 BD D0 BE D0 B2 20 D0 90 2E 20 F1 03 60 00 37 32 30 30 30 31 2C 20 63 2E 20 D0 9B D0 B0 D0 B2 D0 B4 D0 B0 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 9A D1 83 D1 80 D0 BC D0 B0 D0 BD D0 B1 D0 B5 D0 BA 20 D0 91 D0 B0 D0 B0 D1 82 D1 8B D1 80 20 34 38 2C 20 34 30 2E 39 32 32 33 31 34 2C 20 37 32 2E 39 36 31 36 39 39 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 34 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 9F AF 11 67 0E 04 04 00 0E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 73 41 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 35 04 06 00 7D 0C 87 DB 23 D3 F4 9A CE 70 F4 40 A8 56 [00:45:22]CheckFolder [00:45:22]dirname=/storage/ofd_packets [00:45:22]CheckFolder done [00:45:22]ProducePacketName [00:45:22]name=ofd_packets/00082291 [00:45:22]NVStorageSaveData ofd_packets/00082291 [00:45:22]File name is /storage/ofd_packets/00082291 [00:45:22]Write 320 bytes [00:45:22]NVStorageSaveData done [00:45:22]OFDSenderStorePacket done [00:45:22]KKMCreateOFDPacket done [00:45:22]NVStorageSaveData kkm_last_timestamp [00:45:22]File name is /storage/kkm_last_timestamp [00:45:22]Write 4 bytes [00:45:22]NVStorageSaveData done [00:45:22]ExternCall_PrintAddStr [00:45:22]wPrintStart [00:45:22]Write to MH i2c: 01 00 00 94 01 95 [00:45:22]Write i2c OK [00:45:22]MH_I2C_Read... [00:45:22]Read from MH i2c: 01 [00:45:22]MH_I2C_Read... [00:45:22]Read from MH i2c: 01 07 00 [00:45:22]MH_I2C_Read... [00:45:22]Read from MH i2c: 01 07 00 94 01 00 00 00 00 00 FF 0F AA [00:45:22]RasterBufferAndPrint [00:45:22]line Отчет об открытии смены [00:45:22]line ФФД: 1.0 [00:45:22]line ИНН: 02508201610067 [00:45:22]line Кассир: Мамажанов А. [00:45:22]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [00:45:22]line Место: АЗС № 114 "Партнер Нефть" [00:45:22]line 18.10.2024 00:45 [00:45:22]line Смена: 526 [00:45:22]line РНМ: 0000000000091680 [00:45:22]line ЗНМ: 0300000086 [00:45:22]line ФД: 82291 [00:45:22]line ФМ: 0000000000871843 [00:45:22]line ФПД: 137492772365267 [00:45:22]OFD Sender: Processing packet 82291 [packets to send 254, broken 253] [00:45:22]ProducePacketName [00:45:22]name=ofd_packets/00082291 [00:45:22]OFD Sender: To server: pG, [00:45:22]CommunicateWithHost lk.salyk.kg:30040 [00:45:22]ConnectInit lk.salyk.kg [00:45:22]written 0, free lines is 4095 [00:45:22]Write to MH i2c: 01 00 00 A6 01 A7 [00:45:22]Write i2c OK [00:45:22]MH_I2C_Read... [00:45:22]Read from MH i2c: 01 [00:45:22]MH_I2C_Read... [00:45:22]Read from MH i2c: 01 07 00 [00:45:23]MH_I2C_Read... [00:45:23]Read from MH i2c: 01 07 00 A6 01 00 00 00 00 00 60 0E 1C [00:45:23]RasterBufferAndPrint [00:45:23]line [00:45:23]line [00:45:23]line [00:45:23]line [00:45:23]line [00:45:23]written 0, free lines is 3718 [00:45:23]MH_Cut [00:45:23]Write to MH i2c: D1 01 00 AD 01 01 80 [00:45:23]Write i2c OK [00:45:23]MH_I2C_Read... [00:45:23]Read from MH i2c: D1 [00:45:23]MH_I2C_Read... [00:45:23]Read from MH i2c: D1 01 00 [00:45:23]MH_I2C_Read... [00:45:23]Read from MH i2c: D1 01 00 AD 01 00 7F [00:45:23]Write to MH i2c: 01 00 00 AE 01 AF [00:45:23]Write i2c OK [00:45:23]MH_I2C_Read... [00:45:23]Connected sock=11 [00:45:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 22 01 00 00 51 A0 1A 01 F3 AB 5A 02 01 00 02 00 0E 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 *** Cut start [00:45:23]D0 9C D0 B0 D0 BC D0 B0 D0 B6 D0 B0 D0 BD D0 BE D0 B2 20 *** Partial cut [00:45:23]D0 90 2E 20 F1 03 60 00 37 32 *** CUTSNS_PIN = 1 [00:45:23]30 30 *** CUTSNS_PIN = 0 [00:45:23]30 31 2C 20 63 2E 20 D0 9B D0 B0 D0 B2 D0 B4 D0 B0 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 9A D1 83 D1 80 D0 BC D0 B0 D0 BD D0 B1 D0 B5 D0 BA 20 D0 91 D0 B0 D0 B0 D1 82 D1 8B D1 80 20 34 38 2C 20 34 30 2E 39 32 32 33 31 34 2C 20 37 32 2E 39 36 31 36 39 39 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 34 20 22 D0 9F D0 B0 D1 80 D1 82 *** Brake cut motor [00:45:23]D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 9F AF 11 67 0E 04 04 00 0E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 73 41 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 35 04 06 00 7D 0C 87 DB 23 D3 F4 9A CE 70 F4 40 A8 56 [00:45:24]Read from MH i2c: *** Stop cut motor [00:45:24]01 *** Cut end [00:45:24] [00:45:24]MH_I2C_Read... [00:45:24]Read from MH i2c: 01 07 00 [00:45:24]MH_I2C_Read... [00:45:24]Read from MH i2c: 01 07 00 AE 01 00 00 00 00 00 FF 0F C4 [00:45:24]process_action open_shift done [00:45:24]requested_data is exist [00:45:24]produce_requested_data [00:45:24]requested_item fd.num is exist - process it [00:45:24]SAM_PROTO_GetFieldsCounters [00:45:24]wFMCommunicate request_size=4 [00:45:24]MH_SAM_APDU [00:45:24]CAPDU: 80 13 00 00 [00:45:24]Write to MH i2c: E2 08 00 AF 01 80 13 00 00 00 00 00 00 2C [00:45:24]Write i2c OK [00:45:24]MH_I2C_Read... [00:45:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:45:24]Read from MH i2c: E2 [00:45:24]MH_I2C_Read... [00:45:24]Read from MH i2c: E2 62 00 [00:45:24]MH_I2C_Read... [00:45:24]Read from MH i2c: E2 62 00 AF 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 73 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [00:45:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 73 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:45:24]wFMCommunicate OK [00:45:24]SAM_PROTO_GetFieldsCounters done [00:45:24]requested_item shift.num is exist - process it [00:45:24]requested_item shift.opened is exist - process it [00:45:24]req_shift_opened [00:45:24]FM_GetShiftState [00:45:24]SAM_PROTO_GetShiftState [00:45:24]wFMCommunicate request_size=4 [00:45:24]MH_SAM_APDU [00:45:24]CAPDU: 80 13 01 00 [00:45:24]Write to MH i2c: E2 08 00 B0 01 80 13 01 00 00 00 00 00 2E [00:45:24]Write i2c OK [00:45:24]MH_I2C_Read... [00:45:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:24]Read from MH i2c: E2 [00:45:24]MH_I2C_Read... [00:45:24]Read from MH i2c: E2 0E 00 [00:45:24]MH_I2C_Read... [00:45:24]Read from MH i2c: E2 0E 00 B0 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 00 [00:45:24]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [00:45:24]wFMCommunicate OK [00:45:24]SAM_PROTO_GetShiftState done [00:45:24]FM_GetShiftState done [00:45:24]req_shift_opened done [00:45:24]requested_item shift.open_date is exist - process it [00:45:24]req_shift_open_date [00:45:24]req_shift_open_date done [00:45:24]produce_requested_data done [00:45:24]produce_requested_data return {"fd.num":82291,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [00:45:24]process_action_free open_shift [00:45:24]json_value_free [00:45:24]json_value_free done [00:45:24]process_json_proto returns [00:45:24]Send response to host [00:45:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":82291,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [00:45:24]free response buf [00:45:24]execute_script done [00:45:24]execute_script returns [00:45:24]free content buf [00:45:24]Sock 8.Close socket [00:45:24]Sock 8.Thread stoped [00:45:24]recv_with_timeout no data received [00:45:24]accept exits with 9 [00:45:24]New connection [00:45:24]New thread 3067440484 created [00:45:24]Thread 3067297124 joined [00:45:24]Waiting for new connection... [00:45:24] Sock 9.Parse request [00:45:24]Sock 9.Check first char [00:45:24]Sock 9.First char is OK [00:45:24]request: POST /json_proto HTTP/1.0 [00:45:24]Received data: Method: POST [00:45:24]87 URL: /json_proto [00:45:24]95 Method is POST - this is cgi request [00:45:24]F6 url: /json_proto [00:45:24]70 query_string will be loaded in cgi processing [00:45:24]47 execute_cgi json_proto POST (null) [00:45:24]2C execute_cgi path=json_proto method=POST [00:45:24]01 POST find Content-Length [00:45:24]00 Host: 172.17.44.67:8080 [00:45:24]30 Content-Length: 331 [00:45:24]30 Content-Type: application/json [00:45:24]30 [00:45:24]30 POST finish read [00:45:24]30 Found Content-Length = 331 [00:45:24]30 post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:45:24]30 execute_script... [00:45:24]30 execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:45:24]POST & json_proto [00:45:24]process_json_proto [00:45:24]json parsed OK: [00:45:24]protocol is kg_v1.0 [00:45:24]action value=get_value [00:45:24]process_action get_value [00:45:24]cmd_get_value [00:45:24]process_action get_value done [00:45:24]requested_data is exist [00:45:24]produce_requested_data [00:45:24]30 requested_item fm.sale.total is exist - process it [00:45:24]30 SAM_PROTO_GetFMData [00:45:24]38 wFMCommunicate request_size=4 [00:45:24]37 MH_SAM_APDU [00:45:24]31 CAPDU: 38 80 13 03 00 [00:45:24]Write to MH i2c: E2 08 00 B1 01 80 34 13 33 03 4F 00 00 00 00 00 00 00 00 31 [00:45:24]76 D7 47 00 9F 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 73 41 01 00 F4 03 04 00 DF 54 11 67 B6 04 01 00 00 F0 1E 14 9C C3 13 3E 7D [00:45:24]CommunicateWithHost err = 0 [00:45:24]CheckOFDResponse [00:45:24]1017 (14) - 77093643461234 [00:45:24]1041 (16) - 0000000000871843 [00:45:24]1040 (4) - 82291 [00:45:24]1012 (4) - 17.10.2024 18:18 [00:45:24]1206 (1) - 0 [00:45:24]OFD Sender: Remove packet 82291 [00:45:24]ProducePacketName [00:45:24]name=ofd_packets/00082291 [00:45:24]NVStorageDeleteData [00:45:24]Write i2c OK [00:45:24]MH_I2C_Read... [00:45:25]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:45:25]Read from MH i2c: E2 [00:45:25]MH_I2C_Read... [00:45:25]Read from MH i2c: E2 FD 00 [00:45:25]MH_I2C_Read... [00:45:25]Read from MH i2c: E2 FD 00 B1 01 00 C7 04 85 04 C3 04 6E 04 04 00 57 3D 01 00 69 04 A3 00 6F 04 04 00 BF 3A 01 00 B1 04 05 00 9B 68 5C 7B 01 70 04 05 00 20 5E 26 41 01 72 04 04 00 7B 0A 36 3A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EC BE 4C 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 46 A7 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 98 02 00 00 B1 04 04 00 70 95 0F 13 70 04 04 00 08 53 0F 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AD 37 06 02 EF 90 00 D3 [00:45:25]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 57 3D 01 00 69 OFD Sender: No OFD packet to send [00:45:25]04 A3 00 6F 04 04 00 BF 3A 01 00 B1 04 05 00 9B 68 5C 7B 01 70 04 05 00 20 5E 26 41 01 72 04 04 00 7B 0A 36 3A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 EC BE 4C 28 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 46 A7 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 98 02 00 00 B1 04 04 00 70 95 0F 13 70 04 04 00 08 53 0F 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 AD 37 06 02 EF 90 00 [00:45:25]wFMCommunicate OK [00:45:25]wFMCommunicate request_size=4 [00:45:25]MH_SAM_APDU [00:45:25]CAPDU: 80 17 00 00 [00:45:25]Write to MH i2c: E2 08 00 B2 01 80 17 00 00 00 00 00 00 33 [00:45:25]Write i2c OK [00:45:25]MH_I2C_Read... [00:45:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:45:25]Read from MH i2c: E2 [00:45:25]MH_I2C_Read... [00:45:25]Read from MH i2c: E2 FD 00 [00:45:25]MH_I2C_Read... [00:45:25]Read from MH i2c: E2 FD 00 B2 01 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0A 2F 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 90 00 A4 [00:45:26]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0A 2F 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 90 00 [00:45:26]wFMCommunicate OK [00:45:26]wFMCommunicate request_size=4 [00:45:26]MH_SAM_APDU [00:45:26]CAPDU: 80 17 00 00 [00:45:26]Write to MH i2c: E2 08 00 B3 01 80 17 00 00 00 00 00 00 34 [00:45:26]Write i2c OK [00:45:26]MH_I2C_Read... [00:45:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:45:26]Read from MH i2c: E2 [00:45:26]MH_I2C_Read... [00:45:26]Read from MH i2c: E2 FD 00 [00:45:26]MH_I2C_Read... [00:45:26]Read from MH i2c: E2 FD 00 B3 01 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 0C [00:45:26]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [00:45:27]wFMCommunicate OK [00:45:27]wFMCommunicate request_size=4 [00:45:27]MH_SAM_APDU [00:45:27]CAPDU: 80 17 00 00 [00:45:27]Write to MH i2c: E2 08 00 B4 01 80 17 00 00 00 00 00 00 35 [00:45:27]Write i2c OK [00:45:27]MH_I2C_Read... [00:45:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:45:27]Read from MH i2c: E2 [00:45:27]MH_I2C_Read... [00:45:27]Read from MH i2c: E2 FD 00 [00:45:27]MH_I2C_Read... [00:45:27]Read from MH i2c: E2 FD 00 B4 01 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 B0 [00:45:27]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:45:27]wFMCommunicate OK [00:45:27]wFMCommunicate request_size=4 [00:45:27]MH_SAM_APDU [00:45:27]CAPDU: 80 17 00 00 [00:45:27]Write to MH i2c: E2 08 00 B5 01 80 17 00 00 00 00 00 00 36 [00:45:27]Write i2c OK [00:45:27]MH_I2C_Read... [00:45:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:45:28]Read from MH i2c: E2 [00:45:28]MH_I2C_Read... [00:45:28]Read from MH i2c: E2 E4 00 [00:45:28]MH_I2C_Read... [00:45:28]Read from MH i2c: E2 E4 00 B5 01 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 16 [00:45:28]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:45:28]wFMCommunicate OK [00:45:28]SAM_PROTO_GetFMData done [00:45:28]requested_item fm.sale_refund.total is exist - process it [00:45:28]requested_item fm.buy.total is exist - process it [00:45:28]requested_item shift.sale.total is exist - process it [00:45:28]SAM_PROTO_GetShiftData [00:45:28]wFMCommunicate request_size=4 [00:45:28]MH_SAM_APDU [00:45:28]CAPDU: 80 13 02 00 [00:45:28]Write to MH i2c: E2 08 00 B6 01 80 13 02 00 00 00 00 00 35 [00:45:28]Write i2c OK [00:45:28]MH_I2C_Read... [00:45:29]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:45:29]Read from MH i2c: E2 [00:45:29]MH_I2C_Read... [00:45:29]Read from MH i2c: E2 FD 00 [00:45:29]MH_I2C_Read... [00:45:29]Read from MH i2c: E2 FD 00 B6 01 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 A8 [00:45:29]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:45:29]wFMCommunicate OK [00:45:29]wFMCommunicate request_size=4 [00:45:29]MH_SAM_APDU [00:45:29]CAPDU: 80 17 00 00 [00:45:29]Write to MH i2c: E2 08 00 B7 01 80 17 00 00 00 00 00 00 38 [00:45:29]Write i2c OK [00:45:29]MH_I2C_Read... [00:45:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:45:29]Read from MH i2c: E2 [00:45:29]MH_I2C_Read... [00:45:29]Read from MH i2c: E2 FD 00 [00:45:29]MH_I2C_Read... [00:45:29]Read from MH i2c: E2 FD 00 B7 01 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 40 [00:45:30]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:45:30]wFMCommunicate OK [00:45:30]wFMCommunicate request_size=4 [00:45:30]MH_SAM_APDU [00:45:30]CAPDU: 80 17 00 00 [00:45:30]Write to MH i2c: E2 08 00 B8 01 80 17 00 00 00 00 00 00 39 [00:45:30]Write i2c OK [00:45:30]MH_I2C_Read... [00:45:30]OFD Sender: No OFD packet to send [00:45:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:45:30]Read from MH i2c: E2 [00:45:30]MH_I2C_Read... [00:45:30]Read from MH i2c: E2 FD 00 [00:45:30]MH_I2C_Read... [00:45:30]Read from MH i2c: E2 FD 00 B8 01 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 0B [00:45:30]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:45:31]wFMCommunicate OK [00:45:31]wFMCommunicate request_size=4 [00:45:31]MH_SAM_APDU [00:45:31]CAPDU: 80 17 00 00 [00:45:31]Write to MH i2c: E2 08 00 B9 01 80 17 00 00 00 00 00 00 3A [00:45:31]Write i2c OK [00:45:31]MH_I2C_Read... [00:45:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:45:31]Read from MH i2c: E2 [00:45:31]MH_I2C_Read... [00:45:31]Read from MH i2c: E2 FD 00 [00:45:31]MH_I2C_Read... [00:45:31]Read from MH i2c: E2 FD 00 B9 01 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 AC [00:45:31]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:45:31]wFMCommunicate OK [00:45:31]wFMCommunicate request_size=4 [00:45:31]MH_SAM_APDU [00:45:31]CAPDU: 80 17 00 00 [00:45:31]Write to MH i2c: E2 08 00 BA 01 80 17 00 00 00 00 00 00 3B [00:45:31]Write i2c OK [00:45:31]MH_I2C_Read... [00:45:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:45:32]Read from MH i2c: E2 [00:45:32]MH_I2C_Read... [00:45:32]Read from MH i2c: E2 BD 00 [00:45:32]MH_I2C_Read... [00:45:32]Read from MH i2c: E2 BD 00 BA 01 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 21 [00:45:32]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:45:32]wFMCommunicate OK [00:45:32]SAM_PROTO_GetShiftData done [00:45:32]requested_item shift.sale.total_cash is exist - process it [00:45:32]requested_item shift.sale_refund.total is exist - process it [00:45:32]requested_item shift.sale_refund.total_cash is exist - process it [00:45:32]requested_item shift.buy.total is exist - process it [00:45:32]requested_item shift.buy.total_cash is exist - process it [00:45:32]produce_requested_data done [00:45:32]produce_requested_data return {"fm.sale.total":63646209.55,"fm.sale_refund.total":3197884.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:45:32]process_action_free get_value [00:45:32]json_value_free [00:45:32]json_value_free done [00:45:32]process_json_proto returns [00:45:32]Send response to host [00:45:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":63646209.55,"fm.sale_refund.total":3197884.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:45:32]free response buf [00:45:32]execute_script done [00:45:32]execute_script returns [00:45:32]free content buf [00:45:32]Sock 9.Close socket [00:45:32]Sock 9.Thread stoped [00:45:35]OFD Sender: No OFD packet to send [00:45:40]OFD Sender: No OFD packet to send [00:45:43]recv_with_timeout no data received [00:45:45]OFD Sender: No OFD packet to send [00:45:50]OFD Sender: No OFD packet to send [00:45:55]accept exits with 8 [00:45:55]New connection [00:45:55]New thread 3067297124 created [00:45:55]Thread 3067440484 joined [00:45:55]Waiting for new connection... [00:45:55] Sock 8.Parse request [00:45:55]Sock 8.Check first char [00:45:55]Sock 8.First char is OK [00:45:55]request: POST /json_proto HTTP/1.0 [00:45:55]Method: POST [00:45:55]URL: /json_proto [00:45:55]Method is POST - this is cgi request [00:45:55]url: /json_proto [00:45:55]query_string will be loaded in cgi processing [00:45:55]execute_cgi json_proto POST (null) [00:45:55]execute_cgi path=json_proto method=POST [00:45:55]POST find Content-Length [00:45:55]Host: 172.17.44.67:8080 [00:45:55]Content-Length: 677 [00:45:55]Content-Type: application/json [00:45:55] [00:45:55]POST finish read [00:45:55]Found Content-Length = 677 [00:45:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 2.840, "sum" : 210.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 210.00, "total" : 210.00, "payments": [ { "type": 0, "sum" : 210.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:45:55]execute_script... [00:45:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 2.840, "sum" : 210.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 210.00, "total" : 210.00, "payments": [ { "type": 0, "sum" : 210.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:45:55]POST & json_proto [00:45:55]process_json_proto [00:45:55]json parsed OK: [00:45:55]protocol is kg_v1.0 [00:45:55]action value=close_receipt [00:45:55]process_action close_receipt [00:45:55]cmd_close_receipt [00:45:55]MH_GetDate [00:45:55]Write to MH i2c: F0 00 00 BB 01 AB [00:45:55]Write i2c OK [00:45:55]MH_I2C_Read... [00:45:55]Read from MH i2c: F0 [00:45:55]MH_I2C_Read... [00:45:55]Read from MH i2c: F0 09 00 [00:45:55]MH_I2C_Read... [00:45:55]Read from MH i2c: F0 09 00 BB 01 00 C4 AF 11 67 F1 C7 6B 64 26 [00:45:55]GetLastDocTimeStamp 1729212319 [00:45:55]current date 1729212356 [00:45:55]FM_GetShiftState [00:45:55]SAM_PROTO_GetShiftState [00:45:55]wFMCommunicate request_size=4 [00:45:55]MH_SAM_APDU [00:45:55]CAPDU: 80 13 01 00 [00:45:55]Write to MH i2c: E2 08 00 BC 01 80 13 01 00 00 00 00 00 3A [00:45:55]Write i2c OK [00:45:55]MH_I2C_Read... [00:45:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:55]Read from MH i2c: E2 [00:45:55]MH_I2C_Read... [00:45:55]Read from MH i2c: E2 0E 00 [00:45:55]MH_I2C_Read... [00:45:55]Read from MH i2c: E2 0E 00 BC 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 0C [00:45:55]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [00:45:55]wFMCommunicate OK [00:45:55]SAM_PROTO_GetShiftState done [00:45:55]FM_GetShiftState done [00:45:55]opened in 1729212319 [00:45:55]opened+sec_in_day 1729298719 [00:45:55]quantity*price = 21072 [00:45:55]sum+1 = 21074 [00:45:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 210.00 Внесено: 210.00 СДАЧА: 0.00 НСП 1% : 1.86 НДС 12% : 22.38 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 1 18.10.2024 00:45 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82292 ФПД: 208238903953672 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T004556&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82292&fm=208238903953672&tin=02508201610067®Number=0000000000091680&sum=21000 [00:45:57]StoreToDocumentArchive [00:45:57]shift 526 fd 82292 [00:45:57]save to /storage/0526/doc_00082292 [00:45:57]save last doc name /storage/0526/doc_00082292 to /storage/kkm_last_doc_name [00:45:57]save OK [00:45:57]Clear old archive folders... [00:45:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:45:57]tlvbuf is 00C70DF0 [00:45:57]SAM_PROTO_ClearQueue [00:45:57]wFMCommunicate request_size=4 [00:45:57]MH_SAM_APDU [00:45:57]CAPDU: 80 09 00 00 [00:45:57]Write to MH i2c: E2 08 00 C9 01 80 09 00 00 00 00 00 00 3C [00:45:57]Write i2c OK [00:45:57]MH_I2C_Read... [00:45:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:45:57]Read from MH i2c: E2 [00:45:57]MH_I2C_Read... [00:45:57]Read from MH i2c: E2 03 00 [00:45:57]MH_I2C_Read... [00:45:57]Read from MH i2c: E2 03 00 C9 01 00 90 00 3E [00:45:57]RAPDU: 90 00 [00:45:57]wFMCommunicate OK [00:45:57]SAM_PROTO_ClearQueue done [00:45:57]KKMCreateOFDPacket [00:45:57]OFDProtocolAddRootSTLVToBuf [00:45:57]FM_MakeSignedData [00:45:57]FM_MakeSignedData [00:45:57]SAM_PROTO_SignData [00:45:57]wFMCommunicate request_size=4 [00:45:57]MH_SAM_APDU [00:45:57]CAPDU: 80 0D 01 02 [00:45:57]Write to MH i2c: E2 08 00 CA 01 80 0D 01 02 00 00 00 00 44 [00:45:57]Write i2c OK [00:45:57]MH_I2C_Read... [00:45:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:45:57]Read from MH i2c: E2 [00:45:57]MH_I2C_Read... [00:45:57]Read from MH i2c: E2 03 00 [00:45:57]MH_I2C_Read... [00:45:57]Read from MH i2c: E2 03 00 CA 01 00 90 00 3F [00:45:57]RAPDU: 90 00 [00:45:57]wFMCommunicate OK [00:45:57]wFMCommunicate request_size=255 [00:45:57]MH_SAM_APDU [00:45:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 0B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 51 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 BE 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 01 00 00 00 F4 03 04 00 C4 AF 11 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 74 41 01 00 35 04 06 00 BD [00:45:57]Write to MH i2c: E2 02 01 CB 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 0B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 51 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 BE 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 01 00 00 00 F4 03 04 00 C4 AF 11 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 74 41 01 00 35 04 06 00 BD 00 00 D1 [00:45:58]Write i2c OK [00:45:58]MH_I2C_Read... [00:45:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:58]Read from MH i2c: E2 [00:45:58]MH_I2C_Read... [00:45:58]Read from MH i2c: E2 03 00 [00:45:58]MH_I2C_Read... [00:45:58]Read from MH i2c: E2 03 00 CB 01 00 90 00 40 [00:45:58]RAPDU: 90 00 [00:45:58]wFMCommunicate OK [00:45:58]wFMCommunicate request_size=10 [00:45:58]MH_SAM_APDU [00:45:58]CAPDU: 80 0D 02 02 05 64 65 E6 09 08 [00:45:58]Write to MH i2c: E2 0D 00 CC 01 80 0D 02 02 05 00 64 65 E6 09 08 00 00 11 [00:45:58]Write i2c OK [00:45:58]MH_I2C_Read... [00:45:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:58]Read from MH i2c: E2 [00:45:58]MH_I2C_Read... [00:45:58]Read from MH i2c: E2 03 00 [00:45:58]MH_I2C_Read... [00:45:58]Read from MH i2c: E2 03 00 CC 01 00 90 00 41 [00:45:58]RAPDU: 90 00 [00:45:58]wFMCommunicate OK [00:45:58]wFMCommunicate request_size=4 [00:45:58]MH_SAM_APDU [00:45:58]CAPDU: 80 0D 03 02 [00:45:58]Write to MH i2c: E2 08 00 CD 01 80 0D 03 02 00 00 00 00 49 [00:45:58]Write i2c OK [00:45:58]MH_I2C_Read... [00:45:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:45:58]Read from MH i2c: E2 [00:45:58]MH_I2C_Read... [00:45:58]Read from MH i2c: E2 0B 00 [00:45:58]MH_I2C_Read... [00:45:58]Read from MH i2c: E2 0B 00 CD 01 00 1D 25 AF E5 1B D2 D0 89 90 00 66 [00:45:58]RAPDU: 1D 25 AF E5 1B D2 D0 89 90 00 [00:45:58]wFMCommunicate OK [00:45:58]SAM_PROTO_SignData done [00:45:58]FM_MakeSignedData done [00:45:58]CreateOFDProtocolMessage [00:45:58]wFMCommunicate request_size=4 [00:45:58]MH_SAM_APDU [00:45:58]CAPDU: 80 11 00 00 [00:45:58]Write to MH i2c: E2 08 00 CE 01 80 11 00 00 00 00 00 00 49 [00:45:58]Write i2c OK [00:45:58]MH_I2C_Read... [00:45:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:58]Read from MH i2c: E2 [00:45:58]MH_I2C_Read... [00:45:58]Read from MH i2c: E2 17 00 [00:45:58]MH_I2C_Read... [00:45:58]Read from MH i2c: E2 17 00 CE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 9B [00:45:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:45:58]wFMCommunicate OK [00:45:58]CreateOFDProtocolMessage done [00:45:58]OFDSenderStorePacket 82292 [00:45:58]StoreOFDPacket docnum=82292 [00:45:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 3C 67 07 01 B1 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 0B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 51 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 BE 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 01 00 00 00 F4 03 04 00 C4 AF 11 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 74 41 01 00 35 04 06 00 BD 64 65 E6 09 08 1D 25 AF E5 1B D2 D0 89 [00:45:58]CheckFolder [00:45:58]dirname=/storage/ofd_packets [00:45:58]CheckFolder done [00:45:58]ProducePacketName [00:45:58]name=ofd_packets/00082292 [00:45:58]NVStorageSaveData ofd_packets/00082292 [00:45:58]File name is /storage/ofd_packets/00082292 [00:45:58]Write 301 bytes [00:45:58]NVStorageSaveData done [00:45:58]OFDSenderStorePacket done [00:45:58]KKMCreateOFDPacket done [00:45:58]NVStorageSaveData kkm_last_timestamp [00:45:58]File name is /storage/kkm_last_timestamp [00:45:58]Write 4 bytes [00:45:58]NVStorageSaveData done [00:45:58]ExternCall_PrintAddStr [00:45:58]wPrintStart [00:45:58]Write to MH i2c: 01 00 00 CF 01 D0 [00:45:58]Write i2c OK [00:45:58]MH_I2C_Read... [00:45:58]Read from MH i2c: 01 [00:45:58]MH_I2C_Read... [00:45:58]Read from MH i2c: 01 07 00 [00:45:58]MH_I2C_Read... [00:45:58]Read from MH i2c: 01 07 00 CF 01 00 00 00 00 00 FF 0F E5 [00:45:58]RasterBufferAndPrint [00:45:58]line Счет N : (1)918791 [00:45:58]line ИНН: 02508201610067 [00:45:58]line Контрольно-Кассовый Чек [00:45:58]line ПРОДАЖА [00:45:58]line ТРК (МРК, ГНК) : 12 [00:45:58]line Товар: 2710124500 [00:45:58]line Аи-95-К-5 [00:45:58]line 2.840 * 74.20 [00:45:58]line = 210.73 [00:45:58]line НДС 12% НСП 1% [00:45:58]line > о реализуемом товаре [00:45:58]line ОКРУГЛЕНИЕ: -0.73 [00:45:58]line ИТОГО: 210.00 [00:45:58]line Внесено: 210.00 [00:45:58]line СДАЧА: 0.00 [00:45:58]line НСП 1% : 1.86 [00:45:58]line НДС 12% : 22.38 [00:45:58]line Наличными: 210.00 [00:45:58]line Безнал.: 0.00 [00:45:58]line Место: АЗС № 114 "Партнер Нефть" [00:45:58]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [00:45:58]line СНО: Общий режим [00:45:58]line Чек 1 18.10.2024 00:45 [00:45:58]line Смена: 526 ФФД: 1.0 [00:45:58]line ЗНМ: 0300000086 [00:45:58]line РНМ: 0000000000091680 [00:45:58]line Версия ККМ: 001 [00:45:58]line ФМ: 0000000000871843 [00:45:58]line ФД: 82292 [00:45:58]line ФПД: 208238903953672 [00:45:58]OFD Sender: Processing packet 82292 [packets to send 254, broken 253] [00:45:58]ProducePacketName [00:45:58]name=ofd_packets/00082292 [00:45:58]OFD Sender: To server: pG, [00:45:58]CommunicateWithHost lk.salyk.kg:30040 [00:45:58]ConnectInit lk.salyk.kg [00:47:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:47:26]POST & json_proto [00:47:26]process_json_proto [00:47:26]json parsed OK: [00:47:26]protocol is kg_v1.0 [00:47:26]action value=close_receipt [00:47:26]process_action close_receipt [00:47:26]cmd_close_receipt [00:47:26]MH_GetDate [00:47:26]Write to MH i2c: F0 00 00 06 02 F7 [00:47:26]Write i2c OK [00:47:26]MH_I2C_Read... [00:47:26]Read from MH i2c: F0 [00:47:26]MH_I2C_Read... [00:47:26]Read from MH i2c: F0 09 00 [00:47:26]MH_I2C_Read... [00:47:26]Read from MH i2c: F0 09 00 06 02 00 1F B0 11 67 F1 C7 6B 64 CE [00:47:26]GetLastDocTimeStamp 1729212356 [00:47:26]current date 1729212447 [00:47:26]FM_GetShiftState [00:47:26]SAM_PROTO_GetShiftState [00:47:26]wFMCommunicate request_size=4 [00:47:26]MH_SAM_APDU [00:47:26]CAPDU: 80 13 01 00 [00:47:26]Write to MH i2c: E2 08 00 07 02 80 13 01 00 00 00 00 00 86 [00:47:26]Write i2c OK [00:47:26]MH_I2C_Read... [00:47:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:47:27]Read from MH i2c: E2 [00:47:27]MH_I2C_Read... [00:47:27]Read from MH i2c: E2 0E 00 [00:47:27]MH_I2C_Read... [00:47:27]Read from MH i2c: E2 0E 00 07 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 58 [00:47:27]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [00:47:27]wFMCommunicate OK [00:47:27]SAM_PROTO_GetShiftState done [00:47:27]FM_GetShiftState done [00:47:27]opened in 1729212319 [00:47:27]opened+sec_in_day 1729298719 [00:47:27]quantity*price = 50010 [00:47:27]sum+1 = 50012 [00:47:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 2 18.10.2024 00:47 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82293 ФПД: 234026612642263 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T004727&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82293&fm=234026612642263&tin=02508201610067®Number=0000000000091680&sum=50000 [00:47:28]StoreToDocumentArchive [00:47:28]shift 526 fd 82293 [00:47:28]save to /storage/0526/doc_00082293 [00:47:28]save last doc name /storage/0526/doc_00082293 to /storage/kkm_last_doc_name [00:47:28]save OK [00:47:28]Clear old archive folders... [00:47:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:47:28]tlvbuf is 00B5A060 [00:47:28]SAM_PROTO_ClearQueue [00:47:28]wFMCommunicate request_size=4 [00:47:28]MH_SAM_APDU [00:47:28]CAPDU: 80 09 00 00 [00:47:28]Write to MH i2c: E2 08 00 14 02 80 09 00 00 00 00 00 00 88 [00:47:28]Write i2c OK [00:47:28]MH_I2C_Read... [00:47:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:47:28]Read from MH i2c: E2 [00:47:28]MH_I2C_Read... [00:47:28]Read from MH i2c: E2 03 00 [00:47:28]MH_I2C_Read... [00:47:28]Read from MH i2c: E2 03 00 14 02 00 90 00 8A [00:47:28]RAPDU: 90 00 [00:47:28]wFMCommunicate OK [00:47:28]SAM_PROTO_ClearQueue done [00:47:28]KKMCreateOFDPacket [00:47:28]OFDProtocolAddRootSTLVToBuf [00:47:28]FM_MakeSignedData [00:47:28]FM_MakeSignedData [00:47:28]SAM_PROTO_SignData [00:47:28]wFMCommunicate request_size=4 [00:47:28]MH_SAM_APDU [00:47:28]CAPDU: 80 0D 01 02 [00:47:28]Write to MH i2c: E2 08 00 15 02 80 0D 01 02 00 00 00 00 90 [00:47:28]Write i2c OK [00:47:28]MH_I2C_Read... [00:47:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:47:28]Read from MH i2c: E2 [00:47:28]MH_I2C_Read... [00:47:28]Read from MH i2c: E2 03 00 [00:47:28]MH_I2C_Read... [00:47:28]Read from MH i2c: E2 03 00 15 02 00 90 00 8B [00:47:28]RAPDU: 90 00 [00:47:28]wFMCommunicate OK [00:47:28]wFMCommunicate request_size=255 [00:47:28]MH_SAM_APDU [00:47:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 1F B0 11 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 75 41 01 00 35 04 06 00 D4 [00:47:28]Write to MH i2c: E2 02 01 16 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 1F B0 11 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 75 41 01 00 35 04 06 00 D4 00 00 D9 [00:47:28]Write i2c OK [00:47:28]MH_I2C_Read... [00:47:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:47:29]Read from MH i2c: E2 [00:47:29]MH_I2C_Read... [00:47:29]Read from MH i2c: E2 03 00 [00:47:29]MH_I2C_Read... [00:47:29]Read from MH i2c: E2 03 00 16 02 00 90 00 8C [00:47:29]RAPDU: 90 00 [00:47:29]wFMCommunicate OK [00:47:29]wFMCommunicate request_size=10 [00:47:29]MH_SAM_APDU [00:47:29]CAPDU: 80 0D 02 02 05 D8 91 1D 51 D7 [00:47:29]Write to MH i2c: E2 0D 00 17 02 80 0D 02 02 05 00 D8 91 1D 51 D7 00 00 4B [00:47:29]Write i2c OK [00:47:29]MH_I2C_Read... [00:47:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:47:29]Read from MH i2c: E2 [00:47:29]MH_I2C_Read... [00:47:29]Read from MH i2c: E2 03 00 [00:47:29]MH_I2C_Read... [00:47:29]Read from MH i2c: E2 03 00 17 02 00 90 00 8D [00:47:29]RAPDU: 90 00 [00:47:29]wFMCommunicate OK [00:47:29]wFMCommunicate request_size=4 [00:47:29]MH_SAM_APDU [00:47:29]CAPDU: 80 0D 03 02 [00:47:29]Write to MH i2c: E2 08 00 18 02 80 0D 03 02 00 00 00 00 95 [00:47:29]Write i2c OK [00:47:29]MH_I2C_Read... [00:47:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:47:29]Read from MH i2c: E2 [00:47:29]MH_I2C_Read... [00:47:29]Read from MH i2c: E2 0B 00 [00:47:29]MH_I2C_Read... [00:47:29]Read from MH i2c: E2 0B 00 18 02 00 53 68 38 B6 8D 93 77 83 90 00 59 [00:47:29]RAPDU: 53 68 38 B6 8D 93 77 83 90 00 [00:47:29]wFMCommunicate OK [00:47:29]SAM_PROTO_SignData done [00:47:29]FM_MakeSignedData done [00:47:29]CreateOFDProtocolMessage [00:47:29]wFMCommunicate request_size=4 [00:47:29]MH_SAM_APDU [00:47:29]CAPDU: 80 11 00 00 [00:47:29]Write to MH i2c: E2 08 00 19 02 80 11 00 00 00 00 00 00 95 [00:47:29]Write i2c OK [00:47:29]MH_I2C_Read... [00:47:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:47:29]Read from MH i2c: E2 [00:47:29]MH_I2C_Read... [00:47:29]Read from MH i2c: E2 17 00 [00:47:29]MH_I2C_Read... [00:47:29]Read from MH i2c: E2 17 00 19 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 E7 [00:47:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:47:29]wFMCommunicate OK [00:47:29]CreateOFDProtocolMessage done [00:47:29]OFDSenderStorePacket 82293 [00:47:29]StoreOFDPacket docnum=82293 [00:47:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 D4 FB 07 01 8B F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 1F B0 11 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 75 41 01 00 35 04 06 00 D4 D8 91 1D 51 D7 53 68 38 B6 8D 93 77 83 [00:47:29]CheckFolder [00:47:29]dirname=/storage/ofd_packets [00:47:29]CheckFolder done [00:47:29]ProducePacketName [00:47:29]name=ofd_packets/00082293 [00:47:29]NVStorageSaveData ofd_packets/00082293 [00:47:29]File name is /storage/ofd_packets/00082293 [00:47:29]Write 301 bytes [00:47:29]NVStorageSaveData done [00:47:29]OFDSenderStorePacket done [00:47:29]KKMCreateOFDPacket done [00:47:29]NVStorageSaveData kkm_last_timestamp [00:47:29]File name is /storage/kkm_last_timestamp [00:47:29]Write 4 bytes [00:47:29]NVStorageSaveData done [00:47:29]ExternCall_PrintAddStr [00:47:29]wPrintStart [00:47:29]Write to MH i2c: 01 00 00 1A 02 1C [00:47:29]Write i2c OK [00:47:29]MH_I2C_Read... [00:47:29]Read from MH i2c: 01 [00:47:29]MH_I2C_Read... [00:47:29]Read from MH i2c: 01 07 00 [00:47:29]MH_I2C_Read... [00:47:29]Read from MH i2c: 01 07 00 1A 02 00 00 00 00 00 FF 0F 31 [00:47:29]RasterBufferAndPrint [00:47:29]line Счет N : (1)918792 [00:47:29]line ИНН: 02508201610067 [00:47:29]line Контрольно-Кассовый Чек [00:47:29]line ПРОДАЖА [00:47:29]line ТРК (МРК, ГНК) : 12 [00:47:29]line Товар: 2710124500 [00:47:29]line Аи-95-К-5 [00:47:29]line 6.740 * 74.20 [00:47:29]line = 500.11 [00:47:29]line НДС 12% НСП 1% [00:47:29]line > о реализуемом товаре [00:47:29]line ОКРУГЛЕНИЕ: -0.11 [00:47:29]line ИТОГО: 500.00 [00:47:29]line Внесено: 500.00 [00:47:29]line СДАЧА: 0.00 [00:47:29]line НСП 1% : 4.43 [00:47:29]line НДС 12% : 53.11 [00:47:29]line Наличными: 500.00 [00:47:29]line Безнал.: 0.00 [00:47:29]line Место: АЗС № 114 "Партнер Нефть" [00:47:29]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [00:47:29]line СНО: Общий режим [00:47:29]line Чек 2 18.10.2024 00:47 [00:47:29]line Смена: 526 ФФД: 1.0 [00:47:29]line ЗНМ: 0300000086 [00:47:29]line РНМ: 0000000000091680 [00:47:29]line Версия ККМ: 001 [00:47:29]line ФМ: 0000000000871843 [00:47:29]line ФД: 82293 [00:47:29]line ФПД: 234026612642263 [00:47:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T004727&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82293&fm=234026612642263&tin=02508201610067®Number=0000000000091680&sum=50000 [00:47:29]OFD Sender: Processing packet 82293 [packets to send 254, broken 253] [00:47:29]ProducePacketName [00:47:29]name=ofd_packets/00082293 [00:47:29]OFD Sender: To server: pG, [00:47:29]CommunicateWithHost lk.salyk.kg:30040 [00:47:29]ConnectInit lk.salyk.kg [00:47:29]written 0, free lines is 4095 [00:47:29]Write to MH i2c: 01 00 00 45 02 47 [00:47:29]Write i2c OK [00:47:29]MH_I2C_Read... [00:47:29]Read from MH i2c: 01 [00:47:29]MH_I2C_Read... [00:47:29]Read from MH i2c: 01 07 00 [00:47:29]MH_I2C_Read... [00:47:29]Read from MH i2c: 01 07 00 45 02 00 00 00 00 00 D7 0C 31 [00:47:29]RasterBufferAndPrint [00:47:29]line [00:47:29]line [00:47:29]line [00:47:29]line [00:47:29]line [00:47:29]written 0, free lines is 3324 [00:47:30]MH_Cut [00:47:30]Write to MH i2c: D1 01 00 4C 02 01 20 [00:47:30]Write i2c OK [00:47:30]MH_I2C_Read... [00:47:30]Read from MH i2c: D1 [00:47:30]MH_I2C_Read... [00:47:30]Read from MH i2c: D1 01 00 [00:47:30]MH_I2C_Read... [00:47:30]Read from MH i2c: D1 01 00 4C 02 00 1F [00:47:30]Write to MH i2c: 01 00 00 4D 02 4F [00:47:30]Write i2c OK [00:47:30]MH_I2C_Read... [00:47:30]Connected sock=9 [00:47:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 D4 FB 07 01 8B F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 1F B0 11 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 75 41 01 00 35 04 06 00 D4 D8 91 1D 51 D7 53 68 38 B6 8D 93 77 83 [00:47:30]*** Cut start [00:47:30]*** Partial cut [00:47:30]*** CUTSNS_PIN = 1 [00:47:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 3F D5 47 00 34 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 *** CUTSNS_PIN = 0 [00:47:30]34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 75 41 01 00 F4 03 04 00 5D 55 11 67 B6 04 01 00 00 76 92 99 0F 3C 13 4B 84 [00:47:30]CommunicateWithHost err = 0 [00:47:30]CheckOFDResponse [00:47:30]1017 (14) - 77093643461234 [00:47:30]1041 (16) - 0000000000871843 [00:47:30]1040 (4) - 82293 [00:47:30]1012 (4) - 17.10.2024 18:20 [00:47:30]1206 (1) - 0 [00:47:30]OFD Sender: Remove packet 82293 [00:47:30]ProducePacketName [00:47:30]name=ofd_packets/00082293 [00:47:30]NVStorageDeleteData [00:47:31]*** Brake cut motor [00:47:31]Read from MH i2c: 01 [00:47:31]MH_I2C_Read... [00:47:31]*** Stop cut motor [00:47:31]*** Cut end [00:47:31]Read from MH i2c: 01 07 00 [00:47:31]MH_I2C_Read... [00:47:31]Read from MH i2c: 01 07 00 4D 02 00 00 00 00 00 FF 0F 64 [00:47:31]process_action close_receipt done [00:47:31]requested_data is exist [00:47:31]produce_requested_data [00:47:31]requested_item fm.sn is exist - process it [00:47:31]wFMCommunicate request_size=4 [00:47:31]MH_SAM_APDU [00:47:31]CAPDU: 80 11 00 00 [00:47:31]Write to MH i2c: E2 08 00 4E 02 80 11 00 00 00 00 00 00 CA [00:47:31]OFD Sender: No OFD packet to send [00:47:31]Write i2c OK [00:47:31]MH_I2C_Read... [00:47:31]Read from MH i2c: E2 [00:47:31]MH_I2C_Read... [00:47:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:47:31]Read from MH i2c: E2 17 00 [00:47:31]MH_I2C_Read... [00:47:31]Read from MH i2c: E2 17 00 4E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 1C [00:47:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:47:31]wFMCommunicate OK [00:47:31]requested_item fd.num is exist - process it [00:47:31]SAM_PROTO_GetFieldsCounters [00:47:31]wFMCommunicate request_size=4 [00:47:31]MH_SAM_APDU [00:47:31]CAPDU: 80 13 00 00 [00:47:31]Write to MH i2c: E2 08 00 4F 02 80 13 00 00 00 00 00 00 CD [00:47:31]Write i2c OK [00:47:31]MH_I2C_Read... [00:47:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:47:31]Read from MH i2c: E2 [00:47:31]MH_I2C_Read... [00:47:31]Read from MH i2c: E2 62 00 [00:47:31]MH_I2C_Read... [00:47:31]Read from MH i2c: E2 62 00 4F 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 75 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [00:47:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 75 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:47:31]wFMCommunicate OK [00:47:31]SAM_PROTO_GetFieldsCounters done [00:47:31]requested_item shift.num is exist - process it [00:47:31]requested_item shift.opened is exist - process it [00:47:31]req_shift_opened [00:47:31]FM_GetShiftState [00:47:31]SAM_PROTO_GetShiftState [00:47:31]wFMCommunicate request_size=4 [00:47:31]MH_SAM_APDU [00:47:31]CAPDU: 80 13 01 00 [00:47:31]Write to MH i2c: E2 08 00 50 02 80 13 01 00 00 00 00 00 CF [00:47:31]Write i2c OK [00:47:31]MH_I2C_Read... [00:47:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:47:31]Read from MH i2c: E2 [00:47:31]MH_I2C_Read... [00:47:31]Read from MH i2c: E2 0E 00 [00:47:31]MH_I2C_Read... [00:47:31]Read from MH i2c: E2 0E 00 50 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 A1 [00:47:31]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [00:47:31]wFMCommunicate OK [00:47:31]SAM_PROTO_GetShiftState done [00:47:31]FM_GetShiftState done [00:47:31]req_shift_opened done [00:47:31]requested_item shift.open_date is exist - process it [00:47:31]req_shift_open_date [00:47:31]req_shift_open_date done [00:47:31]produce_requested_data done [00:47:31]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82293,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [00:47:31]process_action_free close_receipt [00:47:31]json_value_free [00:47:31]json_value_free done [00:47:31]process_json_proto returns [00:47:31]Send response to host [00:47:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82293,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [00:47:31]free response buf [00:47:31]execute_script done [00:47:31]execute_script returns [00:47:31]free content buf [00:47:31]Sock 10.Close socket [00:47:31]Sock 10.Thread stoped [00:47:36]OFD Sender: No OFD packet to send [00:47:41]OFD Sender: No OFD packet to send [00:47:46]OFD Sender: No OFD packet to send [00:47:51]OFD Sender: No OFD packet to send [00:47:54]recv_with_timeout no data received [00:47:56]OFD Sender: No OFD packet to send [00:48:01]OFD Sender: No OFD packet to send [00:48:05]recv_with_timeout no data received [00:48:06]OFD Sender: No OFD packet to send [00:48:11]OFD Sender: No OFD packet to send [00:48:16]recv_with_timeout no data received [00:48:16]OFD Sender: No OFD packet to send [00:48:21]OFD Sender: No OFD packet to send [00:48:26]OFD Sender: No OFD packet to send [00:48:31]OFD Sender: No OFD packet to send [00:48:36]OFD Sender: No OFD packet to send [00:48:36]recv_with_timeout no data received [00:48:41]OFD Sender: No OFD packet to send [00:48:46]OFD Sender: No OFD packet to send [00:48:47]recv_with_timeout no data received [00:48:51]OFD Sender: No OFD packet to send [00:48:56]OFD Sender: No OFD packet to send [00:49:00]recv_with_timeout no data received [00:49:01]OFD Sender: No OFD packet to send [00:49:06]OFD Sender: No OFD packet to send [00:49:11]OFD Sender: No OFD packet to send [00:49:16]OFD Sender: No OFD packet to send [00:49:19]recv_with_timeout no data received [00:49:21]OFD Sender: No OFD packet to send [00:49:26]OFD Sender: No OFD packet to send [00:49:31]OFD Sender: No OFD packet to send [00:49:36]OFD Sender: No OFD packet to send [00:49:40]recv_with_timeout no data received [00:49:41]OFD Sender: No OFD packet to send [00:49:46]OFD Sender: No OFD packet to send [00:49:51]OFD Sender: No OFD packet to send [00:49:56]OFD Sender: No OFD packet to send [00:50:01]OFD Sender: No OFD packet to send [00:50:06]OFD Sender: No OFD packet to send [00:50:11]OFD Sender: No OFD packet to send [00:50:16]OFD Sender: No OFD packet to send [00:50:21]OFD Sender: No OFD packet to send [00:50:26]OFD Sender: No OFD packet to send [00:50:31]OFD Sender: No OFD packet to send [00:50:36]OFD Sender: No OFD packet to send [00:50:41]OFD Sender: No OFD packet to send [00:50:42]recv_with_timeout no data received [00:50:46]OFD Sender: No OFD packet to send [00:50:51]OFD Sender: No OFD packet to send [00:50:56]OFD Sender: No OFD packet to send [00:51:01]OFD Sender: No OFD packet to send [00:51:06]OFD Sender: No OFD packet to send [00:51:11]OFD Sender: No OFD packet to send [00:51:16]OFD Sender: No OFD packet to send [00:51:21]OFD Sender: No OFD packet to send [00:51:26]OFD Sender: No OFD packet to send [00:51:31]OFD Sender: No OFD packet to send [00:51:34]recv_with_timeout no data received [00:51:36]OFD Sender: No OFD packet to send [00:51:41]OFD Sender: No OFD packet to send [00:51:46]OFD Sender: No OFD packet to send [00:51:51]OFD Sender: No OFD packet to send [00:51:56]OFD Sender: No OFD packet to send [00:52:01]OFD Sender: No OFD packet to send [00:52:06]OFD Sender: No OFD packet to send [00:52:11]OFD Sender: No OFD packet to send [00:52:16]OFD Sender: No OFD packet to send [00:52:21]OFD Sender: No OFD packet to send [00:52:26]OFD Sender: No OFD packet to send [00:52:31]OFD Sender: No OFD packet to send [00:52:36]OFD Sender: No OFD packet to send [00:52:41]OFD Sender: No OFD packet to send [00:52:46]OFD Sender: No OFD packet to send [00:52:51]OFD Sender: No OFD packet to send [00:52:56]OFD Sender: No OFD packet to send [00:53:01]OFD Sender: No OFD packet to send [00:53:06]OFD Sender: No OFD packet to send [00:53:12]OFD Sender: No OFD packet to send [00:53:17]OFD Sender: No OFD packet to send [00:53:22]OFD Sender: No OFD packet to send [00:53:27]OFD Sender: No OFD packet to send [00:53:32]OFD Sender: No OFD packet to send [00:53:37]OFD Sender: No OFD packet to send [00:53:42]OFD Sender: No OFD packet to send [00:45:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T004556&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82292&fm=208238903953672&tin=02508201610067®Number=0000000000091680&sum=21000 [00:45:58]written 0, free lines is 4095 [00:45:59]Write to MH i2c: 01 00 00 FA 01 FB [00:45:59]Write i2c OK [00:45:59]MH_I2C_Read... [00:45:59]Read from MH i2c: 01 [00:45:59]MH_I2C_Read... [00:45:59]Read from MH i2c: 01 07 00 [00:45:59]MH_I2C_Read... [00:45:59]Read from MH i2c: 01 07 00 FA 01 00 00 00 00 00 E7 0C F5 [00:45:59]RasterBufferAndPrint [00:45:59]line [00:45:59]line [00:45:59]line [00:45:59]line [00:45:59]line [00:45:59]written 0, free lines is 3362 [00:45:59]MH_Cut [00:45:59]Write to MH i2c: D1 01 00 01 02 01 D5 [00:45:59]Write i2c OK [00:45:59]MH_I2C_Read... [00:45:59]Read from MH i2c: D1 [00:45:59]MH_I2C_Read... [00:45:59]Read from MH i2c: D1 01 00 [00:45:59]MH_I2C_Read... [00:45:59]Read from MH i2c: D1 01 00 01 02 00 D4 [00:45:59]Write to MH i2c: 01 00 00 02 02 04 [00:45:59]Write i2c OK [00:45:59]MH_I2C_Read... [00:45:59]Connected sock=11 [00:45:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 3C 67 07 01 B1 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 0B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 51 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 BE 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 *** Cut start [00:46:00]00 *** Partial cut [00:46:00]00 00 00 00 00 *** CUTSNS_PIN = 1 [00:46:00]1F *** CUTSNS_PIN = 0 [00:46:00]04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 *** Brake cut motor [00:46:00]00 C4 AF 11 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 74 41 01 00 35 04 06 00 BD 64 65 E6 09 08 1D 25 AF E5 1B D2 D0 89 [00:46:00]Read from MH i2c: *** Stop cut motor [00:46:00]01 *** Cut end [00:46:00] [00:46:00]MH_I2C_Read... [00:46:00]Read from MH i2c: 01 07 00 [00:46:00]MH_I2C_Read... [00:46:00]Read from MH i2c: 01 07 00 02 02 00 00 00 00 00 FF 0F 19 [00:46:00]process_action close_receipt done [00:46:00]requested_data is exist [00:46:00]produce_requested_data [0[00:53:47]OFD Sender: No OFD packet to send [00:53:52]OFD Sender: No OFD packet to send [00:53:52]recv_with_timeout no data received [00:53:57]OFD Sender: No OFD packet to send [00:54:02]OFD Sender: No OFD packet to send [00:54:07]OFD Sender: No OFD packet to send [00:54:12]OFD Sender: No OFD packet to send [00:54:17]OFD Sender: No OFD packet to send [00:54:22]OFD Sender: No OFD packet to send [00:54:27]OFD Sender: No OFD packet to send [00:54:30]recv_with_timeout no data received [00:54:32]OFD Sender: No OFD packet to send [00:54:37]OFD Sender: No OFD packet to send [00:54:42]OFD Sender: No OFD packet to send [00:54:47]OFD Sender: No OFD packet to send [00:54:52]OFD Sender: No OFD packet to send [00:54:57]OFD Sender: No OFD packet to send [00:55:02]OFD Sender: No OFD packet to send [00:55:07]OFD Sender: No OFD packet to send [00:55:12]OFD Sender: No OFD packet to send [00:55:17]OFD Sender: No OFD packet to send [00:55:22]OFD Sender: No OFD packet to send [00:55:27]OFD Sender: No OFD packet to send [00:55:30]recv_with_timeout no data received [00:55:32]OFD Sender: No OFD packet to send [00:55:37]OFD Sender: No OFD packet to send [00:55:42]OFD Sender: No OFD packet to send [00:55:47]OFD Sender: No OFD packet to send [00:55:52]OFD Sender: No OFD packet to send [00:55:57]OFD Sender: No OFD packet to send [00:56:02]OFD Sender: No OFD packet to send [00:56:07]OFD Sender: No OFD packet to send [00:56:12]OFD Sender: No OFD packet to send [00:56:17]OFD Sender: No OFD packet to send [00:56:22]OFD Sender: No OFD packet to send [00:56:27]OFD Sender: No OFD packet to send [00:56:32]OFD Sender: No OFD packet to send [00:56:37]OFD Sender: No OFD packet to send [00:56:42]OFD Sender: No OFD packet to send [00:56:47]OFD Sender: No OFD packet to send [00:56:52]OFD Sender: No OFD packet to send [00:56:57]OFD Sender: No OFD packet to send [00:57:02]OFD Sender: No OFD packet to send [00:57:07]OFD Sender: No OFD packet to send [00:57:12]OFD Sender: No OFD packet to send [00:57:17]recv_with_timeout no data received [00:57:17]OFD Sender: No OFD packet to send [00:57:22]OFD Sender: No OFD packet to send [00:57:27]OFD Sender: No OFD packet to send [00:57:32]OFD Sender: No OFD packet to send [00:57:37]OFD Sender: No OFD packet to send [00:57:42]OFD Sender: No OFD packet to send [00:57:43]recv_with_timeout no data received [00:57:47]OFD Sender: No OFD packet to send [00:57:52]OFD Sender: No OFD packet to send [00:57:57]OFD Sender: No OFD packet to send [00:58:02]OFD Sender: No OFD packet to send [00:58:07]OFD Sender: No OFD packet to send [00:58:12]OFD Sender: No OFD packet to send [00:58:17]OFD Sender: No OFD packet to send [00:58:22]OFD Sender: No OFD packet to send [00:58:27]OFD Sender: No OFD packet to send [00:58:32]OFD Sender: No OFD packet to send [00:58:37]OFD Sender: No OFD packet to send [00:58:42]OFD Sender: No OFD packet to send [00:58:47]OFD Sender: No OFD packet to send [00:58:52]OFD Sender: No OFD packet to send [00:58:57]OFD Sender: No OFD packet to send [00:59:02]OFD Sender: No OFD packet to send [00:59:03]recv_with_timeout no data received [00:59:07]OFD Sender: No OFD packet to send [00:59:12]OFD Sender: No OFD packet to send [00:59:17]OFD Sender: No OFD packet to send [00:59:22]OFD Sender: No OFD packet to send [00:59:27]OFD Sender: No OFD packet to send [00:59:32]OFD Sender: No OFD packet to send [00:59:37]OFD Sender: No OFD packet to send [00:59:42]OFD Sender: No OFD packet to send [00:59:43]recv_with_timeout no data received [00:59:47]OFD Sender: No OFD packet to send [00:59:52]OFD Sender: No OFD packet to send [00:59:57]OFD Sender: No OFD packet to send [01:00:02]OFD Sender: No OFD packet to send [01:00:07]OFD Sender: No OFD packet to send [01:00:12]OFD Sender: No OFD packet to send [01:00:17]recv_with_timeout no data received [01:00:17]OFD Sender: No OFD packet to send [01:00:22]OFD Sender: No OFD packet to send [01:00:27]OFD Sender: No OFD packet to send [01:00:32]OFD Sender: No OFD packet to send [01:00:37]OFD Sender: No OFD packet to send [01:00:42]OFD Sender: No OFD packet to send [01:00:44]recv_with_timeout no data received [01:00:47]OFD Sender: No OFD packet to send [01:00:52]OFD Sender: No OFD packet to send [01:00:57]OFD Sender: No OFD packet to send [01:01:02]OFD Sender: No OFD packet to send [01:01:07]OFD Sender: No OFD packet to send [01:01:12]OFD Sender: No OFD packet to send [01:01:17]OFD Sender: No OFD packet to send [01:01:22]OFD Sender: No OFD packet to send [01:01:27]OFD Sender: No OFD packet to send [01:01:32]OFD Sender: No OFD packet to send [01:01:37]OFD Sender: No OFD packet to send [01:01:42]OFD Sender: No OFD packet to send [01:01:47]OFD Sender: No OFD packet to send [01:01:52]OFD Sender: No OFD packet to send [01:01:57]OFD Sender: No OFD packet to send [01:02:02]OFD Sender: No OFD packet to send [01:02:07]OFD Sender: No OFD packet to send [01:02:12]OFD Sender: No OFD packet to send [01:02:17]OFD Sender: No OFD packet to send [01:02:22]OFD Sender: No OFD packet to send [01:02:27]recv_with_timeout no data received [01:02:27]OFD Sender: No OFD packet to send [01:02:32]OFD Sender: No OFD packet to send [01:02:37]OFD Sender: No OFD packet to send [01:02:42]OFD Sender: No OFD packet to send [01:02:47]OFD Sender: No OFD packet to send [01:02:52]OFD Sender: No OFD packet to send [01:02:57]OFD Sender: No OFD packet to send [01:03:02]OFD Sender: No OFD packet to send [01:03:04]recv_with_timeout no data received [01:03:07]OFD Sender: No OFD packet to send [01:03:12]OFD Sender: No OFD packet to send [01:03:17]OFD Sender: No OFD packet to send [01:03:22]OFD Sender: No OFD packet to send [01:03:27]OFD Sender: No OFD packet to send [01:03:32]OFD Sender: No OFD packet to send [01:03:38]OFD Sender: No OFD packet to send [01:03:43]OFD Sender: No OFD packet to send [01:03:48]OFD Sender: No OFD packet to send [01:03:53]OFD Sender: No OFD packet to send [01:03:58]OFD Sender: No OFD packet to send [01:04:02]recv_with_timeout no data received [01:04:03]OFD Sender: No OFD packet to send [01:04:08]OFD Sender: No OFD packet to send [01:04:13]OFD Sender: No OFD packet to send [01:04:18]OFD Sender: No OFD packet to send [01:04:23]OFD Sender: No OFD packet to send [01:04:28]OFD Sender: No OFD packet to send [01:04:33]OFD Sender: No OFD packet to send [01:04:33]recv_with_timeout no data received [01:04:38]OFD Sender: No OFD packet to send [01:04:43]OFD Sender: No OFD packet to send [01:04:48]OFD Sender: No OFD packet to send [01:04:53]OFD Sender: No OFD packet to send [01:04:58]OFD Sender: No OFD packet to send [01:05:02]recv_with_timeout no data received [01:05:03]OFD Sender: No OFD packet to send [01:05:08]OFD Sender: No OFD packet to send [01:05:13]OFD Sender: No OFD packet to send [01:05:18]OFD Sender: No OFD packet to send [01:05:18]recv_with_timeout no data received [01:05:23]OFD Sender: No OFD packet to send [01:05:28]OFD Sender: No OFD packet to send [01:05:28]recv_with_timeout no data received [01:05:33]OFD Sender: No OFD packet to send [01:05:38]OFD Sender: No OFD packet to send [01:05:43]OFD Sender: No OFD packet to send [01:05:48]OFD Sender: No OFD packet to send [01:05:53]OFD Sender: No OFD packet to send [01:05:58]OFD Sender: No OFD packet to send [01:06:03]OFD Sender: No OFD packet to send [01:06:08]OFD Sender: No OFD packet to send [01:06:08]recv_with_timeout no data received [01:06:13]OFD Sender: No OFD packet to send [01:06:18]OFD Sender: No OFD packet to send [01:06:23]OFD Sender: No OFD packet to send [01:06:28]OFD Sender: No OFD packet to send [01:06:33]OFD Sender: No OFD packet to send [01:06:38]OFD Sender: No OFD packet to send [01:06:43]OFD Sender: No OFD packet to send [01:06:48]OFD Sender: No OFD packet to send [01:06:53]OFD Sender: No OFD packet to send [01:06:58]OFD Sender: No OFD packet to send [01:07:03]OFD Sender: No OFD packet to send [01:07:08]OFD Sender: No OFD packet to send [01:07:13]OFD Sender: No OFD packet to send [01:07:18]OFD Sender: No OFD packet to send [01:07:23]OFD Sender: No OFD packet to send [01:07:28]OFD Sender: No OFD packet to send [01:07:33]OFD Sender: No OFD packet to send [01:07:38]OFD Sender: No OFD packet to send [01:07:43]OFD Sender: No OFD packet to send [01:07:48]OFD Sender: No OFD packet to send [01:07:53]OFD Sender: No OFD packet to send [01:07:58]OFD Sender: No OFD packet to send [01:08:03]OFD Sender: No OFD packet to send [01:08:08]OFD Sender: No OFD packet to send [01:08:13]OFD Sender: No OFD packet to send [01:08:18]OFD Sender: No OFD packet to send [01:08:23]OFD Sender: No OFD packet to send [01:08:28]OFD Sender: No OFD packet to send [01:08:33]OFD Sender: No OFD packet to send [01:08:38]OFD Sender: No OFD packet to send [01:08:43]OFD Sender: No OFD packet to send [01:08:48]OFD Sender: No OFD packet to send [01:08:53]OFD Sender: No OFD packet to send [01:08:58]OFD Sender: No OFD packet to send [01:09:03]OFD Sender: No OFD packet to send [01:09:08]OFD Sender: No OFD packet to send [01:09:13]OFD Sender: No OFD packet to send [01:09:18]OFD Sender: No OFD packet to send [01:09:23]OFD Sender: No OFD packet to send [01:09:28]OFD Sender: No OFD packet to send [01:09:33]OFD Sender: No OFD packet to send [01:09:38]OFD Sender: No OFD packet to send [01:09:43]OFD Sender: No OFD packet to send [01:09:48]OFD Sender: No OFD packet to send [01:09:53]OFD Sender: No OFD packet to send [01:09:58]OFD Sender: No OFD packet to send [01:10:03]OFD Sender: No OFD packet to send [01:10:08]OFD Sender: No OFD packet to send [01:10:13]OFD Sender: No OFD packet to send [01:10:18]OFD Sender: No OFD packet to send [01:10:23]OFD Sender: No OFD packet to send [01:10:28]OFD Sender: No OFD packet to send [01:10:33]OFD Sender: No OFD packet to send [01:10:38]OFD Sender: No OFD packet to send [01:10:43]OFD Sender: No OFD packet to send [01:10:48]OFD Sender: No OFD packet to send [01:10:53]OFD Sender: No OFD packet to send [01:10:58]OFD Sender: No OFD packet to send [01:11:03]OFD Sender: No OFD packet to send [01:11:08]OFD Sender: No OFD packet to send [01:11:13]OFD Sender: No OFD packet to send [01:11:18]OFD Sender: No OFD packet to send [01:11:23]OFD Sender: No OFD packet to send [01:11:28]OFD Sender: No OFD packet to send [01:11:33]OFD Sender: No OFD packet to send [01:11:38]OFD Sender: No OFD packet to send [01:11:43]OFD Sender: No OFD packet to send [01:11:48]OFD Sender: No OFD packet to send [01:11:53]OFD Sender: No OFD packet to send [01:11:58]OFD Sender: No OFD packet to send [01:12:03]OFD Sender: No OFD packet to send [01:12:08]OFD Sender: No OFD packet to send [01:12:13]OFD Sender: No OFD packet to send [01:12:18]OFD Sender: No OFD packet to send [01:12:23]OFD Sender: No OFD packet to send [01:12:28]OFD Sender: No OFD packet to send [01:12:33]OFD Sender: No OFD packet to send [01:12:38]OFD Sender: No OFD packet to send [01:12:43]OFD Sender: No OFD packet to send [01:12:48]OFD Sender: No OFD packet to send [01:12:53]OFD Sender: No OFD packet to send [01:12:58]OFD Sender: No OFD packet to send [01:13:03]OFD Sender: No OFD packet to send [01:13:08]OFD Sender: No OFD packet to send [01:13:13]OFD Sender: No OFD packet to send [01:13:18]OFD Sender: No OFD packet to send [01:13:23]OFD Sender: No OFD packet to send [01:13:28]OFD Sender: No OFD packet to send [01:13:33]OFD Sender: No OFD packet to send [01:13:38]OFD Sender: No OFD packet to send [01:13:43]OFD Sender: No OFD packet to send [01:13:48]OFD Sender: No OFD packet to send [01:13:51]recv_with_timeout no data received [01:13:53]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:10]recv_with_timeout no data received [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:27]recv_with_timeout no data received [01:15:29]OFD Sender: No OFD packet to send [01:15:44]OFD Sender: No OFD packet to send [01:15:49]OFD Sender: No OFD packet to send [01:15:54]OFD Sender: No OFD packet to send [01:15:59]OFD Sender: No OFD packet to send [01:16:04]OFD Sender: No OFD packet to send [01:16:09]OFD Sender: No OFD packet to send [01:16:14]OFD Sender: No OFD packet to send [01:16:19]OFD Sender: No OFD packet to send [01:16:24]OFD Sender: No OFD packet to send [01:16:29]OFD Sender: No OFD packet to send [01:16:33]recv_with_timeout no data received [01:16:34]OFD Sender: No OFD packet to send [01:16:39]OFD Sender: No OFD packet to send [01:16:44]OFD Sender: No OFD packet to send [01:16:49]OFD Sender: No OFD packet to send [01:16:49]recv_with_timeout no data received [01:16:54]OFD Sender: No OFD packet to send [01:16:59]OFD Sender: No OFD packet to send [01:17:04]OFD Sender: No OFD packet to send [01:17:09]OFD Sender: No OFD packet to send [01:17:14]OFD Sender: No OFD packet to send [01:17:19]OFD Sender: No OFD packet to send [01:17:22]recv_with_timeout no data received [01:17:24]OFD Sender: No OFD packet to send [01:17:29]OFD Sender: No OFD packet to send [01:17:34]OFD Sender: No OFD packet to send [01:17:39]OFD Sender: No OFD packet to send [01:17:44]OFD Sender: No OFD packet to send [01:17:49]OFD Sender: No OFD packet to send [01:17:54]OFD Sender: No OFD packet to send [01:17:59]OFD Sender: No OFD packet to send [01:18:04]OFD Sender: No OFD packet to send [01:18:09]OFD Sender: No OFD packet to send [01:18:14]OFD Sender: No OFD packet to send [01:18:19]OFD Sender: No OFD packet to send [01:18:24]OFD Sender: No OFD packet to send [01:18:39]OFD Sender: No OFD packet to send [01:18:44]OFD Sender: No OFD packet to send [01:18:49]OFD Sender: No OFD packet to send [01:18:54]OFD Sender: No OFD packet to send [01:18:59]OFD Sender: No OFD packet to send [01:19:04]OFD Sender: No OFD packet to send [01:19:09]OFD Sender: No OFD packet to send [01:19:14]OFD Sender: No OFD packet to send [01:19:19]OFD Sender: No OFD packet to send [01:19:24]recv_with_timeout no data received [01:19:24]OFD Sender: No OFD packet to send [01:19:29]OFD Sender: No OFD packet to send [01:19:34]OFD Sender: No OFD packet to send [01:19:39]OFD Sender: No OFD packet to send [01:19:44]OFD Sender: No OFD packet to send [01:19:49]OFD Sender: No OFD packet to send [01:19:54]OFD Sender: No OFD packet to send [01:19:59]OFD Sender: No OFD packet to send [01:20:04]OFD Sender: No OFD packet to send [01:20:09]OFD Sender: No OFD packet to send [01:20:14]OFD Sender: No OFD packet to send [01:20:19]OFD Sender: No OFD packet to send [01:20:24]OFD Sender: No OFD packet to send [01:20:29]OFD Sender: No OFD packet to send [01:20:34]OFD Sender: No OFD packet to send [01:20:39]OFD Sender: No OFD packet to send [01:20:44]OFD Sender: No OFD packet to send [01:20:49]OFD Sender: No OFD packet to send [01:20:54]OFD Sender: No OFD packet to send [01:21:09]OFD Sender: No OFD packet to send [01:21:14]OFD Sender: No OFD packet to send [01:21:19]OFD Sender: No OFD packet to send [01:21:24]OFD Sender: No OFD packet to send [01:21:29]OFD Sender: No OFD packet to send [01:21:34]OFD Sender: No OFD packet to send [01:21:39]OFD Sender: No OFD packet to send [01:21:44]OFD Sender: No OFD packet to send [01:21:49]OFD Sender: No OFD packet to send [01:21:54]OFD Sender: No OFD packet to send [01:21:59]OFD Sender: No OFD packet to send [01:22:00]recv_with_timeout no data received [01:22:04]OFD Sender: No OFD packet to send [01:22:09]OFD Sender: No OFD packet to send [01:22:10]recv_with_timeout no data received [01:22:14]OFD Sender: No OFD packet to send [01:22:19]OFD Sender: No OFD packet to send [01:22:23]recv_with_timeout no data received [01:22:24]OFD Sender: No OFD packet to send [01:22:29]OFD Sender: No OFD packet to send [01:22:34]OFD Sender: No OFD packet to send [01:22:39]OFD Sender: No OFD packet to send [01:22:44]OFD Sender: No OFD packet to send [01:22:49]OFD Sender: No OFD packet to send [01:22:54]OFD Sender: No OFD packet to send [01:22:59]OFD Sender: No OFD packet to send [01:23:04]OFD Sender: No OFD packet to send [01:23:09]OFD Sender: No OFD packet to send [01:23:10]recv_with_timeout no data received [01:23:14]OFD Sender: No OFD packet to send [01:23:19]OFD Sender: No OFD packet to send [01:23:20]recv_with_timeout no data received [01:23:24]OFD Sender: No OFD packet to send [01:23:29]OFD Sender: No OFD packet to send [01:23:32]recv_with_timeout no data received [01:23:34]OFD Sender: No OFD packet to send [01:23:39]OFD Sender: No OFD packet to send [01:23:44]OFD Sender: No OFD packet to send [01:23:49]OFD Sender: No OFD packet to send [01:23:54]OFD Sender: No OFD packet to send [01:23:59]OFD Sender: No OFD packet to send [01:24:04]OFD Sender: No OFD packet to send [01:24:08]accept exits with 8 [01:24:08]New connection [01:24:08]New thread 3067297124 created [01:24:08]Thread 3067440484 joined [01:24:08]Waiting for new connection... [01:24:08] Sock 8.Parse request [01:24:08]Sock 8.Check first char [01:24:08]Sock 8.First char is OK [01:24:08]request: POST /json_proto HTTP/1.0 [01:24:08]Method: POST [01:24:08]URL: /json_proto [01:24:08]Method is POST - this is cgi request [01:24:08]url: /json_proto [01:24:08]query_string will be loaded in cgi processing [01:24:08]execute_cgi json_proto POST (null) [01:24:08]execute_cgi path=json_proto method=POST [01:24:08]POST find Content-Length [01:24:08]Host: 172.17.44.67:8080 [01:24:08]Content-Length: 677 [01:24:08]Content-Type: application/json [01:24:08] [01:24:08]POST finish read [01:24:08]Found Content-Length = 677 [01:24:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:24:08]execute_script... [01:24:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:24:08]POST & json_proto [01:24:08]process_json_proto [01:24:08]json parsed OK: [01:24:08]protocol is kg_v1.0 [01:24:08]action value=close_receipt [01:24:08]process_action close_receipt [01:24:08]cmd_close_receipt [01:24:08]MH_GetDate [01:24:08]Write to MH i2c: F0 00 00 51 02 42 [01:24:08]Write i2c OK [01:24:08]MH_I2C_Read... [01:24:08]Read from MH i2c: F0 [01:24:08]MH_I2C_Read... [01:24:08]Read from MH i2c: F0 09 00 [01:24:08]MH_I2C_Read... [01:24:08]Read from MH i2c: F0 09 00 51 02 00 B9 B8 11 67 F1 C7 6B 64 BB [01:24:08]GetLastDocTimeStamp 1729212447 [01:24:08]current date 1729214649 [01:24:08]FM_GetShiftState [01:24:08]SAM_PROTO_GetShiftState [01:24:08]wFMCommunicate request_size=4 [01:24:08]MH_SAM_APDU [01:24:08]CAPDU: 80 13 01 00 [01:24:08]Write to MH i2c: E2 08 00 52 02 80 13 01 00 00 00 00 00 D1 [01:24:08]Write i2c OK [01:24:08]MH_I2C_Read... [01:24:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:24:08]Read from MH i2c: E2 [01:24:08]MH_I2C_Read... [01:24:08]Read from MH i2c: E2 0E 00 [01:24:08]MH_I2C_Read... [01:24:08]Read from MH i2c: E2 0E 00 52 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 A3 [01:24:08]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [01:24:08]wFMCommunicate OK [01:24:08]SAM_PROTO_GetShiftState done [01:24:08]FM_GetShiftState done [01:24:08]opened in 1729212319 [01:24:08]opened+sec_in_day 1729298719 [01:24:08]quantity*price = 20003 [01:24:08]sum+1 = 20004 [01:24:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 3 18.10.2024 01:24 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82294 ФПД: 158109367550669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T012409&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82294&fm=158109367550669&tin=02508201610067®Number=0000000000091680&sum=20000 [01:24:09]StoreToDocumentArchive [01:24:09]shift 526 fd 82294 [01:24:09]save to /storage/0526/doc_00082294 [01:24:09]save last doc name /storage/0526/doc_00082294 to /storage/kkm_last_doc_name [01:24:09]save OK [01:24:09]Clear old archive folders... [01:24:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:24:09]tlvbuf is 00B156D0 [01:24:09]SAM_PROTO_ClearQueue [01:24:09]wFMCommunicate request_size=4 [01:24:09]MH_SAM_APDU [01:24:09]CAPDU: 80 09 00 00 [01:24:09]Write to MH i2c: E2 08 00 5F 02 80 09 00 00 00 00 00 00 D3 [01:24:09]Write i2c OK [01:24:09]MH_I2C_Read... [01:24:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:24:09]Read from MH i2c: E2 [01:24:09]MH_I2C_Read... [01:24:09]Read from MH i2c: E2 03 00 [01:24:09]MH_I2C_Read... [01:24:09]Read from MH i2c: E2 03 00 5F 02 00 90 00 D5 [01:24:09]RAPDU: 90 00 [01:24:09]wFMCommunicate OK [01:24:09]SAM_PROTO_ClearQueue done [01:24:09]KKMCreateOFDPacket [01:24:09]OFDProtocolAddRootSTLVToBuf [01:24:09]FM_MakeSignedData [01:24:09]FM_MakeSignedData [01:24:09]SAM_PROTO_SignData [01:24:09]wFMCommunicate request_size=4 [01:24:09]MH_SAM_APDU [01:24:09]CAPDU: 80 0D 01 02 [01:24:09]Write to MH i2c: E2 08 00 60 02 80 0D 01 02 00 00 00 00 DB [01:24:09]Write i2c OK [01:24:09]MH_I2C_Read... [01:24:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:24:09]Read from MH i2c: E2 [01:24:09]MH_I2C_Read... [01:24:09]Read from MH i2c: E2 03 00 [01:24:09]MH_I2C_Read... [01:24:09]Read from MH i2c: E2 03 00 60 02 00 90 00 D6 [01:24:09]RAPDU: 90 00 [01:24:09]wFMCommunicate OK [01:24:09]wFMCommunicate request_size=255 [01:24:09]MH_SAM_APDU [01:24:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 B9 B8 11 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 76 41 01 00 35 04 06 00 8F [01:24:09]Write to MH i2c: E2 02 01 61 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 B9 B8 11 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 76 41 01 00 35 04 06 00 8F 00 00 6C [01:24:09]Write i2c OK [01:24:09]MH_I2C_Read... [01:24:10]OFD Sender: No OFD packet to send [01:24:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:24:10]Read from MH i2c: E2 [01:24:10]MH_I2C_Read... [01:24:10]Read from MH i2c: E2 03 00 [01:24:10]MH_I2C_Read... [01:24:10]Read from MH i2c: E2 03 00 61 02 00 90 00 D7 [01:24:10]RAPDU: 90 00 [01:24:10]wFMCommunicate OK [01:24:10]wFMCommunicate request_size=10 [01:24:10]MH_SAM_APDU [01:24:10]CAPDU: 80 0D 02 02 05 CC B4 B0 42 CD [01:24:10]Write to MH i2c: E2 0D 00 62 02 80 0D 02 02 05 00 CC B4 B0 42 CD 00 00 27 [01:24:10]Write i2c OK [01:24:10]MH_I2C_Read... [01:24:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:24:10]Read from MH i2c: E2 [01:24:10]MH_I2C_Read... [01:24:10]Read from MH i2c: E2 03 00 [01:24:10]MH_I2C_Read... [01:24:10]Read from MH i2c: E2 03 00 62 02 00 90 00 D8 [01:24:10]RAPDU: 90 00 [01:24:10]wFMCommunicate OK [01:24:10]wFMCommunicate request_size=4 [01:24:10]MH_SAM_APDU [01:24:10]CAPDU: 80 0D 03 02 [01:24:10]Write to MH i2c: E2 08 00 63 02 80 0D 03 02 00 00 00 00 E0 [01:24:10]Write i2c OK [01:24:10]MH_I2C_Read... [01:24:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:24:10]Read from MH i2c: E2 [01:24:10]MH_I2C_Read... [01:24:10]Read from MH i2c: E2 0B 00 [01:24:10]MH_I2C_Read... [01:24:10]Read from MH i2c: E2 0B 00 63 02 00 E7 05 6E 66 E4 31 FC F7 90 00 A9 [01:24:10]RAPDU: E7 05 6E 66 E4 31 FC F7 90 00 [01:24:10]wFMCommunicate OK [01:24:10]SAM_PROTO_SignData done [01:24:10]FM_MakeSignedData done [01:24:10]CreateOFDProtocolMessage [01:24:10]wFMCommunicate request_size=4 [01:24:10]MH_SAM_APDU [01:24:10]CAPDU: 80 11 00 00 [01:24:10]Write to MH i2c: E2 08 00 64 02 80 11 00 00 00 00 00 00 E0 [01:24:10]Write i2c OK [01:24:10]MH_I2C_Read... [01:24:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:24:10]Read from MH i2c: E2 [01:24:10]MH_I2C_Read... [01:24:10]Read from MH i2c: E2 17 00 [01:24:10]MH_I2C_Read... [01:24:10]Read from MH i2c: E2 17 00 64 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 32 [01:24:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [01:24:10]wFMCommunicate OK [01:24:10]CreateOFDProtocolMessage done [01:24:10]OFDSenderStorePacket 82294 [01:24:10]StoreOFDPacket docnum=82294 [01:24:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 8C 06 07 01 37 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 B9 B8 11 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 76 41 01 00 35 04 06 00 8F CC B4 B0 42 CD E7 05 6E 66 E4 31 FC F7 [01:24:10]CheckFolder [01:24:10]dirname=/storage/ofd_packets [01:24:10]CheckFolder done [01:24:10]ProducePacketName [01:24:10]name=ofd_packets/00082294 [01:24:10]NVStorageSaveData ofd_packets/00082294 [01:24:10]File name is /storage/ofd_packets/00082294 [01:24:10]Write 301 bytes [01:24:10]NVStorageSaveData done [01:24:10]OFDSenderStorePacket done [01:24:10]KKMCreateOFDPacket done [01:24:10]NVStorageSaveData kkm_last_timestamp [01:24:10]File name is /storage/kkm_last_timestamp [01:24:10]Write 4 bytes [01:24:10]NVStorageSaveData done [01:24:10]ExternCall_PrintAddStr [01:24:10]wPrintStart [01:24:10]Write to MH i2c: 01 00 00 65 02 67 [01:24:10]Write i2c OK [01:24:10]MH_I2C_Read... [01:24:10]Read from MH i2c: 01 [01:24:10]MH_I2C_Read... [01:24:10]Read from MH i2c: 01 07 00 [01:24:10]MH_I2C_Read... [01:24:10]Read from MH i2c: 01 07 00 65 02 00 00 00 00 00 FF 0F 7C [01:24:10]RasterBufferAndPrint [01:24:10]line Счет N : (1)918793 [01:24:10]line ИНН: 02508201610067 [01:24:10]line Контрольно-Кассовый Чек [01:24:10]line ПРОДАЖА [01:24:10]line ТРК (МРК, ГНК) : 11 [01:24:10]line Товар: 2710124130 [01:24:10]line Аи-92-К-4 [01:24:10]line 2.990 * 66.90 [01:24:10]line = 200.03 [01:24:10]line НДС 12% НСП 1% [01:24:10]line > о реализуемом товаре [01:24:10]line ОКРУГЛЕНИЕ: -0.03 [01:24:10]line ИТОГО: 200.00 [01:24:10]line Внесено: 200.00 [01:24:10]line СДАЧА: 0.00 [01:24:10]line НСП 1% : 1.77 [01:24:10]line НДС 12% : 21.24 [01:24:10]line Наличными: 200.00 [01:24:10]line Безнал.: 0.00 [01:24:10]line Место: АЗС № 114 "Партнер Нефть" [01:24:10]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [01:24:10]line СНО: Общий режим [01:24:10]line Чек 3 18.10.2024 01:24 [01:24:10]line Смена: 526 ФФД: 1.0 [01:24:10]line ЗНМ: 0300000086 [01:24:10]line РНМ: 0000000000091680 [01:24:10]line Версия ККМ: 001 [01:24:10]line ФМ: 0000000000871843 [01:24:10]line ФД: 82294 [01:24:10]line ФПД: 158109367550669 [01:24:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T012409&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82294&fm=158109367550669&tin=02508201610067®Number=0000000000091680&sum=20000 [01:24:10]OFD Sender: Processing packet 82294 [packets to send 254, broken 253] [01:24:10]ProducePacketName [01:24:10]name=ofd_packets/00082294 [01:24:10]OFD Sender: To server: pG, [01:24:10]CommunicateWithHost lk.salyk.kg:30040 [01:24:10]ConnectInit lk.salyk.kg [01:24:10]written 0, free lines is 4095 [01:24:11]Write to MH i2c: 01 00 00 90 02 92 [01:24:11]Write i2c OK [01:24:11]MH_I2C_Read... [01:24:11]Read from MH i2c: 01 [01:24:11]MH_I2C_Read... [01:24:11]Read from MH i2c: 01 07 00 [01:24:11]MH_I2C_Read... [01:24:11]Read from MH i2c: 01 07 00 90 02 00 00 00 00 00 CD 0C 72 [01:24:11]RasterBufferAndPrint [01:24:11]line [01:24:11]line [01:24:11]line [01:24:11]line [01:24:11]line [01:24:11]written 0, free lines is 3283 [01:24:11]MH_Cut [01:24:11]Write to MH i2c: D1 01 00 97 02 01 6B [01:24:11]Write i2c OK [01:24:11]MH_I2C_Read... [01:24:11]Read from MH i2c: D1 [01:24:11]MH_I2C_Read... [01:24:11]Read from MH i2c: D1 01 00 [01:24:11]MH_I2C_Read... [01:24:11]Read from MH i2c: D1 01 00 97 02 00 6A [01:24:11]Write to MH i2c: 01 00 00 98 02 9A [01:24:11]Write i2c OK [01:24:11]MH_I2C_Read... [01:24:11]*** Cut start [01:24:11]*** Partial cut [01:24:11]*** CUTSNS_PIN = 1 [01:24:11]*** CUTSNS_PIN = 0 [01:24:12]*** Brake cut motor [01:24:12]Read from MH i2c: 01 [01:24:12]MH_I2C_Read... [01:24:12]*** Stop cut motor [01:24:12]*** Cut end [01:24:12]Read from MH i2c: 01 07 00 [01:24:12]MH_I2C_Read... [01:24:12]Read from MH i2c: 01 07 00 98 02 00 00 00 00 00 FF 0F AF [01:24:12]process_action close_receipt done [01:24:12]requested_data is exist [01:24:12]produce_requested_data [01:24:12]requested_item fm.sn is exist - process it [01:24:12]wFMCommunicate request_size=4 [01:24:12]MH_SAM_APDU [01:24:12]CAPDU: 80 11 00 00 [01:24:12]Write to MH i2c: E2 08 00 99 02 80 11 00 00 00 00 00 00 15 [01:24:12]Write i2c OK [01:24:12]MH_I2C_Read... [01:24:12]Read from MH i2c: E2 [01:24:12]MH_I2C_Read... [01:24:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:24:12]Read from MH i2c: E2 17 00 [01:24:12]MH_I2C_Read... [01:24:12]Read from MH i2c: E2 17 00 99 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 67 [01:24:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [01:24:12]wFMCommunicate OK [01:24:12]requested_item fd.num is exist - process it [01:24:12]SAM_PROTO_GetFieldsCounters [01:24:12]wFMCommunicate request_size=4 [01:24:12]MH_SAM_APDU [01:24:12]CAPDU: 80 13 00 00 [01:24:12]Write to MH i2c: E2 08 00 9A 02 80 13 00 00 00 00 00 00 18 [01:24:12]Write i2c OK [01:24:12]MH_I2C_Read... [01:24:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:24:12]Read from MH i2c: E2 [01:24:12]MH_I2C_Read... [01:24:12]Read from MH i2c: E2 62 00 [01:24:12]MH_I2C_Read... [01:24:12]Read from MH i2c: E2 62 00 9A 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 76 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [01:24:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 76 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:24:12]wFMCommunicate OK [01:24:12]SAM_PROTO_GetFieldsCounters done [01:24:12]requested_item shift.num is exist - process it [01:24:12]requested_item shift.opened is exist - process it [01:24:12]req_shift_opened [01:24:12]FM_GetShiftState [01:24:12]SAM_PROTO_GetShiftState [01:24:12]wFMCommunicate request_size=4 [01:24:12]MH_SAM_APDU [01:24:12]CAPDU: 80 13 01 00 [01:24:12]Write to MH i2c: E2 08 00 9B 02 80 13 01 00 00 00 00 00 1A [01:24:12]Write i2c OK [01:24:12]MH_I2C_Read... [01:24:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:24:12]Read from MH i2c: E2 [01:24:12]MH_I2C_Read... [01:24:12]Read from MH i2c: E2 0E 00 [01:24:12]MH_I2C_Read... [01:24:12]Read from MH i2c: E2 0E 00 9B 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 EC [01:24:12]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [01:24:12]wFMCommunicate OK [01:24:12]SAM_PROTO_GetShiftState done [01:24:12]FM_GetShiftState done [01:24:12]req_shift_opened done [01:24:12]requested_item shift.open_date is exist - process it [01:24:12]req_shift_open_date [01:24:12]req_shift_open_date done [01:24:12]produce_requested_data done [01:24:12]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82294,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [01:24:12]process_action_free close_receipt [01:24:12]json_value_free [01:24:12]json_value_free done [01:24:12]process_json_proto returns [01:24:12]Send response to host [01:24:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82294,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [01:24:12]free response buf [01:24:12]execute_script done [01:24:12]execute_script returns [01:24:12]free content buf [01:24:12]Sock 8.Close socket [01:24:12]Sock 8.Thread stoped [01:24:15]ConnectInit Can't take IP for lk.salyk.kg [01:24:15]CommunicateWithHost connect error [01:24:15]CommunicateWithHost err = -1 [01:24:15]OFD Sender: Server communicate error [01:24:20]OFD Sender: Processing packet 82294 [packets to send 254, broken 253] [01:24:20]ProducePacketName [01:24:20]name=ofd_packets/00082294 [01:24:20]OFD Sender: To server: pG, [01:24:20]CommunicateWithHost lk.salyk.kg:30040 [01:24:20]ConnectInit lk.salyk.kg [01:24:21]Connected sock=9 [01:24:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 8C 06 07 01 37 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 B9 B8 11 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 76 41 01 00 35 04 06 00 8F CC B4 B0 42 CD E7 05 6E 66 E4 31 FC F7 [01:24:21]recv_with_timeout no data received [01:24:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 CA 9E 47 00 CD 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 76 41 01 00 F4 03 04 00 00 5E 11 67 B6 04 01 00 00 B9 D1 8B F4 A6 02 15 F6 [01:24:21]CommunicateWithHost err = 0 [01:24:21]CheckOFDResponse [01:24:21]1017 (14) - 77093643461234 [01:24:21]1041 (16) - 0000000000871843 [01:24:21]1040 (4) - 82294 [01:24:21]1012 (4) - 17.10.2024 18:57 [01:24:21]1206 (1) - 0 [01:24:21]OFD Sender: Remove packet 82294 [01:24:21]ProducePacketName [01:24:21]name=ofd_packets/00082294 [01:24:21]NVStorageDeleteData [01:24:22]OFD Sender: No OFD packet to send [01:24:27]OFD Sender: No OFD packet to send [01:24:32]OFD Sender: No OFD packet to send [01:24:35]recv_with_timeout no data received [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:56]recv_with_timeout no data received [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:47]recv_with_timeout no data received [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]recv_with_timeout no data received [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:19]accept exits with 10 [01:26:19]New connection [01:26:19]New thread 3067440484 created [01:26:19]Thread 3067297124 joined [01:26:19]Waiting for new connection... [01:26:19] Sock 10.Parse request [01:26:19]Sock 10.Check first char [01:26:19]Sock 10.First char is OK [01:26:19]request: POST /json_proto HTTP/1.0 [01:26:19]Method: POST [01:26:19]URL: /json_proto [01:26:19]Method is POST - this is cgi request [01:26:19]url: /json_proto [01:26:19]query_string will be loaded in cgi processing [01:26:19]execute_cgi json_proto POST (null) [01:26:19]execute_cgi path=json_proto method=POST [01:26:19]POST find Content-Length [01:26:19]Host: 172.17.44.67:8080 [01:26:19]Content-Length: 677 [01:26:19]Content-Type: application/json [01:26:19] [01:26:19]POST finish read [01:26:19]Found Content-Length = 677 [01:26:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:26:19]execute_script... [01:26:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:26:19]POST & json_proto [01:26:19]process_json_proto [01:26:19]json parsed OK: [01:26:19]protocol is kg_v1.0 [01:26:19]action value=close_receipt [01:26:19]process_action close_receipt [01:26:19]cmd_close_receipt [01:26:19]MH_GetDate [01:26:19]Write to MH i2c: F0 00 00 9C 02 8D [01:26:19]Write i2c OK [01:26:19]MH_I2C_Read... [01:26:19]Read from MH i2c: F0 [01:26:19]MH_I2C_Read... [01:26:19]Read from MH i2c: F0 09 00 [01:26:19]MH_I2C_Read... [01:26:19]Read from MH i2c: F0 09 00 9C 02 00 3C B9 11 67 F1 C7 6B 64 8A [01:26:19]GetLastDocTimeStamp 1729214649 [01:26:19]current date 1729214780 [01:26:19]FM_GetShiftState [01:26:19]SAM_PROTO_GetShiftState [01:26:19]wFMCommunicate request_size=4 [01:26:19]MH_SAM_APDU [01:26:19]CAPDU: 80 13 01 00 [01:26:19]Write to MH i2c: E2 08 00 9D 02 80 13 01 00 00 00 00 00 1C [01:26:19]Write i2c OK [01:26:19]MH_I2C_Read... [01:26:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:26:19]Read from MH i2c: E2 [01:26:19]MH_I2C_Read... [01:26:19]Read from MH i2c: E2 0E 00 [01:26:19]MH_I2C_Read... [01:26:19]Read from MH i2c: E2 0E 00 9D 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 EE [01:26:19]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [01:26:19]wFMCommunicate OK [01:26:19]SAM_PROTO_GetShiftState done [01:26:19]FM_GetShiftState done [01:26:19]opened in 1729212319 [01:26:19]opened+sec_in_day 1729298719 [01:26:19]quantity*price = 50041 [01:26:19]sum+1 = 50042 [01:26:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 4 18.10.2024 01:26 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82295 ФПД: 112488247562110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T012620&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82295&fm=112488247562110&tin=02508201610067®Number=0000000000091680&sum=50000 [01:26:20]StoreToDocumentArchive [01:26:20]shift 526 fd 82295 [01:26:20]save to /storage/0526/doc_00082295 [01:26:20]save last doc name /storage/0526/doc_00082295 to /storage/kkm_last_doc_name [01:26:20]save OK [01:26:20]Clear old archive folders... [01:26:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:26:20]tlvbuf is 00B06040 [01:26:20]SAM_PROTO_ClearQueue [01:26:20]wFMCommunicate request_size=4 [01:26:20]MH_SAM_APDU [01:26:20]CAPDU: 80 09 00 00 [01:26:20]Write to MH i2c: E2 08 00 AA 02 80 09 00 00 00 00 00 00 1E [01:26:20]Write i2c OK [01:26:20]MH_I2C_Read... [01:26:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:26:20]Read from MH i2c: E2 [01:26:20]MH_I2C_Read... [01:26:20]Read from MH i2c: E2 03 00 [01:26:20]MH_I2C_Read... [01:26:20]Read from MH i2c: E2 03 00 AA 02 00 90 00 20 [01:26:20]RAPDU: 90 00 [01:26:20]wFMCommunicate OK [01:26:20]SAM_PROTO_ClearQueue done [01:26:20]KKMCreateOFDPacket [01:26:20]OFDProtocolAddRootSTLVToBuf [01:26:20]FM_MakeSignedData [01:26:20]FM_MakeSignedData [01:26:20]SAM_PROTO_SignData [01:26:20]wFMCommunicate request_size=4 [01:26:20]MH_SAM_APDU [01:26:20]CAPDU: 80 0D 01 02 [01:26:20]Write to MH i2c: E2 08 00 AB 02 80 0D 01 02 00 00 00 00 26 [01:26:20]Write i2c OK [01:26:20]MH_I2C_Read... [01:26:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:26:20]Read from MH i2c: E2 [01:26:20]MH_I2C_Read... [01:26:20]Read from MH i2c: E2 03 00 [01:26:20]MH_I2C_Read... [01:26:20]Read from MH i2c: E2 03 00 AB 02 00 90 00 21 [01:26:20]RAPDU: 90 00 [01:26:20]wFMCommunicate OK [01:26:20]wFMCommunicate request_size=255 [01:26:20]MH_SAM_APDU [01:26:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 3C B9 11 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 77 41 01 00 35 04 06 00 66 [01:26:20]Write to MH i2c: E2 02 01 AC 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 3C B9 11 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 77 41 01 00 35 04 06 00 66 00 00 52 [01:26:20]Write i2c OK [01:26:20]MH_I2C_Read... [01:26:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:26:20]Read from MH i2c: E2 [01:26:20]MH_I2C_Read... [01:26:20]Read from MH i2c: E2 03 00 [01:26:20]MH_I2C_Read... [01:26:20]Read from MH i2c: E2 03 00 AC 02 00 90 00 22 [01:26:20]RAPDU: 90 00 [01:26:20]wFMCommunicate OK [01:26:20]wFMCommunicate request_size=10 [01:26:20]MH_SAM_APDU [01:26:20]CAPDU: 80 0D 02 02 05 4E B6 09 8F 7E [01:26:20]Write to MH i2c: E2 0D 00 AD 02 80 0D 02 02 05 00 4E B6 09 8F 7E 00 00 4D [01:26:20]Write i2c OK [01:26:20]MH_I2C_Read... [01:26:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:26:20]Read from MH i2c: E2 [01:26:20]MH_I2C_Read... [01:26:20]Read from MH i2c: E2 03 00 [01:26:20]MH_I2C_Read... [01:26:20]Read from MH i2c: E2 03 00 AD 02 00 90 00 23 [01:26:20]RAPDU: 90 00 [01:26:20]wFMCommunicate OK [01:26:20]wFMCommunicate request_size=4 [01:26:20]MH_SAM_APDU [01:26:20]CAPDU: 80 0D 03 02 [01:26:20]Write to MH i2c: E2 08 00 AE 02 80 0D 03 02 00 00 00 00 2B [01:26:20]Write i2c OK [01:26:20]MH_I2C_Read... [01:26:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:26:21]Read from MH i2c: E2 [01:26:21]MH_I2C_Read... [01:26:21]Read from MH i2c: E2 0B 00 [01:26:21]MH_I2C_Read... [01:26:21]Read from MH i2c: E2 0B 00 AE 02 00 22 46 F1 DC A9 D0 FC 03 90 00 D9 [01:26:21]RAPDU: 22 46 F1 DC A9 D0 FC 03 90 00 [01:26:21]wFMCommunicate OK [01:26:21]SAM_PROTO_SignData done [01:26:21]FM_MakeSignedData done [01:26:21]CreateOFDProtocolMessage [01:26:21]wFMCommunicate request_size=4 [01:26:21]MH_SAM_APDU [01:26:21]CAPDU: 80 11 00 00 [01:26:21]Write to MH i2c: E2 08 00 AF 02 80 11 00 00 00 00 00 00 2B [01:26:21]Write i2c OK [01:26:21]MH_I2C_Read... [01:26:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:26:21]Read from MH i2c: E2 [01:26:21]MH_I2C_Read... [01:26:21]Read from MH i2c: E2 17 00 [01:26:21]MH_I2C_Read... [01:26:21]Read from MH i2c: E2 17 00 AF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 7D [01:26:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [01:26:21]wFMCommunicate OK [01:26:21]CreateOFDProtocolMessage done [01:26:21]OFDSenderStorePacket 82295 [01:26:21]StoreOFDPacket docnum=82295 [01:27:09]OFD Sender: No OFD packet to send [01:27:14]OFD Sender: No OFD packet to send [01:27:19]OFD Sender: No OFD packet to send [01:27:24]OFD Sender: No OFD packet to send [01:27:26]recv_with_timeout no data received [01:27:29]OFD Sender: No OFD packet to send [01:27:34]OFD Sender: No OFD packet to send [01:27:39]OFD Sender: No OFD packet to send [01:27:44]OFD Sender: No OFD packet to send [01:27:49]OFD Sender: No OFD packet to send [01:27:54]OFD Sender: No OFD packet to send [01:27:59]OFD Sender: No OFD packet to send [01:28:04]OFD Sender: No OFD packet to send [01:28:09]OFD Sender: No OFD packet to send [01:28:14]OFD Sender: No OFD packet to send [01:28:19]OFD Sender: No OFD packet to send [01:28:24]OFD Sender: No OFD packet to send [01:28:29]OFD Sender: No OFD packet to send [01:28:34]OFD Sender: No OFD packet to send [01:28:39]OFD Sender: No OFD packet to send [01:28:44]OFD Sender: No OFD packet to send [01:28:49]OFD Sender: No OFD packet to send [01:28:52]recv_with_timeout no data received [01:28:54]OFD Sender: No OFD packet to send [01:28:59]OFD Sender: No OFD packet to send [01:29:04]OFD Sender: No OFD packet to send [01:29:09]OFD Sender: No OFD packet to send [01:29:14]OFD Sender: No OFD packet to send [01:29:19]OFD Sender: No OFD packet to send [01:29:24]OFD Sender: No OFD packet to send [01:29:29]OFD Sender: No OFD packet to send [01:29:34]OFD Sender: No OFD packet to send [01:29:39]OFD Sender: No OFD packet to send [01:29:44]OFD Sender: No OFD packet to send [01:29:49]OFD Sender: No OFD packet to send [01:29:55]OFD Sender: No OFD packet to send [01:30:00]OFD Sender: No OFD packet to send [01:30:05]OFD Sender: No OFD packet to send [01:30:10]OFD Sender: No OFD packet to send [01:30:12]recv_with_timeout no data received [01:30:15]OFD Sender: No OFD packet to send [01:30:20]OFD Sender: No OFD packet to send [01:30:25]OFD Sender: No OFD packet to send [01:30:30]OFD Sender: No OFD packet to send [01:30:35]OFD Sender: No OFD packet to send [01:30:40]OFD Sender: No OFD packet to send [01:30:45]OFD Sender: No OFD packet to send [01:30:50]OFD Sender: No OFD packet to send [01:30:55]OFD Sender: No OFD packet to send [01:31:00]OFD Sender: No OFD packet to send [01:31:05]OFD Sender: No OFD packet to send [01:31:10]OFD Sender: No OFD packet to send [01:31:15]OFD Sender: No OFD packet to send [01:31:20]OFD Sender: No OFD packet to send [01:31:25]OFD Sender: No OFD packet to send [01:31:30]OFD Sender: No OFD packet to send [01:31:35]OFD Sender: No OFD packet to send [01:31:40]OFD Sender: No OFD packet to send [01:31:45]OFD Sender: No OFD packet to send [01:31:47]accept exits with 9 [01:31:47]New connection [01:31:47]New thread 3067297124 created [01:31:47]Thread 3067440484 joined [01:31:47]Waiting for new connection... [01:31:47] Sock 9.Parse request [01:31:47]Sock 9.Check first char [01:31:47]Sock 9.First char is OK [01:31:47]request: POST /json_proto HTTP/1.0 [01:31:47]Method: POST [01:31:47]URL: /json_proto [01:31:47]Method is POST - this is cgi request [01:31:47]url: /json_proto [01:31:47]query_string will be loaded in cgi processing [01:31:47]execute_cgi json_proto POST (null) [01:31:47]execute_cgi path=json_proto method=POST [01:31:47]POST find Content-Length [01:31:47]Host: 172.17.44.67:8080 [01:31:47]Content-Length: 792 [01:31:47]Content-Type: application/json [01:31:47] [01:31:47]POST finish read [01:31:47]Found Content-Length = 792 [01:31:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53365", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:31:47]execute_script... [01: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 : (1)918795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53365", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:31:47]POST & json_proto [01:31:47]process_json_proto [01:31:47]json parsed OK: [01:31:47]protocol is kg_v1.0 [01:31:47]action value=close_receipt [01:31:47]process_action close_receipt [01:31:47]cmd_close_receipt [01:31:47]MH_GetDate [01:31:47]Write to MH i2c: F0 00 00 E7 02 D8 [01:31:47]Write i2c OK [01:31:47]MH_I2C_Read... [01:31:47]Read from MH i2c: F0 [01:31:47]MH_I2C_Read... [01:31:47]Read from MH i2c: F0 09 00 [01:31:47]MH_I2C_Read... [01:31:47]Read from MH i2c: F0 09 00 E7 02 00 84 BA 11 67 F1 C7 6B 64 1E [01:31:47]GetLastDocTimeStamp 1729214780 [01:31:47]current date 1729215108 [01:31:47]FM_GetShiftState [01:31:47]SAM_PROTO_GetShiftState [01:31:47]wFMCommunicate request_size=4 [01:31:47]MH_SAM_APDU [01:31:47]CAPDU: 80 13 01 00 [01:31:47]Write to MH i2c: E2 08 00 E8 02 80 13 01 00 00 00 00 00 67 [01:31:47]Write i2c OK [01:31:47]MH_I2C_Read... [01:31:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:31:47]Read from MH i2c: E2 [01:31:47]MH_I2C_Read... [01:31:47]Read from MH i2c: E2 0E 00 [01:31:47]MH_I2C_Read... [01:31:47]Read from MH i2c: E2 0E 00 E8 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 39 [01:31:47]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [01:31:47]wFMCommunicate OK [01:31:47]SAM_PROTO_GetShiftState done [01:31:47]FM_GetShiftState done [01:31:47]opened in 1729212319 [01:31:47]opened+sec_in_day 1729298719 [01:31:47]quantity*price = 0 [01:31:47]sum+1 = 1 [01:31:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 5 18.10.2024 01:31 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливная Карта 53365 ФМ: 0000000000871843 ФД: 82296 ФПД: 260015381181389 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T013148&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82296&fm=260015381181389&tin=02508201610067®Number=0000000000091680&sum=0 [01:31:48]StoreToDocumentArchive [01:31:48]shift 526 fd 82296 [01:31:48]save to /storage/0526/doc_00082296 [01:31:48]save last doc name /storage/0526/doc_00082296 to /storage/kkm_last_doc_name [01:31:48]save OK [01:31:48]Clear old archive folders... [01:31:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:31:48]tlvbuf is 00B05520 [01:31:48]SAM_PROTO_ClearQueue [01:31:48]wFMCommunicate request_size=4 [01:31:48]MH_SAM_APDU [01:31:48]CAPDU: 80 09 00 00 [01:31:48]Write to MH i2c: E2 08 00 F5 02 80 09 00 00 00 00 00 00 69 [01:31:48]Write i2c OK [01:31:48]MH_I2C_Read... [01:31:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:31:48]Read from MH i2c: E2 [01:31:48]MH_I2C_Read... [01:31:48]Read from MH i2c: E2 03 00 [01:31:48]MH_I2C_Read... [01:31:48]Read from MH i2c: E2 03 00 F5 02 00 90 00 6B [01:31:48]RAPDU: 90 00 [01:31:48]wFMCommunicate OK [01:31:48]SAM_PROTO_ClearQueue done [01:31:48]KKMCreateOFDPacket [01:31:48]OFDProtocolAddRootSTLVToBuf [01:31:48]FM_MakeSignedData [01:31:48]FM_MakeSignedData [01:31:48]SAM_PROTO_SignData [01:31:48]wFMCommunicate request_size=4 [01:31:48]MH_SAM_APDU [01:31:48]CAPDU: 80 0D 01 02 [01:31:48]Write to MH i2c: E2 08 00 F6 02 80 0D 01 02 00 00 00 00 71 [01:31:48]Write i2c OK [01:31:48]MH_I2C_Read... [01:31:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:31:48]Read from MH i2c: E2 [01:31:48]MH_I2C_Read... [01:31:48]Read from MH i2c: E2 03 00 [01:31:48]MH_I2C_Read... [01:31:48]Read from MH i2c: E2 03 00 F6 02 00 90 00 6C [01:31:48]RAPDU: 90 00 [01:31:48]wFMCommunicate OK [01:31:48]wFMCommunicate request_size=255 [01:31:48]MH_SAM_APDU [01:31: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 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 84 BA 11 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 78 41 01 00 35 04 06 00 EC [01:31:48]Write to MH i2c: E2 02 01 F7 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 84 BA 11 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 78 41 01 00 35 04 06 00 EC 00 00 8E [01:31:48]Write i2c OK [01:31:48]MH_I2C_Read... [01:31:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:31:48]Read from MH i2c: E2 [01:31:48]MH_I2C_Read... [01:31:48]Read from MH i2c: E2 03 00 [01:31:48]MH_I2C_Read... [01:31:48]Read from MH i2c: E2 03 00 F7 02 00 90 00 6D [01:31:48]RAPDU: 90 00 [01:31:48]wFMCommunicate OK [01:31:48]wFMCommunicate request_size=10 [01:31:48]MH_SAM_APDU [01:31:48]CAPDU: 80 0D 02 02 05 7B 8C 6E 73 CD [01:31:48]Write to MH i2c: E2 0D 00 F8 02 80 0D 02 02 05 00 7B 8C 6E 73 CD 00 00 33 [01:31:48]Write i2c OK [01:31:48]MH_I2C_Read... [01:31:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:31:48]Read from MH i2c: E2 [01:31:48]MH_I2C_Read... [01:31:48]Read from MH i2c: E2 03 00 [01:31:48]MH_I2C_Read... [01:31:48]Read from MH i2c: E2 03 00 F8 02 00 90 00 6E [01:31:48]RAPDU: 90 00 [01:31:48]wFMCommunicate OK [01:31:48]wFMCommunicate request_size=4 [01:31:48]MH_SAM_APDU [01:31:48]CAPDU: 80 0D 03 02 [01:31:48]Write to MH i2c: E2 08 00 F9 02 80 0D 03 02 00 00 00 00 76 [01:31:48]Write i2c OK [01:31:48]MH_I2C_Read... [01:31:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:31:48]Read from MH i2c: E2 [01:31:48]MH_I2C_Read... [01:31:48]Read from MH i2c: E2 0B 00 [01:31:48]MH_I2C_Read... [01:31:48]Read from MH i2c: E2 0B 00 F9 02 00 71 CD 19 E1 73 69 91 25 90 00 41 [01:31:48]RAPDU: 71 CD 19 E1 73 69 91 25 90 00 [01:31:48]wFMCommunicate OK [01:31:48]SAM_PROTO_SignData done [01:31:48]FM_MakeSignedData done [01:31:48]CreateOFDProtocolMessage [01:31:48]wFMCommunicate request_size=4 [01:31:48]MH_SAM_APDU [01:31:48]CAPDU: 80 11 00 00 [01:31:48]Write to MH i2c: E2 08 00 FA 02 80 11 00 00 00 00 00 00 76 [01:31:48]Write i2c OK [01:31:48]MH_I2C_Read... [01:31:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:31:48]Read from MH i2c: E2 [01:31:48]MH_I2C_Read... [01:31:48]Read from MH i2c: E2 17 00 [01:31:48]MH_I2C_Read... [01:31:48]Read from MH i2c: E2 17 00 FA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C8 [01:31:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [01:31:48]wFMCommunicate OK [01:31:48]CreateOFDProtocolMessage done [01:31:48]OFDSenderStorePacket 82296 [01:31:48]StoreOFDPacket docnum=82296 [01:31:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 17 AE 07 01 3D FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 84 BA 11 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 78 41 01 00 35 04 06 00 EC 7B 8C 6E 73 CD 71 CD 19 E1 73 69 91 25 [01:31:48]CheckFolder [01:31:48]dirname=/storage/ofd_packets [01:31:48]CheckFolder done [01:31:48]ProducePacketName [01:31:48]name=ofd_packets/00082296 [01:31:48]NVStorageSaveData ofd_packets/00082296 [01:31:48]File name is /storage/ofd_packets/00082296 [01:31:48]Write 301 bytes [01:31:48]NVStorageSaveData done [01:31:48]OFDSenderStorePacket done [01:31:48]KKMCreateOFDPacket done [01:31:48]NVStorageSaveData kkm_last_timestamp [01:31:48]File name is /storage/kkm_last_timestamp [01:31:48]Write 4 bytes [01:31:48]NVStorageSaveData done [01:31:48]ExternCall_PrintAddStr [01:31:48]wPrintStart [01:31:48]Write to MH i2c: 01 00 00 FB 02 FD [01:31:48]Write i2c OK [01:31:48]MH_I2C_Read... [01:31:48]Read from MH i2c: 01 [01:31:48]MH_I2C_Read... [01:31:48]Read from MH i2c: 01 07 00 [01:31:48]MH_I2C_Read... [01:31:48]Read from MH i2c: 01 07 00 FB 02 00 00 00 00 00 FF 0F 12 [01:31:48]RasterBufferAndPrint [01:31:48]line Счет N : (1)918795 [01:31:48]line ИНН: 02508201610067 [01:31:48]line Контрольно-Кассовый Чек [01:31:48]line ПРОДАЖА [01:31:48]line ТРК (МРК, ГНК) : 22 [01:31:48]line Товар: 2710124130 [01:31:48]line Аи-92-К-4 [01:31:48]line 30.000 * 0.00 [01:31:48]line = 0.00 [01:31:48]line НДС 12% НСП 1% [01:31:48]line > о реализуемом товаре [01:31:48]line ИТОГО: 0.00 [01:31:48]line НСП 1% : 0.00 [01:31:48]line НДС 12% : 0.00 [01:31:48]line Наличными: 0.00 [01:31:48]line Безнал.: 0.00 [01:31:48]line Место: АЗС № 114 "Партнер Нефть" [01:31:48]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [01:31:48]line СНО: Общий режим [01:31:48]line Чек 5 18.10.2024 01:31 [01:31:48]line Смена: 526 ФФД: 1.0 [01:31:48]line ЗНМ: 0300000086 [01:31:48]line РНМ: 0000000000091680 [01:31:48]line Версия ККМ: 001 [01:31:48]line Талоны: Топливная Карта [01:31:48]line 53365 [01:31:48]line ФМ: 0000000000871843 [01:31:48]line ФД: 82296 [01:31:48]line ФПД: 260015381181389 [01:31:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T013148&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82296&fm=260015381181389&tin=02508201610067®Number=0000000000091680&sum=0 [01:31:49]written 0, free lines is 4095 [01:31:49]OFD Sender: Processing packet 82296 [packets to send 254, broken 253] [01:31:49]ProducePacketName [01:31:49]name=ofd_packets/00082296 [01:31:49]OFD Sender: To server: pG, [01:31:49]CommunicateWithHost lk.salyk.kg:30040 [01:31:49]ConnectInit lk.salyk.kg [01:31:49]Write to MH i2c: 01 00 00 25 03 28 [01:31:49]Write i2c OK [01:31:49]MH_I2C_Read... [01:31:49]Read from MH i2c: 01 [01:31:49]MH_I2C_Read... [01:31:49]Read from MH i2c: 01 07 00 [01:31:49]MH_I2C_Read... [01:31:49]Read from MH i2c: 01 07 00 25 03 00 00 00 00 00 DE 0C 19 [01:31:49]RasterBufferAndPrint [01:31:49]line [01:31:49]line [01:31:49]line [01:31:49]line [01:31:49]line [01:31:49]written 0, free lines is 3300 [01:31:49]MH_Cut [01:31:49]Write to MH i2c: D1 01 00 2C 03 01 01 [01:31:49]Write i2c OK [01:31:49]MH_I2C_Read... [01:31:49]Read from MH i2c: D1 [01:31:49]MH_I2C_Read... [01:31:49]Read from MH i2c: D1 01 00 [01:31:49]MH_I2C_Read... [01:31:49]Read from MH i2c: D1 01 00 2C 03 00 00 [01:31:49]Write to MH i2c: 01 00 00 2D 03 30 [01:31:49]Write i2c OK [01:31:49]MH_I2C_Read... [01:31:49]Connected sock=8 [01:31:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 17 AE 07 01 3D FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 84 BA 11 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 78 41 01 00 35 04 06 00 EC 7B 8C 6E 73 CD 71 CD 19 E1 73 69 91 25 [01:31:50]*** Cut start [01:31:50]*** Partial cut [01:31:50]*** CUTSNS_PIN = 1 [01:31:50]*** CUTSNS_PIN = 0 [01:31:50]*** Brake cut motor [01:31:51]Read from MH i2c: 01 [01:31:51]MH_I2C_Read... [01:31:51]*** Stop cut motor [01:31:51]*** Cut end [01:31:51]Read from MH i2c: 01 07 00 [01:31:51]MH_I2C_Read... [01:31:51]Read from MH i2c: 01 07 00 2D 03 00 00 00 00 00 FF 0F 45 [01:31:51]process_action close_receipt done [01:31:51]requested_data is exist [01:31:51]produce_requested_data [01:31:51]requested_item fm.sn is exist - process it [01:31:51]wFMCommunicate request_size=4 [01:31:51]MH_SAM_APDU [01:31:51]CAPDU: 80 11 00 00 [01:31:51]Write to MH i2c: E2 08 00 2E 03 80 11 00 00 00 00 00 00 AB [01:31:51]Write i2c OK [01:31:51]MH_I2C_Read... [01:31:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:31:51]Read from MH i2c: E2 [01:31:51]MH_I2C_Read... [01:31:51]Read from MH i2c: E2 17 00 [01:31:51]MH_I2C_Read... [01:31:51]Read from MH i2c: E2 17 00 2E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 FD [01:31:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [01:31:51]wFMCommunicate OK [01:31:51]requested_item fd.num is exist - process it [01:31:51]SAM_PROTO_GetFieldsCounters [01:31:51]wFMCommunicate request_size=4 [01:31:51]MH_SAM_APDU [01:31:51]CAPDU: 80 13 00 00 [01:31:51]Write to MH i2c: E2 08 00 2F 03 80 13 00 00 00 00 00 00 AE [01:31:51]Write i2c OK [01:31:51]MH_I2C_Read... [01:31:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:31:51]Read from MH i2c: E2 [01:31:51]MH_I2C_Read... [01:31:51]Read from MH i2c: E2 62 00 [01:31:51]MH_I2C_Read... [01:31:51]Read from MH i2c: E2 62 00 2F 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 78 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [01:31:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 78 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:31:51]wFMCommunicate OK [01:31:51]SAM_PROTO_GetFieldsCounters done [01:31:51]requested_item shift.num is exist - process it [01:31:51]requested_item shift.opened is exist - process it [01:31:51]req_shift_opened [01:31:51]FM_GetShiftState [01:31:51]SAM_PROTO_GetShiftState [01:31:51]wFMCommunicate request_size=4 [01:31:51]MH_SAM_APDU [01:31:51]CAPDU: 80 13 01 00 [01:31:51]Write to MH i2c: E2 08 00 30 03 80 13 01 00 00 00 00 00 B0 [01:31:51]Write i2c OK [01:31:51]MH_I2C_Read... [01:31:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:31:51]Read from MH i2c: E2 [01:31:51]MH_I2C_Read... [01:31:51]Read from MH i2c: E2 0E 00 [01:31:51]MH_I2C_Read... [01:31:51]Read from MH i2c: E2 0E 00 30 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 82 [01:31:51]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [01:31:51]wFMCommunicate OK [01:31:51]SAM_PROTO_GetShiftState done [01:31:51]FM_GetShiftState done [01:31:51]req_shift_opened done [01:31:51]requested_item shift.open_date is exist - process it [01:31:51]req_shift_open_date [01:31:51]req_shift_open_date done [01:31:51]produce_requested_data done [01:31:51]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82296,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [01:31:51]process_action_free close_receipt [01:31:51]json_value_free [01:31:51]json_value_free done [01:31:51]process_json_proto returns [01:31:51]Send response to host [01:31:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82296,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [01:31:51]free response buf [01:31:51]execute_script done [01:31:51]execute_script returns [01:31:51]free content buf [01:31:51]Sock 9.Close socket [01:31:51]Sock 9.Thread stoped [01:31:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 4E 45 47 00 5F B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 78 41 01 00 F4 03 04 00 C0 5F 11 67 B6 04 01 00 00 4B A4 E3 18 FB 09 F3 DD [01:31:51]CommunicateWithHost err = 0 [01:31:51]CheckOFDResponse [01:31:51]1017 (14) - 77093643461234 [01:26:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 23 0A 07 01 1D 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 3C B9 11 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 77 41 01 00 35 04 06 00 66 4E B6 09 8F 7E 22 46 F1 DC A9 D0 FC 03 [01:26:21]CheckFolder [01:26:21]dirname=/storage/ofd_packets [01:26:21]CheckFolder done [01:26:21]ProducePacketName [01:26:21]name=ofd_packets/00082295 [01:26:21]NVStorageSaveData ofd_packets/00082295 [01:26:21]File name is /storage/ofd_packets/00082295 [01:26:21]Write 301 bytes [01:26:21]NVStorageSaveData done [01:26:21]OFDSenderStorePacket done [01:26:21]KKMCreateOFDPacket done [01:26:21]NVStorageSaveData kkm_last_timestamp [01:26:21]File name is /storage/kkm_last_timestamp [01:26:21]Write 4 bytes [01:26:21]NVStorageSaveData done [01:26:21]ExternCall_PrintAddStr [01:26:21]wPrintStart [01:26:21]Write to MH i2c: 01 00 00 B0 02 B2 [01:26:21]Write i2c OK [01:26:21]MH_I2C_Read... [01:26:21]Read from MH i2c: 01 [01:26:21]MH_I2C_Read... [01:26:21]Read from MH i2c: 01 07 00 [01:26:21]MH_I2C_Read... [01:26:21]Read from MH i2c: 01 07 00 B0 02 00 00 00 00 00 FF 0F C7 [01:26:21]RasterBufferAndPrint [01:26:21]line Счет N : (1)918794 [01:26:21]line ИНН: 02508201610067 [01:26:21]line Контрольно-Кассовый Чек [01:26:21]line ПРОДАЖА [01:26:21]line ТРК (МРК, ГНК) : 22 [01:26:21]line Товар: 2710124130 [01:26:21]line Аи-92-К-4 [01:26:21]line 7.480 * 66.90 [01:26:21]line = 500.41 [01:26:21]line НДС 12% НСП 1% [01:26:21]line > о реализуемом товаре [01:26:21]line ОКРУГЛЕНИЕ: -0.41 [01:26:21]line ИТОГО: 500.00 [01:26:21]line Внесено: 500.00 [01:26:21]line СДАЧА: 0.00 [01:26:21]line НСП 1% : 4.43 [01:26:21]line НДС 12% : 53.14 [01:26:21]line Наличными: 500.00 [01:26:21]line Безнал.: 0.00 [01:26:21]line Место: АЗС № 114 "Партнер Нефть" [01:26:21]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [01:26:21]line СНО: Общий режим [01:26:21]line Чек 4 18.10.2024 01:26 [01:26:21]line Смена: 526 ФФД: 1.0 [01:26:21]line ЗНМ: 0300000086 [01:26:21]line РНМ: 0000000000091680 [01:26:21]line Версия ККМ: 001 [01:26:21]line ФМ: 0000000000871843 [01:26:21]line ФД: 82295 [01:26:21]line ФПД: 112488247562110 [01:26:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T012620&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82295&fm=112488247562110&tin=02508201610067®Number=0000000000091680&sum=50000 [01:26:21]OFD Sender: Processing packet 82295 [packets to send 254, broken 253] [01:26:21]ProducePacketName [01:26:21]name=ofd_packets/00082295 [01:26:21]OFD Sender: To server: pG, [01:26:21]CommunicateWithHost lk.salyk.kg:30040 [01:26:21]ConnectInit lk.salyk.kg [01:26:21]written 0, free lines is 4095 [01:26:21]Write to MH i2c: 01 00 00 DB 02 DD [01:26:21]Write i2c OK [01:26:21]MH_I2C_Read... [01:26:21]Read from MH i2c: 01 [01:26:21]MH_I2C_Read... [01:26:21]Read from MH i2c: 01 07 00 [01:26:21]MH_I2C_Read... [01:26:21]Read from MH i2c: 01 07 00 DB 02 00 00 00 00 00 CF 0C BF [01:26:21]RasterBufferAndPrint [01:26:21]line [01:26:21]line [01:26:21]line [01:26:21]line [01:26:21]line [01:26:21]written 0, free lines is 3284 [01:26:21]MH_Cut [01:26:21]Write to MH i2c: D1 01 00 E2 02 01 B6 [01:26:21]Write i2c OK [01:26:21]MH_I2C_Read... [01:26:21]Read from MH i2c: D1 [01:26:21]MH_I2C_Read... [01:26:21]Read from MH i2c: D1 01 00 [01:26:21]MH_I2C_Read... [01:26:21]Read from MH i2c: D1 01 00 E2 02 00 B5 [01:26:21]Write to MH i2c: 01 00 00 E3 02 E5 [01:26:21]Write i2c OK [01:26:21]MH_I2C_Read... [01:26:22]*** Cut start [01:26:22]*** Partial cut [01:26:22]*** CUTSNS_PIN = 1 [01:26:22]*** CUTSNS_PIN = 0 [01:26:22]*** Brake cut motor [01:26:23]Read from MH i2c: 01 [01:26:23]MH_I2C_Read... [01:26:23]*** Stop cut motor [01:26:23]*** Cut end [01:26:23]Read from MH i2c: 01 07 00 [01:26:23]MH_I2C_Read... [01:26:23]Read from MH i2c: 01 07 00 E3 02 00 00 00 00 00 FF 0F FA [01:26:23]process_action close_receipt done [01:26:23]requested_data is exist [01:26:23]produce_requested_data [01:26:23]requested_item fm.sn is exist - process it [01:26:23]wFMCommunicate request_size=4 [01:26:23]MH_SAM_APDU [01:26:23]CAPDU: 80 11 00 00 [01:26:23]Write to MH i2c: E2 08 00 E4 02 80 11 00 00 00 00 00 00 60 [01:26:23]Write i2c OK [01:26:23]MH_I2C_Read... [01:26:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:26:23]Read from MH i2c: E2 [01:26:23]MH_I2C_Read... [01:26:23]Read from MH i2c: E2 17 00 [01:26:23]MH_I2C_Read... [01:26:23]Read from MH i2c: E2 17 00 E4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 B2 [01:26:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [01:26:23]wFMCommunicate OK [01:26:23]requested_item fd.num is exist - process it [01:26:23]SAM_PROTO_GetFieldsCounters [01:26:23]wFMCommunicate request_size=4 [01:26:23]MH_SAM_APDU [01:26:23]CAPDU: 80 13 00 00 [01:26:23]Write to MH i2c: E2 08 00 E5 02 80 13 00 00 00 00 00 00 63 [01:26:23]Write i2c OK [01:26:23]MH_I2C_Read... [01:26:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:26:23]Read from MH i2c: E2 [01:26:23]MH_I2C_Read... [01:26:23]Read from MH i2c: E2 62 00 [01:26:23]MH_I2C_Read... [01:26:23]Read from MH i2c: E2 62 00 E5 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 77 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [01:26:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30[01:31:51]1041 (16) - 0000000000871843 [01:31:51]1040 (4) - 82296 [01:31:51]1012 (4) - 17.10.2024 19:04 [01:31:51]1206 (1) - 0 [01:31:51]OFD Sender: Remove packet 82296 [01:31:51]ProducePacketName [01:31:51]name=ofd_packets/00082296 [01:31:51]NVStorageDeleteData [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:08]recv_with_timeout no data received [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]recv_with_timeout no data received [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:00]recv_with_timeout no data received [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:07]OFD Sender: No OFD packet to send [01:37:12]OFD Sender: No OFD packet to send [01:37:17]OFD Sender: No OFD packet to send [01:37:22]OFD Sender: No OFD packet to send [01:37:27]OFD Sender: No OFD packet to send [01:37:32]OFD Sender: No OFD packet to send [01:37:37]OFD Sender: No OFD packet to send [01:37:42]OFD Sender: No OFD packet to send [01:37:47]OFD Sender: No OFD packet to send [01:37:52]OFD Sender: No OFD packet to send [01:37:57]OFD Sender: No OFD packet to send [01:38:02]OFD Sender: No OFD packet to send [01:38:07]OFD Sender: No OFD packet to send [01:38:11]recv_with_timeout no data received [01:38:12]OFD Sender: No OFD packet to send [01:38:17]OFD Sender: No OFD packet to send [01:38:21]recv_with_timeout no data received [01:38:22]OFD Sender: No OFD packet to send [01:38:27]OFD Sender: No OFD packet to send [01:38:32]OFD Sender: No OFD packet to send [01:38:37]OFD Sender: No OFD packet to send [01:38:42]OFD Sender: No OFD packet to send [01:38:47]OFD Sender: No OFD packet to send [01:38:53]OFD Sender: No OFD packet to send [01:38:58]OFD Sender: No OFD packet to send [01:39:03]OFD Sender: No OFD packet to send [01:39:08]OFD Sender: No OFD packet to send [01:39:13]OFD Sender: No OFD packet to send [01:39:18]OFD Sender: No OFD packet to send [01:39:23]OFD Sender: No OFD packet to send [01:39:28]OFD Sender: No OFD packet to send [01:39:33]OFD Sender: No OFD packet to send [01:39:38]OFD Sender: No OFD packet to send [01:39:43]OFD Sender: No OFD packet to send [01:39:48]OFD Sender: No OFD packet to send [01:39:53]OFD Sender: No OFD packet to send [01:39:53]recv_with_timeout no data received [01:39:58]OFD Sender: No OFD packet to send [01:40:03]OFD Sender: No OFD packet to send [01:40:08]OFD Sender: No OFD packet to send [01:40:13]OFD Sender: No OFD packet to send [01:40:18]OFD Sender: No OFD packet to send [01:40:23]OFD Sender: No OFD packet to send [01:40:28]OFD Sender: No OFD packet to send [01:40:33]OFD Sender: No OFD packet to send [01:40:38]OFD Sender: No OFD packet to send [01:40:43]OFD Sender: No OFD packet to send [01:40:48]OFD Sender: No OFD packet to send [01:40:53]OFD Sender: No OFD packet to send [01:40:58]OFD Sender: No OFD packet to send [01:41:03]OFD Sender: No OFD packet to send [01:41:04]recv_with_timeout no data received [01:41:08]OFD Sender: No OFD packet to send [01:41:13]OFD Sender: No OFD packet to send [01:41:18]OFD Sender: No OFD packet to send [01:41:23]OFD Sender: No OFD packet to send [01:41:28]OFD Sender: No OFD packet to send [01:41:33]OFD Sender: No OFD packet to send [01:41:38]OFD Sender: No OFD packet to send [01:41:43]OFD Sender: No OFD packet to send [01:41:48]OFD Sender: No OFD packet to send [01:41:53]OFD Sender: No OFD packet to send [01:41:58]OFD Sender: No OFD packet to send [01:42:03]OFD Sender: No OFD packet to send [01:42:08]OFD Sender: No OFD packet to send [01:42:13]OFD Sender: No OFD packet to send [01:42:18]OFD Sender: No OFD packet to send [01:42:23]OFD Sender: No OFD packet to send [01:42:28]OFD Sender: No OFD packet to send [01:42:33]OFD Sender: No OFD packet to send [01:42:38]OFD Sender: No OFD packet to send [01:42:43]OFD Sender: No OFD packet to send [01:42:48]OFD Sender: No OFD packet to send [01:42:48]recv_with_timeout no data received [01:42:53]OFD Sender: No OFD packet to send [01:42:58]OFD Sender: No OFD packet to send [01:43:03]OFD Sender: No OFD packet to send [01:43:08]OFD Sender: No OFD packet to send [01:43:13]OFD Sender: No OFD packet to send [01:43:18]OFD Sender: No OFD packet to send [01:43:23]OFD Sender: No OFD packet to send [01:43:28]OFD Sender: No OFD packet to send [01:43:33]OFD Sender: No OFD packet to send [01:43:38]OFD Sender: No OFD packet to send [01:43:43]OFD Sender: No OFD packet to send [01:43:48]OFD Sender: No OFD packet to send [01:43:53]OFD Sender: No OFD packet to send [01:43:58]OFD Sender: No OFD packet to send [01:44:03]OFD Sender: No OFD packet to send [01:44:08]OFD Sender: No OFD packet to send [01:44:13]OFD Sender: No OFD packet to send [01:44:18]OFD Sender: No OFD packet to send [01:44:23]OFD Sender: No OFD packet to send [01:44:28]OFD Sender: No OFD packet to send [01:44:33]OFD Sender: No OFD packet to send [01:44:38]OFD Sender: No OFD packet to send [01:44:43]OFD Sender: No OFD packet to send [01:44:48]OFD Sender: No OFD packet to send [01:44:53]OFD Sender: No OFD packet to send [01:44:58]OFD Sender: No OFD packet to send [01:45:03]OFD Sender: No OFD packet to send [01:45:08]OFD Sender: No OFD packet to send [01:45:13]OFD Sender: No OFD packet to send [01:45:18]OFD Sender: No OFD packet to send [01:45:23]OFD Sender: No OFD packet to send [01:45:28]OFD Sender: No OFD packet to send [01:45:33]OFD Sender: No OFD packet to send [01:45:38]OFD Sender: No OFD packet to send [01:45:43]OFD Sender: No OFD packet to send [01:45:48]OFD Sender: No OFD packet to send [01:45:53]OFD Sender: No OFD packet to send [01:45:58]OFD Sender: No OFD packet to send [01:46:03]OFD Sender: No OFD packet to send [01:46:08]OFD Sender: No OFD packet to send [01:46:13]OFD Sender: No OFD packet to send [01:46:18]OFD Sender: No OFD packet to send [01:46:23]OFD Sender: No OFD packet to send [01:46:28]OFD Sender: No OFD packet to send [01:46:33]OFD Sender: No OFD packet to send [01:46:38]OFD Sender: No OFD packet to send [01:46:43]OFD Sender: No OFD packet to send [01:46:48]OFD Sender: No OFD packet to send [01:46:53]OFD Sender: No OFD packet to send [01:46:58]OFD Sender: No OFD packet to send [01:47:03]OFD Sender: No OFD packet to send [01:47:08]OFD Sender: No OFD packet to send [01:47:13]OFD Sender: No OFD packet to send [01:47:18]OFD Sender: No OFD packet to send [01:47:23]OFD Sender: No OFD packet to send [01:47:28]OFD Sender: No OFD packet to send [01:47:33]OFD Sender: No OFD packet to send [01:47:38]OFD Sender: No OFD packet to send [01:47:43]OFD Sender: No OFD packet to send [01:47:48]OFD Sender: No OFD packet to send [01:47:53]OFD Sender: No OFD packet to send [01:47:58]OFD Sender: No OFD packet to send [01:48:03]OFD Sender: No OFD packet to send [01:48:08]OFD Sender: No OFD packet to send [01:48:13]OFD Sender: No OFD packet to send [01:48:18]OFD Sender: No OFD packet to send [01:48:23]OFD Sender: No OFD packet to send [01:48:28]OFD Sender: No OFD packet to send [01:48:33]OFD Sender: No OFD packet to send [01:48:38]OFD Sender: No OFD packet to send [01:48:43]OFD Sender: No OFD packet to send [01:48:48]OFD Sender: No OFD packet to send [01:48:53]OFD Sender: No OFD packet to send [01:48:58]OFD Sender: No OFD packet to send [01:49:03]OFD Sender: No OFD packet to send [01:49:08]OFD Sender: No OFD packet to send [01:49:14]OFD Sender: No OFD packet to send [01:49:19]OFD Sender: No OFD packet to send [01:49:24]OFD Sender: No OFD packet to send [01:49:29]OFD Sender: No OFD packet to send [01:49:34]OFD Sender: No OFD packet to send [01:49:39]OFD Sender: No OFD packet to send [01:49:44]OFD Sender: No OFD packet to send [01:49:49]OFD Sender: No OFD packet to send [01:49:54]OFD Sender: No OFD packet to send [01:49:59]OFD Sender: No OFD packet to send [01:50:04]OFD Sender: No OFD packet to send [01:50:09]OFD Sender: No OFD packet to send [01:50:14]OFD Sender: No OFD packet to send [01:50:19]OFD Sender: No OFD packet to send [01:50:24]OFD Sender: No OFD packet to send [01:50:29]OFD Sender: No OFD packet to send [01:50:34]OFD Sender: No OFD packet to send [01:50:39]OFD Sender: No OFD packet to send [01:50:44]OFD Sender: No OFD packet to send [01:50:49]OFD Sender: No OFD packet to send [01:50:51]recv_with_timeout no data received [01:50:54]OFD Sender: No OFD packet to send [01:50:59]OFD Sender: No OFD packet to send [01:51:04]OFD Sender: No OFD packet to send [01:51:09]OFD Sender: No OFD packet to send [01:51:14]OFD Sender: No OFD packet to send [01:51:19]OFD Sender: No OFD packet to send [01:51:24]OFD Sender: No OFD packet to send [01:51:29]OFD Sender: No OFD packet to send [01:51:34]OFD Sender: No OFD packet to send [01:51:39]OFD Sender: No OFD packet to send [01:51:44]OFD Sender: No OFD packet to send [01:51:49]OFD Sender: No OFD packet to send [01:51:54]OFD Sender: No OFD packet to send [01:51:59]OFD Sender: No OFD packet to send [01:52:04]OFD Sender: No OFD packet to send [01:52:09]OFD Sender: No OFD packet to send [01:52:14]OFD Sender: No OFD packet to send [01:52:19]OFD Sender: No OFD packet to send [01:52:24]OFD Sender: No OFD packet to send [01:52:29]OFD Sender: No OFD packet to send [01:52:34]OFD Sender: No OFD packet to send [01:52:39]OFD Sender: No OFD packet to send [01:52:44]OFD Sender: No OFD packet to send [01:52:49]OFD Sender: No OFD packet to send [01:52:54]OFD Sender: No OFD packet to send [01:52:59]OFD Sender: No OFD packet to send [01:53:04]OFD Sender: No OFD packet to send [01:53:09]OFD Sender: No OFD packet to send [01:53:14]OFD Sender: No OFD packet to send [01:53:19]OFD Sender: No OFD packet to send [01:53:24]OFD Sender: No OFD packet to send [01:53:29]OFD Sender: No OFD packet to send [01:53:34]OFD Sender: No OFD packet to send [01:53:39]OFD Sender: No OFD packet to send [01:53:44]OFD Sender: No OFD packet to send [01:53:49]OFD Sender: No OFD packet to send [01:53:54]OFD Sender: No OFD packet to send [01:53:59]OFD Sender: No OFD packet to send [01:54:04]OFD Sender: No OFD packet to send [01:54:09]OFD Sender: No OFD packet to send [01:54:14]OFD Sender: No OFD packet to send [01:54:19]OFD Sender: No OFD packet to send [01:54:24]OFD Sender: No OFD packet to send [01:54:29]OFD Sender: No OFD packet to send [01:54:34]OFD Sender: No OFD packet to send [01:54:39]OFD Sender: No OFD packet to send [01:54:44]OFD Sender: No OFD packet to send [01:54:49]OFD Sender: No OFD packet to send [01:54:54]OFD Sender: No OFD packet to send [01:54:59]OFD Sender: No OFD packet to send [01:55:04]OFD Sender: No OFD packet to send [01:55:09]OFD Sender: No OFD packet to send [01:55:14]OFD Sender: No OFD packet to send [01:55:19]OFD Sender: No OFD packet to send [01:55:24]OFD Sender: No OFD packet to send [01:55:29]OFD Sender: No OFD packet to send [01:55:34]OFD Sender: No OFD packet to send [01:55:39]OFD Sender: No OFD packet to send [01:55:44]OFD Sender: No OFD packet to send [01:55:49]OFD Sender: No OFD packet to send [01:55:54]OFD Sender: No OFD packet to send [01:55:59]OFD Sender: No OFD packet to send [01:56:04]OFD Sender: No OFD packet to send [01:56:09]OFD Sender: No OFD packet to send [01:56:14]OFD Sender: No OFD packet to send [01:56:19]OFD Sender: No OFD packet to send [01:56:24]OFD Sender: No OFD packet to send [01:56:29]OFD Sender: No OFD packet to send [01:56:34]OFD Sender: No OFD packet to send [01:56:39]OFD Sender: No OFD packet to send [01:56:44]OFD Sender: No OFD packet to send [01:56:49]OFD Sender: No OFD packet to send [01:56:54]OFD Sender: No OFD packet to send [01:56:59]OFD Sender: No OFD packet to send [01:57:04]OFD Sender: No OFD packet to send [01:57:09]OFD Sender: No OFD packet to send [01:57:14]OFD Sender: No OFD packet to send [01:57:19]OFD Sender: No OFD packet to send [01:57:24]OFD Sender: No OFD packet to send [01:57:29]OFD Sender: No OFD packet to send [01:57:34]OFD Sender: No OFD packet to send [01:57:39]OFD Sender: No OFD packet to send [01:57:44]OFD Sender: No OFD packet to send [01:57:49]OFD Sender: No OFD packet to send [01:57:54]OFD Sender: No OFD packet to send [01:57:59]OFD Sender: No OFD packet to send [01:58:04]OFD Sender: No OFD packet to send [01:58:09]OFD Sender: No OFD packet to send [01:58:14]OFD Sender: No OFD packet to send [01:58:19]OFD Sender: No OFD packet to send [01:58:24]OFD Sender: No OFD packet to send [01:58:29]OFD Sender: No OFD packet to send [01:58:34]OFD Sender: No OFD packet to send [01:58:39]OFD Sender: No OFD packet to send [01:58:44]OFD Sender: No OFD packet to send [01:58:49]OFD Sender: No OFD packet to send [01:58:54]OFD Sender: No OFD packet to send [01:58:59]OFD Sender: No OFD packet to send [01:59:04]OFD Sender: No OFD packet to send [01:59:09]OFD Sender: No OFD packet to send [01:59:14]OFD Sender: No OFD packet to send [01:59:19]OFD Sender: No OFD packet to send [01:59:24]OFD Sender: No OFD packet to send [01:59:30]OFD Sender: No OFD packet to send [01:59:35]OFD Sender: No OFD packet to send [01:59:40]OFD Sender: No OFD packet to send [01:59:45]OFD Sender: No OFD packet to send [01:59:50]OFD Sender: No OFD packet to send [01:59:55]OFD Sender: No OFD packet to send [02:00:00]OFD Sender: No OFD packet to send [02:00:05]OFD Sender: No OFD packet to send [02:00:10]OFD Sender: No OFD packet to send [02:00:15]OFD Sender: No OFD packet to send [02:00:20]OFD Sender: No OFD packet to send [02:00:25]OFD Sender: No OFD packet to send [02:00:30]OFD Sender: No OFD packet to send [02:00:35]OFD Sender: No OFD packet to send [02:00:40]OFD Sender: No OFD packet to send [02:00:45]OFD Sender: No OFD packet to send [02:00:50]OFD Sender: No OFD packet to send [02:00:55]OFD Sender: No OFD packet to send [02:01:00]OFD Sender: No OFD packet to send [02:01:05]OFD Sender: No OFD packet to send [02:01:10]OFD Sender: No OFD packet to send [02:01:15]OFD Sender: No OFD packet to send [02:01:20]OFD Sender: No OFD packet to send [02:01:25]OFD Sender: No OFD packet to send [02:01:30]OFD Sender: No OFD packet to send [02:01:35]OFD Sender: No OFD packet to send [02:01:40]OFD Sender: No OFD packet to send [02:01:45]OFD Sender: No OFD packet to send [02:01:50]OFD Sender: No OFD packet to send [02:01:55]OFD Sender: No OFD packet to send [02:02:00]OFD Sender: No OFD packet to send [02:02:05]OFD Sender: No OFD packet to send [02:02:10]OFD Sender: No OFD packet to send [02:02:15]OFD Sender: No OFD packet to send [02:02:20]OFD Sender: No OFD packet to send [02:02:25]OFD Sender: No OFD packet to send [02:02:30]OFD Sender: No OFD packet to send [02:02:35]OFD Sender: No OFD packet to send [02:02:40]OFD Sender: No OFD packet to send [02:02:45]OFD Sender: No OFD packet to send [02:02:50]OFD Sender: No OFD packet to send [02:02:55]OFD Sender: No OFD packet to send [02:03:00]OFD Sender: No OFD packet to send [02:03:05]OFD Sender: No OFD packet to send [02:03:10]OFD Sender: No OFD packet to send [02:03:15]OFD Sender: No OFD packet to send [02:03:20]OFD Sender: No OFD packet to send [02:03:25]OFD Sender: No OFD packet to send [02:03:30]OFD Sender: No OFD packet to send [02:03:35]OFD Sender: No OFD packet to send [02:03:40]OFD Sender: No OFD packet to send [02:03:45]OFD Sender: No OFD packet to send [02:03:50]OFD Sender: No OFD packet to send [02:03:55]OFD Sender: No OFD packet to send [02:04:00]OFD Sender: No OFD packet to send [02:04:05]OFD Sender: No OFD packet to send [02:04:10]OFD Sender: No OFD packet to send [02:04:15]OFD Sender: No OFD packet to send [02:04:20]OFD Sender: No OFD packet to send [02:04:25]OFD Sender: No OFD packet to send [02:04:30]OFD Sender: No OFD packet to send [02:04:35]OFD Sender: No OFD packet to send [02:04:40]OFD Sender: No OFD packet to send [02:04:45]OFD Sender: No OFD packet to send [02:04:50]OFD Sender: No OFD packet to send [02:04:55]OFD Sender: No OFD packet to send [02:05:00]OFD Sender: No OFD packet to send [02:05:05]OFD Sender: No OFD packet to send [02:05:10]OFD Sender: No OFD packet to send [02:05:15]OFD Sender: No OFD packet to send [02:05:20]OFD Sender: No OFD packet to send [02:05:25]OFD Sender: No OFD packet to send [02:05:30]OFD Sender: No OFD packet to send [02:05:35]OFD Sender: No OFD packet to send [02:05:40]OFD Sender: No OFD packet to send [02:05:45]OFD Sender: No OFD packet to send [02:05:50]OFD Sender: No OFD packet to send [02:05:55]OFD Sender: No OFD packet to send [02:06:00]OFD Sender: No OFD packet to send [02:06:05]OFD Sender: No OFD packet to send [02:06:10]OFD Sender: No OFD packet to send [02:06:15]OFD Sender: No OFD packet to send [02:06:20]OFD Sender: No OFD packet to send [02:06:25]OFD Sender: No OFD packet to send [02:06:30]OFD Sender: No OFD packet to send [02:06:35]OFD Sender: No OFD packet to send [02:06:40]OFD Sender: No OFD packet to send [02:06:45]OFD Sender: No OFD packet to send [02:06:50]OFD Sender: No OFD packet to send [02:06:55]OFD Sender: No OFD packet to send [02:07:00]OFD Sender: No OFD packet to send [02:07:05]OFD Sender: No OFD packet to send [02:07:10]OFD Sender: No OFD packet to send [02:07:15]OFD Sender: No OFD packet to send [02:07:20]OFD Sender: No OFD packet to send [02:07:25]OFD Sender: No OFD packet to send [02:07:30]OFD Sender: No OFD packet to send [02:07:35]OFD Sender: No OFD packet to send [02:07:40]OFD Sender: No OFD packet to send [02:07:45]OFD Sender: No OFD packet to send [02:07:50]OFD Sender: No OFD packet to send [02:07:55]OFD Sender: No OFD packet to send [02:08:00]OFD Sender: No OFD packet to send [02:08:05]OFD Sender: No OFD packet to send [02:08:10]OFD Sender: No OFD packet to send [02:08:15]OFD Sender: No OFD packet to send [02:08:20]OFD Sender: No OFD packet to send [02:08:25]OFD Sender: No OFD packet to send [02:08:30]OFD Sender: No OFD packet to send [02:08:35]OFD Sender: No OFD packet to send [02:08:40]OFD Sender: No OFD packet to send [02:08:45]OFD Sender: No OFD packet to send [02:08:50]OFD Sender: No OFD packet to send [02:08:55]OFD Sender: No OFD packet to send [02:09:00]OFD Sender: No OFD packet to send [02:09:05]OFD Sender: No OFD packet to send [02:09:10]OFD Sender: No OFD packet to send [02:09:15]OFD Sender: No OFD packet to send [02:09:20]OFD Sender: No OFD packet to send [02:09:25]OFD Sender: No OFD packet to send [02:09:30]OFD Sender: No OFD packet to send [02:09:35]OFD Sender: No OFD packet to send [02:09:40]OFD Sender: No OFD packet to send [02:09:46]OFD Sender: No OFD packet to send [02:09:51]OFD Sender: No OFD packet to send [02:09:56]OFD Sender: No OFD packet to send [02:10:01]OFD Sender: No OFD packet to send [02:10:06]OFD Sender: No OFD packet to send [02:10:11]OFD Sender: No OFD packet to send [02:10:16]OFD Sender: No OFD packet to send [02:10:21]OFD Sender: No OFD packet to send [02:10:26]OFD Sender: No OFD packet to send [02:10:31]OFD Sender: No OFD packet to send [02:10:36]OFD Sender: No OFD packet to send [02:10:41]OFD Sender: No OFD packet to send [02:10:46]OFD Sender: No OFD packet to send [02:10:51]OFD Sender: No OFD packet to send [02:10:56]OFD Sender: No OFD packet to send [02:11:01]OFD Sender: No OFD packet to send [02:11:06]OFD Sender: No OFD packet to send [02:11:11]OFD Sender: No OFD packet to send [02:11:16]OFD Sender: No OFD packet to send [02:11:21]OFD Sender: No OFD packet to send [02:11:26]OFD Sender: No OFD packet to send [02:11:31]OFD Sender: No OFD packet to send [02:11:36]OFD Sender: No OFD packet to send [02:11:41]OFD Sender: No OFD packet to send [02:11:46]OFD Sender: No OFD packet to send [02:11:51]OFD Sender: No OFD packet to send [02:11:56]OFD Sender: No OFD packet to send [02:12:01]OFD Sender: No OFD packet to send [02:12:06]OFD Sender: No OFD packet to send [02:12:11]OFD Sender: No OFD packet to send [02:12:16]OFD Sender: No OFD packet to send [02:12:21]OFD Sender: No OFD packet to send [02:12:26]OFD Sender: No OFD packet to send [02:12:31]OFD Sender: No OFD packet to send [02:12:36]OFD Sender: No OFD packet to send [02:12:41]OFD Sender: No OFD packet to send [02:12:46]OFD Sender: No OFD packet to send [02:12:51]OFD Sender: No OFD packet to send [02:12:56]OFD Sender: No OFD packet to send [02:13:01]OFD Sender: No OFD packet to send [02:13:06]OFD Sender: No OFD packet to send [02:13:11]OFD Sender: No OFD packet to send [02:13:16]OFD Sender: No OFD packet to send [02:13:21]OFD Sender: No OFD packet to send [02:13:26]OFD Sender: No OFD packet to send [02:13:31]OFD Sender: No OFD packet to send [02:13:36]OFD Sender: No OFD packet to send [02:13:41]OFD Sender: No OFD packet to send [02:13:46]OFD Sender: No OFD packet to send [02:13:51]OFD Sender: No OFD packet to send [02:13:56]OFD Sender: No OFD packet to send [02:14:01]OFD Sender: No OFD packet to send [02:14:06]OFD Sender: No OFD packet to send [02:14:11]OFD Sender: No OFD packet to send [02:14:16]OFD Sender: No OFD packet to send [02:14:21]OFD Sender: No OFD packet to send [02:14:26]OFD Sender: No OFD packet to send [02:14:31]OFD Sender: No OFD packet to send [02:14:36]OFD Sender: No OFD packet to send [02:14:41]OFD Sender: No OFD packet to send [02:14:46]OFD Sender: No OFD packet to send [02:14:51]OFD Sender: No OFD packet to send [02:14:56]OFD Sender: No OFD packet to send [02:15:01]OFD Sender: No OFD packet to send [02:15:06]OFD Sender: No OFD packet to send [02:15:11]OFD Sender: No OFD packet to send [02:15:16]OFD Sender: No OFD packet to send [02:15:21]OFD Sender: No OFD packet to send [02:15:26]OFD Sender: No OFD packet to send [02:15:31]OFD Sender: No OFD packet to send [02:15:36]OFD Sender: No OFD packet to send [02:15:41]OFD Sender: No OFD packet to send [02:15:46]OFD Sender: No OFD packet to send [02:15:51]OFD Sender: No OFD packet to send [02:15:56]OFD Sender: No OFD packet to send [02:16:01]OFD Sender: No OFD packet to send [02:16:06]OFD Sender: No OFD packet to send [02:16:11]OFD Sender: No OFD packet to send [02:16:16]OFD Sender: No OFD packet to send [02:16:16]accept exits with 10 [02:16:16]New connection [02:16:16]New thread 3067440484 created [02:16:16]Thread 3067297124 joined [02:16:16]Waiting for new connection... [02:16:16] Sock 10.Parse request [02:16:16]Sock 10.Check first char [02:16:16]Sock 10.First char is OK [02:16:16]request: POST /json_proto HTTP/1.0 [02:16:16]Method: POST [02:16:16]URL: /json_proto [02:16:16]Method is POST - this is cgi request [02:16:16]url: /json_proto [02:16:16]query_string will be loaded in cgi processing [02:16:16]execute_cgi json_proto POST (null) [02:16:16]execute_cgi path=json_proto method=POST [02:16:16]POST find Content-Length [02:16:16]Host: 172.17.44.67:8080 [02:16:16]Content-Length: 677 [02:16:16]Content-Type: application/json [02:16:16] [02:16:16]POST finish read [02:16:16]Found Content-Length = 677 [02:16:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:16:16]execute_script... [02:16:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:16:16]POST & json_proto [02:16:16]process_json_proto [02:16:17]json parsed OK: [02:16:17]protocol is kg_v1.0 [02:16:17]action value=close_receipt [02:16:17]process_action close_receipt [02:16:17]cmd_close_receipt [02:16:17]MH_GetDate [02:16:17]Write to MH i2c: F0 00 00 31 03 23 [02:16:17]Write i2c OK [02:16:17]MH_I2C_Read... [02:16:17]Read from MH i2c: F0 [02:16:17]MH_I2C_Read... [02:16:17]Read from MH i2c: F0 09 00 [02:16:17]MH_I2C_Read... [02:16:17]Read from MH i2c: F0 09 00 31 03 00 F2 C4 11 67 F1 C7 6B 64 E1 [02:16:17]GetLastDocTimeStamp 1729215108 [02:16:17]current date 1729217778 [02:16:17]FM_GetShiftState [02:16:17]SAM_PROTO_GetShiftState [02:16:17]wFMCommunicate request_size=4 [02:16:17]MH_SAM_APDU [02:16:17]CAPDU: 80 13 01 00 [02:16:17]Write to MH i2c: E2 08 00 32 03 80 13 01 00 00 00 00 00 B2 [02:16:17]Write i2c OK [02:16:17]MH_I2C_Read... [02:16:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:16:17]Read from MH i2c: E2 [02:16:17]MH_I2C_Read... [02:16:17]Read from MH i2c: E2 0E 00 [02:16:17]MH_I2C_Read... [02:16:17]Read from MH i2c: E2 0E 00 32 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 84 [02:16:17]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [02:16:17]wFMCommunicate OK [02:16:17]SAM_PROTO_GetShiftState done [02:16:17]FM_GetShiftState done [02:16:17]opened in 1729212319 [02:16:17]opened+sec_in_day 1729298719 [02:16:17]quantity*price = 20003 [02:16:17]sum+1 = 20004 [02:16:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 6 18.10.2024 02:16 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82297 ФПД: 211587681262539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T021618&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82297&fm=211587681262539&tin=02508201610067®Number=0000000000091680&sum=20000 [02:16:18]StoreToDocumentArchive [02:16:18]shift 526 fd 82297 [02:16:18]save to /storage/0526/doc_00082297 [02:16:18]save last doc name /storage/0526/doc_00082297 to /storage/kkm_last_doc_name [02:16:18]save OK [02:16:18]Clear old archive folders... [02:16:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:16:18]tlvbuf is 00B39CF0 [02:16:18]SAM_PROTO_ClearQueue [02:16:18]wFMCommunicate request_size=4 [02:16:18]MH_SAM_APDU [02:16:18]CAPDU: 80 09 00 00 [02:16:18]Write to MH i2c: E2 08 00 3F 03 80 09 00 00 00 00 00 00 B4 [02:16:18]Write i2c OK [02:16:18]MH_I2C_Read... [02:16:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:16:18]Read from MH i2c: E2 [02:16:18]MH_I2C_Read... [02:16:18]Read from MH i2c: E2 03 00 [02:16:18]MH_I2C_Read... [02:16:18]Read from MH i2c: E2 03 00 3F 03 00 90 00 B6 [02:16:18]RAPDU: 90 00 [02:16:18]wFMCommunicate OK [02:16:18]SAM_PROTO_ClearQueue done [02:16:18]KKMCreateOFDPacket [02:16:18]OFDProtocolAddRootSTLVToBuf [02:16:18]FM_MakeSignedData [02:16:18]FM_MakeSignedData [02:16:18]SAM_PROTO_SignData [02:16:18]wFMCommunicate request_size=4 [02:16:18]MH_SAM_APDU [02:16:18]CAPDU: 80 0D 01 02 [02:16:18]Write to MH i2c: E2 08 00 40 03 80 0D 01 02 00 00 00 00 BC [02:16:18]Write i2c OK [02:16:18]MH_I2C_Read... [02:16:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:16:18]Read from MH i2c: E2 [02:16:18]MH_I2C_Read... [02:16:18]Read from MH i2c: E2 03 00 [02:16:18]MH_I2C_Read... [02:16:18]Read from MH i2c: E2 03 00 40 03 00 90 00 B7 [02:16:18]RAPDU: 90 00 [02:16:18]wFMCommunicate OK [02:16:18]wFMCommunicate request_size=255 [02:16:18]MH_SAM_APDU [02:16:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F2 C4 11 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 79 41 01 00 35 04 06 00 C0 [02:16:18]Write to MH i2c: E2 02 01 41 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F2 C4 11 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 79 41 01 00 35 04 06 00 C0 00 00 C9 [02:16:18]Write i2c OK [02:16:18]MH_I2C_Read... [02:16:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:16:18]Read from MH i2c: E2 [02:16:18]MH_I2C_Read... [02:16:18]Read from MH i2c: E2 03 00 [02:16:18]MH_I2C_Read... [02:16:18]Read from MH i2c: E2 03 00 41 03 00 90 00 B8 [02:16:18]RAPDU: 90 00 [02:16:18]wFMCommunicate OK [02:16:18]wFMCommunicate request_size=10 [02:16:18]MH_SAM_APDU [02:16:18]CAPDU: 80 0D 02 02 05 70 18 94 9B CB [02:16:18]Write to MH i2c: E2 0D 00 42 03 80 0D 02 02 05 00 70 18 94 9B CB 00 00 4B [02:16:18]Write i2c OK [02:16:18]MH_I2C_Read... [02:16:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:16:18]Read from MH i2c: E2 [02:16:18]MH_I2C_Read... [02:16:18]Read from MH i2c: E2 03 00 [02:16:18]MH_I2C_Read... [02:16:18]Read from MH i2c: E2 03 00 42 03 00 90 00 B9 [02:16:18]RAPDU: 90 00 [02:16:18]wFMCommunicate OK [02:16:18]wFMCommunicate request_size=4 [02:16:18]MH_SAM_APDU [02:16:18]CAPDU: 80 0D 03 02 [02:16:18]Write to MH i2c: E2 08 00 43 03 80 0D 03 02 00 00 00 00 C1 [02:16:18]Write i2c OK [02:16:18]MH_I2C_Read... [02:16:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:16:18]Read from MH i2c: E2 [02:16:18]MH_I2C_Read... [02:16:18]Read from MH i2c: E2 0B 00 [02:16:18]MH_I2C_Read... [02:16:18]Read from MH i2c: E2 0B 00 43 03 00 EB 35 11 E1 69 B3 3C 10 90 00 3C [02:16:18]RAPDU: EB 35 11 E1 69 B3 3C 10 90 00 [02:16:18]wFMCommunicate OK [02:16:18]SAM_PROTO_SignData done [02:16:18]FM_MakeSignedData done [02:16:18]CreateOFDProtocolMessage [02:16:18]wFMCommunicate request_size=4 [02:16:18]MH_SAM_APDU [02:16:18]CAPDU: 80 11 00 00 [02:16:18]Write to MH i2c: E2 08 00 44 03 80 11 00 00 00 00 00 00 C1 [02:16:18]Write i2c OK [02:16:18]MH_I2C_Read... [02:16:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:16:18]Read from MH i2c: E2 [02:16:18]MH_I2C_Read... [02:16:18]Read from MH i2c: E2 17 00 [02:16:18]MH_I2C_Read... [02:16:18]Read from MH i2c: E2 17 00 44 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 13 [02:16:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [02:16:18]wFMCommunicate OK [02:16:18]CreateOFDProtocolMessage done [02:16:18]OFDSenderStorePacket 82297 [02:16:18]StoreOFDPacket docnum=82297 [02:16:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 CB 53 07 01 B7 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F2 C4 11 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 79 41 01 00 35 04 06 00 C0 70 18 94 9B CB EB 35 11 E1 69 B3 3C 10 [02:16:18]CheckFolder [02:16:18]dirname=/storage/ofd_packets [02:16:18]CheckFolder done [02:16:18]ProducePacketName [02:16:18]name=ofd_packets/00082297 [02:16:18]NVStorageSaveData ofd_packets/00082297 [02:16:18]File name is /storage/ofd_packets/00082297 [02:16:18]Write 301 bytes [02:16:18]NVStorageSaveData done [02:16:18]OFDSenderStorePacket done [02:16:18]KKMCreateOFDPacket done [02:16:18]NVStorageSaveData kkm_last_timestamp [02:16:18]File name is /storage/kkm_last_timestamp [02:16:18]Write 4 bytes [02:16:18]NVStorageSaveData done [02:16:18]ExternCall_PrintAddStr [02:16:18]wPrintStart [02:16:18]Write to MH i2c: 01 00 00 45 03 48 [02:16:18]Write i2c OK [02:16:18]MH_I2C_Read... [02:16:18]Read from MH i2c: 01 [02:16:18]MH_I2C_Read... [02:16:18]Read from MH i2c: 01 07 00 [02:16:18]MH_I2C_Read... [02:16:18]Read from MH i2c: 01 07 00 45 03 00 00 00 00 00 FF 0F 5D [02:16:18]RasterBufferAndPrint [02:16:18]line Счет N : (1)918796 [02:16:18]line ИНН: 02508201610067 [02:16:18]line Контрольно-Кассовый Чек [02:16:18]line ПРОДАЖА [02:16:18]line ТРК (МРК, ГНК) : 22 [02:16:18]line Товар: 2710124130 [02:16:18]line Аи-92-К-4 [02:16:18]line 2.990 * 66.90 [02:16:18]line = 200.03 [02:16:18]line НДС 12% НСП 1% [02:16:18]line > о реализуемом товаре [02:16:18]line ОКРУГЛЕНИЕ: -0.03 [02:16:18]line ИТОГО: 200.00 [02:16:18]line Внесено: 200.00 [02:16:18]line СДАЧА: 0.00 [02:16:18]line НСП 1% : 1.77 [02:16:18]line НДС 12% : 21.24 [02:16:18]line Наличными: 200.00 [02:16:18]line Безнал.: 0.00 [02:16:18]line Место: АЗС № 114 "Партнер Нефть" [02:16:18]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [02:16:18]line СНО: Общий режим [02:16:18]line Чек 6 18.10.2024 02:16 [02:16:18]line Смена: 526 ФФД: 1.0 [02:16:18]line ЗНМ: 0300000086 [02:16:18]line РНМ: 0000000000091680 [02:16:18]line Версия ККМ: 001 [02:16:18]line ФМ: 0000000000871843 [02:16:18]line ФД: 82297 [02:16:18]line ФПД: 211587681262539 [02:16:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T021618&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82297&fm=211587681262539&tin=02508201610067®Number=0000000000091680&sum=20000 [02:16:19]OFD Sender: Processing packet 82297 [packets to send 254, broken 253] [02:16:19]ProducePacketName [02:16:19]name=ofd_packets/00082297 [02:16:19]OFD Sender: To server: pG, [02:16:19]CommunicateWithHost lk.salyk.kg:30040 [02:16:19]ConnectInit lk.salyk.kg [02:16:19]written 0, free lines is 4095 [02:16:19]Write to MH i2c: 01 00 00 70 03 73 [02:16:19]Write i2c OK [02:16:19]MH_I2C_Read... [02:16:19]Read from MH i2c: 01 [02:16:19]MH_I2C_Read... [02:16:19]Read from MH i2c: 01 07 00 [02:16:19]MH_I2C_Read... [02:16:19]Read from MH i2c: 01 07 00 70 03 00 00 00 00 00 CE 0C 54 [02:16:19]RasterBufferAndPrint [02:16:19]line [02:16:19]line [02:16:19]line [02:16:19]line [02:16:19]line [02:16:19]written 0, free lines is 3286 [02:16:19]MH_Cut [02:16:19]Write to MH i2c: D1 01 00 77 03 01 4C [02:16:19]Write i2c OK [02:16:19]MH_I2C_Read... [02:16:19]Read from MH i2c: D1 [02:16:19]MH_I2C_Read... [02:16:19]Read from MH i2c: D1 01 00 [02:16:19]MH_I2C_Read... [02:16:19]Read from MH i2c: D1 01 00 77 03 00 4B [02:16:19]Write to MH i2c: 01 00 00 78 03 7B [02:16:19]Write i2c OK [02:16:19]MH_I2C_Read... [02:16:19]Connected sock=8 [02:16:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 CB 53 07 01 B7 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F2 C4 11 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 79 41 01 00 35 04 06 00 C0 70 18 94 9B CB EB 35 11 E1 69 B3 3C 10 [02:16:20]*** Cut start [02:16:20]*** Partial cut [02:16:20]*** CUTSNS_PIN = 1 [02:16:20]*** CUTSNS_PIN = 0 [02:16:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 48 67 47 00 9D 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 79 41 01 00 F4 03 04 00 2E 6A 11 67 B6 04 01 00 00 DD 6A 4E 08 89 92 47 13 [02:16:20]CommunicateWithHost err = 0 [02:16:20]CheckOFDResponse [02:16:20]1017 (14) - 77093643461234 [02:16:20]1041 (16) - 0000000000871843 [02:16:20]1040 (4) - 82297 [02:16:20]1012 (4) - 17.10.2024 19:49 [02:16:20]1206 (1) - 0 [02:16:20]OFD Sender: Remove packet 82297 [02:16:20]ProducePacketName [02:16:20]name=ofd_packets/00082297 [02:16:20]NVStorageDeleteData [02:16:20]*** Brake cut motor [02:16:20]OFD Sender: No OFD packet to send [02:16:20]Read from MH i2c: 01 [02:16:20]MH_I2C_Read... [02:16:20]*** Stop cut motor [02:16:20]*** Cut end [02:16:20]Read from MH i2c: 01 07 00 [02:16:20]MH_I2C_Read... [02:16:20]Read from MH i2c: 01 07 00 78 03 00 00 00 00 00 FF 0F 90 [02:16:20]process_action close_receipt done [02:16:20]requested_data is exist [02:16:20]produce_requested_data [02:16:20]requested_item fm.sn is exist - process it [02:16:20]wFMCommunicate request_size=4 [02:16:20]MH_SAM_APDU [02:16:20]CAPDU: 80 11 00 00 [02:16:20]Write to MH i2c: E2 08 00 79 03 80 11 00 00 00 00 00 00 F6 [02:16:20]Write i2c OK [02:16:20]MH_I2C_Read... [02:16:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:16:20]Read from MH i2c: E2 [02:16:20]MH_I2C_Read... [02:16:20]Read from MH i2c: E2 17 00 [02:16:20]MH_I2C_Read... [02:16:20]Read from MH i2c: E2 17 00 79 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 48 [02:16:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [02:16:20]wFMCommunicate OK [02:16:20]requested_item fd.num is exist - process it [02:16:20]SAM_PROTO_GetFieldsCounters [02:16:20]wFMCommunicate request_size=4 [02:16:20]MH_SAM_APDU [02:16:20]CAPDU: 80 13 00 00 [02:16:20]Write to MH i2c: E2 08 00 7A 03 80 13 00 00 00 00 00 00 F9 [02:16:20]Write i2c OK [02:16:20]MH_I2C_Read... [02:16:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:16:21]Read from MH i2c: E2 [02:16:21]MH_I2C_Read... [02:16:21]Read from MH i2c: E2 62 00 [02:16:21]MH_I2C_Read... [02:16:21]Read from MH i2c: E2 62 00 7A 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 79 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [02:16:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 79 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:16:21]wFMCommunicate OK [02:16:21]SAM_PROTO_GetFieldsCounters done [02:16:21]requested_item shift.num is exist - process it [02:16:21]requested_item shift.opened is exist - process it [02:16:21]req_shift_opened [02:16:21]FM_GetShiftState [02:16:21]SAM_PROTO_GetShiftState [02:16:21]wFMCommunicate request_size=4 [02:16:21]MH_SAM_APDU [02:16:21]CAPDU: 80 13 01 00 [02:16:21]Write to MH i2c: E2 08 00 7B 03 80 13 01 00 00 00 00 00 FB [02:16:21]Write i2c OK [02:16:21]MH_I2C_Read... [02:16:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:16:21]Read from MH i2c: E2 [02:16:21]MH_I2C_Read... [02:16:21]Read from MH i2c: E2 0E 00 [02:16:21]MH_I2C_Read... [02:16:21]Read from MH i2c: E2 0E 00 7B 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 CD [02:16:21]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [02:16:21]wFMCommunicate OK [02:16:21]SAM_PROTO_GetShiftState done [02:16:21]FM_GetShiftState done [02:16:21]req_shift_opened done [02:16:21]requested_item shift.open_date is exist - process it [02:16:21]req_shift_open_date [02:16:21]req_shift_open_date done [02:16:21]produce_requested_data done [02:16:21]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82297,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [02:16:21]process_action_free close_receipt [02:16:21]json_value_free [02:16:21]json_value_free done [02:16:21]process_json_proto returns [02:16:21]Send response to host [02:16:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82297,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [02:16:21]free response buf [02:16:21]execute_script done [02:16:21]execute_script returns [02:16:21]free content buf [02:16:21]Sock 10.Close socket [02:16:21]Sock 10.Thread stoped [02:16:25]OFD Sender: No OFD packet to send [02:16:29]recv_with_timeout no data received [02:16:30]OFD Sender: No OFD packet to send [02:16:35]OFD Sender: No OFD packet to send [02:16:40]OFD Sender: No OFD packet to send [02:16:45]OFD Sender: No OFD packet to send [02:16:49]recv_with_timeout no data received [02:16:50]OFD Sender: No OFD packet to send [02:16:55]OFD Sender: No OFD packet to send [02:17:00]OFD Sender: No OFD packet to send [02:17:05]OFD Sender: No OFD packet to send [02:17:10]OFD Sender: No OFD packet to send [02:17:15]OFD Sender: No OFD packet to send [02:17:20]OFD Sender: No OFD packet to send [02:17:25]OFD Sender: No OFD packet to send [02:17:30]OFD Sender: No OFD packet to send [02:17:35]OFD Sender: No OFD packet to send [02:17:41]OFD Sender: No OFD packet to send [02:17:46]OFD Sender: No OFD packet to send [02:17:51]OFD Sender: No OFD packet to send [02:17:56]OFD Sender: No OFD packet to send [02:18:01]OFD Sender: No OFD packet to send [02:18:06]OFD Sender: No OFD packet to send [02:18:11]OFD Sender: No OFD packet to send [02:18:16]OFD Sender: No OFD packet to send [02:18:21]OFD Sender: No OFD packet to send [02:18:26]OFD Sender: No OFD packet to send [02:18:31]OFD Sender: No OFD packet to send [02:18:36]OFD Sender: No OFD packet to send [02:18:41]OFD Sender: No OFD packet to send [02:18:46]OFD Sender: No OFD packet to send [02:18:51]OFD Sender: No OFD packet to send [02:18:56]OFD Sender: No OFD packet to send [02:19:01]OFD Sender: No OFD packet to send [02:19:06]OFD Sender: No OFD packet to send [02:19:11]OFD Sender: No OFD packet to send [02:19:16]OFD Sender: No OFD packet to send [02:19:21]OFD Sender: No OFD packet to send [02:19:26]OFD Sender: No OFD packet to send [02:19:31]OFD Sender: No OFD packet to send [02:19:36]OFD Sender: No OFD packet to send [02:19:41]OFD Sender: No OFD packet to send [02:19:46]OFD Sender: No OFD packet to send [02:19:51]OFD Sender: No OFD packet to send [02:19:56]OFD Sender: No OFD packet to send [02:20:01]OFD Sender: No OFD packet to send [02:20:06]OFD Sender: No OFD packet to send [02:20:11]OFD Sender: No OFD packet to send [02:20:16]OFD Sender: No OFD packet to send [02:20:21]OFD Sender: No OFD packet to send [02:20:26]OFD Sender: No OFD packet to send [02:20:31]OFD Sender: No OFD packet to send [02:20:36]OFD Sender: No OFD packet to send [02:20:41]OFD Sender: No OFD packet to send [02:20:45]recv_with_timeout no data received [02:20:46]OFD Sender: No OFD packet to send [02:20:51]OFD Sender: No OFD packet to send [02:20:56]OFD Sender: No OFD packet to send [02:21:01]OFD Sender: No OFD packet to send [02:21:06]OFD Sender: No OFD packet to send [02:21:11]OFD Sender: No OFD packet to send [02:21:16]OFD Sender: No OFD packet to send [02:21:21]OFD Sender: No OFD packet to send [02:21:26]OFD Sender: No OFD packet to send [02:21:31]OFD Sender: No OFD packet to send [02:21:36]OFD Sender: No OFD packet to send [02:21:41]OFD Sender: No OFD packet to send [02:21:46]OFD Sender: No OFD packet to send [02:21:51]OFD Sender: No OFD packet to send [02:21:56]OFD Sender: No OFD packet to send [02:22:01]OFD Sender: No OFD packet to send [02:22:06]OFD Sender: No OFD packet to send [02:22:11]OFD Sender: No OFD packet to send [02:22:16]OFD Sender: No OFD packet to send [02:22:21]OFD Sender: No OFD packet to send [02:22:26]OFD Sender: No OFD packet to send [02:22:31]OFD Sender: No OFD packet to send [02:22:36]OFD Sender: No OFD packet to send [02:22:41]OFD Sender: No OFD packet to send [02:22:46]OFD Sender: No OFD packet to send [02:22:51]OFD Sender: No OFD packet to send [02:22:56]OFD Sender: No OFD packet to send [02:23:01]OFD Sender: No OFD packet to send [02:23:06]OFD Sender: No OFD packet to send [02:23:11]OFD Sender: No OFD packet to send [02:23:16]OFD Sender: No OFD packet to send [02:23:21]OFD Sender: No OFD packet to send [02:23:26]OFD Sender: No OFD packet to send [02:23:31]OFD Sender: No OFD packet to send [02:23:36]OFD Sender: No OFD packet to send [02:23:41]OFD Sender: No OFD packet to send [02:23:46]OFD Sender: No OFD packet to send [02:23:51]OFD Sender: No OFD packet to send [02:23:56]OFD Sender: No OFD packet to send [02:24:01]OFD Sender: No OFD packet to send [02:24:06]OFD Sender: No OFD packet to send [02:24:11]OFD Sender: No OFD packet to send [02:24:16]OFD Sender: No OFD packet to send [02:24:21]OFD Sender: No OFD packet to send [02:24:26]OFD Sender: No OFD packet to send [02:24:31]OFD Sender: No OFD packet to send [02:24:36]OFD Sender: No OFD packet to send [02:24:41]OFD Sender: No OFD packet to send [02:24:46]OFD Sender: No OFD packet to send [02:24:51]OFD Sender: No OFD packet to send [02:24:56]OFD Sender: No OFD packet to send [02:25:01]OFD Sender: No OFD packet to send [02:25:06]OFD Sender: No OFD packet to send [02:25:11]OFD Sender: No OFD packet to send [02:25:16]OFD Sender: No OFD packet to send [02:25:21]OFD Sender: No OFD packet to send [02:25:26]OFD Sender: No OFD packet to send [02:25:31]OFD Sender: No OFD packet to send [02:25:36]OFD Sender: No OFD packet to send [02:25:41]OFD Sender: No OFD packet to send [02:25:46]OFD Sender: No OFD packet to send [02:25:51]OFD Sender: No OFD packet to send [02:25:56]OFD Sender: No OFD packet to send [02:26:01]OFD Sender: No OFD packet to send [02:26:06]OFD Sender: No OFD packet to send [02:26:11]OFD Sender: No OFD packet to send [02:26:16]OFD Sender: No OFD packet to send [02:26:21]OFD Sender: No OFD packet to send [02:26:26]OFD Sender: No OFD packet to send [02:26:31]OFD Sender: No OFD packet to send [02:26:36]OFD Sender: No OFD packet to send [02:26:41]OFD Sender: No OFD packet to send [02:26:46]OFD Sender: No OFD packet to send [02:26:51]OFD Sender: No OFD packet to send [02:26:56]OFD Sender: No OFD packet to send [02:27:01]OFD Sender: No OFD packet to send [02:27:06]OFD Sender: No OFD packet to send [02:27:11]OFD Sender: No OFD packet to send [02:27:16]OFD Sender: No OFD packet to send [02:27:21]OFD Sender: No OFD packet to send [02:27:26]OFD Sender: No OFD packet to send [02:27:30]recv_with_timeout no data received [02:27:31]OFD Sender: No OFD packet to send [02:27:36]OFD Sender: No OFD packet to send [02:27:41]OFD Sender: No OFD packet to send [02:27:46]OFD Sender: No OFD packet to send [02:27:51]OFD Sender: No OFD packet to send [02:27:56]OFD Sender: No OFD packet to send [02:28:02]OFD Sender: No OFD packet to send [02:28:07]OFD Sender: No OFD packet to send [02:28:12]OFD Sender: No OFD packet to send [02:28:17]OFD Sender: No OFD packet to send [02:28:22]OFD Sender: No OFD packet to send [02:28:27]OFD Sender: No OFD packet to send [02:28:32]OFD Sender: No OFD packet to send [02:28:37]OFD Sender: No OFD packet to send [02:28:42]OFD Sender: No OFD packet to send [02:28:47]OFD Sender: No OFD packet to send [02:28:52]OFD Sender: No OFD packet to send [02:28:57]OFD Sender: No OFD packet to send [02:29:02]OFD Sender: No OFD packet to send [02:29:07]OFD Sender: No OFD packet to send [02:29:12]OFD Sender: No OFD packet to send [02:29:17]OFD Sender: No OFD packet to send [02:29:22]OFD Sender: No OFD packet to send [02:29:27]OFD Sender: No OFD packet to send [02:29:32]OFD Sender: No OFD packet to send [02:29:37]OFD Sender: No OFD packet to send [02:29:42]OFD Sender: No OFD packet to send [02:29:47]OFD Sender: No OFD packet to send [02:29:52]OFD Sender: No OFD packet to send [02:29:57]OFD Sender: No OFD packet to send [02:30:02]OFD Sender: No OFD packet to send [02:30:07]OFD Sender: No OFD packet to send [02:30:09]recv_with_timeout no data received [02:30:12]OFD Sender: No OFD packet to send [02:30:17]OFD Sender: No OFD packet to send [02:30:22]OFD Sender: No OFD packet to send [02:30:27]OFD Sender: No OFD packet to send [02:30:29]recv_with_timeout no data received [02:30:32]OFD Sender: No OFD packet to send [02:30:37]OFD Sender: No OFD packet to send [02:30:42]OFD Sender: No OFD packet to send [02:30:47]OFD Sender: No OFD packet to send [02:30:52]OFD Sender: No OFD packet to send [02:30:57]OFD Sender: No OFD packet to send [02:31:00]recv_with_timeout no data received [02:31:02]OFD Sender: No OFD packet to send [02:31:07]OFD Sender: No OFD packet to send [02:31:12]OFD Sender: No OFD packet to send [02:31:27]OFD Sender: No OFD packet to send [02:31:32]OFD Sender: No OFD packet to send [02:31:36]recv_with_timeout no data received [02:31:37]OFD Sender: No OFD packet to send [02:31:42]OFD Sender: No OFD packet to send [02:31:47]OFD Sender: No OFD packet to send [02:31:52]OFD Sender: No OFD packet to send [02:31:57]OFD Sender: No OFD packet to send [02:32:02]OFD Sender: No OFD packet to send [02:32:07]OFD Sender: No OFD packet to send [02:32:12]OFD Sender: No OFD packet to send [02:32:17]OFD Sender: No OFD packet to send [02:32:22]OFD Sender: No OFD packet to send [02:32:27]OFD Sender: No OFD packet to send [02:32:32]OFD Sender: No OFD packet to send [02:32:34]recv_with_timeout no data received [02:32:37]OFD Sender: No OFD packet to send [02:32:42]OFD Sender: No OFD packet to send [02:32:47]OFD Sender: No OFD packet to send [02:32:52]OFD Sender: No OFD packet to send [02:32:57]OFD Sender: No OFD packet to send [02:33:02]OFD Sender: No OFD packet to send [02:33:07]OFD Sender: No OFD packet to send [02:33:12]OFD Sender: No OFD packet to send [02:33:17]OFD Sender: No OFD packet to send [02:33:22]OFD Sender: No OFD packet to send [02:33:27]OFD Sender: No OFD packet to send [02:33:32]OFD Sender: No OFD packet to send [02:33:37]OFD Sender: No OFD packet to send [02:33:42]OFD Sender: No OFD packet to send [02:33:47]OFD Sender: No OFD packet to send [02:33:52]OFD Sender: No OFD packet to send [02:33:57]OFD Sender: No OFD packet to send [02:34:02]OFD Sender: No OFD packet to send [02:34:07]OFD Sender: No OFD packet to send [02:34:12]OFD Sender: No OFD packet to send [02:34:17]OFD Sender: No OFD packet to send [02:34:22]OFD Sender: No OFD packet to send [02:34:27]OFD Sender: No OFD packet to send [02:34:32]OFD Sender: No OFD packet to send [02:34:37]OFD Sender: No OFD packet to send [02:34:42]OFD Sender: No OFD packet to send [02:34:47]OFD Sender: No OFD packet to send [02:34:52]OFD Sender: No OFD packet to send [02:34:57]OFD Sender: No OFD packet to send [02:35:02]OFD Sender: No OFD packet to send [02:35:07]OFD Sender: No OFD packet to send [02:35:12]OFD Sender: No OFD packet to send [02:35:12]recv_with_timeout no data received [02:35:17]OFD Sender: No OFD packet to send [02:35:22]OFD Sender: No OFD packet to send [02:35:27]OFD Sender: No OFD packet to send [02:35:32]OFD Sender: No OFD packet to send [02:35:37]OFD Sender: No OFD packet to send [02:35:42]OFD Sender: No OFD packet to send [02:35:47]OFD Sender: No OFD packet to send [02:35:52]OFD Sender: No OFD packet to send [02:35:57]OFD Sender: No OFD packet to send [02:36:02]OFD Sender: No OFD packet to send [02:36:07]OFD Sender: No OFD packet to send [02:36:12]OFD Sender: No OFD packet to send [02:36:17]OFD Sender: No OFD packet to send [02:36:22]OFD Sender: No OFD packet to send [02:36:27]OFD Sender: No OFD packet to send [02:36:32]OFD Sender: No OFD packet to send [02:36:37]OFD Sender: No OFD packet to send [02:36:42]OFD Sender: No OFD packet to send [02:36:47]OFD Sender: No OFD packet to send [02:36:52]OFD Sender: No OFD packet to send [02:36:57]OFD Sender: No OFD packet to send [02:36:58]recv_with_timeout no data received [02:37:02]OFD Sender: No OFD packet to send [02:37:07]OFD Sender: No OFD packet to send [02:37:12]OFD Sender: No OFD packet to send [02:37:17]OFD Sender: No OFD packet to send [02:37:22]OFD Sender: No OFD packet to send [02:37:27]OFD Sender: No OFD packet to send [02:37:32]OFD Sender: No OFD packet to send [02:37:37]OFD Sender: No OFD packet to send [02:37:42]OFD Sender: No OFD packet to send [02:37:44]recv_with_timeout no data received [02:37:47]OFD Sender: No OFD packet to send [02:37:52]OFD Sender: No OFD packet to send [02:37:57]OFD Sender: No OFD packet to send [02:38:02]OFD Sender: No OFD packet to send [02:38:07]OFD Sender: No OFD packet to send [02:38:12]OFD Sender: No OFD packet to send [02:38:17]OFD Sender: No OFD packet to send [02:38: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:47]recv_with_timeout no data received [02:38:48]OFD Sender: No OFD packet to send [02:38:53]OFD Sender: No OFD packet to send [02:38:58]OFD Sender: No OFD packet to send [02:39:03]OFD Sender: No OFD packet to send [02:39:08]OFD Sender: No OFD packet to send [02:39:13]OFD Sender: No OFD packet to send [02:39:18]OFD Sender: No OFD packet to send [02:39:23]OFD Sender: No OFD packet to send [02:39:28]OFD Sender: No OFD packet to send [02:39:33]OFD Sender: No OFD packet to send [02:39:38]OFD Sender: No OFD packet to send [02:39:42]recv_with_timeout no data received [02:39:43]OFD Sender: No OFD packet to send [02:39:48]OFD Sender: No OFD packet to send [02:39:53]OFD Sender: No OFD packet to send [02:39:58]OFD Sender: No OFD packet to send [02:40:00]recv_with_timeout no data received [02:40:03]OFD Sender: No OFD packet to send [02:40:08]OFD Sender: No OFD packet to send [02:40:10]recv_with_timeout no data received [02:40:13]OFD Sender: No OFD packet to send [02:40:18]OFD Sender: No OFD packet to send [02:40:23]OFD Sender: No OFD packet to send [02:40:28]OFD Sender: No OFD packet to send [02:40:33]OFD Sender: No OFD packet to send [02:40:38]OFD Sender: No OFD packet to send [02:40:43]OFD Sender: No OFD packet to send [02:40:48]OFD Sender: No OFD packet to send [02:40:53]OFD Sender: No OFD packet to send [02:40:58]OFD Sender: No OFD packet to send [02:41:03]OFD Sender: No OFD packet to send [02:41:08]OFD Sender: No OFD packet to send [02:41:13]OFD Sender: No OFD packet to send [02:41:18]OFD Sender: No OFD packet to send [02:41:23]OFD Sender: No OFD packet to send [02:41:28]OFD Sender: No OFD packet to send [02:41:33]OFD Sender: No OFD packet to send [02:41:38]recv_with_timeout no data received [02:41:38]OFD Sender: No OFD packet to send [02:41:43]OFD Sender: No OFD packet to send [02:41:48]OFD Sender: No OFD packet to send [02:41:53]OFD Sender: No OFD packet to send [02:41:58]OFD Sender: No OFD packet to send [02:42:03]OFD Sender: No OFD packet to send [02:42:08]OFD Sender: No OFD packet to send [02:42:13]OFD Sender: No OFD packet to send [02:42:18]OFD Sender: No OFD packet to send [02:42:23]OFD Sender: No OFD packet to send [02:42:28]OFD Sender: No OFD packet to send [02:42:33]OFD Sender: No OFD packet to send [02:42:38]OFD Sender: No OFD packet to send [02:42:43]OFD Sender: No OFD packet to send [02:42:48]OFD Sender: No OFD packet to send [02:42:53]OFD Sender: No OFD packet to send [02:42:58]OFD Sender: No OFD packet to send [02:43:03]OFD Sender: No OFD packet to send [02:43:08]OFD Sender: No OFD packet to send [02:43:13]OFD Sender: No OFD packet to send [02:43:18]OFD Sender: No OFD packet to send [02:43:23]OFD Sender: No OFD packet to send [02:43:28]OFD Sender: No OFD packet to send [02:43:33]OFD Sender: No OFD packet to send [02:43:38]OFD Sender: No OFD packet to send [02:43:43]OFD Sender: No OFD packet to send [02:43:48]OFD Sender: No OFD packet to send [02:43:53]OFD Sender: No OFD packet to send [02:43:58]OFD Sender: No OFD packet to send [02:44:03]OFD Sender: No OFD packet to send [02:44:08]OFD Sender: No OFD packet to send [02:44:13]OFD Sender: No OFD packet to send [02:44:18]OFD Sender: No OFD packet to send [02:44:23]OFD Sender: No OFD packet to send [02:44:28]OFD Sender: No OFD packet to send [02:44:33]OFD Sender: No OFD packet to send [02:44:38]OFD Sender: No OFD packet to send [02:44:43]OFD Sender: No OFD packet to send [02:44:48]OFD Sender: No OFD packet to send [02:44:53]OFD Sender: No OFD packet to send [02:44:58]OFD Sender: No OFD packet to send [02:45:03]OFD Sender: No OFD packet to send [02:45:08]OFD Sender: No OFD packet to send [02:45:10]recv_with_timeout no data received [02:45:13]OFD Sender: No OFD packet to send [02:45:18]OFD Sender: No OFD packet to send [02:45:23]OFD Sender: No OFD packet to send [02:45:27]recv_with_timeout no data received [02:45:28]OFD Sender: No OFD packet to send [02:45:33]OFD Sender: No OFD packet to send [02:45:38]OFD Sender: No OFD packet to send [02:45:43]OFD Sender: No OFD packet to send [02:45:48]OFD Sender: No OFD packet to send [02:45:53]OFD Sender: No OFD packet to send [02:45:58]OFD Sender: No OFD packet to send [02:46:03]OFD Sender: No OFD packet to send [02:46:08]OFD Sender: No OFD packet to send [02:46:13]OFD Sender: No OFD packet to send [02:46:18]OFD Sender: No OFD packet to send [02:46:23]OFD Sender: No OFD packet to send [02:46:28]OFD Sender: No OFD packet to send [02:46:33]OFD Sender: No OFD packet to send [02:46:34]recv_with_timeout no data received [02:46:38]OFD Sender: No OFD packet to send [02:46:43]OFD Sender: No OFD packet to send [02:46:48]OFD Sender: No OFD packet to send [02:46:53]OFD Sender: No OFD packet to send [02:46:58]OFD Sender: No OFD packet to send [02:47:03]OFD Sender: No OFD packet to send [02:47:08]OFD Sender: No OFD packet to send [02:47:13]OFD Sender: No OFD packet to send [02:47:18]OFD Sender: No OFD packet to send [02:47:23]OFD Sender: No OFD packet to send [02:47:28]OFD Sender: No OFD packet to send [02:47:33]OFD Sender: No OFD packet to send [02:47:38]OFD Sender: No OFD packet to send [02:47:43]OFD Sender: No OFD packet to send [02:47:48]OFD Sender: No OFD packet to send [02:47:53]OFD Sender: No OFD packet to send [02:47:58]OFD Sender: No OFD packet to send [02:48:03]OFD Sender: No OFD packet to send [02:48:08]OFD Sender: No OFD packet to send [02:48:13]OFD Sender: No OFD packet to send [02:48:18]OFD Sender: No OFD packet to send [02:48:23]OFD Sender: No OFD packet to send [02:48:28]OFD Sender: No OFD packet to send [02:48: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:58]recv_with_timeout no data received [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:31]recv_with_timeout no data received [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]recv_with_timeout no data received [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:36]recv_with_timeout no data received [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:03]recv_with_timeout no data received [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:38]recv_with_timeout no data received [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:50]OFD Sender: No OFD packet to send [02:58:55]OFD Sender: No OFD packet to send [02:59:00]OFD Sender: No OFD packet to send [02:59:05]OFD Sender: No OFD packet to send [02:59:10]OFD Sender: No OFD packet to send [02:59:15]OFD Sender: No OFD packet to send [02:59:20]OFD Sender: No OFD packet to send [02:59:25]OFD Sender: No OFD packet to send [02:59:30]OFD Sender: No OFD packet to send [02:59:35]OFD Sender: No OFD packet to send [02:59:40]OFD Sender: No OFD packet to send [02:59:45]OFD Sender: No OFD packet to send [02:59:50]OFD Sender: No OFD packet to send [02:59:55]OFD Sender: No OFD packet to send [02:59:58]recv_with_timeout no data received [03:00:00]OFD Sender: No OFD packet to send [03:00:05]OFD Sender: No OFD packet to send [03:00:10]OFD Sender: No OFD packet to send [03:00:15]OFD Sender: No OFD packet to send [03:00:20]OFD Sender: No OFD packet to send [03:00:25]OFD Sender: No OFD packet to send [03:00:30]OFD Sender: No OFD packet to send [03:00:35]OFD Sender: No OFD packet to send [03:00:40]OFD Sender: No OFD packet to send [03:00:45]OFD Sender: No OFD packet to send [03:00:50]OFD Sender: No OFD packet to send [03:00:55]OFD Sender: No OFD packet to send [03:01:00]OFD Sender: No OFD packet to send [03:01:05]OFD Sender: No OFD packet to send [03:01:07]recv_with_timeout no data received [03:01:10]OFD Sender: No OFD packet to send [03:01:15]OFD Sender: No OFD packet to send [03:01:20]OFD Sender: No OFD packet to send [03:01:25]OFD Sender: No OFD packet to send [03:01:30]OFD Sender: No OFD packet to send [03:01:35]OFD Sender: No OFD packet to send [03:01:37]recv_with_timeout no data received [03:01:40]OFD Sender: No OFD packet to send [03:01:45]OFD Sender: No OFD packet to send [03:02:00]OFD Sender: No OFD packet to send [03:02:05]OFD Sender: No OFD packet to send [03:02:10]OFD Sender: No OFD packet to send [03:02:15]OFD Sender: No OFD packet to send [03:02:20]OFD Sender: No OFD packet to send [03:02:25]OFD Sender: No OFD packet to send [03:02:30]OFD Sender: No OFD packet to send [03:02:35]OFD Sender: No OFD packet to send [03:02:40]OFD Sender: No OFD packet to send [03:02:45]OFD Sender: No OFD packet to send [03:02:50]OFD Sender: No OFD packet to send [03:02:55]OFD Sender: No OFD packet to send [03:03:00]OFD Sender: No OFD packet to send [03:03:05]OFD Sender: No OFD packet to send [03:03:10]OFD Sender: No OFD packet to send [03:03:15]OFD Sender: No OFD packet to send [03:03:20]OFD Sender: No OFD packet to send [03:03:25]OFD Sender: No OFD packet to send [03:03:30]OFD Sender: No OFD packet to send [03:03:35]OFD Sender: No OFD packet to send [03:03:40]OFD Sender: No OFD packet to send [03:03:45]OFD Sender: No OFD packet to send [03:03:50]OFD Sender: No OFD packet to send [03:03:55]OFD Sender: No OFD packet to send [03:04:00]OFD Sender: No OFD packet to send [03:04:05]OFD Sender: No OFD packet to send [03:04:10]OFD Sender: No OFD packet to send [03:04:10]ConnectInit Can't connect to host [03:04:15]OFD Sender: No OFD packet to send [03:04:20]OFD Sender: No OFD packet to send [03:04:25]OFD Sender: No OFD packet to send [03:04:30]OFD Sender: No OFD packet to send [03:04:35]OFD Sender: No OFD packet to send [03:04:40]OFD Sender: No OFD packet to send [03:04:45]OFD Sender: No OFD packet to send [03:04:50]OFD Sender: No OFD packet to send [03:04:55]OFD Sender: No OFD packet to send [03:04:59]recv_with_timeout no data received [03:05:00]OFD Sender: No OFD packet to send [03:05:05]OFD Sender: No OFD packet to send [03:05:10]OFD Sender: No OFD packet to send [03:05:15]OFD Sender: No OFD packet to send [03:05:20]OFD Sender: No OFD packet to send [03:05:24]recv_with_timeout no data received [03:05:25]OFD Sender: No OFD packet to send [03:05:30]OFD Sender: No OFD packet to send [03:05:35]OFD Sender: No OFD packet to send [03:05:40]OFD Sender: No OFD packet to send [03:05:43]recv_with_timeout no data received [03:05:45]OFD Sender: No OFD packet to send [03:05:50]OFD Sender: No OFD packet to send [03:05:55]OFD Sender: No OFD packet to send [03:06:00]OFD Sender: No OFD packet to send [03:06:05]OFD Sender: No OFD packet to send [03:06:10]OFD Sender: No OFD packet to send [03:06:15]OFD Sender: No OFD packet to send [03:06:20]OFD Sender: No OFD packet to send [03:06:25]OFD Sender: No OFD packet to send [03:06:30]OFD Sender: No OFD packet to send [03:06:35]OFD Sender: No OFD packet to send [03:06:40]OFD Sender: No OFD packet to send [03:06:45]OFD Sender: No OFD packet to send [03:06:50]OFD Sender: No OFD packet to send [03:06:55]OFD Sender: No OFD packet to send [03:07:00]OFD Sender: No OFD packet to send [03:07:05]OFD Sender: No OFD packet to send [03:07:10]OFD Sender: No OFD packet to send [03:07:15]OFD Sender: No OFD packet to send [03:07:20]recv_with_timeout no data received [03:07:20]OFD Sender: No OFD packet to send [03:07:25]OFD Sender: No OFD packet to send [03:07:30]OFD Sender: No OFD packet to send [03:07:35]OFD Sender: No OFD packet to send [03:07:40]OFD Sender: No OFD packet to send [03:07:45]OFD Sender: No OFD packet to send [03:07:50]OFD Sender: No OFD packet to send [03:07:55]OFD Sender: No OFD packet to send [03:08:00]OFD Sender: No OFD packet to send [03:08:03]recv_with_timeout no data received [03:08:05]OFD Sender: No OFD packet to send [03:08:10]OFD Sender: No OFD packet to send [03:08:15]OFD Sender: No OFD packet to send [03:08:20]OFD Sender: No OFD packet to send [03:08:25]OFD Sender: No OFD packet to send [03:08:30]OFD Sender: No OFD packet to send [03:08:35]OFD Sender: No OFD packet to send [03:08:40]OFD Sender: No OFD packet to send [03:08:45]OFD Sender: No OFD packet to send [03:08:50]OFD Sender: No OFD packet to send [03:08:55]OFD Sender: No OFD packet to send [03:09:00]OFD Sender: No OFD packet to send [03:09:06]OFD Sender: No OFD packet to send [03:09:11]OFD Sender: No OFD packet to send [03:09:16]OFD Sender: No OFD packet to send [03:09:21]OFD Sender: No OFD packet to send [03:09:24]recv_with_timeout no data received [03:09:26]OFD Sender: No OFD packet to send [03:09:31]OFD Sender: No OFD packet to send [03:09:36]OFD Sender: No OFD packet to send [03:09:41]OFD Sender: No OFD packet to send [03:09:46]OFD Sender: No OFD packet to send [03:09:51]OFD Sender: No OFD packet to send [03:09:56]OFD Sender: No OFD packet to send [03:10:01]OFD Sender: No OFD packet to send [03:10:06]OFD Sender: No OFD packet to send [03:10:11]OFD Sender: No OFD packet to send [03:10:11]recv_with_timeout no data received [03:10:16]OFD Sender: No OFD packet to send [03:10:21]OFD Sender: No OFD packet to send [03:10:26]OFD Sender: No OFD packet to send [03:10:31]OFD Sender: No OFD packet to send [03:10:36]OFD Sender: No OFD packet to send [03:10:41]OFD Sender: No OFD packet to send [03:10:46]OFD Sender: No OFD packet to send [03:10:51]OFD Sender: No OFD packet to send [03:10:56]OFD Sender: No OFD packet to send [03:11:01]OFD Sender: No OFD packet to send [03:11:06]OFD Sender: No OFD packet to send [03:11:11]OFD Sender: No OFD packet to send [03:11:16]OFD Sender: No OFD packet to send [03:11:21]OFD Sender: No OFD packet to send [03:11:26]OFD Sender: No OFD packet to send [03:11:28]recv_with_timeout no data received [03:11:31]OFD Sender: No OFD packet to send [03:11:36]OFD Sender: No OFD packet to send [03:11:41]OFD Sender: No OFD packet to send [03:11:46]OFD Sender: No OFD packet to send [03:11:51]OFD Sender: No OFD packet to send [03:11:56]OFD Sender: No OFD packet to send [03:12:01]OFD Sender: No OFD packet to send [03:12:06]OFD Sender: No OFD packet to send [03:12:11]OFD Sender: No OFD packet to send [03:12:16]OFD Sender: No OFD packet to send [03:12:21]OFD Sender: No OFD packet to send [03:12:26]OFD Sender: No OFD packet to send [03:12:31]OFD Sender: No OFD packet to send [03:12:36]OFD Sender: No OFD packet to send [03:12:41]OFD Sender: No OFD packet to send [03:12:46]OFD Sender: No OFD packet to send [03:12:51]OFD Sender: No OFD packet to send [03:12:56]OFD Sender: No OFD packet to send [03:13:01]OFD Sender: No OFD packet to send [03:13:06]OFD Sender: No OFD packet to send [03:13:11]OFD Sender: No OFD packet to send [03:13:16]OFD Sender: No OFD packet to send [03:13:21]OFD Sender: No OFD packet to send [03:13:26]OFD Sender: No OFD packet to send [03:13:26]recv_with_timeout no data received [03:13:31]OFD Sender: No OFD packet to send [03:13:36]OFD Sender: No OFD packet to send [03:13:41]OFD Sender: No OFD packet to send [03:13:46]OFD Sender: No OFD packet to send [03:13:51]OFD Sender: No OFD packet to send [03:13:56]OFD Sender: No OFD packet to send [03:14:01]OFD Sender: No OFD packet to send [03:14:06]OFD Sender: No OFD packet to send [03:14:11]OFD Sender: No OFD packet to send [03:14:16]OFD Sender: No OFD packet to send [03:14:21]OFD Sender: No OFD packet to send [03:14:26]OFD Sender: No OFD packet to send [03:14:31]OFD Sender: No OFD packet to send [03:14:46]OFD Sender: No OFD packet to send [03:14:51]OFD Sender: No OFD packet to send [03:14:56]OFD Sender: No OFD packet to send [03:15:01]OFD Sender: No OFD packet to send [03:15:06]OFD Sender: No OFD packet to send [03:15:11]OFD Sender: No OFD packet to send [03:15:16]OFD Sender: No OFD packet to send [03:15:18]recv_with_timeout no data received [03:15:21]OFD Sender: No OFD packet to send [03:15:26]OFD Sender: No OFD packet to send [03:15:31]OFD Sender: No OFD packet to send [03:15:36]OFD Sender: No OFD packet to send [03:15:41]OFD Sender: No OFD packet to send [03:15:46]OFD Sender: No OFD packet to send [03:15:51]OFD Sender: No OFD packet to send [03:15:56]OFD Sender: No OFD packet to send [03:15:57]recv_with_timeout no data received [03:16:01]OFD Sender: No OFD packet to send [03:16:06]OFD Sender: No OFD packet to send [03:16:11]OFD Sender: No OFD packet to send [03:16:16]OFD Sender: No OFD packet to send [03:16:21]OFD Sender: No OFD packet to send [03:16:26]OFD Sender: No OFD packet to send [03:16:31]OFD Sender: No OFD packet to send [03:16:36]OFD Sender: No OFD packet to send [03:16:41]OFD Sender: No OFD packet to send [03:16:46]OFD Sender: No OFD packet to send [03:16:49]recv_with_timeout no data received [03:16:51]OFD Sender: No OFD packet to send [03:16:56]OFD Sender: No OFD packet to send [03:17:01]OFD Sender: No OFD packet to send [03:17:06]OFD Sender: No OFD packet to send [03:17:11]OFD Sender: No OFD packet to send [03:17:16]OFD Sender: No OFD packet to send [03:17:21]OFD Sender: No OFD packet to send [03:17:26]OFD Sender: No OFD packet to send [03:17:31]OFD Sender: No OFD packet to send [03:17:36]OFD Sender: No OFD packet to send [03:17:41]OFD Sender: No OFD packet to send [03:17:46]OFD Sender: No OFD packet to send [03:17:51]OFD Sender: No OFD packet to send [03:17:56]OFD Sender: No OFD packet to send [03:18:01]OFD Sender: No OFD packet to send [03:18:06]OFD Sender: No OFD packet to send [03:18:11]OFD Sender: No OFD packet to send [03:18:16]OFD Sender: No OFD packet to send [03:18:21]OFD Sender: No OFD packet to send [03:18:26]OFD Sender: No OFD packet to send [03:18:31]recv_with_timeout no data received [03:18:31]OFD Sender: No OFD packet to send [03:18:36]OFD Sender: No OFD packet to send [03:18:41]OFD Sender: No OFD packet to send [03:18:46]OFD Sender: No OFD packet to send [03:18:47]recv_with_timeout no data received [03:18:51]OFD Sender: No OFD packet to send [03:18:56]OFD Sender: No OFD packet to send [03:19:01]OFD Sender: No OFD packet to send [03:19:04]recv_with_timeout no data received [03:19:06]OFD Sender: No OFD packet to send [03:19:11]OFD Sender: No OFD packet to send [03:19:17]OFD Sender: No OFD packet to send [03:19:22]OFD Sender: No OFD packet to send [03:19:24]recv_with_timeout no data received [03:19:27]OFD Sender: No OFD packet to send [03:19:32]OFD Sender: No OFD packet to send [03:19:37]OFD Sender: No OFD packet to send [03:19:42]OFD Sender: No OFD packet to send [03:19:47]OFD Sender: No OFD packet to send [03:19:52]OFD Sender: No OFD packet to send [03:19:57]OFD Sender: No OFD packet to send [03:20:02]OFD Sender: No OFD packet to send [03:20:07]OFD Sender: No OFD packet to send [03:20:11]recv_with_timeout no data received [03:20:12]OFD Sender: No OFD packet to send [03:20:17]OFD Sender: No OFD packet to send [03:20:22]OFD Sender: No OFD packet to send [03:20:27]OFD Sender: No OFD packet to send [03:20:32]OFD Sender: No OFD packet to send [03:20:37]OFD Sender: No OFD packet to send [03:20:42]OFD Sender: No OFD packet to send [03:20:47]OFD Sender: No OFD packet to send [03:20:52]OFD Sender: No OFD packet to send [03:20:57]OFD Sender: No OFD packet to send [03:21:02]OFD Sender: No OFD packet to send [03:21:07]OFD Sender: No OFD packet to send [03:21:10]recv_with_timeout no data received [03:21:12]OFD Sender: No OFD packet to send [03:21:17]OFD Sender: No OFD packet to send [03:21:22]OFD Sender: No OFD packet to send [03:21:27]OFD Sender: No OFD packet to send [03:21:32]OFD Sender: No OFD packet to send [03:21:37]OFD Sender: No OFD packet to send [03:21:42]OFD Sender: No OFD packet to send [03:21:47]OFD Sender: No OFD packet to send [03:21:52]OFD Sender: No OFD packet to send [03:21:57]OFD Sender: No OFD packet to send [03:22:02]OFD Sender: No OFD packet to send [03:22:07]OFD Sender: No OFD packet to send [03:22:12]OFD Sender: No OFD packet to send [03:22:17]OFD Sender: No OFD packet to send [03:22:22]OFD Sender: No OFD packet to send [03:22:27]OFD Sender: No OFD packet to send [03:22:32]OFD Sender: No OFD packet to send [03:22:37]OFD Sender: No OFD packet to send [03:22:42]OFD Sender: No OFD packet to send [03:22:46]recv_with_timeout no data received [03:22:47]OFD Sender: No OFD packet to send [03:22:52]OFD Sender: No OFD packet to send [03:22:57]OFD Sender: No OFD packet to send [03:23:02]OFD Sender: No OFD packet to send [03:23:07]OFD Sender: No OFD packet to send [03:23:12]OFD Sender: No OFD packet to send [03:23:17]OFD Sender: No OFD packet to send [03:23:22]OFD Sender: No OFD packet to send [03:23:27]OFD Sender: No OFD packet to send [03:23:32]OFD Sender: No OFD packet to send [03:23:37]OFD Sender: No OFD packet to send [03:23:42]OFD Sender: No OFD packet to send [03:23:47]OFD Sender: No OFD packet to send [03:23:52]OFD Sender: No OFD packet to send [03:23:57]OFD Sender: No OFD packet to send [03:24:02]OFD Sender: No OFD packet to send [03:24:07]OFD Sender: No OFD packet to send [03:24:10]recv_with_timeout no data received [03:24:12]OFD Sender: No OFD packet to send [03:24:17]OFD Sender: No OFD packet to send [03:24:22]OFD Sender: No OFD packet to send [03:24:27]OFD Sender: No OFD packet to send [03:24:32]OFD Sender: No OFD packet to send [03:24:37]OFD Sender: No OFD packet to send [03:24:42]OFD Sender: No OFD packet to send [03:24:47]OFD Sender: No OFD packet to send [03:24:52]OFD Sender: No OFD packet to send [03:24:57]OFD Sender: No OFD packet to send [03:24:57]recv_with_timeout no data received [03:25:02]OFD Sender: No OFD packet to send [03:25:07]OFD Sender: No OFD packet to send [03:25:12]OFD Sender: No OFD packet to send [03:25:17]OFD Sender: No OFD packet to send [03:25:22]OFD Sender: No OFD packet to send [03:25:27]OFD Sender: No OFD packet to send [03:25:32]OFD Sender: No OFD packet to send [03:25:37]OFD Sender: No OFD packet to send [03:25:41]recv_with_timeout no data received [03:25:42]OFD Sender: No OFD packet to send [03:25:47]OFD Sender: No OFD packet to send [03:25:52]OFD Sender: No OFD packet to send [03:25:57]OFD Sender: No OFD packet to send [03:26:02]OFD Sender: No OFD packet to send [03:26:07]OFD Sender: No OFD packet to send [03:26:12]OFD Sender: No OFD packet to send [03:26:17]OFD Sender: No OFD packet to send [03:26:22]OFD Sender: No OFD packet to send [03:26:27]OFD Sender: No OFD packet to send [03:26:32]OFD Sender: No OFD packet to send [03:26:37]OFD Sender: No OFD packet to send [03:26:42]OFD Sender: No OFD packet to send [03:26:44]recv_with_timeout no data received [03:26:47]OFD Sender: No OFD packet to send